Re: Status of CM6631 USB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 12, 2013 at 07:59:52AM -0700, chris hermansen wrote:
> Mar 12 07:13:34 temuko kernel: [ 1221.640038] usb 1-3: new high-speed
> USB device number 2 using ehci-pci
> Mar 12 07:13:34 temuko kernel: [ 1221.797930] usb 1-3: config 1
> interface 8 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
> Mar 12 07:13:34 temuko kernel: [ 1221.797943] usb 1-3: config 1
> interface 8 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64

The device still thinks it should care about midi. I don't want to
completely drop the theory about interaction with things not really
supported. Here is another patch on top of the previous quirks-table.h
entry, ignoring the midi interface as well.

diff --git a/sound/usb/quirks-table.h b/sound/usb/quirks-table.h
index f2fcc78..66ade73 100644
--- a/sound/usb/quirks-table.h
+++ b/sound/usb/quirks-table.h
@@ -3270,6 +3270,18 @@ YAMAHA_DEVICE(0x7010, "UB99"),
 				.type = QUIRK_IGNORE_INTERFACE
 			},
 			{
+				.ifnum = 6,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 7,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
+				.ifnum = 8,
+				.type = QUIRK_IGNORE_INTERFACE
+			},
+			{
 				.ifnum = -1
 			}
 		}

This has the side effect of ignoring the USB HID interface as well, but
I don't think that does anything useful anyway.

> Mar 12 07:13:34 temuko kernel: [ 1221.800460] usb 1-3: New USB device
> found, idVendor=0d8c, idProduct=0304
> Mar 12 07:13:34 temuko kernel: [ 1221.800473] usb 1-3: New USB device
> strings: Mfr=1, Product=2, SerialNumber=0
> Mar 12 07:13:34 temuko kernel: [ 1221.800483] usb 1-3: Product: Schiit
> USB Interface
> Mar 12 07:13:34 temuko kernel: [ 1221.800492] usb 1-3: Manufacturer: CMEDIA
> Mar 12 07:13:35 temuko kernel: [ 1222.498545] 2:1: resetting device
> after change 48000 -> 192000
> Mar 12 07:13:35 temuko kernel: [ 1222.505601] 2:1:2: cannot set freq 192000 (v2)

It still complains when trying to set sample rate on iface 1 with
altsetting 2. This is not caused by the workaround, same thing is in the
kern.log from the unpatched kernel. This should be before any effect of
pulseaudio.

> Mar 12 07:13:35 temuko kernel: [ 1222.512659] usbcore: registered new
> interface driver usbhid
> Mar 12 07:13:35 temuko kernel: [ 1222.512669] usbhid: USB HID core driver
> Mar 12 07:13:35 temuko kernel: [ 1222.531972] usbcore: registered new
> interface driver snd-usb-audio
> Mar 12 07:13:35 temuko kernel: [ 1222.621073] input: CMEDIA Schiit USB
> Interface as /devices/pci0000:00/0000:00:13.2/usb1/1-3/1-3:1.6/input/input7
> Mar 12 07:13:35 temuko kernel: [ 1222.625014] hid-generic
> 0003:0D8C:0304.0001: input,hidraw0: USB HID v1.00 Device [CMEDIA
> Schiit USB Interface] on usb-0000:00:13.2-3/input6
> Mar 12 07:13:35 temuko kernel: [ 1222.740530] 2:1: resetting device
> after change 192000 -> 44100

This is pulseaudio setting the sample rate to 44.1k, even if it doesn't
try to use the usb sound card to output sound.

> Mar 12 07:21:36 temuko kernel: [ 1703.531565] 2:1: resetting device
> after change 44100 -> 96000
> 
> (96/24 sounds fine.  going to play both in same aplay session...)
> 
> Mar 12 07:22:33 temuko kernel: [ 1760.565034] current rate 96000 is
> different from the runtime rate 44100
> 
> (ah 44.1/16 sounds weird now!  alvin & chipmunks through fuzzbox weird)

After the sample rate is set to 44.1k, it reads back the previous rate
of 96k. The reset is then skipped, as the previous rate and the current
rate is equal, even if the target rate is different. If this was the
only issue, it could be avoided by comparing the previous rate and the
target rate when determining if the reset is necessary. But the
mangled rate read and the 'cannot get freq' in your previous run
suggests that there are other issues.

> What is my conclusion?  That I was unable to make it misbehave after I
> turned off pulse audio...
> 
> I will keep playing with it on and off over the next little while and
> report back.

Please do, I'm not able to see how pulseaudio should be relevant to this
issue.


Torstein

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user


[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux