diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-04 06:31:38 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 06:05:52 -0500 |
commit | 483deb0f2b38060c1f2de216c09f05b1869b0d52 (patch) | |
tree | 1c7158b274e826dbcfa57169effff84a0b35c2ae | |
parent | cefccc8011c58b559498396f0ccefa0a0ffa3f53 (diff) |
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>
-rw-r--r-- | drivers/media/video/tuner-simple.c | 2 | ||||
-rw-r--r-- | include/media/tuner-types.h | 4 |
2 files changed, 6 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) | |||
467 | config |= TDA9887_INTERCARRIER; | 467 | config |= TDA9887_INTERCARRIER; |
468 | /* if (params->port1_set_for_fm_mono) | 468 | /* if (params->port1_set_for_fm_mono) |
469 | config &= ~TDA9887_PORT1_ACTIVE;*/ | 469 | config &= ~TDA9887_PORT1_ACTIVE;*/ |
470 | if (params->fm_gain_normal) | ||
471 | config |= TDA9887_GAIN_NORMAL; | ||
470 | i2c_clients_command(c->adapter, TDA9887_SET_CONFIG, &config); | 472 | i2c_clients_command(c->adapter, TDA9887_SET_CONFIG, &config); |
471 | } | 473 | } |
472 | if (4 != (rc = i2c_master_send(c,buffer,4))) | 474 | if (4 != (rc = i2c_master_send(c,buffer,4))) |
diff --git a/include/media/tuner-types.h b/include/media/tuner-types.h index 37dad07a8439..e5ad3fcfe984 100644 --- a/include/media/tuner-types.h +++ b/include/media/tuner-types.h | |||
@@ -50,6 +50,10 @@ struct tuner_params { | |||
50 | sensitivity. If this setting is 1, then set PORT2 to 1 to | 50 | sensitivity. If this setting is 1, then set PORT2 to 1 to |
51 | get proper FM reception. */ | 51 | get proper FM reception. */ |
52 | unsigned int port2_fm_high_sensitivity:1; | 52 | unsigned int port2_fm_high_sensitivity:1; |
53 | /* Some Philips tuners use tda9887 cGainNormal to select the FM radio | ||
54 | sensitivity. If this setting is 1, e register will use cGainNormal | ||
55 | instead of cGainLow. */ | ||
56 | unsigned int fm_gain_normal:1; | ||
53 | /* Most tuners with a tda9887 use QSS mode. Some (cheaper) tuners | 57 | /* Most tuners with a tda9887 use QSS mode. Some (cheaper) tuners |
54 | use Intercarrier mode. If this setting is 1, then the tuner | 58 | use Intercarrier mode. If this setting is 1, then the tuner |
55 | needs to be set to intercarrier mode. */ | 59 | needs to be set to intercarrier mode. */ |