[media] rtl2832: support for tua9001 tuner
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/media/dvb-frontends/rtl2832.c b/drivers/media/dvb-frontends/rtl2832.c
index d670fe7..8f8a5b0 100644
--- a/drivers/media/dvb-frontends/rtl2832.c
+++ b/drivers/media/dvb-frontends/rtl2832.c
@@ -462,15 +462,17 @@
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;
}