diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-20 11:29:12 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-20 11:29:12 +0200 |
commit | bf4c25c5673f3c61136300f25c14379f0f08757a (patch) | |
tree | 2002edcc8391a656830812bc26e8fecd853cfa3b /linux/drivers/media/radio/radio-tea5764.c | |
parent | 778bfc74f3b523b91853b6c7cc5b4b01527ab713 (diff) | |
download | mediapointer-dvb-s2-bf4c25c5673f3c61136300f25c14379f0f08757a.tar.gz mediapointer-dvb-s2-bf4c25c5673f3c61136300f25c14379f0f08757a.tar.bz2 |
radio-tea5764: fix incorrect rxsubchans value
From: Hans Verkuil <hverkuil@xs4all.nl>
rxsubchans was only set when stereo was detected, otherwise it was
left to 0 instead of setting it to mono.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/radio/radio-tea5764.c')
-rw-r--r-- | linux/drivers/media/radio/radio-tea5764.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-tea5764.c b/linux/drivers/media/radio/radio-tea5764.c index 9194a70aa..83a5aff7b 100644 --- a/linux/drivers/media/radio/radio-tea5764.c +++ b/linux/drivers/media/radio/radio-tea5764.c @@ -326,7 +326,9 @@ static int vidioc_g_tuner(struct file *file, void *priv, v->rangehigh = FREQ_MAX * FREQ_MUL; v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO; if (r->tunchk & TEA5764_TUNCHK_STEREO) - v->rxsubchans = V4L2_TUNER_SUB_STEREO; + v->rxsubchans = V4L2_TUNER_SUB_STEREO; + else + v->rxsubchans = V4L2_TUNER_SUB_MONO; v->audmode = tea5764_get_audout_mode(radio); v->signal = TEA5764_TUNCHK_LEVEL(r->tunchk) * 0xffff / 0xf; v->afc = TEA5764_TUNCHK_IFCNT(r->tunchk); |