linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux TV support Elgato EyeTV hybrid
@ 2015-02-20 16:19 Gilles Risch
  2015-02-21 19:08 ` Olli Salonen
  0 siblings, 1 reply; 11+ messages in thread
From: Gilles Risch @ 2015-02-20 16:19 UTC (permalink / raw)
  To: linux-media

Hello,

I'm owning an Elgato EyeTV hybrid USB stick that I'm using daily on my
iMac, now I'd like to use it on my laptop too but I'm unable to get it
running. Is this device already supported? If not, is there any way I
can help? I've already opened my device and uploaded the photos to the
linux TV wiki page
(http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid).
I'm not sure which tuner is mounted on the PCB, therefor I've made two
USB traces, maybe someone could interpret them and conclude which one
is used:
https://www.dropbox.com/s/99b2a17ohu0zqpz/20150219-EyeTV_Hybrid_capturedTV.pcap?dl=0
https://www.dropbox.com/s/q4k8zf8d3qpxznu/20150219-EyeTV_Hybrid_Pluggedin.pcap?dl=0

Kind regards,
Gilles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-20 16:19 Linux TV support Elgato EyeTV hybrid Gilles Risch
@ 2015-02-21 19:08 ` Olli Salonen
  2015-02-22 13:47   ` Gilles Risch
  0 siblings, 1 reply; 11+ messages in thread
From: Olli Salonen @ 2015-02-21 19:08 UTC (permalink / raw)
  To: Gilles Risch; +Cc: linux-media

Hi Gilles,

Not sure if the following information will help you, but here comes.
The USB bridge is EM2884, supported by em28xx driver. The Micronas
demodulator is probably supported by drxk driver. Tuner I did not
recognize after a quick glimpse. That sandwich construction look like
something PCTV has used with some of their designs (290e and 292e for
example).

In order to have a driver for your device you need to have each
individual component supported (USB bridge, demod and tuner). Then
these can be combined into a driver (typically by modifying the USB
bridge driver).

Cheers,
-olli

On 20 February 2015 at 18:19, Gilles Risch <gilles.risch@gmail.com> wrote:
> Hello,
>
> I'm owning an Elgato EyeTV hybrid USB stick that I'm using daily on my
> iMac, now I'd like to use it on my laptop too but I'm unable to get it
> running. Is this device already supported? If not, is there any way I
> can help? I've already opened my device and uploaded the photos to the
> linux TV wiki page
> (http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid).
> I'm not sure which tuner is mounted on the PCB, therefor I've made two
> USB traces, maybe someone could interpret them and conclude which one
> is used:
> https://www.dropbox.com/s/99b2a17ohu0zqpz/20150219-EyeTV_Hybrid_capturedTV.pcap?dl=0
> https://www.dropbox.com/s/q4k8zf8d3qpxznu/20150219-EyeTV_Hybrid_Pluggedin.pcap?dl=0
>
> Kind regards,
> Gilles
> --
> 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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-21 19:08 ` Olli Salonen
@ 2015-02-22 13:47   ` Gilles Risch
  2015-02-22 20:04     ` Benjamin Larsson
  0 siblings, 1 reply; 11+ messages in thread
From: Gilles Risch @ 2015-02-22 13:47 UTC (permalink / raw)
  To: linux-media; +Cc: Olli Salonen

Hi,

most of the used components are identified:
- USB Controller: Empia EM2884
- Stereo A/V Decoder: Micronas AVF 49x0B
- Hybrid Channel Decoder: Micronas DRX-K DRX3926K:A3 0.9.0
The only ambiguity is the tuner, but I think it could be a Xceive XC5000 
because the windows driver comprises the xc5000 firmware and it is 100% 
identical:
     $ mkdir extract-xc5000-fw
     $ cd extract-xc5000-fw
     $ wget http://linuxtv.org/downloads/firmware/dvb-fe-xc5000-1.6.114.fw
     $ wget 
http://elgatoweb.s3.amazonaws.com/Documents/Support/EyeTV_Hybrid/EyeTV_Hybrid_2008_509081301_W8.exe
     $ 7z -y e EyeTV_Hybrid_2008_509081301_W8.exe
     $ dd if=emBDA.sys of=dvb-fe-xc5000-test.fw bs=1 skip=518800 
count=12401 >/dev/null 2>&1
     $ md5sum dvb-fe-xc5000-1.6.114.fw dvb-fe-xc5000-test.fw
     b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-1.6.114.fw
     b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-test.fw

The Elgato_EyeTV_Hybrid.inf file contains a comment with "TerraTec H5", 
which components are assembled on that USB stick?


Regards,
Gilles

On 02/21/2015 08:08 PM, Olli Salonen wrote:
> Hi Gilles,
>
> Not sure if the following information will help you, but here comes.
> The USB bridge is EM2884, supported by em28xx driver. The Micronas
> demodulator is probably supported by drxk driver. Tuner I did not
> recognize after a quick glimpse. That sandwich construction look like
> something PCTV has used with some of their designs (290e and 292e for
> example).
>
> In order to have a driver for your device you need to have each
> individual component supported (USB bridge, demod and tuner). Then
> these can be combined into a driver (typically by modifying the USB
> bridge driver).
>
> Cheers,
> -olli
>
> On 20 February 2015 at 18:19, Gilles Risch <gilles.risch@gmail.com> wrote:
>> Hello,
>>
>> I'm owning an Elgato EyeTV hybrid USB stick that I'm using daily on my
>> iMac, now I'd like to use it on my laptop too but I'm unable to get it
>> running. Is this device already supported? If not, is there any way I
>> can help? I've already opened my device and uploaded the photos to the
>> linux TV wiki page
>> (http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid).
>> I'm not sure which tuner is mounted on the PCB, therefor I've made two
>> USB traces, maybe someone could interpret them and conclude which one
>> is used:
>> https://www.dropbox.com/s/99b2a17ohu0zqpz/20150219-EyeTV_Hybrid_capturedTV.pcap?dl=0
>> https://www.dropbox.com/s/q4k8zf8d3qpxznu/20150219-EyeTV_Hybrid_Pluggedin.pcap?dl=0
>>
>> Kind regards,
>> Gilles
>> --
>> 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


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-22 13:47   ` Gilles Risch
@ 2015-02-22 20:04     ` Benjamin Larsson
  2015-02-22 21:29       ` Antti Palosaari
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Larsson @ 2015-02-22 20:04 UTC (permalink / raw)
  To: Gilles Risch, linux-media; +Cc: Olli Salonen

On 02/22/2015 02:47 PM, Gilles Risch wrote:
> Hi,
>
> most of the used components are identified:
> - USB Controller: Empia EM2884
> - Stereo A/V Decoder: Micronas AVF 49x0B
> - Hybrid Channel Decoder: Micronas DRX-K DRX3926K:A3 0.9.0
> The only ambiguity is the tuner, but I think it could be a Xceive XC5000

This sounds like the Hauppauge WinTV HVR-930C:

http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-930C

> because the windows driver comprises the xc5000 firmware and it is 100%
> identical:
>      $ mkdir extract-xc5000-fw
>      $ cd extract-xc5000-fw
>      $ wget http://linuxtv.org/downloads/firmware/dvb-fe-xc5000-1.6.114.fw
>      $ wget
> http://elgatoweb.s3.amazonaws.com/Documents/Support/EyeTV_Hybrid/EyeTV_Hybrid_2008_509081301_W8.exe
>
>      $ 7z -y e EyeTV_Hybrid_2008_509081301_W8.exe
>      $ dd if=emBDA.sys of=dvb-fe-xc5000-test.fw bs=1 skip=518800
> count=12401 >/dev/null 2>&1
>      $ md5sum dvb-fe-xc5000-1.6.114.fw dvb-fe-xc5000-test.fw
>      b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-1.6.114.fw
>      b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-test.fw
>
> The Elgato_EyeTV_Hybrid.inf file contains a comment with "TerraTec H5",
> which components are assembled on that USB stick?

The TerraTec H5 has a TDA18271 tuner.

>
>
> Regards,
> Gilles


So most likely the Elgato EyeTV hybrid is one of these combinations. And 
it should quite feasible to add support for someone who knows the Empia 
EM2884.

MvH
Benjamin Larsson

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-22 20:04     ` Benjamin Larsson
@ 2015-02-22 21:29       ` Antti Palosaari
  2015-02-23 20:24         ` Gilles Risch
  0 siblings, 1 reply; 11+ messages in thread
From: Antti Palosaari @ 2015-02-22 21:29 UTC (permalink / raw)
  To: Benjamin Larsson, Gilles Risch, linux-media; +Cc: Olli Salonen

On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
> On 02/22/2015 02:47 PM, Gilles Risch wrote:
>> Hi,
>>
>> most of the used components are identified:
>> - USB Controller: Empia EM2884
>> - Stereo A/V Decoder: Micronas AVF 49x0B
>> - Hybrid Channel Decoder: Micronas DRX-K DRX3926K:A3 0.9.0
>> The only ambiguity is the tuner, but I think it could be a Xceive XC5000
>
> This sounds like the Hauppauge WinTV HVR-930C:
>
> http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-930C

It is pretty similar than 930C but not same. Compare pictures from my 
blog and those on LinuxTV wiki. PCB is different.

http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid
http://blog.palosaari.fi/2013/06/naked-hardware-10-hauppauge-wintv-hvr.html

>
>> because the windows driver comprises the xc5000 firmware and it is 100%
>> identical:
>>      $ mkdir extract-xc5000-fw
>>      $ cd extract-xc5000-fw
>>      $ wget
>> http://linuxtv.org/downloads/firmware/dvb-fe-xc5000-1.6.114.fw
>>      $ wget
>> http://elgatoweb.s3.amazonaws.com/Documents/Support/EyeTV_Hybrid/EyeTV_Hybrid_2008_509081301_W8.exe
>>
>>
>>      $ 7z -y e EyeTV_Hybrid_2008_509081301_W8.exe
>>      $ dd if=emBDA.sys of=dvb-fe-xc5000-test.fw bs=1 skip=518800
>> count=12401 >/dev/null 2>&1
>>      $ md5sum dvb-fe-xc5000-1.6.114.fw dvb-fe-xc5000-test.fw
>>      b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-1.6.114.fw
>>      b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-test.fw
>>
>> The Elgato_EyeTV_Hybrid.inf file contains a comment with "TerraTec H5",
>> which components are assembled on that USB stick?
>
> The TerraTec H5 has a TDA18271 tuner.
>
>>
>>
>> Regards,
>> Gilles
>
>
> So most likely the Elgato EyeTV hybrid is one of these combinations. And
> it should quite feasible to add support for someone who knows the Empia
> EM2884.

That device could be supported just making proper board profile to 
em28xx driver. Rather trivial stuff to one who has any experience. Just 
one hour work or so.

regards
Antti

-- 
http://palosaari.fi/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-22 21:29       ` Antti Palosaari
@ 2015-02-23 20:24         ` Gilles Risch
  2015-02-23 20:36           ` Benjamin Larsson
  0 siblings, 1 reply; 11+ messages in thread
From: Gilles Risch @ 2015-02-23 20:24 UTC (permalink / raw)
  To: linux-media; +Cc: Antti Palosaari, Benjamin Larsson, Olli Salonen

On 02/22/2015 10:29 PM, Antti Palosaari wrote:
> On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
>> On 02/22/2015 02:47 PM, Gilles Risch wrote:
>>> Hi,
>>>
>>> most of the used components are identified:
>>> - USB Controller: Empia EM2884
>>> - Stereo A/V Decoder: Micronas AVF 49x0B
>>> - Hybrid Channel Decoder: Micronas DRX-K DRX3926K:A3 0.9.0
>>> The only ambiguity is the tuner, but I think it could be a Xceive 
>>> XC5000
>>
>> This sounds like the Hauppauge WinTV HVR-930C:
>>
>> http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-930C
>
> It is pretty similar than 930C but not same. Compare pictures from my 
> blog and those on LinuxTV wiki. PCB is different.
>
> http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid
> http://blog.palosaari.fi/2013/06/naked-hardware-10-hauppauge-wintv-hvr.html 
>
I persuaded my laptop to identify the stick ass WinTV-HVR-930C:
     $ modprobe em28xx card=81
     $ echo 0fd9 0018 > /sys/bus/usb/drivers/em28xx/new_id
     $ dmesg
     ...
[  128.893703] media: Linux media interface: v0.10
[  128.910043] Linux video capture interface: v2.00
[  128.910047] WARNING: You are using an experimental version of the 
media stack.
[  128.910048]     As the driver is backported to an older kernel, it 
doesn't offer
[  128.910049]     enough quality for its usage in production.
[  128.910049]     Use it with care.
[  128.910050] Latest git patches (needed if you report a bug to 
linux-media@vger.kernel.org):
[  128.910051]     135f9be9194cf7778eb73594aa55791b229cf27c [media] 
dvb_frontend: start media pipeline while thread is running
[  128.910052]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media] 
cx231xx: enable tuner->decoder link at videobuf start
[  128.910053]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media] 
dvb-frontend: enable tuner link when the FE thread starts
[  128.942061] usbcore: registered new interface driver em28xx
[  141.148295] usb 2-6: new high-speed USB device number 3 using ehci_hcd
[  141.282672] usb 2-6: New USB device found, idVendor=0fd9, idProduct=0018
[  141.282681] usb 2-6: New USB device strings: Mfr=3, Product=1, 
SerialNumber=2
[  141.282688] usb 2-6: Product: EyeTV Hybrid
[  141.282693] usb 2-6: Manufacturer: Elgato
[  141.282697] usb 2-6: SerialNumber: 100904010917
[  141.283585] em28xx: New device Elgato EyeTV Hybrid @ 480 Mbps 
(0fd9:0018, interface 0, class 0)
[  141.283593] em28xx: Audio interface 0 found (Vendor Class)
[  141.283599] em28xx: Video interface 0 found: isoc
[  141.283604] em28xx: DVB interface 0 found: isoc
[  141.283744] em28xx: chip ID is em2884
[  141.343640] em2884 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0x1a01bca5
[  141.343647] em2884 #0: EEPROM info:
[  141.343653] em2884 #0:     microcode start address = 0x0004, boot 
configuration = 0x01
[  141.351257] em2884 #0:     I2S audio, 5 sample rates
[  141.351264] em2884 #0:     500mA max power
[  141.351271] em2884 #0:     Table at offset 0x27, strings=0x1a78, 
0x1a92, 0x0e6a
[  141.351416] em2884 #0: Identified as Hauppauge WinTV HVR 930C (card=81)
[  141.354712] tveeprom 11-0050: Encountered bad packet header [30]. 
Corrupt or not a Hauppauge eeprom.
[  141.354721] em2884 #0: analog set to isoc mode.
[  141.354726] em2884 #0: dvb set to isoc mode.
[  141.395223] em2884 #0: Binding audio extension
[  141.395226] em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
[  141.395227] em28xx-audio.c: Copyright (C) 2007-2014 Mauro Carvalho Chehab
[  141.395256] em2884 #0: Endpoint 0x83 high-speed on intf 0 alt 7 
interval = 8, size 196
[  141.395258] em2884 #0: Number of URBs: 1, with 64 packets and 192 size
[  141.395458] em2884 #0: Audio extension successfully initialized
[  141.395460] em28xx: Registered (Em28xx Audio Extension) extension
[  141.423608] WARNING: You are using an experimental version of the 
media stack.
[  141.423609]     As the driver is backported to an older kernel, it 
doesn't offer
[  141.423610]     enough quality for its usage in production.
[  141.423611]     Use it with care.
[  141.423612] Latest git patches (needed if you report a bug to 
linux-media@vger.kernel.org):
[  141.423613]     135f9be9194cf7778eb73594aa55791b229cf27c [media] 
dvb_frontend: start media pipeline while thread is running
[  141.423614]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media] 
cx231xx: enable tuner->decoder link at videobuf start
[  141.423615]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media] 
dvb-frontend: enable tuner link when the FE thread starts
[  141.424714] em2884 #0: Binding DVB extension
[  142.754917] usb 2-6: firmware: agent loaded 
dvb-usb-hauppauge-hvr930c-drxk.fw into memory
[  142.765420] drxk: status = 0x639260d9
[  142.765430] drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
[  144.006316] drxk: DRXK driver version 0.9.4300
[  144.023065] drxk: frontend initialized.
[  144.042622] xc5000 11-0061: creating new instance
[  144.042938] xc5000: I2C read failed
[  144.042946] xc5000 11-0061: destroying instance
[  144.042956] em28xx: Registered (Em28xx dvb Extension) extension
[  144.066269] WARNING: You are using an experimental version of the 
media stack.
[  144.066273]     As the driver is backported to an older kernel, it 
doesn't offer
[  144.066276]     enough quality for its usage in production.
[  144.066278]     Use it with care.
[  144.066280] Latest git patches (needed if you report a bug to 
linux-media@vger.kernel.org):
[  144.066283]     135f9be9194cf7778eb73594aa55791b229cf27c [media] 
dvb_frontend: start media pipeline while thread is running
[  144.066286]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media] 
cx231xx: enable tuner->decoder link at videobuf start
[  144.066290]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media] 
dvb-frontend: enable tuner link when the FE thread starts
[  144.076221] em2884 #0: Registering input extension
[  144.100113] Registered IR keymap rc-hauppauge
[  144.100473] input: em28xx IR (em2884 #0) as 
/devices/pci0000:00/0000:00:1d.7/usb2/2-6/rc/rc0/input11
[  144.100717] rc0: em28xx IR (em2884 #0) as 
/devices/pci0000:00/0000:00:1d.7/usb2/2-6/rc/rc0
[  144.101208] em2884 #0: Input extension successfully initalized
[  144.101216] em28xx: Registered (Em28xx Input Extension) extension

What could one conclude with this dmesg?

>
>>
>>> because the windows driver comprises the xc5000 firmware and it is 100%
>>> identical:
>>>      $ mkdir extract-xc5000-fw
>>>      $ cd extract-xc5000-fw
>>>      $ wget
>>> http://linuxtv.org/downloads/firmware/dvb-fe-xc5000-1.6.114.fw
>>>      $ wget
>>> http://elgatoweb.s3.amazonaws.com/Documents/Support/EyeTV_Hybrid/EyeTV_Hybrid_2008_509081301_W8.exe 
>>>
>>>
>>>
>>>      $ 7z -y e EyeTV_Hybrid_2008_509081301_W8.exe
>>>      $ dd if=emBDA.sys of=dvb-fe-xc5000-test.fw bs=1 skip=518800
>>> count=12401 >/dev/null 2>&1
>>>      $ md5sum dvb-fe-xc5000-1.6.114.fw dvb-fe-xc5000-test.fw
>>>      b1ac8f759020523ebaaeff3fdf4789ed dvb-fe-xc5000-1.6.114.fw
>>>      b1ac8f759020523ebaaeff3fdf4789ed  dvb-fe-xc5000-test.fw
>>>
>>> The Elgato_EyeTV_Hybrid.inf file contains a comment with "TerraTec H5",
>>> which components are assembled on that USB stick?
>>
>> The TerraTec H5 has a TDA18271 tuner.
>>
>>>
>>>
>>> Regards,
>>> Gilles
>>
>>
>> So most likely the Elgato EyeTV hybrid is one of these combinations. And
>> it should quite feasible to add support for someone who knows the Empia
>> EM2884.
>
> That device could be supported just making proper board profile to 
> em28xx driver. Rather trivial stuff to one who has any experience. 
> Just one hour work or so.
>
> regards
> Antti
>

Regards,
Gilles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-23 20:24         ` Gilles Risch
@ 2015-02-23 20:36           ` Benjamin Larsson
  2015-02-23 22:54             ` Gilles Risch
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Larsson @ 2015-02-23 20:36 UTC (permalink / raw)
  To: Gilles Risch, linux-media; +Cc: Antti Palosaari, Olli Salonen

On 02/23/2015 09:24 PM, Gilles Risch wrote:
> On 02/22/2015 10:29 PM, Antti Palosaari wrote:
>> On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
>>> On 02/22/2015 02:47 PM, Gilles Risch wrote:
[...]
> [  141.423608] WARNING: You are using an experimental version of the
> media stack.
> [  141.423609]     As the driver is backported to an older kernel, it
> doesn't offer
> [  141.423610]     enough quality for its usage in production.
> [  141.423611]     Use it with care.
> [  141.423612] Latest git patches (needed if you report a bug to
> linux-media@vger.kernel.org):
> [  141.423613]     135f9be9194cf7778eb73594aa55791b229cf27c [media]
> dvb_frontend: start media pipeline while thread is running
> [  141.423614]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media]
> cx231xx: enable tuner->decoder link at videobuf start
> [  141.423615]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media]
> dvb-frontend: enable tuner link when the FE thread starts
> [  141.424714] em2884 #0: Binding DVB extension
> [  142.754917] usb 2-6: firmware: agent loaded
> dvb-usb-hauppauge-hvr930c-drxk.fw into memory
> [  142.765420] drxk: status = 0x639260d9
> [  142.765430] drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
> [  144.006316] drxk: DRXK driver version 0.9.4300
> [  144.023065] drxk: frontend initialized.

The demod seems to initialize well.


> [  144.042622] xc5000 11-0061: creating new instance
> [  144.042938] xc5000: I2C read failed

The tuner does not initialize. What could be wrong is that the tuner 
might need to be powered on (pulling some gpio pin) or it resides on 
another i2c address then what the HVR-930C has it. Or something else.

MvH
Benjamin Larsson

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-23 20:36           ` Benjamin Larsson
@ 2015-02-23 22:54             ` Gilles Risch
  2015-02-23 23:13               ` Benjamin Larsson
  0 siblings, 1 reply; 11+ messages in thread
From: Gilles Risch @ 2015-02-23 22:54 UTC (permalink / raw)
  To: Benjamin Larsson, linux-media; +Cc: Antti Palosaari, Olli Salonen

On 02/23/2015 09:36 PM, Benjamin Larsson wrote:
> On 02/23/2015 09:24 PM, Gilles Risch wrote:
>> On 02/22/2015 10:29 PM, Antti Palosaari wrote:
>>> On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
>>>> On 02/22/2015 02:47 PM, Gilles Risch wrote:
> [...]
Not sure if it helps, but I also tried:
     $ modprobe em28xx card=82
     $ modprobe xc5000
     $ echo 0fd9 0018 > /sys/bus/usb/drivers/em28xx/new_id
     $ dmesg
[  142.728289] usb 8-6: new high-speed USB device number 3 using ehci_hcd
[  142.862556] usb 8-6: New USB device found, idVendor=0fd9, idProduct=0018
[  142.862565] usb 8-6: New USB device strings: Mfr=3, Product=1, 
SerialNumber=2
[  142.862571] usb 8-6: Product: EyeTV Hybrid
[  142.862576] usb 8-6: Manufacturer: Elgato
[  142.862581] usb 8-6: SerialNumber: 100904010917
[  142.863146] em28xx: New device Elgato EyeTV Hybrid @ 480 Mbps 
(0fd9:0018, interface 0, class 0)
[  142.863153] em28xx: Audio interface 0 found (Vendor Class)
[  142.863159] em28xx: Video interface 0 found: isoc
[  142.863163] em28xx: DVB interface 0 found: isoc
[  142.863993] em28xx: chip ID is em2884
[  142.927681] em2884 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0x1a01bca5
[  142.927688] em2884 #0: EEPROM info:
[  142.927694] em2884 #0:     microcode start address = 0x0004, boot 
configuration = 0x01
[  142.935299] em2884 #0:     I2S audio, 5 sample rates
[  142.935306] em2884 #0:     500mA max power
[  142.935312] em2884 #0:     Table at offset 0x27, strings=0x1a78, 
0x1a92, 0x0e6a
[  142.935466] em2884 #0: Identified as Terratec Cinergy HTC Stick (card=82)
[  142.935474] em2884 #0: analog set to isoc mode.
[  142.935478] em2884 #0: dvb set to isoc mode.
[  142.975149] em2884 #0: Binding audio extension
[  142.975152] em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
[  142.975153] em28xx-audio.c: Copyright (C) 2007-2014 Mauro Carvalho Chehab
[  142.975180] em2884 #0: Endpoint 0x83 high-speed on intf 0 alt 7 
interval = 8, size 196
[  142.975184] em2884 #0: Number of URBs: 1, with 64 packets and 192 size
[  142.975537] em2884 #0: Audio extension successfully initialized
[  142.975540] em28xx: Registered (Em28xx Audio Extension) extension
[  143.003553] WARNING: You are using an experimental version of the 
media stack.
[  143.003554]     As the driver is backported to an older kernel, it 
doesn't offer
[  143.003555]     enough quality for its usage in production.
[  143.003556]     Use it with care.
[  143.003556] Latest git patches (needed if you report a bug to 
linux-media@vger.kernel.org):
[  143.003557]     135f9be9194cf7778eb73594aa55791b229cf27c [media] 
dvb_frontend: start media pipeline while thread is running
[  143.003558]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media] 
cx231xx: enable tuner->decoder link at videobuf start
[  143.003560]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media] 
dvb-frontend: enable tuner link when the FE thread starts
[  143.010977] em2884 #0: Binding DVB extension
[  143.567751] usb 8-6: firmware: agent loaded 
dvb-usb-terratec-htc-stick-drxk.fw into memory
[  143.585103] drxk: status = 0x639260d9
[  143.585113] drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
[  147.656822] drxk: DRXK driver version 0.9.4300
[  147.695203] drxk: frontend initialized.
[  147.764493] tda18271 11-0060: creating new instance
[  147.766552] TDA18271HD/C2 detected @ 11-0060
[  147.997562] DVB: registering new adapter (em2884 #0)
[  147.997571] usb 8-6: DVB: registering adapter 0 frontend 0 (DRXK 
DVB-C DVB-T)...
[  147.998567] em2884 #0: DVB extension successfully initialized
[  147.998571] em28xx: Registered (Em28xx dvb Extension) extension
[  148.023086] WARNING: You are using an experimental version of the 
media stack.
[  148.023087]     As the driver is backported to an older kernel, it 
doesn't offer
[  148.023088]     enough quality for its usage in production.
[  148.023089]     Use it with care.
[  148.023089] Latest git patches (needed if you report a bug to 
linux-media@vger.kernel.org):
[  148.023090]     135f9be9194cf7778eb73594aa55791b229cf27c [media] 
dvb_frontend: start media pipeline while thread is running
[  148.023091]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media] 
cx231xx: enable tuner->decoder link at videobuf start
[  148.023092]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media] 
dvb-frontend: enable tuner link when the FE thread starts
[  148.034348] em2884 #0: Registering input extension
[  148.064107] Registered IR keymap rc-nec-terratec-cinergy-xs
[  148.064420] input: em28xx IR (em2884 #0) as 
/devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0/input11
[  148.064808] rc0: em28xx IR (em2884 #0) as 
/devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0
[  148.065325] em2884 #0: Input extension successfully initalized
[  148.065333] em28xx: Registered (Em28xx Input Extension) extension

The dmesg shows that a TDA18271HD/C2 tuner has been detected.

A w_scan produced a kernel Oops:
[  193.580994] BUG: unable to handle kernel NULL pointer dereference at 
0000000000000010
[  193.581054] IP: [<ffffffffa05a9289>] 
media_entity_pipeline_start+0x30/0x2d2 [media]
[  193.581101] PGD 576ea067 PUD 576de067 PMD 0
[  193.581131] Oops: 0000 [#1] SMP
[  193.581155] CPU 0
[  193.581167] Modules linked in: rc_nec_terratec_cinergy_xs(O) 
em28xx_rc(O) rc_core(O) tda18271(O) drxk(O) em28xx_dvb(O) dvb_core(O) 
em28xx_alsa(O) xc5000(O) em28xx(O) tveeprom(O) v4l2_common(O) 
videodev(O) media(O) cryptd aes_x86_64 aes_generic ppdev lp bnep rfcomm 
bluetooth pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) 
binfmt_misc uinput nfsd nfs nfs_acl auth_rpcgss fscache lockd sunrpc 
loop tpm_infineon snd_hda_codec_analog arc4 iwlwifi joydev mac80211 i915 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc cfg80211 
drm_kms_helper snd_seq snd_seq_device drm snd_timer hp_wmi sparse_keymap 
i2c_algo_bit i2c_core snd rfkill hp_accel lis3lv02d acpi_cpufreq 
soundcore input_polldev evdev battery parport_pc parport video ac 
psmouse mperf serio_raw pcspkr iTCO_wdt iTCO_vendor_support wmi 
processor tpm_tis tpm tpm_bios power_supply button container coretemp 
ext4 crc16 jbd2 mbcache usb_storage sg sd_mod sr_mod cdrom crc_t10dif 
firewire_ohci firewire_core crc_itu_t ahci libahci tg3 libphy libata 
scsi_mod uhci_hcd fan thermal thermal_sys ehci_hcd usbcore usb_common 
[last unloaded: scsi_wait_scan]
[  193.581911]
[  193.581922] Pid: 4106, comm: kdvb-ad-0-fe-0 Tainted: G O 
3.2.0-4-amd64 #1 Debian 3.2.65-1+deb7u1 Hewlett-Packard HP Compaq 6730b 
(GW687AV)/30DD
[  193.581998] RIP: 0010:[<ffffffffa05a9289>] [<ffffffffa05a9289>] 
media_entity_pipeline_start+0x30/0x2d2 [media]
[  193.582053] RSP: 0018:ffff880053809ce0  EFLAGS: 00010246
[  193.582082] RAX: 0000000000000000 RBX: ffff880053809d18 RCX: 
0000002d12531e61
[  193.582119] RDX: 0000000000000000 RSI: ffff880075b2825c RDI: 
0000000000000000
[  193.582155] RBP: ffff880053809e60 R08: ffff880053808000 R09: 
0000000000000001
[  193.582191] R10: 0000000000000046 R11: ffffffff81600000 R12: 
ffffffffa06102cb
[  193.582228] R13: 0000000000000000 R14: 0000000000000000 R15: 
ffff880075b2825c
[  193.582265] FS:  0000000000000000(0000) GS:ffff88007b600000(0000) 
knlGS:0000000000000000
[  193.582306] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  193.582336] CR2: 0000000000000010 CR3: 000000005776f000 CR4: 
00000000000406f0
[  193.583407] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
[  193.584435] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
[  193.584969] Process kdvb-ad-0-fe-0 (pid: 4106, threadinfo 
ffff880053808000, task ffff8800577cc040)
[  193.584969] Stack:
[  193.584969]  0000000000000000 0000000000000000 0000000000000000 
0000000000000000
[  193.584969]  0000000000000000 0000000000000000 0000000000000000 
0000000000000000
[  193.584969]  0000000000000000 0000000000000000 0000000000000001 
0000000000000000
[  193.584969] Call Trace:
[  193.584969]  [<ffffffff8104186e>] ? load_balance+0x85/0x629
[  193.584969]  [<ffffffff810139e1>] ? paravirt_read_tsc+0x5/0x8
[  193.584969]  [<ffffffff8100d02f>] ? load_TLS+0x7/0xa
[  193.584969]  [<ffffffff8100d66c>] ? __switch_to+0x101/0x265
[  193.584969]  [<ffffffffa06102cb>] ? 
dvb_frontend_reinitialise+0x1d/0x1d [dvb_core]
[  193.584969]  [<ffffffffa061047a>] ? dvb_frontend_thread+0x1af/0x60f 
[dvb_core]
[  193.584969]  [<ffffffff8134fa19>] ? __schedule+0x5f9/0x610
[  193.584969]  [<ffffffffa06102cb>] ? 
dvb_frontend_reinitialise+0x1d/0x1d [dvb_core]
[  193.584969]  [<ffffffff8105f791>] ? kthread+0x76/0x7e
[  193.584969]  [<ffffffff81358034>] ? kernel_thread_helper+0x4/0x10
[  193.584969]  [<ffffffff8105f71b>] ? kthread_worker_fn+0x139/0x139
[  193.584969]  [<ffffffff81358030>] ? gs_change+0x13/0x13
[  193.584969] Code: 57 49 89 f7 41 56 49 89 fe 41 55 41 54 53 48 8d 9d 
b8 fe ff ff 48 81 ec 58 01 00 00 65 48 8b 04 25 28 00 00 00 48 89 45 c8 
31 c0 <48> 8b 47 10 48 05 a8 03 00 00 48 89 c7 48 89 85 a0 fe ff ff e8
[  193.584969] RIP  [<ffffffffa05a9289>] 
media_entity_pipeline_start+0x30/0x2d2 [media]
[  193.584969]  RSP <ffff880053809ce0>
[  193.584969] CR2: 0000000000000010
[  193.618528] ---[ end trace 2ced670cbbf01c41 ]---
[  205.758123] em2884 #0: submit of audio urb failed (error=-90)
[  222.737368] usb 8-6: USB disconnect, device number 3
[  222.737556] em2884 #0: Disconnecting em2884 #0
[  222.737565] em2884 #0: Closing audio extension
[  222.743949] em2884 #0: Closing DVB extension
[  222.745029] ------------[ cut here ]------------
[  222.745045] WARNING: at 
/build/linux-p4iNsg/linux-3.2.65/kernel/fork.c:190 
__put_task_struct+0x20/0xb9()
[  222.745052] Hardware name: HP Compaq 6730b (GW687AV)
[  222.745057] Modules linked in: rc_nec_terratec_cinergy_xs(O) 
em28xx_rc(O) rc_core(O) tda18271(O) drxk(O) em28xx_dvb(O) dvb_core(O) 
em28xx_alsa(O) xc5000(O) em28xx(O) tveeprom(O) v4l2_common(O) 
videodev(O) media(O) cryptd aes_x86_64 aes_generic ppdev lp bnep rfcomm 
bluetooth pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) 
binfmt_misc uinput nfsd nfs nfs_acl auth_rpcgss fscache lockd sunrpc 
loop tpm_infineon snd_hda_codec_analog arc4 iwlwifi joydev mac80211 i915 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc cfg80211 
drm_kms_helper snd_seq snd_seq_device drm snd_timer hp_wmi sparse_keymap 
i2c_algo_bit i2c_core snd rfkill hp_accel lis3lv02d acpi_cpufreq 
soundcore input_polldev evdev battery parport_pc parport video ac 
psmouse mperf serio_raw pcspkr iTCO_wdt iTCO_vendor_support wmi 
processor tpm_tis tpm tpm_bios power_supply button container coretemp 
ext4 crc16 jbd2 mbcache usb_storage sg sd_mod sr_mod cdrom crc_t10dif 
firewire_ohci firewire_core crc_itu_t ahci libahci tg3 libphy libata 
scsi_mod uhci_hcd fan thermal thermal_sys ehci_hcd usbcore usb_common 
[last unloaded: scsi_wait_scan]
[  222.745293] Pid: 122, comm: khubd Tainted: G      D    O 
3.2.0-4-amd64 #1 Debian 3.2.65-1+deb7u1
[  222.745299] Call Trace:
[  222.745311]  [<ffffffff81046d61>] ? warn_slowpath_common+0x78/0x8c
[  222.745321]  [<ffffffff810448f4>] ? __put_task_struct+0x20/0xb9
[  222.745332]  [<ffffffff8105f810>] ? kthread_stop+0x77/0xa5
[  222.745343]  [<ffffffff811adbb4>] ? add_uevent_var+0xdc/0xdc
[  222.745358]  [<ffffffffa060f477>] ? dvb_frontend_stop+0x35/0x9e 
[dvb_core]
[  222.745366]  [<ffffffff811adbb4>] ? add_uevent_var+0xdc/0xdc
[  222.745379]  [<ffffffffa060f504>] ? dvb_unregister_frontend+0x24/0xd2 
[dvb_core]
[  222.745390]  [<ffffffffa062855b>] ? em28xx_dvb_fini+0x15a/0x1be 
[em28xx_dvb]
[  222.745400]  [<ffffffff810ec482>] ? kfree+0x5b/0x6c
[  222.745409]  [<ffffffffa0628571>] ? em28xx_dvb_fini+0x170/0x1be 
[em28xx_dvb]
[  222.745421]  [<ffffffffa05e6582>] ? em28xx_close_extension+0x29/0x7c 
[em28xx]
[  222.745432]  [<ffffffffa05e7a0b>] ? em28xx_usb_disconnect+0x54/0x73 
[em28xx]
[  222.745461]  [<ffffffffa001148a>] ? usb_unbind_interface+0x4d/0x111 
[usbcore]
[  222.745478]  [<ffffffff812530cf>] ? __device_release_driver+0x7d/0xc9
[  222.745486]  [<ffffffff81253136>] ? device_release_driver+0x1b/0x27
[  222.745495]  [<ffffffff81252d30>] ? bus_remove_device+0xd2/0xe7
[  222.745504]  [<ffffffff81250884>] ? device_del+0x11a/0x168
[  222.745528]  [<ffffffffa000f9f5>] ? usb_disable_device+0x6b/0x175 
[usbcore]
[  222.745551]  [<ffffffffa0009915>] ? usb_disconnect+0x6f/0xd0 [usbcore]
[  222.745574]  [<ffffffffa000b08c>] ? hub_thread+0x574/0xec3 [usbcore]
[  222.745583]  [<ffffffff810380cd>] ? set_next_entity+0x32/0x55
[  222.745593]  [<ffffffff8105fde3>] ? add_wait_queue+0x3c/0x3c
[  222.745616]  [<ffffffffa000ab18>] ? usb_remote_wakeup+0x2f/0x2f [usbcore]
[  222.745626]  [<ffffffff8105f791>] ? kthread+0x76/0x7e
[  222.745636]  [<ffffffff81358034>] ? kernel_thread_helper+0x4/0x10
[  222.745645]  [<ffffffff8105f71b>] ? kthread_worker_fn+0x139/0x139
[  222.745653]  [<ffffffff81358030>] ? gs_change+0x13/0x13
[  222.745659] ---[ end trace 2ced670cbbf01c42 ]---
[  222.745677] BUG: unable to handle kernel NULL pointer dereference 
at           (null)
[  222.747977] IP: [<ffffffff810645e6>] exit_creds+0x12/0x5a
[  222.748012] PGD 75faa067 PUD 36f79067 PMD 0
[  222.748012] Oops: 0000 [#2] SMP
[  222.748012] CPU 1
[  222.748012] Modules linked in: rc_nec_terratec_cinergy_xs(O) 
em28xx_rc(O) rc_core(O) tda18271(O) drxk(O) em28xx_dvb(O) dvb_core(O) 
em28xx_alsa(O) xc5000(O) em28xx(O) tveeprom(O) v4l2_common(O) 
videodev(O) media(O) cryptd aes_x86_64 aes_generic ppdev lp bnep rfcomm 
bluetooth pci_stub vboxpci(O) vboxnetadp(O) vboxnetflt(O) vboxdrv(O) 
binfmt_misc uinput nfsd nfs nfs_acl auth_rpcgss fscache lockd sunrpc 
loop tpm_infineon snd_hda_codec_analog arc4 iwlwifi joydev mac80211 i915 
snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc cfg80211 
drm_kms_helper snd_seq snd_seq_device drm snd_timer hp_wmi sparse_keymap 
i2c_algo_bit i2c_core snd rfkill hp_accel lis3lv02d acpi_cpufreq 
soundcore input_polldev evdev battery parport_pc parport video ac 
psmouse mperf serio_raw pcspkr iTCO_wdt iTCO_vendor_support wmi 
processor tpm_tis tpm tpm_bios power_supply button container coretemp 
ext4 crc16 jbd2 mbcache usb_storage sg sd_mod sr_mod cdrom crc_t10dif 
firewire_ohci firewire_core crc_itu_t ahci libahci tg3 libphy libata 
scsi_mod uhci_hcd fan thermal thermal_sys ehci_hcd usbcore usb_common 
[last unloaded: scsi_wait_scan]
[  222.748012]
[  222.748012] Pid: 122, comm: khubd Tainted: G      D W  O 
3.2.0-4-amd64 #1 Debian 3.2.65-1+deb7u1 Hewlett-Packard HP Compaq 6730b 
(GW687AV)/30DD
[  222.748012] RIP: 0010:[<ffffffff810645e6>] [<ffffffff810645e6>] 
exit_creds+0x12/0x5a
[  222.748012] RSP: 0018:ffff880036c91bb0  EFLAGS: 00010283
[  222.748012] RAX: 0000000000000000 RBX: ffff8800577cc040 RCX: 
0000000000001f70
[  222.748012] RDX: 0000000000000000 RSI: 0000000000000046 RDI: 
0000000000000000
[  222.748012] RBP: 0000000000000000 R08: 0000000000000002 R09: 
00000000fffffffe
[  222.748012] R10: 0000000000000000 R11: 0000000000000002 R12: 
ffff8800773b80c0
[  222.748012] R13: ffffffffa05f3e28 R14: 0000000000000000 R15: 
ffff880036e5e800
[  222.748012] FS:  0000000000000000(0000) GS:ffff88007b680000(0000) 
knlGS:0000000000000000
[  222.748012] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[  222.748012] CR2: 0000000000000000 CR3: 0000000075002000 CR4: 
00000000000406e0
[  222.748012] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 
0000000000000000
[  222.748012] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 
0000000000000400
[  222.748012] Process khubd (pid: 122, threadinfo ffff880036c90000, 
task ffff880075b57800)
[  222.748012] Stack:
[  222.748012]  ffff8800577cc040 ffffffff81044933 0000000000000000 
ffff8800577cc040
[  222.748012]  0000000000000000 ffffffff8105f810 ffffffff811adbb4 
ffff880075b28000
[  222.748012]  ffff880057498000 ffffffffa060f477 ffffffff811adbb4 
ffff880075b28000
[  222.748012] Call Trace:
[  222.748012]  [<ffffffff81044933>] ? __put_task_struct+0x5f/0xb9
[  222.748012]  [<ffffffff8105f810>] ? kthread_stop+0x77/0xa5
[  222.748012]  [<ffffffff811adbb4>] ? add_uevent_var+0xdc/0xdc
[  222.748012]  [<ffffffffa060f477>] ? dvb_frontend_stop+0x35/0x9e 
[dvb_core]
[  222.859262]  [<ffffffff811adbb4>] ? add_uevent_var+0xdc/0xdc
[  222.859262]  [<ffffffffa060f504>] ? dvb_unregister_frontend+0x24/0xd2 
[dvb_core]
[  222.859262]  [<ffffffffa062855b>] ? em28xx_dvb_fini+0x15a/0x1be 
[em28xx_dvb]
[  222.859262]  [<ffffffff810ec482>] ? kfree+0x5b/0x6c
[  222.859262]  [<ffffffffa0628571>] ? em28xx_dvb_fini+0x170/0x1be 
[em28xx_dvb]
[  222.859262]  [<ffffffffa05e6582>] ? em28xx_close_extension+0x29/0x7c 
[em28xx]
[  222.859262]  [<ffffffffa05e7a0b>] ? em28xx_usb_disconnect+0x54/0x73 
[em28xx]
[  222.859262]  [<ffffffffa001148a>] ? usb_unbind_interface+0x4d/0x111 
[usbcore]
[  222.859262]  [<ffffffff812530cf>] ? __device_release_driver+0x7d/0xc9
[  222.859262]  [<ffffffff81253136>] ? device_release_driver+0x1b/0x27
[  222.859262]  [<ffffffff81252d30>] ? bus_remove_device+0xd2/0xe7
[  222.859262]  [<ffffffff81250884>] ? device_del+0x11a/0x168
[  222.859262]  [<ffffffffa000f9f5>] ? usb_disable_device+0x6b/0x175 
[usbcore]
[  222.859262]  [<ffffffffa0009915>] ? usb_disconnect+0x6f/0xd0 [usbcore]
[  222.859262]  [<ffffffffa000b08c>] ? hub_thread+0x574/0xec3 [usbcore]
[  222.859262]  [<ffffffff810380cd>] ? set_next_entity+0x32/0x55
[  222.859262]  [<ffffffff8105fde3>] ? add_wait_queue+0x3c/0x3c
[  222.859262]  [<ffffffffa000ab18>] ? usb_remote_wakeup+0x2f/0x2f [usbcore]
[  222.859262]  [<ffffffff8105f791>] ? kthread+0x76/0x7e
[  222.859262]  [<ffffffff81358034>] ? kernel_thread_helper+0x4/0x10
[  222.859262]  [<ffffffff8105f71b>] ? kthread_worker_fn+0x139/0x139
[  222.859262]  [<ffffffff81358030>] ? gs_change+0x13/0x13
[  222.859262] Code: f0 e8 8c ae 0f 00 48 8b 7b f8 e8 83 ae 0f 00 48 8d 
7b e0 5b e9 53 7e 08 00 53 48 8b 87 88 03 00 00 48 89 fb 48 8b bf 80 03 
00 00 <8b> 00 48 c7 83 80 03 00 00 00 00 00 00 e8 70 fd ff ff 48 8b bb
[  222.859262] RIP  [<ffffffff810645e6>] exit_creds+0x12/0x5a
[  222.859262]  RSP <ffff880036c91bb0>
[  222.859262] CR2: 0000000000000000
[  222.993936] ---[ end trace 2ced670cbbf01c43 ]---

Regards,
Gilles





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-23 22:54             ` Gilles Risch
@ 2015-02-23 23:13               ` Benjamin Larsson
  2015-02-24 22:18                 ` Gilles Risch
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Larsson @ 2015-02-23 23:13 UTC (permalink / raw)
  To: Gilles Risch, linux-media; +Cc: Antti Palosaari, Olli Salonen

On 02/23/2015 11:54 PM, Gilles Risch wrote:
> On 02/23/2015 09:36 PM, Benjamin Larsson wrote:
>> On 02/23/2015 09:24 PM, Gilles Risch wrote:
>>> On 02/22/2015 10:29 PM, Antti Palosaari wrote:
>>>> On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
>>>>> On 02/22/2015 02:47 PM, Gilles Risch wrote:
>> [...]
> Not sure if it helps, but I also tried:
>      $ modprobe em28xx card=82
>      $ modprobe xc5000
>      $ echo 0fd9 0018 > /sys/bus/usb/drivers/em28xx/new_id
>      $ dmesg
> [  142.728289] usb 8-6: new high-speed USB device number 3 using ehci_hcd
> [  142.862556] usb 8-6: New USB device found, idVendor=0fd9, idProduct=0018
> [  142.862565] usb 8-6: New USB device strings: Mfr=3, Product=1,
> SerialNumber=2
> [  142.862571] usb 8-6: Product: EyeTV Hybrid
> [  142.862576] usb 8-6: Manufacturer: Elgato
> [  142.862581] usb 8-6: SerialNumber: 100904010917
> [  142.863146] em28xx: New device Elgato EyeTV Hybrid @ 480 Mbps
> (0fd9:0018, interface 0, class 0)
> [  142.863153] em28xx: Audio interface 0 found (Vendor Class)
> [  142.863159] em28xx: Video interface 0 found: isoc
> [  142.863163] em28xx: DVB interface 0 found: isoc
> [  142.863993] em28xx: chip ID is em2884
> [  142.927681] em2884 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 0x1a01bca5
> [  142.927688] em2884 #0: EEPROM info:
> [  142.927694] em2884 #0:     microcode start address = 0x0004, boot
> configuration = 0x01
> [  142.935299] em2884 #0:     I2S audio, 5 sample rates
> [  142.935306] em2884 #0:     500mA max power
> [  142.935312] em2884 #0:     Table at offset 0x27, strings=0x1a78,
> 0x1a92, 0x0e6a
> [  142.935466] em2884 #0: Identified as Terratec Cinergy HTC Stick
> (card=82)
> [  142.935474] em2884 #0: analog set to isoc mode.
> [  142.935478] em2884 #0: dvb set to isoc mode.
> [  142.975149] em2884 #0: Binding audio extension
> [  142.975152] em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
> [  142.975153] em28xx-audio.c: Copyright (C) 2007-2014 Mauro Carvalho
> Chehab
> [  142.975180] em2884 #0: Endpoint 0x83 high-speed on intf 0 alt 7
> interval = 8, size 196
> [  142.975184] em2884 #0: Number of URBs: 1, with 64 packets and 192 size
> [  142.975537] em2884 #0: Audio extension successfully initialized
> [  142.975540] em28xx: Registered (Em28xx Audio Extension) extension
> [  143.003553] WARNING: You are using an experimental version of the
> media stack.
> [  143.003554]     As the driver is backported to an older kernel, it
> doesn't offer
> [  143.003555]     enough quality for its usage in production.
> [  143.003556]     Use it with care.
> [  143.003556] Latest git patches (needed if you report a bug to
> linux-media@vger.kernel.org):
> [  143.003557]     135f9be9194cf7778eb73594aa55791b229cf27c [media]
> dvb_frontend: start media pipeline while thread is running
> [  143.003558]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media]
> cx231xx: enable tuner->decoder link at videobuf start
> [  143.003560]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media]
> dvb-frontend: enable tuner link when the FE thread starts
> [  143.010977] em2884 #0: Binding DVB extension
> [  143.567751] usb 8-6: firmware: agent loaded
> dvb-usb-terratec-htc-stick-drxk.fw into memory
> [  143.585103] drxk: status = 0x639260d9
> [  143.585113] drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
> [  147.656822] drxk: DRXK driver version 0.9.4300
> [  147.695203] drxk: frontend initialized.
> [  147.764493] tda18271 11-0060: creating new instance
> [  147.766552] TDA18271HD/C2 detected @ 11-0060

I am not sure how certain the TDA18271HD detection is but when I look at 
the images from here:

http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid

I don't see the tuner chip, so it could be a tda chip.

> [  147.997562] DVB: registering new adapter (em2884 #0)
> [  147.997571] usb 8-6: DVB: registering adapter 0 frontend 0 (DRXK
> DVB-C DVB-T)...

This sounds good.

> [  147.998567] em2884 #0: DVB extension successfully initialized
> [  147.998571] em28xx: Registered (Em28xx dvb Extension) extension
> [  148.023086] WARNING: You are using an experimental version of the
> media stack.
> [  148.023087]     As the driver is backported to an older kernel, it
> doesn't offer
> [  148.023088]     enough quality for its usage in production.
> [  148.023089]     Use it with care.
> [  148.023089] Latest git patches (needed if you report a bug to
> linux-media@vger.kernel.org):
> [  148.023090]     135f9be9194cf7778eb73594aa55791b229cf27c [media]
> dvb_frontend: start media pipeline while thread is running
> [  148.023091]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media]
> cx231xx: enable tuner->decoder link at videobuf start
> [  148.023092]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media]
> dvb-frontend: enable tuner link when the FE thread starts
> [  148.034348] em2884 #0: Registering input extension
> [  148.064107] Registered IR keymap rc-nec-terratec-cinergy-xs
> [  148.064420] input: em28xx IR (em2884 #0) as
> /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0/input11
> [  148.064808] rc0: em28xx IR (em2884 #0) as
> /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0
> [  148.065325] em2884 #0: Input extension successfully initalized
> [  148.065333] em28xx: Registered (Em28xx Input Extension) extension
>
> The dmesg shows that a TDA18271HD/C2 tuner has been detected.
>
> A w_scan produced a kernel Oops:
> [  193.580994] BUG: unable to handle kernel NULL pointer dereference at
> 0000000000000010
[...]
> [  193.581998] RIP: 0010:[<ffffffffa05a9289>] [<ffffffffa05a9289>]
> media_entity_pipeline_start+0x30/0x2d2 [media]

Try apply this patch:

[PATCH v2] [media] dvb core: only start media entity if not NULL

MvH
Benjamin Larsson

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-23 23:13               ` Benjamin Larsson
@ 2015-02-24 22:18                 ` Gilles Risch
  2015-02-26 21:19                   ` Gilles Risch
  0 siblings, 1 reply; 11+ messages in thread
From: Gilles Risch @ 2015-02-24 22:18 UTC (permalink / raw)
  To: linux-media; +Cc: Benjamin Larsson, Antti Palosaari, Olli Salonen

On 02/24/2015 12:13 AM, Benjamin Larsson wrote:
> On 02/23/2015 11:54 PM, Gilles Risch wrote:
>> On 02/23/2015 09:36 PM, Benjamin Larsson wrote:
>>> On 02/23/2015 09:24 PM, Gilles Risch wrote:
>>>> On 02/22/2015 10:29 PM, Antti Palosaari wrote:
>>>>> On 02/22/2015 10:04 PM, Benjamin Larsson wrote:
>>>>>> On 02/22/2015 02:47 PM, Gilles Risch wrote:
>>> [...]
>> Not sure if it helps, but I also tried:
>>      $ modprobe em28xx card=82
>>      $ modprobe xc5000
>>      $ echo 0fd9 0018 > /sys/bus/usb/drivers/em28xx/new_id
>>      $ dmesg
>> [  142.728289] usb 8-6: new high-speed USB device number 3 using 
>> ehci_hcd
>> [  142.862556] usb 8-6: New USB device found, idVendor=0fd9, 
>> idProduct=0018
>> [  142.862565] usb 8-6: New USB device strings: Mfr=3, Product=1,
>> SerialNumber=2
>> [  142.862571] usb 8-6: Product: EyeTV Hybrid
>> [  142.862576] usb 8-6: Manufacturer: Elgato
>> [  142.862581] usb 8-6: SerialNumber: 100904010917
>> [  142.863146] em28xx: New device Elgato EyeTV Hybrid @ 480 Mbps
>> (0fd9:0018, interface 0, class 0)
>> [  142.863153] em28xx: Audio interface 0 found (Vendor Class)
>> [  142.863159] em28xx: Video interface 0 found: isoc
>> [  142.863163] em28xx: DVB interface 0 found: isoc
>> [  142.863993] em28xx: chip ID is em2884
>> [  142.927681] em2884 #0: EEPROM ID = 26 00 01 00, EEPROM hash = 
>> 0x1a01bca5
>> [  142.927688] em2884 #0: EEPROM info:
>> [  142.927694] em2884 #0:     microcode start address = 0x0004, boot
>> configuration = 0x01
>> [  142.935299] em2884 #0:     I2S audio, 5 sample rates
>> [  142.935306] em2884 #0:     500mA max power
>> [  142.935312] em2884 #0:     Table at offset 0x27, strings=0x1a78,
>> 0x1a92, 0x0e6a
>> [  142.935466] em2884 #0: Identified as Terratec Cinergy HTC Stick
>> (card=82)
>> [  142.935474] em2884 #0: analog set to isoc mode.
>> [  142.935478] em2884 #0: dvb set to isoc mode.
>> [  142.975149] em2884 #0: Binding audio extension
>> [  142.975152] em28xx-audio.c: Copyright (C) 2006 Markus Rechberger
>> [  142.975153] em28xx-audio.c: Copyright (C) 2007-2014 Mauro Carvalho
>> Chehab
>> [  142.975180] em2884 #0: Endpoint 0x83 high-speed on intf 0 alt 7
>> interval = 8, size 196
>> [  142.975184] em2884 #0: Number of URBs: 1, with 64 packets and 192 
>> size
>> [  142.975537] em2884 #0: Audio extension successfully initialized
>> [  142.975540] em28xx: Registered (Em28xx Audio Extension) extension
>> [  143.003553] WARNING: You are using an experimental version of the
>> media stack.
>> [  143.003554]     As the driver is backported to an older kernel, it
>> doesn't offer
>> [  143.003555]     enough quality for its usage in production.
>> [  143.003556]     Use it with care.
>> [  143.003556] Latest git patches (needed if you report a bug to
>> linux-media@vger.kernel.org):
>> [  143.003557]     135f9be9194cf7778eb73594aa55791b229cf27c [media]
>> dvb_frontend: start media pipeline while thread is running
>> [  143.003558]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media]
>> cx231xx: enable tuner->decoder link at videobuf start
>> [  143.003560]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media]
>> dvb-frontend: enable tuner link when the FE thread starts
>> [  143.010977] em2884 #0: Binding DVB extension
>> [  143.567751] usb 8-6: firmware: agent loaded
>> dvb-usb-terratec-htc-stick-drxk.fw into memory
>> [  143.585103] drxk: status = 0x639260d9
>> [  143.585113] drxk: detected a drx-3926k, spin A3, xtal 20.250 MHz
>> [  147.656822] drxk: DRXK driver version 0.9.4300
>> [  147.695203] drxk: frontend initialized.
>> [  147.764493] tda18271 11-0060: creating new instance
>> [  147.766552] TDA18271HD/C2 detected @ 11-0060
>
> I am not sure how certain the TDA18271HD detection is but when I look 
> at the images from here:
>
> http://www.linuxtv.org/wiki/index.php/Elgato_EyeTV_hybrid
>
> I don't see the tuner chip, so it could be a tda chip.
>
>> [  147.997562] DVB: registering new adapter (em2884 #0)
>> [  147.997571] usb 8-6: DVB: registering adapter 0 frontend 0 (DRXK
>> DVB-C DVB-T)...
>
> This sounds good.
>
>> [  147.998567] em2884 #0: DVB extension successfully initialized
>> [  147.998571] em28xx: Registered (Em28xx dvb Extension) extension
>> [  148.023086] WARNING: You are using an experimental version of the
>> media stack.
>> [  148.023087]     As the driver is backported to an older kernel, it
>> doesn't offer
>> [  148.023088]     enough quality for its usage in production.
>> [  148.023089]     Use it with care.
>> [  148.023089] Latest git patches (needed if you report a bug to
>> linux-media@vger.kernel.org):
>> [  148.023090]     135f9be9194cf7778eb73594aa55791b229cf27c [media]
>> dvb_frontend: start media pipeline while thread is running
>> [  148.023091]     0f0fa90bd035fa15106799b813d4f0315d99f47e [media]
>> cx231xx: enable tuner->decoder link at videobuf start
>> [  148.023092]     9239effd53d47e3cd9c653830c8465c0a3a427dc [media]
>> dvb-frontend: enable tuner link when the FE thread starts
>> [  148.034348] em2884 #0: Registering input extension
>> [  148.064107] Registered IR keymap rc-nec-terratec-cinergy-xs
>> [  148.064420] input: em28xx IR (em2884 #0) as
>> /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0/input11
>> [  148.064808] rc0: em28xx IR (em2884 #0) as
>> /devices/pci0000:00/0000:00:1d.7/usb8/8-6/rc/rc0
>> [  148.065325] em2884 #0: Input extension successfully initalized
>> [  148.065333] em28xx: Registered (Em28xx Input Extension) extension
>>
>> The dmesg shows that a TDA18271HD/C2 tuner has been detected.
>>
>> A w_scan produced a kernel Oops:
>> [  193.580994] BUG: unable to handle kernel NULL pointer dereference at
>> 0000000000000010
> [...]
>> [  193.581998] RIP: 0010:[<ffffffffa05a9289>] [<ffffffffa05a9289>]
>> media_entity_pipeline_start+0x30/0x2d2 [media]
>
> Try apply this patch:
>
> [PATCH v2] [media] dvb core: only start media entity if not NULL

Applying version 2 of that patch was successful. Creating a channels 
file with w_scan worked too and I'm able to watch TV. The remote control 
doesn't yet work. Next weekend I'll try to create a board file.

Thanks for the support.

>
> MvH
> Benjamin Larsson

Regards,
Gilles

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Linux TV support Elgato EyeTV hybrid
  2015-02-24 22:18                 ` Gilles Risch
@ 2015-02-26 21:19                   ` Gilles Risch
  0 siblings, 0 replies; 11+ messages in thread
From: Gilles Risch @ 2015-02-26 21:19 UTC (permalink / raw)
  To: linux-media

Hello,

watching TV now works fine, but I still have a strange behavior, when I 
connect the stick and open an application like Me-TV or VLC I get this 
message:
"Failed to get available frontend" or "There are no DVB devices available"
After running a w_scan it works, does someone know why?

Regards,
Gilles

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-26 21:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20 16:19 Linux TV support Elgato EyeTV hybrid Gilles Risch
2015-02-21 19:08 ` Olli Salonen
2015-02-22 13:47   ` Gilles Risch
2015-02-22 20:04     ` Benjamin Larsson
2015-02-22 21:29       ` Antti Palosaari
2015-02-23 20:24         ` Gilles Risch
2015-02-23 20:36           ` Benjamin Larsson
2015-02-23 22:54             ` Gilles Risch
2015-02-23 23:13               ` Benjamin Larsson
2015-02-24 22:18                 ` Gilles Risch
2015-02-26 21:19                   ` Gilles Risch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).