Skip to content

Commit

Permalink
V4L/DVB: tm6000: add tuner callback for dvb frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Stefan Ringel authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 20cabed commit e78c8f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/tm6000/tm6000-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ struct usb_device_id tm6000_id_table [] = {

/* 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;
struct tm6000_core *dev = ptr;
Expand Down
1 change: 1 addition & 0 deletions drivers/staging/tm6000/tm6000-dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ int tm6000_dvb_register(struct tm6000_core *dev)
.i2c_addr = dev->tuner_addr,
};

dvb->frontend->callback = tm6000_tuner_callback;
ret = dvb_register_frontend(&dvb->adapter, dvb->frontend);
if (ret < 0) {
printk(KERN_ERR
Expand Down
3 changes: 3 additions & 0 deletions drivers/staging/tm6000/tm6000.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ struct tm6000_fh {
V4L2_STD_PAL_M|V4L2_STD_PAL_60|V4L2_STD_NTSC_M| \
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 */

int tm6000_read_write_usb (struct tm6000_core *dev, u8 reqtype, u8 req,
Expand Down

0 comments on commit e78c8f2

Please sign in to comment.