Commit e78c8f22 authored by Stefan Ringel's avatar Stefan Ringel Committed by Mauro Carvalho Chehab

V4L/DVB: tm6000: add tuner callback for dvb frontend

Signed-off-by: default avatarStefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 20cabed4
...@@ -244,7 +244,7 @@ struct usb_device_id tm6000_id_table [] = { ...@@ -244,7 +244,7 @@ struct usb_device_id tm6000_id_table [] = {
/* Tuner callback to provide the proper gpio changes needed for xc2028 */ /* Tuner callback to provide the proper gpio changes needed for xc2028 */
static int tm6000_tuner_callback(void *ptr, int component, int command, int arg) int tm6000_tuner_callback(void *ptr, int component, int command, int arg)
{ {
int rc=0; int rc=0;
struct tm6000_core *dev = ptr; struct tm6000_core *dev = ptr;
......
...@@ -236,6 +236,7 @@ int tm6000_dvb_register(struct tm6000_core *dev) ...@@ -236,6 +236,7 @@ int tm6000_dvb_register(struct tm6000_core *dev)
.i2c_addr = dev->tuner_addr, .i2c_addr = dev->tuner_addr,
}; };
dvb->frontend->callback = tm6000_tuner_callback;
ret = dvb_register_frontend(&dvb->adapter, dvb->frontend); ret = dvb_register_frontend(&dvb->adapter, dvb->frontend);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR printk(KERN_ERR
......
...@@ -203,6 +203,9 @@ struct tm6000_fh { ...@@ -203,6 +203,9 @@ struct tm6000_fh {
V4L2_STD_PAL_M|V4L2_STD_PAL_60|V4L2_STD_NTSC_M| \ V4L2_STD_PAL_M|V4L2_STD_PAL_60|V4L2_STD_NTSC_M| \
V4L2_STD_NTSC_M_JP|V4L2_STD_SECAM V4L2_STD_NTSC_M_JP|V4L2_STD_SECAM
/* In tm6000-cards.c */
int tm6000_tuner_callback (void *ptr, int component, int command, int arg);
/* In tm6000-core.c */ /* In tm6000-core.c */
int tm6000_read_write_usb (struct tm6000_core *dev, u8 reqtype, u8 req, int tm6000_read_write_usb (struct tm6000_core *dev, u8 reqtype, u8 req,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment