Skip to content

Commit

Permalink
[PATCH] v4l: 821: set tuner type in vidioc_g_tuner
Browse files Browse the repository at this point in the history
- Set tuner type in VIDIOC_G_TUNER.

Signed-off-by: Elad Lahav <elad_lahav@users.sourceforge.net>
Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Elad Lahav authored and Linus Torvalds committed Nov 9, 2005
1 parent f59ab27 commit 48c4259
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/cx88/cx88-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1506,6 +1506,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,

memset(t,0,sizeof(*t));
strcpy(t->name, "Radio");
t->type = V4L2_TUNER_RADIO;

cx88_call_i2c_clients(core,VIDIOC_G_TUNER,t);
return 0;
Expand Down
2 changes: 2 additions & 0 deletions drivers/media/video/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
break;
if (NULL != card_in(dev,n).name) {
strcpy(t->name, "Television");
t->type = V4L2_TUNER_ANALOG_TV;
t->capability = V4L2_TUNER_CAP_NORM |
V4L2_TUNER_CAP_STEREO |
V4L2_TUNER_CAP_LANG1 |
Expand Down Expand Up @@ -2165,6 +2166,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file,

memset(t,0,sizeof(*t));
strcpy(t->name, "Radio");
t->type = V4L2_TUNER_RADIO;

saa7134_i2c_call_clients(dev, VIDIOC_G_TUNER, t);

Expand Down

0 comments on commit 48c4259

Please sign in to comment.