+++ /usr/src/linux-3.9.1/drivers/media/usb/dvb-usb/dib0700_devices.c 2013-05-08 00:58:03.000000000 -0300 --- /home/neutrin0/src/kernel/dibcom/dib0700_devices.c 2013-05-10 01:18:02.699865121 -0300 @@ -5,6 +5,7 @@ * Software Foundation, version 2. * * Copyright (C) 2005-9 DiBcom, SA et al + * */ #include "dib0700.h" @@ -3570,6 +3571,7 @@ struct usb_device_id dib0700_usb_id_tabl { USB_DEVICE(USB_VID_DIBCOM, USB_PID_DIBCOM_TFE7790E) }, /* 80 */{ USB_DEVICE(USB_VID_DIBCOM, USB_PID_DIBCOM_TFE8096P) }, { USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_DTT_2) }, + { USB_DEVICE(USB_VID_DIBCOM, USB_PID_DIBCOM_STK8096PVR) }, /* [82] usb_id_table */ { 0 } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, dib0700_usb_id_table); @@ -4420,13 +4422,19 @@ struct dvb_usb_device_properties dib0700 }, }, - .num_device_descs = 1, + .num_device_descs = 2, .devices = { { "DiBcom STK8096GP reference design", { &dib0700_usb_id_table[67], NULL }, { NULL }, }, }, + .devices = { + { "DiBcom STK8096-PVR reference design", + { &dib0700_usb_id_table[82], NULL }, + { NULL }, + }, + }, .rc.core = { .rc_interval = DEFAULT_RC_INTERVAL, @@ -4439,7 +4447,7 @@ struct dvb_usb_device_properties dib0700 .change_protocol = dib0700_change_protocol, }, }, { DIB0700_DEFAULT_DEVICE_PROPERTIES, - .num_adapters = 1, + .num_adapters = 2, .adapter = { { .num_frontends = 1, @@ -4456,6 +4464,22 @@ struct dvb_usb_device_properties dib0700 }}, .size_of_priv = sizeof(struct dib0700_adapter_state), + }, + { + .num_frontends = 2, /* Dual band */ + .fe = {{ + .caps = DVB_USB_ADAP_HAS_PID_FILTER | + DVB_USB_ADAP_PID_FILTER_CAN_BE_TURNED_OFF, + .pid_filter_count = 32, + .pid_filter = dib90x0_pid_filter, + .pid_filter_ctrl = dib90x0_pid_filter_ctrl, + .frontend_attach = stk9090m_frontend_attach, + .tuner_attach = dib9090_tuner_attach, + + DIB0700_DEFAULT_STREAMING_CONFIG(0x03), + }}, + .size_of_priv = + sizeof(struct dib0700_adapter_state), }, },