aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Zary <linux@rainbow-software.org>2013-02-01 18:01:15 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-14 17:53:38 -0400
commit82456708389d6d9eb81a4479d54efa0bf7dd8bf3 (patch)
treea7bd10d39747a0f6d04cc6c97cb4571b91e054dd
parentc3b3e0c5fd5ccacecf454d60c8fdc5caa96ba862 (diff)
[media] saa7134: v4l2-compliance: don't report invalid audio modes for radio
Make saa7134 driver more V4L2 compliant: filter audio modes that came from tuner - keep only MONO/STEREO in radio mode Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/pci/saa7134/saa7134-video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/pci/saa7134/saa7134-video.c b/drivers/media/pci/saa7134/saa7134-video.c
index 88e84c31c7d7..0f2d3bd4896a 100644
--- a/drivers/media/pci/saa7134/saa7134-video.c
+++ b/drivers/media/pci/saa7134/saa7134-video.c
@@ -2349,6 +2349,7 @@ static int radio_g_tuner(struct file *file, void *priv,
2349 t->type = V4L2_TUNER_RADIO; 2349 t->type = V4L2_TUNER_RADIO;
2350 2350
2351 saa_call_all(dev, tuner, g_tuner, t); 2351 saa_call_all(dev, tuner, g_tuner, t);
2352 t->audmode &= V4L2_TUNER_MODE_MONO | V4L2_TUNER_MODE_STEREO;
2352 if (dev->input->amux == TV) { 2353 if (dev->input->amux == TV) {
2353 t->signal = 0xf800 - ((saa_readb(0x581) & 0x1f) << 11); 2354 t->signal = 0xf800 - ((saa_readb(0x581) & 0x1f) << 11);
2354 t->rxsubchans = (saa_readb(0x529) & 0x08) ? 2355 t->rxsubchans = (saa_readb(0x529) & 0x08) ?