diff mbox

remote not working for Hauppauge HVR 1120

Message ID 138349.20974.qm@web28213.mail.ukl.yahoo.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Mario Latronico June 22, 2010, 2:10 p.m. UTC
None
diff mbox

Patch

diff -r eb3a7341a233 linux/drivers/media/video/saa7134/saa7134-cards.c
--- a/linux/drivers/media/video/saa7134/saa7134-cards.c    Wed May 26 11:58:10 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-cards.c    Tue Jun 22 16:01:41 2010 +0200
@@ -7171,6 +7171,7 @@ 
         saa7134_set_gpio(dev, 22, 0);
         msleep(10);
         saa7134_set_gpio(dev, 22, 1);
+        dev->has_remote = SAA7134_REMOTE_I2C;
         break;
     /* i2c remotes */
     case SAA7134_BOARD_PINNACLE_PCTV_110i:
diff -r eb3a7341a233 linux/drivers/media/video/saa7134/saa7134-input.c
--- a/linux/drivers/media/video/saa7134/saa7134-input.c    Wed May 26 11:58:10 2010 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-input.c    Tue Jun 22 16:01:41 2010 +0200
@@ -1081,6 +1081,19 @@ 
         info.addr = 0x71;
 #endif
         break;
+    case SAA7134_BOARD_HAUPPAUGE_HVR1120:
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 30)
+        snprintf(ir->c.name, sizeof(ir->c.name), "HVR 1120");
+        ir->get_key   = get_key_hvr1110;
+        ir->ir_codes  = RC_MAP_HAUPPAUGE_NEW;
+#else
+        dev->init_data.name = "HVR 1120";
+        dev->init_data.get_key = get_key_hvr1110;
+        dev->init_data.ir_codes = RC_MAP_HAUPPAUGE_NEW;
+        info.addr = 0x71;
+        break;
+#endif
+        
     case SAA7134_BOARD_BEHOLD_607FM_MK3:
     case SAA7134_BOARD_BEHOLD_607FM_MK5:
     case SAA7134_BOARD_BEHOLD_609FM_MK3: