diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-05-02 11:06:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:21:01 -0400 |
commit | 38092a4402e0df6f1f283ff6e455197035266ce7 (patch) | |
tree | d654585daaa8fb53afc97a951e17bde2ecfcc9f1 /drivers/media/radio/radio-sf16fmr2.c | |
parent | 1d80db562f9ee6d6d72cdbf488493e4cd6433669 (diff) |
V4L/DVB (11677): radio-fm16: fix g_tuner.
g_tuner handled capability, audmode and rxsubchans incorrectly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-sf16fmr2.c')
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index 87e01c556d88..a11414f648d4 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -230,10 +230,10 @@ static int vidioc_g_tuner(struct file *file, void *priv, | |||
230 | 230 | ||
231 | v->rangelow = RSF16_MINFREQ; | 231 | v->rangelow = RSF16_MINFREQ; |
232 | v->rangehigh = RSF16_MAXFREQ; | 232 | v->rangehigh = RSF16_MAXFREQ; |
233 | v->rxsubchans = V4L2_TUNER_SUB_MONO | V4L2_TUNER_SUB_STEREO; | 233 | v->rxsubchans = fmr2->stereo ? V4L2_TUNER_SUB_STEREO : |
234 | v->capability = V4L2_TUNER_CAP_LOW; | 234 | V4L2_TUNER_SUB_MONO; |
235 | v->audmode = fmr2->stereo ? V4L2_TUNER_MODE_STEREO: | 235 | v->capability = V4L2_TUNER_CAP_STEREO | V4L2_TUNER_CAP_LOW; |
236 | V4L2_TUNER_MODE_MONO; | 236 | v->audmode = V4L2_TUNER_MODE_STEREO; |
237 | mutex_lock(&fmr2->lock); | 237 | mutex_lock(&fmr2->lock); |
238 | v->signal = fmr2_getsigstr(fmr2); | 238 | v->signal = fmr2_getsigstr(fmr2); |
239 | mutex_unlock(&fmr2->lock); | 239 | mutex_unlock(&fmr2->lock); |