patch for Asus My Cinema PS3-100 (1043:48cd)
Hi all,
This is the patch against kernel 2.6.32 I used to get my TV card Asus My Cinema PS3-100 (1043:48cd) to work.
More information on this card can be found on this page :
http://www.0xf8.org/2009/09/asus-mycinema-ps3-100-3-in-1-tv-card/
This card seems to be a clone of the Asus Tiger 3in1, numbered 147 in the SAA7134 module, so I gave it the temporary number of 1470.
DVB-T and remote have been tested and work fine. DVB-S, FM and Composite input haven't been tested.
Hope that will help some of you.
Rémi
include/media/ir-common.h renamed from include/media/ir-common.h.orig +1 -0
@@ -155,6 +155,7 @@ extern struct ir_scancode_table ir_codesextern struct ir_scancode_table ir_codes_proteus_2309_table;extern struct ir_scancode_table ir_codes_budget_ci_old_table;extern struct ir_scancode_table ir_codes_asus_pc39_table; +extern struct ir_scancode_table ir_codes_asus_ps3_100_table;extern struct ir_scancode_table ir_codes_encore_enltv_table;extern struct ir_scancode_table ir_codes_encore_enltv2_table;extern struct ir_scancode_table ir_codes_tt_1500_table;
drivers/media/common/ir-keymaps.c renamed from drivers/media/common/ir-keymaps.c.orig +64 -0
70 lines not on this page · raw message
drivers/media/video/saa7134/saa7134-input.c renamed from drivers/media/video/saa7134/saa7134-input.c.orig +5 -0
@@ -575,6 +575,11 @@ int saa7134_input_init1(struct saa7134_d mask_keydown =0x0040000 ; rc5_gpio =1 ;break ; +case SAA7134_BOARD_ASUSTeK_PS3_100: + ir_codes = &ir_codes_asus_ps3_100_table; + mask_keydown =0x0040000 ; + rc5_gpio =1 ; +break ;case SAA7134_BOARD_ENCORE_ENLTV :case SAA7134_BOARD_ENCORE_ENLTV_FM : ir_codes = &ir_codes_encore_enltv_table;
drivers/media/video/saa7134/saa7134-dvb.c renamed from drivers/media/video/saa7134/saa7134-dvb.c.orig +39 -0
@@ -824,6 +824,20 @@ static struct tda1004x_config asus_tiger .request_firmware = philips_tda1004x_request_firmware }; +static struct tda1004x_config asus_ps3_100_config = { + .demod_address =0x0b , + .invert =1 , + .invert_oclk =0 , + .xtal_freq =TDA10046_XTAL_16M , + .agc_config =TDA10046_AGC_TDA827X , + .gpio_config =TDA10046_GP11_I , + .if_freq =TDA10046_FREQ_045 , + .i2c_gate =0x4b , + .tuner_address =0x61 , + .antenna_switch =1 , + .request_firmware = philips_tda1004x_request_firmware +}; +/* ------------------------------------------------------------------ * special case: this card uses saa713x GPIO22 for the mode switch */
@@ -1465,6 +1479,31 @@ static int dvb_init(struct saa7134_dev * " found!\n", __func__); goto dettach_frontend; } + } + } +break ; +case SAA7134_BOARD_ASUSTeK_PS3_100: +if (!use_frontend) {/* terrestrial */ +if (configure_tda827x_fe (dev, &asus_ps3_100_config, + &tda827x_cfg_2) <0 ) + goto dettach_frontend; + }else {/* satellite */ + fe0->dvb.frontend =dvb_attach (tda10086_attach, + &flydvbs, &dev->i2c_adap); +if (fe0->dvb.frontend) { +if (dvb_attach (tda826x_attach, + fe0->dvb.frontend,0x60 , + &dev->i2c_adap,0 ) ==NULL ) { +wprintk ("%s: Asus My Cinema PS3-100, no " +"tda826x found!\n" , __func__); + goto dettach_frontend; + } +if (dvb_attach (lnbp21_attach, fe0->dvb.frontend, + &dev->i2c_adap,0 ,0 ) ==NULL ) { +wprintk ("%s: Asus My Cinema PS3-100, no lnbp21" +" found!\n" , __func__); + goto dettach_frontend; + } } }break ;
drivers/media/video/saa7134/saa7134-cards.c renamed from drivers/media/video/saa7134/saa7134-cards.c.orig +45 -0
69 lines not on this page · raw message
drivers/media/video/saa7134/saa7134.h renamed from drivers/media/video/saa7134/saa7134.h.orig +1 -0
@@ -271,6 +271,7 @@ struct saa7134_format {#define SAA7134_BOARD_AVERMEDIA_M103 145#define SAA7134_BOARD_ASUSTeK_P7131_ANALOG 146#define SAA7134_BOARD_ASUSTeK_TIGER_3IN1 147 +#define SAA7134_BOARD_ASUSTeK_PS3_100 1470#define SAA7134_BOARD_ENCORE_ENLTV_FM53 148#define SAA7134_BOARD_AVERMEDIA_M135A 149#define SAA7134_BOARD_REAL_ANGEL_220 150