From: Antti Palosaari <crope@iki.fi>
Date: Thu, 9 Sep 2010 20:38:28 +0000 (-0300)
Subject: V4L/DVB: af9015: map TerraTec Cinergy T Stick Dual RC remote to device ID
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2ec01b41e3e06bd22d8f6c7f330605b554e9b121;p=openwrt%2Fstaging%2Fblogic.git

V4L/DVB: af9015: map TerraTec Cinergy T Stick Dual RC remote to device ID

Detect TerraTec Cinergy T Stick Dual RC	remote config using device
USB ID instead of device EEPROM hash. It was found that there is
devices	with slightly different EEPROM content...

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
---

diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c
index cb4b62a0fb44..bf6ff2bb95c5 100644
--- a/drivers/media/dvb/dvb-usb/af9015.c
+++ b/drivers/media/dvb/dvb-usb/af9015.c
@@ -788,6 +788,9 @@ static const struct af9015_setup af9015_setup_usbids[] = {
 	{ USB_VID_MSI_2,
 		ir_codes_af9015_table_msi_digivox_iii, ARRAY_SIZE(ir_codes_af9015_table_msi_digivox_iii),
 		af9015_ir_table_msi_digivox_iii, ARRAY_SIZE(af9015_ir_table_msi_digivox_iii) },
+	{ USB_VID_TERRATEC,
+		ir_codes_terratec, ARRAY_SIZE(ir_codes_terratec),
+		af9015_ir_terratec, ARRAY_SIZE(af9015_ir_terratec) },
 	{ }
 };
 
@@ -801,9 +804,6 @@ static const struct af9015_setup af9015_setup_hashes[] = {
 	{ 0x9b7dc64e,
 		ir_codes_af9015_table_mygictv, ARRAY_SIZE(ir_codes_af9015_table_mygictv),
 		af9015_ir_table_mygictv, ARRAY_SIZE(af9015_ir_table_mygictv) },
-	{ 0x14e89ffe,
-		ir_codes_terratec, ARRAY_SIZE(ir_codes_terratec),
-		af9015_ir_terratec, ARRAY_SIZE(af9015_ir_terratec) },
 	{ }
 };