summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-12-04 09:31:38 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-04 09:31:38 -0200
commit84bcc4129a123027b89ac4d15421c84e992913f7 (patch)
treef2920bb263e7376ee0e95d0da9bca6626672af55 /linux/drivers/media/video/tuner-simple.c
parentb32f817f3ce7515de06fa1513b37597860ef47a4 (diff)
downloadmediapointer-dvb-s2-84bcc4129a123027b89ac4d15421c84e992913f7.tar.gz
mediapointer-dvb-s2-84bcc4129a123027b89ac4d15421c84e992913f7.tar.bz2
Added the capability of selecting fm gain by tuner
From: Mauro Carvalho Chehab <mchehab@infradead.org> 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 'linux/drivers/media/video/tuner-simple.c')
-rw-r--r--linux/drivers/media/video/tuner-simple.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index ccb591e07..16469d905 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -503,6 +503,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)))