From ae625623c832731a551768d5137323acb1e80259 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Sun, 28 Nov 2004 21:25:33 +0000 Subject: Hook in set_voltage --- linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c') diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index 299a8c76f..ea73889d6 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -492,7 +492,6 @@ static int ttusb_send_diseqc(struct dvb_frontend* fe, } #endif -#if 0 static int ttusb_update_lnb(struct ttusb *ttusb) { u8 b[] = { 0xaa, ++ttusb->c, 0x16, 5, /*power: */ 1, @@ -527,7 +526,6 @@ static int ttusb_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone) return ttusb_update_lnb(ttusb); } #endif -#endif #if 0 @@ -1355,13 +1353,17 @@ static void frontend_init(struct ttusb* ttusb) case 0x1003: // Hauppauge/TT Nova-USB-S budget (stv0299/ALPS BSRU6(tsa5059) // try the ALPS BSRU6 first ttusb->fe = stv0299_attach(&alps_bsru6_config, &ttusb->i2c_adap); - if (ttusb->fe != NULL) + if (ttusb->fe != NULL) { + ttusb->fe->ops->set_voltage = ttusb_set_voltage; break; + } // Grundig 29504-491 ttusb->fe = tda8083_attach(&ttusb_novas_grundig_29504_491_config, &ttusb->i2c_adap); - if (ttusb->fe != NULL) + if (ttusb->fe != NULL) { + ttusb->fe->ops->set_voltage = ttusb_set_voltage; break; + } break; -- cgit v1.2.3