All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Schorck <mudgebr@gmail.com>
To: linux-media@vger.kernel.org
Subject: STK8096-PVR Dibcom support code added
Date: Fri, 10 May 2013 01:47:20 -0300	[thread overview]
Message-ID: <518C7BD8.2060100@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 122 bytes --]

Added support code for STK8096-PVR device.
Manufactured by Geniatch.


Signed-off-by: William Schorck <mudgebr@gmail.com>

[-- Attachment #2: dib0700_devices.c.patch --]
[-- Type: text/x-patch, Size: 2114 bytes --]

+++ /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),
 			},
 		},
 

[-- Attachment #3: dvb-usb-ids.h.patch --]
[-- Type: text/x-patch, Size: 933 bytes --]

+++ /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

                 reply	other threads:[~2013-05-10  4:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518C7BD8.2060100@gmail.com \
    --to=mudgebr@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.