uaudio - distorted output

Alexander Leidinger Alexander at leidinger.net
Mon Oct 9 19:48:23 UTC 2017


Quoting Hans Petter Selasky <hps at selasky.org> (from Mon, 9 Oct 2017  
21:28:08 +0200):

> On 10/09/17 21:05, Alexander Leidinger wrote:
>> Quoting Hans Petter Selasky <hps at selasky.org> (from Sun, 8 Oct 2017  
>> 23:44:27 +0200):
>>
>>> Can you trace that with:
>>>
>>> usbdump -i usbusX -f Y -v
>>>
>>> ?
>>>
>>> What rates are supported. Can you try 48000 Hz?
>>
>> 44100 and 48000. The attached usbdumps are with 48000 Hz. The "1"  
>> is with 32bit audio output, the "2" with 16bit audio output.
>>
>> This is what is reported in dmesg:
>> ---snip---
>> uaudio0 on uhub3
>> uaudio0: <Creative Technology SB Live 24-bit External, class 0/0,  
>> rev 1.10/1.00, addr 2> on usbus5
>> uaudio0: Play: 48000 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer.
>> uaudio0: Play: 44100 Hz, 4 ch, 24-bit S-LE PCM format, 2x8ms buffer.
>> uaudio0: Record: 96000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
>> uaudio0: Record: 48000 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
>> uaudio0: Record: 44100 Hz, 2 ch, 24-bit S-LE PCM format, 2x8ms buffer.
>> uaudio0: No MIDI sequencer.
>> pcm2: <USB audio> on uaudio0
>> uaudio0: No HID volume keys found.
>> ---snip---
>>
>> As this is a 5.1 device, I would expect 6 channels, not 4 (the  
>> config descriptor dump is in my initial mail).
>>
>
> Hi,
>
> Is this device connected directly to the computer or via a USB HUB?

Directly, see below for more info.

> Can you show all USB devices on this computer?

# usbconfig
ugen6.1: <Intel UHCI root HUB> at usbus6, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen3.1: <Intel EHCI root HUB> at usbus3, cfg=0 md=HOST spd=HIGH  
(480Mbps) pwr=SAVE (0mA)
ugen1.1: <Intel UHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen4.1: <Intel UHCI root HUB> at usbus4, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen7.1: <Intel EHCI root HUB> at usbus7, cfg=0 md=HOST spd=HIGH  
(480Mbps) pwr=SAVE (0mA)
ugen0.1: <Intel UHCI root HUB> at usbus0, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen5.1: <Intel UHCI root HUB> at usbus5, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen2.1: <Intel UHCI root HUB> at usbus2, cfg=0 md=HOST spd=FULL  
(12Mbps) pwr=SAVE (0mA)
ugen1.2: <Logitech Logitech BT Mini-Receiver> at usbus1, cfg=0 md=HOST  
spd=FULL (12Mbps) pwr=SAVE (100mA)
ugen2.2: <American Megatrends Inc. Virtual Keyboard and Mouse> at  
usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen1.3: <Logitech Logitech BT Mini-Receiver> at usbus1, cfg=0 md=HOST  
spd=FULL (12Mbps) pwr=ON (98mA)
ugen1.4: <Logitech Logitech BT Mini-Receiver> at usbus1, cfg=0 md=HOST  
spd=FULL (12Mbps) pwr=ON (98mA)
ugen5.2: <Creative Technology SB Live 24-bit External> at usbus5,  
cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (308mA)


> I suspect your device is connected via USB High-speed HUB and I  
> think the payload per millisecond is a bit too much for the  
> so-called High-Speed to Full-Speed transaction translator  
> configuration FreeBSD is using. You need to connect the device  
> directly to an XHCI, UHCI or OHCI controller for it work properly.

The uaudio device is attached directly to the USB connectors of the  
case. The connectors of the case are directly connected to the PINs on  
the mainboard. So this means the mainboard "exports" more FULL speed  
ports than HIGH speed ports and I just have to find the right  
connector and it will work much better?

I will search the connectors for ugen3 and ugen7 tomorrow and report  
back how it works (and maybe look again at the issue I had changing  
the number of channels...).

> If you are using multi channel audio equipment with 24-bits, try to  
> avoid FULL-speed ones!

Well... first I want to get the 2 channel 16bit case working... then I  
will have a look at extending this to 5.1 (most probably 16bit, that's  
enough to watch action movies).

Bye,
Alexander.

-- 
http://www.Leidinger.net Alexander at Leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.org    netchild at FreeBSD.org  : PGP 0x8F31830F9F2772BF
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digitale PGP-Signatur
URL: <http://lists.freebsd.org/pipermail/freebsd-usb/attachments/20171009/5f08c4c4/attachment.sig>


More information about the freebsd-usb mailing list