Bug 62911 - USB freeze on audio access
Summary: USB freeze on audio access
Status: NEW
Alias: None
Product: v4l-dvb
Classification: Unclassified
Component: em28xx (show other bugs)
Hardware: i386 Linux
: P1 high
Assignee: em28xx
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-13 11:10 UTC by dezifit
Modified: 2014-11-05 18:49 UTC (History)
4 users (show)

See Also:
Kernel Version: 3.12
Subsystem:
Regression: Yes
Bisected commit-id:


Attachments
Device initialization log with kernel 3.11.2, module debugging turned on (21.46 KB, text/plain)
2013-10-13 11:10 UTC, dezifit
Details
Device initialization with kernel 3.2, video and audio working (8.19 KB, text/plain)
2013-10-13 11:16 UTC, dezifit
Details

Description dezifit 2013-10-13 11:10:22 UTC
Created attachment 110861 [details]
Device initialization log with kernel 3.11.2, module debugging turned on

Accessing the virtual audio capture card (em28xx-alsa) of a WinTV HVR-900 with bus ID 2040:6502, type Hauppauge model 65018, rev B2C0, causes the xhci_hcd host to die:

Oct 12 19:49:13 dezifit kernel: [ 7439.983699] xc2028 9-0061: xc2028_get_reg 0002 called
Oct 12 19:49:13 dezifit kernel: [ 7439.984695] xc2028 9-0061: xc2028_get_reg 0001 called
Oct 12 19:49:13 dezifit kernel: [ 7439.985683] xc2028 9-0061: AFC is 0 Hz
Oct 12 19:49:13 dezifit kernel: [ 7439.985691] xc2028 9-0061: xc2028_signal called
Oct 12 19:49:13 dezifit kernel: [ 7439.985696] xc2028 9-0061: xc2028_get_reg 0002 called
Oct 12 19:49:13 dezifit kernel: [ 7439.986662] xc2028 9-0061: xc2028_get_reg 0040 called
Oct 12 19:49:13 dezifit kernel: [ 7439.987186] em2882/3 #0 process_frame_data_em28xx :VBI START HEADER !!!
Oct 12 19:49:13 dezifit kernel: [ 7439.987191] em2882/3 #0 get_next_buf :No active queue to serve
Oct 12 19:49:13 dezifit kernel: [ 7439.987387] xc2028 9-0061: signal strength is 24575
Oct 12 19:49:13 dezifit kernel: [ 7439.995194] em2882/3 #0 finish_buffer :[f6a27c00/0] wakeup
Oct 12 19:49:18 dezifit kernel: [ 7445.279420] xhci_hcd 0000:00:14.0: xHCI host not responding to stop endpoint command.
Oct 12 19:49:18 dezifit kernel: [ 7445.279430] xhci_hcd 0000:00:14.0: Assuming host is dying, halting host.
Oct 12 19:49:18 dezifit kernel: [ 7445.279519] xhci_hcd 0000:00:14.0: HC died; cleaning up
Oct 12 19:49:18 dezifit kernel: [ 7445.279529] em2882/3 #0: writing to i2c device at 0xb8 failed (error=-5)
Oct 12 19:49:18 dezifit kernel: [ 7445.279542] tvp5150 9-005c: i2c i/o error: rc == -5 (should be 1)

This happens with arecord/aplay as well as with mplayer. Analog TV video stream is displayed, tested with tvtime and qtv4l2, but as soon as em28xx-alsa is accessed, USB freezes.

The same device is working (video and audio) at least until kernel 3.2 on the same hardware (Intel DH87RL, BIOS RLH8710H.86A.0320.2013.0606.1802).
Comment 1 dezifit 2013-10-13 11:16:54 UTC
Created attachment 110871 [details]
Device initialization with kernel 3.2, video and audio working
Comment 2 Devin Heitmueller 2013-11-04 15:55:13 UTC
djh - you may wish to try a non-USB3 port.  There has been a history of problems with the newer xhci driver and it would be good to know whether you see the same behavior on a standard USB 2.0 port.
Comment 3 dezifit 2013-11-04 23:57:31 UTC
Tryed a USB2 port, but that makes no difference: if xhci is available, it is used by the kernel. If xhci is disabled in the kernel config, audio is working (sort of) on all ports: arecord/aplay gives sound (hurrah!), but as soon as the channel is changed in tvtime (or QTV4L2), sound is gone. It doesn't help to restart arecord/aplay, I have to terminate tvtime and completely restart again. Is this expected and proper behavior?

So your assumption is correct, the freeze is related to USB3. Should I file a USB bug report?
Comment 4 Alan 2013-11-13 13:34:37 UTC
It sounjds liek there are a couple of different problems there, do file the USB one as well
Comment 5 bexizuo 2014-11-05 17:30:19 UTC
Hi, 

did you fix the issue ? i'm having same tuner and same issue @ 87711
did you try : modprobe em28xx i2c_scan=1 
?
Comment 6 dezifit 2014-11-05 18:49:48 UTC
No, I switched to another device... which also has the ability to freeze the kernel :)

Note You need to log in before you can comment on or make changes to this bug.