diff options
author | Antti Palosaari <crope@iki.fi> | 2012-09-11 22:27:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-23 19:45:34 -0300 |
commit | 5db4187a037fb9e4b6908ef7bcef0f79395b398f (patch) | |
tree | 1ea51eb0b870b4cb9e811692d547367bded553d4 /drivers/media/dvb-frontends/rtl2832.c | |
parent | 5be65721a7f6cdf93e34b2b7497bda4c07c469ed (diff) | |
download | blackbird-op-linux-5db4187a037fb9e4b6908ef7bcef0f79395b398f.tar.gz blackbird-op-linux-5db4187a037fb9e4b6908ef7bcef0f79395b398f.zip |
[media] rtl2832: support for tua9001 tuner
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb-frontends/rtl2832.c')
-rw-r--r-- | drivers/media/dvb-frontends/rtl2832.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c index d670fe76860d..8f8a5b0c7f3f 100644 --- a/drivers/media/dvb-frontends/rtl2832.c +++ b/drivers/media/dvb-frontends/rtl2832.c @@ -462,15 +462,17 @@ static int rtl2832_init(struct dvb_frontend *fe) len = ARRAY_SIZE(rtl2832_tuner_init_fc0012); init = rtl2832_tuner_init_fc0012; break; + case RTL2832_TUNER_TUA9001: + len = ARRAY_SIZE(rtl2832_tuner_init_tua9001); + init = rtl2832_tuner_init_tua9001; + break; default: ret = -EINVAL; goto err; } for (i = 0; i < len; i++) { - ret = rtl2832_wr_demod_reg(priv, - rtl2832_tuner_init_fc0012[i].reg, - rtl2832_tuner_init_fc0012[i].value); + ret = rtl2832_wr_demod_reg(priv, init[i].reg, init[i].value); if (ret) goto err; } |