]> err.no Git - linux-2.6/commitdiff
V4L/DVB (7054): ansonic branded dvb-t usb stick support in the af9005 driver
authorLuca Olivetti <luca@ventoso.org>
Sun, 20 Jan 2008 20:56:43 +0000 (17:56 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:05:10 +0000 (19:05 -0200)
Marcos Melero (marcosmelero at gmail.com) reported he could make
his dvb-t usb stick work with the af9005 driver by changing the device
ids (10b9:6000).

The stick is branded "Ansonic" (one of the brands of a spanish chain of
supermarkets) with no other identification of the model.
Since neither Marcos nor me know the OEM for the stick, in the attached
patch I used Ansonic for the ids/description.

Signed-off-by: Luca Olivetti <luca@ventoso.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/dvb/dvb-usb/af9005.c
drivers/media/dvb/dvb-usb/dvb-usb-ids.h

index 7db6eee50e39f04978ad1272348156490b5534a8..e7f76f515b4f6bbe293832596daf20c78dc0d0b4 100644 (file)
@@ -1026,6 +1026,7 @@ static int af9005_usb_probe(struct usb_interface *intf,
 static struct usb_device_id af9005_usb_table[] = {
        {USB_DEVICE(USB_VID_AFATECH, USB_PID_AFATECH_AF9005)},
        {USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_CINERGY_T_USB_XE)},
+       {USB_DEVICE(USB_VID_ANSONIC, USB_PID_ANSONIC_DVBT_USB)},
        {0},
 };
 
@@ -1075,7 +1076,7 @@ static struct dvb_usb_device_properties af9005_properties = {
        .rc_key_map_size = 0,
        .rc_query = af9005_rc_query,
 
-       .num_device_descs = 2,
+       .num_device_descs = 3,
        .devices = {
                    {.name = "Afatech DVB-T USB1.1 stick",
                     .cold_ids = {&af9005_usb_table[0], NULL},
@@ -1085,6 +1086,10 @@ static struct dvb_usb_device_properties af9005_properties = {
                     .cold_ids = {&af9005_usb_table[1], NULL},
                     .warm_ids = {NULL},
                     },
+                   {.name = "Ansonic DVB-T USB1.1 stick",
+                    .cold_ids = {&af9005_usb_table[2], NULL},
+                    .warm_ids = {NULL},
+                    },
                    {NULL},
                    }
 };
index c94d993a6effcd1a747ea1fbabdea2eb0b350b81..aee5a6ef8217058073f8e4324fda110b2d1cf64e 100644 (file)
@@ -15,6 +15,7 @@
 #define USB_VID_ALCOR_MICRO                    0x058f
 #define USB_VID_ALINK                          0x05e3
 #define USB_VID_ANCHOR                         0x0547
+#define USB_VID_ANSONIC                                0x10b9
 #define USB_VID_ANUBIS_ELECTRONIC              0x10fd
 #define USB_VID_AVERMEDIA                      0x07ca
 #define USB_VID_COMPRO                         0x185b
@@ -53,6 +54,7 @@
 #define USB_PID_ADSTECH_USB2_WARM                      0xa334
 #define USB_PID_AFATECH_AF9005                         0x9020
 #define USB_VID_ALINK_DTU                              0xf170
+#define USB_PID_ANSONIC_DVBT_USB                       0x6000
 #define USB_PID_AVERMEDIA_DVBT_USB_COLD                        0x0001
 #define USB_PID_AVERMEDIA_DVBT_USB_WARM                        0x0002
 #define USB_PID_AVERMEDIA_DVBT_USB2_COLD               0xa800