Lines Matching defs:codec

22 /* codec io API */
37 * read/write via codec layer (registers are located in the master device)
44 struct zoran *zr = videocodec_to_zoran(ptr->codec);
47 if (ptr->codec->master_data->readreg)
48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff;
57 struct zoran *zr = videocodec_to_zoran(ptr->codec);
62 if (ptr->codec->master_data->writereg)
63 ptr->codec->master_data->writereg(ptr->codec, reg, value);
94 /* wait if codec is ready to proceed (end of processing) or time is over */
97 struct zoran *zr = videocodec_to_zoran(ptr->codec);
114 struct zoran *zr = videocodec_to_zoran(ptr->codec);
134 struct zoran *zr = videocodec_to_zoran(ptr->codec);
252 struct zoran *zr = videocodec_to_zoran(ptr->codec);
281 struct zoran *zr = videocodec_to_zoran(ptr->codec);
307 struct zoran *zr = videocodec_to_zoran(ptr->codec);
327 struct zoran *zr = videocodec_to_zoran(ptr->codec);
463 /* set compressiion/expansion mode and launches codec -
466 static int zr36060_set_mode(struct videocodec *codec, int mode)
468 struct zr36060 *ptr = (struct zr36060 *)codec->data;
469 struct zoran *zr = videocodec_to_zoran(codec);
482 /* set picture size (norm is ignored as the codec doesn't know about it) */
483 static int zr36060_set_video(struct videocodec *codec, const struct tvnorm *norm,
486 struct zr36060 *ptr = (struct zr36060 *)codec->data;
487 struct zoran *zr = videocodec_to_zoran(codec);
642 static int zr36060_control(struct videocodec *codec, int type, int size, void *data)
644 struct zr36060 *ptr = (struct zr36060 *)codec->data;
645 struct zoran *zr = videocodec_to_zoran(codec);
759 static int zr36060_unset(struct videocodec *codec)
761 struct zr36060 *ptr = codec->data;
762 struct zoran *zr = videocodec_to_zoran(codec);
765 /* do wee need some codec deinit here, too ???? */
767 zrdev_dbg(zr, "%s: finished codec #%d\n", ptr->name, ptr->num);
769 codec->data = NULL;
785 static int zr36060_setup(struct videocodec *codec)
788 struct zoran *zr = videocodec_to_zoran(codec);
800 codec->data = ptr;
806 ptr->codec = codec;
811 zr36060_unset(codec);
835 zrdev_info(zr, "%s: codec attached and running\n", ptr->name);