summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-02-21 19:47:15 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-02-21 19:47:15 -0500
commitfc36114f0e0a850ab5d6caa079c98a3e4d95565b (patch)
tree3b281ccf13e8579ac47a1fb343f56eab9b61c506 /linux/drivers/media/dvb
parente878a13a775989c872d8783430cac8c66ca5d26b (diff)
downloadmediapointer-dvb-s2-fc36114f0e0a850ab5d6caa079c98a3e4d95565b.tar.gz
mediapointer-dvb-s2-fc36114f0e0a850ab5d6caa079c98a3e4d95565b.tar.bz2
digitv: open nxt6000 i2c_gate for TDED4 tuner handling
From: Michael Krufky <mkrufky@linuxtv.org> dvb-pll normally opens the i2c gate before attempting to communicate with the pll, but the code for this device is not using dvb-pll. This should be cleaned up in the future, but for now, just open the i2c gate at the appropriate place in order to fix this driver bug. Thanks-to: Alex Woods <linux-dvb@giblets.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/dvb-usb/digitv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/digitv.c b/linux/drivers/media/dvb/dvb-usb/digitv.c
index 15686a626..90830cffc 100644
--- a/linux/drivers/media/dvb/dvb-usb/digitv.c
+++ b/linux/drivers/media/dvb/dvb-usb/digitv.c
@@ -119,6 +119,8 @@ static int digitv_nxt6000_tuner_set_params(struct dvb_frontend *fe, struct dvb_f
struct dvb_usb_adapter *adap = fe->dvb->priv;
u8 b[5];
dvb_usb_tuner_calc_regs(fe,fep,b, 5);
+ if (fe->ops.i2c_gate_ctrl)
+ fe->ops.i2c_gate_ctrl(fe, 1);
return digitv_ctrl_msg(adap->dev, USB_WRITE_TUNER, 0, &b[1], 4, NULL, 0);
}