[linux-dvb] ASUS My-Cinema remote patch

Bozhan Boiadzhiev bozhan at abv.bg
Sun Jun 15 12:03:17 CEST 2008



ok i'll test patch later.
thanks
:)

 >-------- Оригинално писмо --------
 >От:  hermann pitton 
 >Относно: Re: [linux-dvb] ASUS My-Cinema remote patch
 >До: Bozhan Boiadzhiev 
 >Изпратено на: Неделя, 2008, Юни 15 04:53:14 EEST

 >Hi Bozhan,
 >
 >Am Samstag, den 14.06.2008, 23:44 +0300 schrieb Bozhan Boiadzhiev: 
 >> ASUS My-Cinema package include remote 
 >> here i found patch for 2.6.22  https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.22/+bug/141622
 >> Please include it!
 >> All ASUS My-Cinema comes with remote control.
 >> Thanks.
 >> 
 >
 >the video4linux-list is the better place for analog only cards.
 >
 >The problem is known, but we had no testers.
 >
 >The old Asus TVFM35 is not identical to your card.
 >
 >It seems to have different s-video and composite inputs and also came
 >with an USB remote. Adding a new, on the old card not present remote now
 >there, seems to be confusing for the users.
 >
 >The new tuner type tda8275a is auto detected, that makes the old entry
 >working for you. It has the previous tda8275 not "a".
 >
 >The problem is the unchanged PCI subsystem on your card, which causes
 >that it is autodetected as card=53.
 >
 >The following untested patch is a first try to detect your card and add
 >a separate entry for it. We discussed this once.
 >
 >Cheers,
 >Hermann
 >
 >diff -r 2a89445f3b24 linux/drivers/media/video/saa7134/saa7134-cards.c
 >--- a/linux/drivers/media/video/saa7134/saa7134-cards.c Tue Jun 10 11:22:00 2008 -0300
 >+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c Sun Jun 15 01:55:38 2008 +0200
 >@@ -4401,6 +4401,39 @@ struct saa7134_board saa7134_boards[] =
 >                },
 >                /* no DVB support for now */
 >                /* .mpeg           = SAA7134_MPEG_DVB, */
 >+       },
 >+       [SAA7134_BOARD_ASUSTeK_P7131_ANALOG] = {
 >+               .name           = "ASUSTeK P7131 Analog",
 >+               .audio_clock    = 0x00187de7,
 >+               .tuner_type     = TUNER_PHILIPS_TDA8290,
 >+               .radio_type     = UNSET,
 >+               .tuner_addr     = ADDR_UNSET,
 >+               .radio_addr     = ADDR_UNSET,
 >+               .gpiomask       = 1 i2c_adap, &msg, 1);
 >                break;
 >        }
 >+       case SAA7134_BOARD_ASUSTeK_TVFM7135:
 >+       /* The card is misdetected as card=53, but is different */
 >+               if(dev->autodetected && (dev->eedata[0x27] == 0x03)) {
 >+                       dev->board = SAA7134_BOARD_ASUSTeK_P7131_ANALOG;
 >+                       printk(KERN_INFO "%s: P7131 analog only using "
 >+                                                       "entry of %s\n",
 >+                       dev->name, saa7134_boards[dev->board].name);
 >+               }
 >+               break;
 >        case SAA7134_BOARD_HAUPPAUGE_HVR1110:
 >                hauppauge_eeprom(dev, dev->eedata+0x80);
 >                /* break intentionally omitted */
 >diff -r 2a89445f3b24 linux/drivers/media/video/saa7134/saa7134-input.c
 >--- a/linux/drivers/media/video/saa7134/saa7134-input.c Tue Jun 10 11:22:00 2008 -0300
 >+++ b/linux/drivers/media/video/saa7134/saa7134-input.c Sun Jun 15 01:55:38 2008 +0200
 >@@ -400,6 +400,7 @@ int saa7134_input_init1(struct saa7134_d
 >                break;
 >        case SAA7134_BOARD_ASUSTeK_P7131_DUAL:
 >        case SAA7134_BOARD_ASUSTeK_P7131_HYBRID_LNA:
 >+       case SAA7134_BOARD_ASUSTeK_P7131_ANALOG:
 >                ir_codes     = ir_codes_asus_pc39;
 >                mask_keydown = 0x0040000;
 >                rc5_gpio = 1;
 >diff -r 2a89445f3b24 linux/drivers/media/video/saa7134/saa7134.h
 >--- a/linux/drivers/media/video/saa7134/saa7134.h       Tue Jun 10 11:22:00 2008 -0300
 >+++ b/linux/drivers/media/video/saa7134/saa7134.h       Sun Jun 15 01:55:38 2008 +0200
 >@@ -273,6 +273,7 @@ struct saa7134_format {
 > #define SAA7134_BOARD_BEHOLD_H6      142
 > #define SAA7134_BOARD_BEHOLD_M63      143
 > #define SAA7134_BOARD_BEHOLD_M6_EXTRA    144
 >+#define SAA7134_BOARD_ASUSTeK_P7131_ANALOG 145
 >
 > #define SAA7134_MAXBOARDS 8
 > #define SAA7134_INPUT_MAX 8
 >
 >
 >



More information about the linux-dvb mailing list