diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-01-10 12:11:22 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-17 20:01:23 -0500 |
commit | 9b6ba57bd45da30173f37d5099805d687440e5c0 (patch) | |
tree | 4ae353314f906133565900d03fe2052a35a77471 /drivers/media/dvb | |
parent | 68dc8bc5806a583b547c9543c4a864ec93b423dc (diff) |
[media] DVB: dib0700, move Nova-TD Stick to a separate set
To properly support the three LEDs which are on the stick, we need
a special handling in the ->frontend_attach function. Thus let's have
a separate ->frontend_attach instead of ifs in the common one.
The hadnling itself will be added in further patches.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dib0700_devices.c | 57 |
1 files changed, 52 insertions, 5 deletions
diff --git a/drivers/media/dvb/dvb-usb/dib0700_devices.c b/drivers/media/dvb/dvb-usb/dib0700_devices.c index 81ef4b46f790..3c6ee54d8fc3 100644 --- a/drivers/media/dvb/dvb-usb/dib0700_devices.c +++ b/drivers/media/dvb/dvb-usb/dib0700_devices.c | |||
@@ -3892,7 +3892,58 @@ struct dvb_usb_device_properties dib0700_devices[] = { | |||
3892 | } | 3892 | } |
3893 | }, | 3893 | }, |
3894 | 3894 | ||
3895 | .num_device_descs = 6, | 3895 | .num_device_descs = 1, |
3896 | .devices = { | ||
3897 | { "Hauppauge Nova-TD Stick (52009)", | ||
3898 | { &dib0700_usb_id_table[35], NULL }, | ||
3899 | { NULL }, | ||
3900 | }, | ||
3901 | }, | ||
3902 | |||
3903 | .rc.core = { | ||
3904 | .rc_interval = DEFAULT_RC_INTERVAL, | ||
3905 | .rc_codes = RC_MAP_DIB0700_RC5_TABLE, | ||
3906 | .module_name = "dib0700", | ||
3907 | .rc_query = dib0700_rc_query_old_firmware, | ||
3908 | .allowed_protos = RC_TYPE_RC5 | | ||
3909 | RC_TYPE_RC6 | | ||
3910 | RC_TYPE_NEC, | ||
3911 | .change_protocol = dib0700_change_protocol, | ||
3912 | }, | ||
3913 | }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, | ||
3914 | |||
3915 | .num_adapters = 2, | ||
3916 | .adapter = { | ||
3917 | { | ||
3918 | .num_frontends = 1, | ||
3919 | .fe = {{ | ||
3920 | .caps = DVB_USB_ADAP_HAS_PID_FILTER | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | ||
3921 | .pid_filter_count = 32, | ||
3922 | .pid_filter = stk70x0p_pid_filter, | ||
3923 | .pid_filter_ctrl = stk70x0p_pid_filter_ctrl, | ||
3924 | .frontend_attach = stk7070pd_frontend_attach0, | ||
3925 | .tuner_attach = dib7070p_tuner_attach, | ||
3926 | |||
3927 | DIB0700_DEFAULT_STREAMING_CONFIG(0x02), | ||
3928 | }}, | ||
3929 | .size_of_priv = sizeof(struct dib0700_adapter_state), | ||
3930 | }, { | ||
3931 | .num_frontends = 1, | ||
3932 | .fe = {{ | ||
3933 | .caps = DVB_USB_ADAP_HAS_PID_FILTER | DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, | ||
3934 | .pid_filter_count = 32, | ||
3935 | .pid_filter = stk70x0p_pid_filter, | ||
3936 | .pid_filter_ctrl = stk70x0p_pid_filter_ctrl, | ||
3937 | .frontend_attach = stk7070pd_frontend_attach1, | ||
3938 | .tuner_attach = dib7070p_tuner_attach, | ||
3939 | |||
3940 | DIB0700_DEFAULT_STREAMING_CONFIG(0x03), | ||
3941 | }}, | ||
3942 | .size_of_priv = sizeof(struct dib0700_adapter_state), | ||
3943 | } | ||
3944 | }, | ||
3945 | |||
3946 | .num_device_descs = 5, | ||
3896 | .devices = { | 3947 | .devices = { |
3897 | { "DiBcom STK7070PD reference design", | 3948 | { "DiBcom STK7070PD reference design", |
3898 | { &dib0700_usb_id_table[17], NULL }, | 3949 | { &dib0700_usb_id_table[17], NULL }, |
@@ -3902,10 +3953,6 @@ struct dvb_usb_device_properties dib0700_devices[] = { | |||
3902 | { &dib0700_usb_id_table[18], NULL }, | 3953 | { &dib0700_usb_id_table[18], NULL }, |
3903 | { NULL }, | 3954 | { NULL }, |
3904 | }, | 3955 | }, |
3905 | { "Hauppauge Nova-TD Stick (52009)", | ||
3906 | { &dib0700_usb_id_table[35], NULL }, | ||
3907 | { NULL }, | ||
3908 | }, | ||
3909 | { "Hauppauge Nova-TD-500 (84xxx)", | 3956 | { "Hauppauge Nova-TD-500 (84xxx)", |
3910 | { &dib0700_usb_id_table[36], NULL }, | 3957 | { &dib0700_usb_id_table[36], NULL }, |
3911 | { NULL }, | 3958 | { NULL }, |