El Martes, 29 de Agosto de 2006 22:40, Andrew Lyon escribió:
> Hi,
>
> Is the remote control supported with Avermedia 777 / SAA7134 ? The
> device is working really well using latest v4l mercurial sources, this
> is the dmesg output from modprobe saa7134_dvb:
>
> saa7130/34: v4l2 driver version 0.2.14 loaded
> ACPI: PCI Interrupt 0000:05:02.0[A] -> GSI 18 (level, low) -> IRQ 18
> saa7134[0]: found at 0000:05:02.0, rev: 1, irq: 18, latency: 32, mmio:
> 0xf9101000
> saa7134[0]: subsystem: 1461:2c05, board: AverTV DVB-T 777
> [card=85,autodetected] saa7134[0]: board init: gpio is 2f800
> saa7134[0]: i2c eeprom 00: 61 14 05 2c 00 00 00 00 00 00 00 00 00 00 00 00
> saa7134[0]: i2c eeprom 10: 00 ff 82 0e ff 20 ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: i2c eeprom 20: 01 40 01 02 02 03 03 01 08 ff 00 a8 ff ff ff ff
> saa7134[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: i2c eeprom 40: ff 32 00 c0 86 1e ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
> saa7134[0]: registered device video0 [v4l2]
> saa7134[0]: registered device 
vbi0https://helixcommunity.org/account/login.php
> saa7134[0]: avertv 777 dvb setup
> DVB: registering new adapter (saa7134[0]).
> DVB: registering frontend 0 (Zarlink MT352 DVB-T)...
>
> Any suggestions? Ive tried modprobe saa7134 ir_debug=1 but it didnt
> appear  to have much effect.
>
> I have another card (Technotrend S1500+CI) for which I load budget_ci
> module, with that card I can see the ir device being created:
>
> input: Budget-CI dvb ir receiver saa7146 (0) as /class/input/input4
>
> But the remote for this card has few buttons and I would like to try
> the one that came with the Avermedia 777.
>
> Thanks
> Andy

I post a patch to the list some time ago, but is not include in v4l.
I atach the pacth. 

Jose Alberto

diff -r 38162695285b linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c	Tue May 09 10:15:42 2006 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c	Thu May 11 12:33:43 2006 +0200
@@ -3554,6 +3554,7 @@ int saa7134_board_init1(struct saa7134_d
 	case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
 	case SAA7134_BOARD_AVERMEDIA_307:
 	case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
+	case SAA7134_BOARD_AVERMEDIA_777:
 /*      case SAA7134_BOARD_SABRENT_SBTTVFM:  */ /* not finished yet */
 	case SAA7134_BOARD_VIDEOMATE_TV_PVR:
 	case SAA7134_BOARD_VIDEOMATE_GOLD_PLUS:
diff -r 38162695285b linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c	Tue May 09 10:15:42 2006 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c	Thu May 11 12:33:43 2006 +0200
@@ -56,9 +56,9 @@ static int build_key(struct saa7134_dev 
 
 	gpio = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2);
 	if (ir->polling) {
-		if (ir->last_gpio == gpio)
+		if (ir->last_gpio == (gpio & (ir->mask_keycode | ir->mask_keydown | ir->mask_keyup)))
 			return 0;
-		ir->last_gpio = gpio;
+		ir->last_gpio = gpio & (ir->mask_keycode | ir->mask_keydown | ir->mask_keyup);
 	}
 
 	data = ir_extract_bits(gpio, ir->mask_keycode);
@@ -189,6 +189,14 @@ int saa7134_input_init1(struct saa7134_d
 		/* Set GPIO pin2 to high to enable the IR controller */
 		saa_setb(SAA7134_GPIO_GPMODE0, 0x4);
 		saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4);
+		break;
+	case SAA7134_BOARD_AVERMEDIA_777:
+		ir_codes     = ir_codes_avermedia;
+		mask_keycode = 0x02F200;
+		mask_keydown = 0x000400;
+		polling      = 50; // ms
+		saa_setl(SAA7134_GPIO_GPMODE0 >> 2, 0x100);
+		saa_setl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x100);
 		break;
 	case SAA7134_BOARD_KWORLD_TERMINATOR:
 		ir_codes     = ir_codes_pixelview;
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Reply via email to