Commit d3900bc4 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

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: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
parent 30b54d50
...@@ -1706,12 +1706,12 @@ static int chip_command(struct i2c_client *client, ...@@ -1706,12 +1706,12 @@ static int chip_command(struct i2c_client *client,
struct v4l2_tuner *vt = arg; struct v4l2_tuner *vt = arg;
int mode = VIDEO_SOUND_MONO; int mode = VIDEO_SOUND_MONO;
if (chip->radio)
break;
vt->audmode = 0; vt->audmode = 0;
vt->rxsubchans = 0; vt->rxsubchans = 0;
vt->capability = V4L2_TUNER_CAP_STEREO | vt->capability = V4L2_TUNER_CAP_STEREO |
V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2; V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2;
if (chip->radio)
break;
if (desc->getmode) if (desc->getmode)
mode = desc->getmode(chip); mode = desc->getmode(chip);
......
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