diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-06-19 20:05:12 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-06-19 20:05:12 +0000 |
commit | d1d2c497c261f42502519d510765671a75f2326e (patch) | |
tree | 8b92ae1a6d0ee294ec4bd15f7e3906ff4526137a /linux/drivers/media/video/tea5767.c | |
parent | 250cbe7a3a1f0dbd96944b365993b8a34179f665 (diff) | |
download | mediapointer-dvb-s2-d1d2c497c261f42502519d510765671a75f2326e.tar.gz mediapointer-dvb-s2-d1d2c497c261f42502519d510765671a75f2326e.tar.bz2 |
- 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 <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video/tea5767.c')
-rw-r--r-- | linux/drivers/media/video/tea5767.c | 11 |
1 files changed, 7 insertions, 4 deletions
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"); |