Added support code for STK8096-PVR device. Manufactured by Geniatch. Signed-off-by: William Schorck <mudgebr@xxxxxxxxx>
+++ /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), }, },
+++ /usr/src/linux-3.9.1/drivers/media/dvb-core/dvb-usb-ids.h 2013-05-08 00:58:03.000000000 -0300 --- /home/neutrin0/src/kernel/dibcom/dvb-usb-ids.h 2013-05-10 01:17:07.892634029 -0300 @@ -5,6 +5,7 @@ * * a header file containing define's for the USB device supported by the * various drivers. + * */ #ifndef _DVB_USB_IDS_H_ #define _DVB_USB_IDS_H_ @@ -118,6 +119,7 @@ #define USB_PID_DIBCOM_STK807XP 0x1f90 #define USB_PID_DIBCOM_STK807XPVR 0x1f98 #define USB_PID_DIBCOM_STK8096GP 0x1fa0 + #define USB_PID_DIBCOM_NIM8096MD 0x1fa8 #define USB_PID_DIBCOM_TFE8096P 0x1f9C #define USB_PID_DIBCOM_ANCHOR_2135_COLD 0x2131 @@ -368,4 +370,5 @@ #define USB_PID_TECHNISAT_USB2_HDCI_V2 0x0002 #define USB_PID_TECHNISAT_AIRSTAR_TELESTICK_2 0x0004 #define USB_PID_TECHNISAT_USB2_DVB_S2 0x0500 +#define USB_PID_DIBCOM_STK8096PVR 0x1faa #endif