summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-09-17 17:54:27 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-27 15:14:16 -0300
commit3d8a60d5de1aefd40c8e874a9db342bc974c6031 (patch)
tree5c55dbdacd8a7f0b03d5a57ac565ba8dd02b5939 /drivers/media/usb
parent7e688de0006dd02583332c14e07ab2560a92e37d (diff)
downloadblackbird-op-linux-3d8a60d5de1aefd40c8e874a9db342bc974c6031.tar.gz
blackbird-op-linux-3d8a60d5de1aefd40c8e874a9db342bc974c6031.zip
[media] rtl28xxu: use proper config for e4000 tuner
Do not abuse anymore fc0012 tuner config. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb')
-rw-r--r--drivers/media/usb/dvb-usb-v2/rtl28xxu.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
index f17e73baccff..70c2df1269d4 100644
--- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
+++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c
@@ -583,6 +583,12 @@ static struct rtl2832_config rtl28xxu_rtl2832_tua9001_config = {
.tuner = TUNER_RTL2832_TUA9001,
};
+static struct rtl2832_config rtl28xxu_rtl2832_e4000_config = {
+ .i2c_addr = 0x10, /* 0x20 */
+ .xtal = 28800000,
+ .tuner = TUNER_RTL2832_E4000,
+};
+
static int rtl2832u_fc0012_tuner_callback(struct dvb_usb_device *d,
int cmd, int arg)
{
@@ -720,8 +726,7 @@ static int rtl2832u_frontend_attach(struct dvb_usb_adapter *adap)
rtl2832_config = &rtl28xxu_rtl2832_tua9001_config;
break;
case TUNER_RTL2832_E4000:
- /* FIXME: do not abuse fc0012 settings */
- rtl2832_config = &rtl28xxu_rtl2832_fc0012_config;
+ rtl2832_config = &rtl28xxu_rtl2832_e4000_config;
break;
default:
dev_err(&d->udev->dev, "%s: unknown tuner=%s\n",
OpenPOWER on IntegriCloud