Skip to contentSkip to conversation

C-Media / usb device bug ?

DISCUSSION Pablo Yaggi 2 participants 3 messages Sep 18, 2006 – Sep 19, 2006

lore
Share & tools
lore
#0 lore raw

(sorry if this come twice, i think i miss posted first one)

Hi,
I'm working in a multi-capture application with alsa and i discovered
if i attach two "c-media usb headphone set" adapters to an usb hub which is attached to my computer when i try to read from the two devices the first one read (also open) errors with (-77) bad file descriptor status and the other one keep working. When i attach the two devices directly to the usb connectors (without hub) all works fine, the two devices can be read at the same time. I proved Hubs version 1.0 and 2.0 .

Regards
Pablo

This is the /proc/asound/cards when i attach them to the hub:
(yes i also have an intel device)

0 [ICH6 ]: ICH4 - Intel ICH6

                      Intel ICH6 with AD1980 at 0xd0201000, irq 20
 1 [default        ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set   at usb-0000:00:1d.1-1.3,
full speed
 2 [default_1      ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set   at usb-0000:00:1d.1-1.2,

full speed

and this is when i attach them directly to the computer:
0 [ICH6 ]: ICH4 - Intel ICH6

                      Intel ICH6 with AD1980 at 0xd0201000, irq 20
 1 [default        ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set   at usb-0000:00:1d.0-1,
full speed
 2 [default_1      ]: USB-Audio - C-Media USB Headphone Set
                      C-Media USB Headphone Set   at usb-0000:00:1d.3-2,

full speed

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#1 lore raw
Quoted 7 lines · Pablo Yaggi

I'm working in a multi-capture application with alsa and i discovered
if i attach two "c-media usb headphone set" adapters to an usb hub which is attached to my computer when i try to read from the two devices the first one read (also open) errors with (-77) bad file descriptor status and the other one keep working. When i attach the two devices directly to the usb connectors (without hub) all works fine, the two devices can be read at the same time.

What kernel version are you using?

The EHCI transaction translator code (which is responsible for moving audio data through an high speed hub) got a bugfix in 2.6.17, but still artificially limits the bandwidth. It will be rewritten in 2.6.18.

HTH
Clemens

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

#2 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 7 lines · Pablo Yaggi

I'm working in a multi-capture application with alsa and i discovered
if i attach two "c-media usb headphone set" adapters to an usb hub which is attached to my computer when i try to read from the two devices the first one read (also open) errors with (-77) bad file descriptor status and the other one keep working. When i attach the two devices directly to the usb connectors (without hub) all works fine, the two devices can be read at the same time.

What kernel version are you using?

Quoted 8 lines

The EHCI transaction translator code (which is responsible for moving audio data through an high speed hub) got a bugfix in 2.6.17, but still artificially limits the bandwidth. It will be rewritten in 2.6.18.

HTH
Clemens

I tested it on 2.6.15, 2.6.16 and 2.6.17,
so you think the problem is EHCI ?  is there anyway to check it ? is it yet in rewriting process ?
Thank's
Pablo

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV