* Add Elgato EyeTV DTT deluxe to dibcom driver
@ 2009-04-19 17:58 Armin Schenker
2009-04-19 20:06 ` Antti Palosaari
2009-04-20 14:58 ` Patrick Boettcher
0 siblings, 2 replies; 4+ messages in thread
From: Armin Schenker @ 2009-04-19 17:58 UTC (permalink / raw)
To: linux-media
This patch introduces support for DVB-T for the following dibcom based
card:
Elgato EyeTV DTT deluxe (USB-ID: 0fd9:0020)
Patch tested with Ubuntu 8.10 and Totem/gstream for watching TV in
Berlin, see also following log:
Apr 19 17:05:30 parallels-ubuntu kernel: [ 1320.452301] usb 1-1: new
high speed USB device using ehci_hcd and address 4
Apr 19 17:05:30 parallels-ubuntu kernel: [ 1320.630760] usb 1-1:
configuration #1 chosen from 1 choice
Apr 19 17:05:30 parallels-ubuntu kernel: [ 1320.676135] dvb-usb: found
a 'Elgato EyeTV Dtt Dlx PD378S' in warm state.
Apr 19 17:05:30 parallels-ubuntu kernel: [ 1320.686115] dvb-usb: will
pass the complete MPEG2 transport stream to the software demuxer.
Apr 19 17:05:30 parallels-ubuntu kernel: [ 1320.689773] DVB:
registering new adapter (Elgato EyeTV Dtt Dlx PD378S)
Apr 19 17:05:31 parallels-ubuntu kernel: [ 1321.401068] DVB:
registering adapter 0 frontend 0 (DiBcom 7000PC)...
Apr 19 17:05:32 parallels-ubuntu kernel: [ 1322.039172] DiB0070:
successfully identified
Apr 19 17:05:32 parallels-ubuntu kernel: [ 1322.052382] input: IR-
receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.
7/usb1/1-1/input/input6
Apr 19 17:05:32 parallels-ubuntu kernel: [ 1322.076363] dvb-usb:
schedule remote query interval to 50 msecs.
Apr 19 17:05:32 parallels-ubuntu kernel: [ 1322.076373] dvb-usb:
Elgato EyeTV Dtt Dlx PD378S successfully initialized and connected.
--- a/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c 2009-04-19
19:26:33.000000000 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dib0700_devices.c 2009-04-19
10:58:16.000000000 +0200
@@ -1497,6 +1497,7 @@ struct usb_device_id dib0700_usb_id_tabl
{ USB_DEVICE(USB_VID_HAUPPAUGE, USB_PID_HAUPPAUGE_TIGER_ATSC_B210) },
{ USB_DEVICE(USB_VID_YUAN, USB_PID_YUAN_MC770) },
{ USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_DTT) },
+ { USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_DTT_Dlx) },
{ 0 } /* Terminating entry */
};
MODULE_DEVICE_TABLE(usb, dib0700_usb_id_table);
@@ -1696,7 +1697,7 @@ struct dvb_usb_device_properties dib0700
},
},
- .num_device_descs = 11,
+ .num_device_descs = 12,
.devices = {
{ "DiBcom STK7070P reference design",
{ &dib0700_usb_id_table[15], NULL },
@@ -1742,6 +1743,10 @@ struct dvb_usb_device_properties dib0700
{ &dib0700_usb_id_table[45], NULL },
{ NULL },
},
+ { "Elgato EyeTV Dtt Dlx PD378S",
+ { &dib0700_usb_id_table[50], NULL },
+ { NULL },
+ },
},
.rc_interval = DEFAULT_RC_INTERVAL,
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb.h 2009-04-19
19:26:08.000000000 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb.h 2009-04-19
11:02:54.000000000 +0200
@@ -224,7 +224,7 @@ struct dvb_usb_device_properties {
int generic_bulk_ctrl_endpoint;
int num_device_descs;
- struct dvb_usb_device_description devices[11];
+ struct dvb_usb_device_description devices[12];
};
/**
--- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-04-19
19:24:49.000000000 +0200
+++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h 2009-04-19
10:39:18.000000000 +0200
@@ -253,5 +253,6 @@
#define USB_PID_MSI_DIGI_VOX_MINI_III 0x8807
#define USB_PID_SONY_PLAYTV 0x0003
#define USB_PID_ELGATO_EYETV_DTT 0x0021
+#define USB_PID_ELGATO_EYETV_DTT_Dlx 0x0020
#endif
---
Grüße Armin Schenker
sar@snafu.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add Elgato EyeTV DTT deluxe to dibcom driver
2009-04-19 17:58 Add Elgato EyeTV DTT deluxe to dibcom driver Armin Schenker
@ 2009-04-19 20:06 ` Antti Palosaari
2009-04-20 14:21 ` Patrick Boettcher
2009-04-20 14:58 ` Patrick Boettcher
1 sibling, 1 reply; 4+ messages in thread
From: Antti Palosaari @ 2009-04-19 20:06 UTC (permalink / raw)
To: linux-media; +Cc: Armin Schenker
Armin Schenker kirjoitti:
> - .num_device_descs = 11,
> + .num_device_descs = 12,
> - struct dvb_usb_device_description devices[11];
> + struct dvb_usb_device_description devices[12];
I don't comment about this patch but general.
I didn't realized this value is allowed to increase when adding new
devices. Due to that there is now three dvb_usb_device_properties in
af9015 which makes driver a little bit complex.
What we should do? Can I remove code from af9015 and increase
dvb_usb_device_description count to about 30? What is biggest suitable
value we want use, how much memory one entry will take.
regards
Antti
--
http://palosaari.fi/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add Elgato EyeTV DTT deluxe to dibcom driver
2009-04-19 20:06 ` Antti Palosaari
@ 2009-04-20 14:21 ` Patrick Boettcher
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Boettcher @ 2009-04-20 14:21 UTC (permalink / raw)
To: Antti Palosaari; +Cc: Linux Media Mailing List
On Sun, 19 Apr 2009, Antti Palosaari wrote:
> Armin Schenker kirjoitti:
>> - .num_device_descs = 11,
>> + .num_device_descs = 12,
>
>> - struct dvb_usb_device_description devices[11];
>> + struct dvb_usb_device_description devices[12];
>
> I don't comment about this patch but general.
>
> I didn't realized this value is allowed to increase when adding new devices.
> Due to that there is now three dvb_usb_device_properties in af9015 which
> makes driver a little bit complex.
>
> What we should do? Can I remove code from af9015 and increase
> dvb_usb_device_description count to about 30? What is biggest suitable value
> we want use, how much memory one entry will take.
One dvb_usb_device_description is (2*15+1) * pointer-size. For
PC-architecture it seems not big for me, but for other architectures it
can be a problem.
After 4 years in place I think we could evaluate whether another method
for the module_device_id-table in all those dvb-usb-modules cannot be made
differently, best case, without any fixed array-sizes.
One very convenient option would be the driver_info-field in the
usb_device_id-table, but it will be hard to convert all drivers and to
keep some information we have today (like the device name) at the same
time .
Beside the size-problem there is still the issue of having the fixed
indexes referenced by the dvb_usb_device_descriptor.
No matter how I think about it, I still have such a link between the
mod_id_table and the dvb_usb_device_description.
If someone comes up with a good idea how to replace the current way of
doing things, it'll be more than welcome. :)
Patrick.
--
Mail: patrick.boettcher@desy.de
WWW: http://www.wi-bw.tfh-wildau.de/~pboettch/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Add Elgato EyeTV DTT deluxe to dibcom driver
2009-04-19 17:58 Add Elgato EyeTV DTT deluxe to dibcom driver Armin Schenker
2009-04-19 20:06 ` Antti Palosaari
@ 2009-04-20 14:58 ` Patrick Boettcher
1 sibling, 0 replies; 4+ messages in thread
From: Patrick Boettcher @ 2009-04-20 14:58 UTC (permalink / raw)
To: Armin Schenker; +Cc: linux-media
Hi Armin,
On Sun, 19 Apr 2009, Armin Schenker wrote:
> This patch introduces support for DVB-T for the following dibcom based card:
> Elgato EyeTV DTT deluxe (USB-ID: 0fd9:0020)
Thanks for the patch - I just applied it.
Patrick.
--
Mail: patrick.boettcher@desy.de
WWW: http://www.wi-bw.tfh-wildau.de/~pboettch/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-20 14:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 17:58 Add Elgato EyeTV DTT deluxe to dibcom driver Armin Schenker
2009-04-19 20:06 ` Antti Palosaari
2009-04-20 14:21 ` Patrick Boettcher
2009-04-20 14:58 ` Patrick Boettcher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox