From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: linux-media@vger.kernel.org, Eduard Bloch <blade@debian.org>,
Patrick Boettcher <patrick.boettcher@dibcom.fr>,
"Igor M. Liplianin" <liplianin@me.by>
Subject: Re: Add support for new Terratec DVB USB IDs
Date: Fri, 06 Jan 2012 11:12:13 -0200 [thread overview]
Message-ID: <4F06F32D.2010002@redhat.com> (raw)
In-Reply-To: <20111222234446.GB10497@elie.Belkin>
On 22-12-2011 21:44, Jonathan Nieder wrote:
> Hi,
>
> Eduard Bloch wrote[1]:
>
>> current revision of the Cinergy S2 USB box from Terratec seems to use
>> another USB-IDs. The manufacturer provides patches at
>> http://linux.terratec.de/tv_en.html and it seems like the only
>> difference is really just the new ID and a couple of init flag changes.
>>
>> Their patch is not exactly for the linux-3.x tree but for the current
>> s2-liplianin drivers, OTOH they still look similar enough and porting
>> the patch was straight-forward. I also added the patch for Terratec S7
>> which is not tested yet but shouldn't do any harm.
> [...]
>
> Eduard, meet the LinuxTV project. linux-media folks, meet Eduard.
> Patch follows.
>
> Eduard: may we have your sign-off? Please see
> Documentation/SubmittingPatches, section 12 "Sign your work" for what
> this means.
Eduard/Jonathan,
Please provide your Signed-off-by: your name <your@email>
thanks!
Mauro
>
> My only other hint is that it would be better to add the new device
> IDs in some logical place in the list near the older ones, instead of
> at the end where it is more likely to collide with other patches in
> flight. So if rerolling the patches, it might be useful to do that.
>
> -- >8 --
> From: Eduard Bloch <blade@debian.org>
> Date: Thu, 22 Dec 2011 19:46:54 +0100
> Subject: new device IDs used by some Terratec USB devices
>
> The changes are extracted from ID patches in tarballs at
> http://linux.terratec.de/tv_en.html (for S7 and Cinergy S2 USB HD), and
> slightly modified to match the state of s2-liplianin tree used in linux-3.x so
> far.
> ---
> Thanks for your work,
> Jonathan
>
> [1] http://bugs.debian.org/653026
>
> diff -urd linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/az6027.c linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/az6027.c
> --- linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/az6027.c 2011-12-09 17:57:05.000000000 +0100
> +++ linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/az6027.c 2011-12-22 19:42:25.655675023 +0100
> @@ -1090,6 +1090,7 @@
> { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V1) },
> { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V2) },
> { USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_SAT) },
> + { USB_DEVICE(USB_VID_TERRATEC, USB_PID_TERRATEC_DVBS2CI_V3) },
> { },
> };
>
> @@ -1135,7 +1136,7 @@
>
> .i2c_algo = &az6027_i2c_algo,
>
> - .num_device_descs = 6,
> + .num_device_descs = 7,
> .devices = {
> {
> .name = "AZUREWAVE DVB-S/S2 USB2.0 (AZ6027)",
> @@ -1161,6 +1162,10 @@
> .name = "Elgato EyeTV Sat",
> .cold_ids = { &az6027_usb_table[5], NULL },
> .warm_ids = { NULL },
> + }, {
> + .name = "TERRATEC S7 Rev.3",
> + .cold_ids = { &az6027_usb_table[6], NULL },
> + .warm_ids = { NULL },
> },
> { NULL },
> }
> diff -urd linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/dvb-usb-ids.h linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
> --- linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2011-12-09 17:57:05.000000000 +0100
> +++ linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2011-12-22 19:40:02.208934727 +0100
> @@ -319,6 +319,7 @@
> #define USB_PID_AZUREWAVE_AZ6027 0x3275
> #define USB_PID_TERRATEC_DVBS2CI_V1 0x10a4
> #define USB_PID_TERRATEC_DVBS2CI_V2 0x10ac
> +#define USB_PID_TERRATEC_DVBS2CI_V3 0x10b0
> #define USB_PID_TECHNISAT_USB2_HDCI_V1 0x0001
> #define USB_PID_TECHNISAT_USB2_HDCI_V2 0x0002
> #define USB_PID_TECHNISAT_AIRSTAR_TELESTICK_2 0x0004
> diff -urd linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/dw2102.c linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/dw2102.c
> --- linux-2.6-3.1.5.debian/drivers/media/dvb/dvb-usb/dw2102.c 2011-12-09 17:57:05.000000000 +0100
> +++ linux-2.6-3.1.5/drivers/media/dvb/dvb-usb/dw2102.c 2011-12-22 19:43:16.588387654 +0100
> @@ -1181,6 +1181,14 @@
> {
> u8 obuf[3] = { 0xe, 0x80, 0 };
> u8 ibuf[] = { 0 };
> +
> + if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0)
> + err("command 0x0e transfer failed.");
> +
> + //power on su3000
> + obuf[0] = 0xe;
> + obuf[1] = 0x02;
> + obuf[2] = 1;
>
> if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0)
> err("command 0x0e transfer failed.");
> @@ -1451,6 +1459,7 @@
> {USB_DEVICE(0x9022, USB_PID_TEVII_S480_1)},
> {USB_DEVICE(0x9022, USB_PID_TEVII_S480_2)},
> {USB_DEVICE(0x1f4d, 0x3100)},
> + {USB_DEVICE(USB_VID_TERRATEC, 0x00b0)},
> { }
> };
>
> @@ -1824,7 +1833,7 @@
> }
> }
> },
> - .num_device_descs = 3,
> + .num_device_descs = 4,
> .devices = {
> { "SU3000HD DVB-S USB2.0",
> { &dw2102_table[10], NULL },
> @@ -1838,6 +1847,10 @@
> { &dw2102_table[14], NULL },
> { NULL },
> },
> + { "Terratec Cinergy S2 USB HD Rev.2",
> + { &dw2102_table[15], NULL },
> + { NULL },
> + },
> }
> };
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-01-06 13:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20111222215356.GA4499@rotes76.wohnheim.uni-kl.de>
2011-12-22 23:44 ` Add support for new Terratec DVB USB IDs Jonathan Nieder
2011-12-23 17:20 ` Patrick Boettcher
2011-12-23 23:00 ` [RFC/PATCH] [media] dw2102: use symbolic names for dw2102_table indices Jonathan Nieder
2012-01-06 13:20 ` Mauro Carvalho Chehab
2012-01-07 8:01 ` [PATCH 0/2] " Jonathan Nieder
2012-01-07 8:05 ` [PATCH 1/2] [media] a800: use symbolic names for a800_table indices Jonathan Nieder
2012-01-07 8:11 ` [PATCH 2/2] [media] af9005, af9015: use symbolic names for USB id table indices Jonathan Nieder
2012-01-07 13:57 ` Luca Olivetti
2012-01-09 17:49 ` Antti Palosaari
2012-01-06 13:12 ` Mauro Carvalho Chehab [this message]
2012-03-10 16:04 ` [RFC/PATCH] New Terratec DVB USB IDs, symbolic names in az6027_usb_table Eduard Bloch
2012-03-10 16:40 ` Mauro Carvalho Chehab
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=4F06F32D.2010002@redhat.com \
--to=mchehab@redhat.com \
--cc=blade@debian.org \
--cc=jrnieder@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=liplianin@me.by \
--cc=patrick.boettcher@dibcom.fr \
/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.