aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry MERLE <thierry.merle@free.fr>2006-12-04 06:31:42 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:05:53 -0500
commitd8159a3684007e0ded915cb7465c9534a2650c53 (patch)
tree89df14d28ae3e6d23bd29f1e52519d0e248acda9
parent483deb0f2b38060c1f2de216c09f05b1869b0d52 (diff)
V4L/DVB (4936): Make MT4049FM5 tuner to set FM Gain to Normal
- remove any specific TDA9887_SET_CONFIG of usbvision driver - add fm_gain_normal=1 to the MT4049FM5 tuner for radio functionality Signed-off-by: Thierry MERLE <thierry.merle@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/video/tuner-types.c1
-rw-r--r--drivers/media/video/usbvision/usbvision-core.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/tuner-types.c b/drivers/media/video/tuner-types.c
index 1256c64af4db..74c3e6f96f1a 100644
--- a/drivers/media/video/tuner-types.c
+++ b/drivers/media/video/tuner-types.c
@@ -651,6 +651,7 @@ static struct tuner_params tuner_microtune_4049_fm5_params[] = {
651 .has_tda9887 = 1, 651 .has_tda9887 = 1,
652 .port1_invert_for_secam_lc = 1, 652 .port1_invert_for_secam_lc = 1,
653 .default_pll_gating_18 = 1, 653 .default_pll_gating_18 = 1,
654 .fm_gain_normal=1,
654 }, 655 },
655}; 656};
656 657
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c
index b5aa3185402d..0eb3ddcd0f3e 100644
--- a/drivers/media/video/usbvision/usbvision-core.c
+++ b/drivers/media/video/usbvision/usbvision-core.c
@@ -2585,14 +2585,12 @@ static int attach_inform(struct i2c_client *client)
2585 case 0x4b: 2585 case 0x4b:
2586 { 2586 {
2587 struct tuner_setup tun_setup; 2587 struct tuner_setup tun_setup;
2588 unsigned int tda9887_conf = TDA9887_GAIN_NORMAL;
2589 2588
2590 tun_setup.mode_mask = T_ANALOG_TV | T_RADIO; 2589 tun_setup.mode_mask = T_ANALOG_TV | T_RADIO;
2591 tun_setup.type = TUNER_TDA9887; 2590 tun_setup.type = TUNER_TDA9887;
2592 tun_setup.addr = client->addr; 2591 tun_setup.addr = client->addr;
2593 2592
2594 call_i2c_clients(usbvision, TUNER_SET_TYPE_ADDR, &tun_setup); 2593 call_i2c_clients(usbvision, TUNER_SET_TYPE_ADDR, &tun_setup);
2595 call_i2c_clients(usbvision,TDA9887_SET_CONFIG, &tda9887_conf);
2596 2594
2597 break; 2595 break;
2598 } 2596 }