Re: USB sound card device complains about "error -28: not enough bandwidth" only on specific PC hardware, seems not kernel specific

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

 




Hello Alan,

Ok... I've uploaded the DEBUG enabled 3.5.2 kernel logs as requested and I'm working on getting the USB snooping going on the old Athlon 1.1Ghz Windows XP machine (yuk!).

   http://www.trinityos.com/SCRATCH/


Regardless of getting this possible high-speed hack working, could you explain a bit by what you meant by:

"The problem is caused by the ehci-hcd driver's not-so-great support for scheduling periodic transfers to full-speed devices. That's why the HP and Dell systems have no trouble but your Gateway laptop can't handle it. "

To me if I'm doing the math right, 2 (two stereo channels) * 24 (bit) * 96,000 (sampling) == 4.6Mb/s which is only a third of the USB port's speed when even running in FULL speed mode! Why would it be complaining when there isn't anything else on this bus? What are the chances when/if this EHCI driver will get some fixes for this issue?


Btw, this might be helpful but the "quisk" program I'm using has a portaudio (not PulseAudio) script to show devices and their abilities. The onboard soundcard works all the way up to 192Khz but it's horribly noisy and ironically, it's lowpass/highpass filtering seems to only support ~70Khz worth of bandwidth though the chip can do far better! Lame. Guess that's what one gets for a $400 laptop these days.

$ python portaudio.py
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Open 0
Version 1899
Version Text PortAudio V19-devel (built Jan 17 2012 04:03:50)
NumDev 12
Device  0, host api ALSA
    Name HDA Intel PCH: ALC269VB Analog (hw:0,0)
    Max inputs 2,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  1, host api ALSA
    Name HDA Intel PCH: HDMI 0 (hw:0,3)
    Max inputs 0,  Max outputs 8
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  2, host api ALSA
    Name SB X-Fi Surround 5.1 Pro: USB Audio (hw:1,0)
    Max inputs 2,  Max outputs 6
    Speeds for 2-channel paInt32:   48000   96000
Device  3, host api ALSA
    Name SB X-Fi Surround 5.1 Pro: USB Audio #1 (hw:1,1)
    Max inputs 0,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000
Device  4, host api ALSA
    Name front
    Max inputs 0,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  5, host api ALSA
    Name surround40
    Max inputs 0,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  6, host api ALSA
    Name surround51
    Max inputs 0,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  7, host api ALSA
    Name surround71
    Max inputs 0,  Max outputs 2
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  8, host api ALSA
    Name hdmi
    Max inputs 0,  Max outputs 8
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device  9, host api ALSA
    Name pulse
    Max inputs 32,  Max outputs 32
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Device 10, host api ALSA
    Name dmix
    Max inputs 0,  Max outputs 2

.... lots of the following:
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1669
Expression 'AlsaOpen( hostApi, parameters, streamDir, &pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1701

... and then
    Speeds for 2-channel paInt32:
Device 11, host api ALSA
    Name default
    Max inputs 32,  Max outputs 32
    Speeds for 2-channel paInt32:   44100   48000   96000   192000
Close 0


--David


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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux