summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <devnull@localhost>2005-12-29 21:17:49 +0000
committerHans Verkuil <devnull@localhost>2005-12-29 21:17:49 +0000
commitcef5cebd1711ac82e239f1a748dd23b2825e4028 (patch)
tree1701abac95ecae5a98fd2841c38074fb60932e77 /linux/drivers/media
parent27e2b95a26c4420606c083db5fc52d1d7ea30401 (diff)
downloadmediapointer-dvb-s2-cef5cebd1711ac82e239f1a748dd23b2825e4028.tar.gz
mediapointer-dvb-s2-cef5cebd1711ac82e239f1a748dd23b2825e4028.tar.bz2
When in radio mode don't do anything with VIDIOC_G_TUNER.
When in radio mode don't do anything with VIDIOC_G_TUNER. Allow other devices to fill this. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/tvaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/tvaudio.c b/linux/drivers/media/video/tvaudio.c
index ba4924cb1..a878a1011 100644
--- a/linux/drivers/media/video/tvaudio.c
+++ b/linux/drivers/media/video/tvaudio.c
@@ -1747,12 +1747,12 @@ static int chip_command(struct i2c_client *client,
struct v4l2_tuner *vt = arg;
int mode = VIDEO_SOUND_MONO;
+ if (chip->radio)
+ break;
vt->audmode = 0;
vt->rxsubchans = 0;
vt->capability = V4L2_TUNER_CAP_STEREO |
V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2;
- if (chip->radio)
- break;
if (desc->getmode)
mode = desc->getmode(chip);