aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-12-04 08:31:38 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 09:05:52 -0200
commit483deb0f2b38060c1f2de216c09f05b1869b0d52 (patch)
tree1c7158b274e826dbcfa57169effff84a0b35c2ae /drivers/media
parentV4L/DVB (4934): Usbvision radio requires GainNormal at e register (diff)
downloadlinux-dev-483deb0f2b38060c1f2de216c09f05b1869b0d52.tar.xz
linux-dev-483deb0f2b38060c1f2de216c09f05b1869b0d52.zip
V4L/DVB (4935): Added the capability of selecting fm gain by tuner
Some tuners require using cGainNormal instead of cGainLow for high sensibility on FM reception. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/tuner-simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/tuner-simple.c b/drivers/media/video/tuner-simple.c
index fcf8693e4d50..1b9b0742f753 100644
--- a/drivers/media/video/tuner-simple.c
+++ b/drivers/media/video/tuner-simple.c
@@ -467,6 +467,8 @@ static void default_set_radio_freq(struct i2c_client *c, unsigned int freq)
config |= TDA9887_INTERCARRIER;
/* if (params->port1_set_for_fm_mono)
config &= ~TDA9887_PORT1_ACTIVE;*/
+ if (params->fm_gain_normal)
+ config |= TDA9887_GAIN_NORMAL;
i2c_clients_command(c->adapter, TDA9887_SET_CONFIG, &config);
}
if (4 != (rc = i2c_master_send(c,buffer,4)))