summaryrefslogtreecommitdiff
path: root/drivers/media/video/tvaudio.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-09 15:25:44 -0200
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 15:25:44 -0200
commitd3900bc42e6bc5e461c29951cc2a50df09e08771 (patch)
treecebd289ecf70b3c223d2bba234c2cdaa3f0d7a1b /drivers/media/video/tvaudio.c
parent30b54d50f6e2b8f5a4c8b5ade3d25a02612f8f51 (diff)
V4L/DVB (3255): 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> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'drivers/media/video/tvaudio.c')
-rw-r--r--drivers/media/video/tvaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/tvaudio.c b/drivers/media/video/tvaudio.c
index 2bdbb39bff0f..ed6a843dd34a 100644
--- a/drivers/media/video/tvaudio.c
+++ b/drivers/media/video/tvaudio.c
@@ -1706,12 +1706,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);