Skip to contentSkip to conversation

: Powercolor Real Angel 330 (remote control support and fixes for gpio references)

PATCH New Dâniel Fraga 1 participant 1 message Apr 4, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Powercolor Real Angel 330 (remote control support and fixes for gpio references)

The attached patch fixes gpio references for
Powercolor Real Angel 330 and adds complete remote control support.

Thanks to Markus Rechberger, Mauro Chehab and Daniel
Gimpelevich.

Signature · 2 lines
Linux 2.6.24: Arr Matey! A Hairy Bilge Rat!
http://u-br.net
linux/drivers/media/video/cx88/cx88-cards.c +5 -7
@@ -1542,28 +1542,26 @@
 		.input          = { {
 			.type   = CX88_VMUX_TELEVISION,
 			.vmux   = 0,
-			.gpio0 = 0x0400, /* pin 2:mute = 0 (off?) */
+			.gpio0 = 0x00ff,
 			.gpio1 = 0xf35d,
-			.gpio2 = 0x0800, /* pin 19:audio = 0 (tv) */
+			.gpio3 = 0x0000,
 		}, {
 			.type   = CX88_VMUX_COMPOSITE1,
 			.vmux   = 1,
-			.gpio0 = 0x0400, /* probably?  or 0x0404 to turn mute on */
-			.gpio1 = 0x0000,
-			.gpio2 = 0x0808, /* pin 19:audio = 1 (line) */
+			.gpio0 = 0x00ff,
+			.gpio1 = 0xf37d,
+			.gpio3 = 0x0000,
 		}, {
 			.type   = CX88_VMUX_SVIDEO,
 			.vmux   = 2,
 			.gpio0  = 0x000ff,
 			.gpio1  = 0x0f37d,
-			.gpio2  = 0x00019,
 			.gpio3  = 0x00000,
 		} },
 		.radio = {
 			.type   = CX88_RADIO,
 			.gpio0  = 0x000ff,
 			.gpio1  = 0x0f35d,
-			.gpio2  = 0x00019,
 			.gpio3  = 0x00000,
 		},
 	},
linux/drivers/media/video/cx88/cx88-input.c +6 -0
@@ -330,6 +330,12 @@
 		ir_type = IR_TYPE_RC5;
 		ir->sampling = 1;
 		break;
+	case CX88_BOARD_POWERCOLOR_REAL_ANGEL:
+		ir_codes = ir_codes_powercolor_real_angel;
+		ir->gpio_addr = MO_GP2_IO;
+		ir->mask_keycode = 0x7e;
+		ir->polling = 100; /* ms */
+		break;
 	}
 
 	if (NULL == ir_codes) {
linux/drivers/media/common/ir-keymaps.c +43 -0

46 lines not on this page · raw message

linux/include/media/ir-common.h +1 -0
@@ -144,6 +144,7 @@
 extern IR_KEYTAB_TYPE ir_codes_behold[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_pinnacle_pctv_hd[IR_KEYTAB_SIZE];
 extern IR_KEYTAB_TYPE ir_codes_genius_tvgo_a11mce[IR_KEYTAB_SIZE];
+extern IR_KEYTAB_TYPE ir_codes_powercolor_real_angel[IR_KEYTAB_SIZE];
 
 #endif
 

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list