Re: lirc_gpio not in FC8 kernel ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It seems that link did not provide a solution as its based around the old lirc_gpio driver (no longer supported in Fedora), however, after digging a bit deeper I found that the undetected IR remote control is the same as an already supported one, but you will need to apply the following patch


diff -uNrp a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c --- a/drivers/media/video/saa7134/saa7134-cards.c 2007-10-09 21:31:38.000000000 +0100 +++ b/drivers/media/video/saa7134/saa7134-cards.c 2007-12-08 05:38:17.000000000 +0000
@@ -4440,6 +4440,7 @@ int saa7134_board_init1(struct saa7134_d
              break;
      case SAA7134_BOARD_AVERMEDIA_M102:
              /* enable tuner */
+               dev->has_remote = SAA7134_REMOTE_GPIO;
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x8c040007, 0x8c040007); saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0c0007cd, 0x0c0007cd);
              break;
diff -uNrp a/drivers/media/video/saa7134/saa7134-input.c b/drivers/media/video/saa7134/saa7134-input.c --- a/drivers/media/video/saa7134/saa7134-input.c 2007-10-09 21:31:38.000000000 +0100 +++ b/drivers/media/video/saa7134/saa7134-input.c 2007-12-08 05:38:17.000000000 +0000
@@ -246,6 +246,7 @@ int saa7134_input_init1(struct saa7134_d
      case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
      case SAA7134_BOARD_AVERMEDIA_STUDIO_507:
      case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
+        case SAA7134_BOARD_AVERMEDIA_M102:
              ir_codes     = ir_codes_avermedia;
              mask_keycode = 0x0007C8;
              mask_keydown = 0x000010;

dmesg output:

saa7133[0]: found at 0000:0a:04.0, rev: 209, irq: 23, latency: 64, mmio: 0xb3006000 saa7133[0]: subsystem: 1461:f31e, board: Avermedia M102 [card=110,autodetected]
saa7133[0]: board init: gpio is 7f0

---> input: saa7134 IR (Avermedia M102) as /class/input/input8 <-----

saa7133[0]: i2c eeprom 00: 61 14 1e f3 ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 20: ff d1 fe ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
tuner 1-004b: chip found @ 0x96 (saa7133[0])
tuner 1-004b: setting tuner address to 61
tuner 1-004b: type set to tda8290+75
firewire_core: created new fw device fw0 (0 config rom retries, S400)
tuner 1-004b: setting tuner address to 61
tuner 1-004b: type set to tda8290+75

lspci -v:

0a:04.0 Multimedia controller: Philips Semiconductors SAA7133/SAA7135 Video Broadcast Decoder (rev d1)
      Subsystem: Avermedia Technologies Inc Unknown device f31e
      Flags: bus master, medium devsel, latency 64, IRQ 23
      Memory at b3006000 (32-bit, non-prefetchable) [size=2K]
      Capabilities: [40] Power Management version 2

uname -r:
2.6.23.8-63.local.fc8

I've submitted the above patch to the vidio4linux list so hopefully someone will pick it up and add it to the kernel soon.

Hope this is useful to someone :)

Albert.



Albert Graham wrote:
Ah, just found the reason it's not in the kernel and a possible solution.

for anyone else having this problem look at this page:

https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.22/+bug/125384


Albert.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux