Skip to contentSkip to conversation

Help Troubleshooting usbaudio.c for bugID 1801

DISCUSSION Thibault LE MEUR 1 participant 1 message Feb 3, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to troubleshoot bugid 1801 (Audiophile USB analog capture) where the snd-usb-audio is not alligned on the "3-byte-words" audio stream while reading from the capture interface.

For instance Audio samples (lets call them S1, S2 S3) are 3 bytes long (lets call each of them A, B, C).

Instead of reading:
S1 = S1A S1B S1C
S2 = S2A S2B S2C
S3 = S3A S3B S3C

Snd-usb-audio skips the first byte and reads:
S1 = S1B S1C S2A
S2 = S2B S2C S3A
S3 = S3B S3C ...

I can try to debug this (and even try to patch) but I have no idea as to where begin my investigation:
* Is this bug due to the way snd-usb-audio reads samples or to a synchronization issue while initializing the device?
- Indeed, on this device the Analog Capture function can be addressed by
several Interface/AltSettings which differ only from their synchronization SYNC/ASYNC property
* Is there any debug traces I could add to the usbaudio.c code in order to figure out what's wrong?
- can you point me to the relevant lines in usbaudio.c ?

Thanks in advance for any tips/idea you could give me in order to help identify this issue.

Thibault

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642