From d1d2c497c261f42502519d510765671a75f2326e Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 19 Jun 2005 20:05:12 +0000 Subject: - Changing radio mode stereo/mono for tea5767 working. - is not clear at V4L1 API if VIDIOCSTUNER can change to mono. support for changing implemented anyway to allow radio st/mono switch. - Issue to solve: tea indicates stereo even when switched to mono. signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/tea5767.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'linux/drivers/media/video/tea5767.c') diff --git a/linux/drivers/media/video/tea5767.c b/linux/drivers/media/video/tea5767.c index 7eee795c7..c3154c740 100644 --- a/linux/drivers/media/video/tea5767.c +++ b/linux/drivers/media/video/tea5767.c @@ -2,7 +2,7 @@ * For Philips TEA5767 FM Chip used on some TV Cards like Prolink Pixelview * I2C address is allways 0xC0. * - * $Id: tea5767.c,v 1.8 2005/06/19 15:59:25 mchehab Exp $ + * $Id: tea5767.c,v 1.9 2005/06/19 20:05:12 mchehab Exp $ * * Copyright (c) 2005 Mauro Carvalho Chehab (mchehab@brturbo.com.br) * This code is placed under the terms of the GNU General Public License @@ -148,9 +148,12 @@ static void set_radio_freq(struct i2c_client *c, unsigned int frq) buffer[4]=0; - if (!t->audmode == V4L2_TUNER_MODE_MONO) - buffer[3] |= TEA5767_MONO; - + if (t->audmode == V4L2_TUNER_MODE_MONO) { + tuner_dbg("TEA5767 set to mono\n"); + buffer[2] |= TEA5767_MONO; + } else + tuner_dbg("TEA5767 set to stereo\n"); + switch (t->type) { case TEA5767_HIGH_LO_13MHz: tuner_dbg("TEA5767 radio HIGH LO inject xtal @ 13 MHz\n"); -- cgit v1.2.3