v4 Add support to Avermedia Twinstar double tuner in af9035
Subsystems (3)
PATCH 1/1 v4 Add support to Avermedia Twinstar double tuner in af9035
This patch add support to the Avermedia Twinstar double tuner in the af9035 driver. Version 4 of the patch. I split the patch as suggested by Antti. I send the changes to mxl5007 driver in another patch.
Signed-off-by Jose Alberto Reguero <[email protected]>
Jose Alberto
drivers/media/dvb-frontends/af9033.c +12 -0
@@ -326,6 +326,18 @@ static int af9033_init(struct dvb_fronte goto err; } +if (state->cfg.ts_mode ==AF9033_TS_MODE_SERIAL ) { + ret =af9033_wr_reg_mask (state,0x00d91c ,0x01 ,0x01 ); +if (ret <0 ) + goto err; + ret =af9033_wr_reg_mask (state,0x00d917 ,0x00 ,0x01 ); +if (ret <0 ) + goto err; + ret =af9033_wr_reg_mask (state,0x00d916 ,0x00 ,0x01 ); +if (ret <0 ) + goto err; + } + state->bandwidth_hz =0 ;/* force to program all parameters */ return 0 ;
drivers/media/usb/dvb-usb-v2/af9035.c +107 -48
239 lines not on this page · raw message
drivers/media/usb/dvb-usb-v2/af9035.h +3 -0
@@ -54,6 +54,8 @@ struct state {bool dual_mode;struct af9033_config af9033_config[2 ]; + +u8 tuner_address[2 ]; };u32 clock_lut[] = {
@@ -87,6 +89,7 @@ u32 clock_lut_it9135[] = {/* EEPROM locations */ #define EEPROM_IR_MODE 0x430d#define EEPROM_DUAL_MODE 0x4326 +#define EEPROM_2WIREADDR 0x4327#define EEPROM_IR_TYPE 0x4329#define EEPROM_1_IFFREQ_L 0x432d#define EEPROM_1_IFFREQ_H 0x432e