Re: C-Media USB speakers do not work on AMD USB 2.0 port

2016-11-09 Thread sonofagun



Good question.  I don't know the answer; it may be hidden in a part
of the system log that you didn't post.
Nothing unusual was found on the log. If you need more information, just 
tell me what you need.



This is a known bug in the 4.8 kernel, caused by changes to the timer
code.  A workaround and a proper fix have both been added to the 4.9-rc
series and will be part of the next 4.8.stable release.
Thank you Alan for analyzing the problem. At least it is already fixed 
so I will just wait for 4.9 or newer 4.8. Since I use those speakers 
only for testing, waiting is not a problem. Once they work I will inform 
you.

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: C-Media USB speakers do not work on AMD USB 2.0 port

2016-11-09 Thread Alan Stern
On Tue, 8 Nov 2016 sonofa...@openmailbox.org wrote:

> My C-Media USB speakers do not work on Ubuntu 16.10 with 4.8.0 on my AMD 
> KABINI USB 2.0 port. Using Ubuntu 16.04 with 4.4.0 on the same machine 
> at the same port with the same cable fixes the issue.
> If I put the speakers on any USB 3.0 connector then it works both in 
> 16.10 and 16.04!!
> 
> Why do I get a different driver on the same port with a different 
> kernel?

Good question.  I don't know the answer; it may be hidden in a part 
of the system log that you didn't post.

> Here is what gets logged normally,
> 
> on Ubuntu 16.10:
> [   50.252683] usb 4-1: new full-speed USB device number 2 using 
> ohci-pci
> [   50.438712] usb 4-1: New USB device found, idVendor=0d8c, 
> idProduct=0103
> [   50.438719] usb 4-1: New USB device strings: Mfr=1, Product=2, 
> SerialNumber=0
> [   50.438725] usb 4-1: Product: C-Media USB Audio
> [   50.438731] usb 4-1: Manufacturer: C-Media INC.
> [   50.542693] usb 4-1: Warning! Unlikely big volume range (=9472), 
> cval->res is probably wrong.
> [   50.542700] usb 4-1: [13] FU [PCM Playback Volume] ch = 2, val = 
> -9473/-1/1
> [   50.543246] usbcore: registered new interface driver snd-usb-audio
> [   62.867422] ohci-pci :00:13.0: HcDoneHead not written back; 
> disabled
> [   62.867435] ohci-pci :00:13.0: HC died; cleaning up
> [   62.867489] usb 4-1: USB disconnect, device number 2

This is a known bug in the 4.8 kernel, caused by changes to the timer 
code.  A workaround and a proper fix have both been added to the 4.9-rc 
series and will be part of the next 4.8.stable release.

Alan Stern


> on Ubuntu 16.04:
> [ 1168.662575] usb 7-4: new full-speed USB device number 4 using
> xhci_hcd
> [ 1168.833911] usb 7-4: New USB device found, idVendor=0d8c,
> idProduct=0103
> [ 1168.833921] usb 7-4: New USB device strings: Mfr=1, Product=2,
> SerialNumber=0
> [ 1168.833927] usb 7-4: Product: C-Media USB Audio
> [ 1168.833931] usb 7-4: Manufacturer: C-Media INC.
> [ 1168.867900] usb 7-4: Warning! Unlikely big volume range (=9472),
> cval->res is probably wrong.
> [ 1168.867910] usb 7-4: [13] FU [PCM Playback Volume] ch = 2, val =
> -9473/-1/1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


C-Media USB speakers do not work on AMD USB 2.0 port

2016-11-08 Thread sonofagun


My C-Media USB speakers do not work on Ubuntu 16.10 with 4.8.0 on my AMD 
KABINI USB 2.0 port. Using Ubuntu 16.04 with 4.4.0 on the same machine 
at the same port with the same cable fixes the issue.
If I put the speakers on any USB 3.0 connector then it works both in 
16.10 and 16.04!!


Why do I get a different driver on the same port with a different 
kernel?


Here is what gets logged normally,

on Ubuntu 16.10:
[   50.252683] usb 4-1: new full-speed USB device number 2 using 
ohci-pci
[   50.438712] usb 4-1: New USB device found, idVendor=0d8c, 
idProduct=0103
[   50.438719] usb 4-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0

[   50.438725] usb 4-1: Product: C-Media USB Audio
[   50.438731] usb 4-1: Manufacturer: C-Media INC.
[   50.542693] usb 4-1: Warning! Unlikely big volume range (=9472), 
cval->res is probably wrong.
[   50.542700] usb 4-1: [13] FU [PCM Playback Volume] ch = 2, val = 
-9473/-1/1

[   50.543246] usbcore: registered new interface driver snd-usb-audio
[   62.867422] ohci-pci :00:13.0: HcDoneHead not written back; 
disabled

[   62.867435] ohci-pci :00:13.0: HC died; cleaning up
[   62.867489] usb 4-1: USB disconnect, device number 2

on Ubuntu 16.04:
[ 1168.662575] usb 7-4: new full-speed USB device number 4 using 
xhci_hcd
[ 1168.833911] usb 7-4: New USB device found, idVendor=0d8c, 
idProduct=0103
[ 1168.833921] usb 7-4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0

[ 1168.833927] usb 7-4: Product: C-Media USB Audio
[ 1168.833931] usb 7-4: Manufacturer: C-Media INC.
[ 1168.867900] usb 7-4: Warning! Unlikely big volume range (=9472), 
cval->res is probably wrong.
[ 1168.867910] usb 7-4: [13] FU [PCM Playback Volume] ch = 2, val = 
-9473/-1/1



Here is what gets logged with dynamic debug on Ubuntu 16.10:
[  142.470105] hub 7-0:1.0: state 7 ports 4 chg  evt 0010
[  142.470195] usb usb7-port4: status 0100, change 0001, 12 Mb/s
[  142.470205] usb 7-4: USB disconnect, device number 2
[  142.470211] usb 7-4: unregistering device
[  142.470219] usb 7-4: unregistering interface 7-4:1.0
[  142.471046] usb 7-4: unregistering interface 7-4:1.1
[  142.471156] usb 7-4: usb_disable_device nuking all URBs
[  142.617718] usb usb7-port4: debounce total 100ms stable 100ms status 
0x100

[  142.617740] hub 7-0:1.0: hub_suspend
[  142.617758] usb usb7: bus auto-suspend, wakeup 1
[  146.469232] usb usb2: usb wakeup-resume
[  146.469244] usb usb2: usb auto-resume
[  146.469266] hub 2-0:1.0: hub_resume
[  146.469317] usb usb2-port1: status 0501 change 0001
[  146.577174] hub 2-0:1.0: state 7 ports 4 chg 0002 evt 
[  146.577218] usb usb2-port1: status 0501, change , 480 Mb/s
[  146.637229] hub 2-0:1.0: port_wait_reset: err = -16
[  146.637232] usb usb4: usb wakeup-resume
[  146.637236] usb usb2-port1: not enabled, trying reset again...
[  146.637240] usb usb4: usb auto-resume
[  146.733258] hub 4-0:1.0: hub_resume
[  146.733297] usb usb4-port1: status 0101 change 0001
[  146.841378] hub 4-0:1.0: state 7 ports 4 chg 0002 evt 
[  146.841419] usb usb4-port1: status 0101, change , 12 Mb/s
[  146.846199] hub 2-0:1.0: state 7 ports 4 chg  evt 0002
[  146.846241] usb usb2-port1: status 0100, change 0001, 12 Mb/s
[  146.989494] usb usb2-port1: debounce total 100ms stable 100ms status 
0x100

[  146.989521] hub 2-0:1.0: hub_suspend
[  146.989549] usb usb2: bus auto-suspend, wakeup 1
[  147.017493] usb 4-1: new full-speed USB device number 2 using 
ohci-pci

[  147.193619] usb 4-1: ep0 maxpacket = 8
[  147.197803] usb 4-1: skipped 4 descriptors after interface
[  147.197811] usb 4-1: skipped 2 descriptors after interface
[  147.197819] usb 4-1: skipped 1 descriptor after endpoint
[  147.199795] usb 4-1: default language 0x0409
[  147.203795] usb 4-1: udev 2, busnum 4, minor = 385
[  147.203803] usb 4-1: New USB device found, idVendor=0d8c, 
idProduct=0103
[  147.203809] usb 4-1: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0

[  147.203815] usb 4-1: Product: C-Media USB Audio
[  147.203820] usb 4-1: Manufacturer: C-Media INC.
[  147.204195] usb 4-1: usb_probe_device
[  147.204205] usb 4-1: configuration #1 chosen from 1 choice
[  147.205806] usb 4-1: adding 4-1:1.0 (config #1, interface 0)
[  147.205977] snd-usb-audio 4-1:1.0: usb_probe_interface
[  147.205990] snd-usb-audio 4-1:1.0: usb_probe_interface - got id
[  147.231803] usb 4-1: Warning! Unlikely big volume range (=9472), 
cval->res is probably wrong.
[  147.231812] usb 4-1: [13] FU [PCM Playback Volume] ch = 2, val = 
-9473/-1/1

[  147.232567] usb 4-1: adding 4-1:1.1 (config #1, interface 1)
[  147.232808] hub 4-0:1.0: state 7 ports 4 chg  evt 0002
[  150.127718] ohci-pci :00:13.0: HcDoneHead not written back; 
disabled

[  150.127735] ohci-pci :00:13.0: HC died; cleaning up
[  150.127833] hub 4-0:1.0: state 0 ports 4 chg  evt 
[  150.127846] usb 4-1: USB disconnect, device number 2
[  150.127852] usb 4-1: unregistering device
[  150.127860] usb 4-1: