Skip to contentSkip to conversation

: Audiophile USB noisy analog capture

ALSA - driver 0001801 [email protected] 1 participant 1 message Mar 14, 2006

lore
Share & tools
lore
#0 lore raw

A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1801>
======================================================================

Reported By:                lemeur
Assigned To:                Clemens Ladisch
======================================================================
Project:                    ALSA - driver
Issue ID:                   1801
Category:                   USB - usb-audio
Reproducibility:            sometimes
Severity:                   major
Priority:                   normal
Status:                     assigned
Distribution:               
Kernel Version:             2.6.15.1-rt3
======================================================================
Date Submitted:             01-31-2006 16:04 CET
Last Modified:              03-14-2006 15:28 CET

======================================================================
Summary: Audiophile USB noisy analog capture
Description:
The audiophile usb analog capture interface seems to be unreliably initialized by the ALSA driver.

Just after bootup (or after an /etc/init.d/alsasound restart) the sound recorded on the analog capture port is sometimes either:
- Case A: saturated/distorted (as if it had a very high volume gain) or
- Case B: completly inaudible and loud white noised
or
- Case C: sometimes the sound is good

This issue affects:
* only the analog capture interface and not the SPDIF digital capture interface
* playback is always working
* both hw:1,1 (analog capture) and plughw:1,1 (analog cpautre with plug)

======================================================================

----------------------------------------------------------------------
lemeur - 02-07-06 10:23
----------------------------------------------------------------------
I've done more tests and found that Reproducibility is in fact "Always" if you follow these steps:
* boot the PC with Audiophile USB turned Off
* turn on the Audiophile USB and wait for ALSA to auto-setup it => At this point there is a one byte alignment shift (captured sound on the analog Input is distorted)
* restart alsa once by issuing "/etc/init.d/alsasound restart" => At this point there is a 2 bytes alignment shift (captured sound on the analog Input is white noise only)
* restart alsa once by issuing "/etc/init.d/alsasound restart" => At this point there is a 3 bytes alignment shift (captured sound on the analog Input is back to normal)

----------------------------------------------------------------------
lemeur - 03-14-06 15:28
----------------------------------------------------------------------
The bug was due to the way the snd-usb-audio driver initializes the audiophile usb device.

I've submitted a patch (now included into CVS). For this patch to take effect you should use the new "device_setup" module parameter as described in the included doc (alsa-kernel/Documentation/Audiophile-Usb.txt).

Thanks a lot to you guys who helped me troubleshooting and tracking down this issue (Takashi, Andreas, Sander, ...).

I suppose that this ticket can be closed now.

Issue History
Date Modified Username Field Change
======================================================================

01-31-06 16:04 lemeur         New Issue                                    
01-31-06 16:04 lemeur         Kernel Version            => 2.6.15.1-rt3    
02-02-06 14:20 lemeur         Issue Monitored: lemeur                      
02-07-06 10:23 lemeur         Note Added: 0007956                          
03-14-06 15:28 lemeur         Note Added: 0008482                          

======================================================================

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642