[pulseaudio-tickets] [PulseAudio] #678: Trust USB Audio - incorrect config when plugged in

PulseAudio trac-noreply at tango.0pointer.de
Fri Feb 26 23:06:07 PST 2010


#678: Trust USB Audio - incorrect config when plugged in
---------------------+------------------------------------------------------
  Reporter:  Tweenk  |       Owner:  lennart
      Type:  defect  |      Status:  new    
 Milestone:          |   Component:  daemon 
Resolution:          |    Keywords:         
---------------------+------------------------------------------------------

Comment(by tanuk):

 Replying to [comment:3 Tweenk]:
 > The attached file is a log of pulseaudio -vvvv. At line 979 I plug in
 the Trust USB Audio card.

 Lines 1060-1080:

 {{{
 D: alsa-mixer.c: Looking at profile output:analog-stereo
 D: alsa-mixer.c: Checking for playback on Analog Stereo (analog-stereo)
 D: alsa-util.c: Trying front:1 with SND_PCM_NO_AUTO_FORMAT ...
 I: (alsa-lib)confmisc.c: Unable to find definition 'cards.USB-
 Audio.pcm.front.0:CARD=1'
 I: (alsa-lib)conf.c: function snd_func_refer returned error: No such file
 or directory
 I: (alsa-lib)conf.c: Evaluate error: No such file or directory
 I: (alsa-lib)pcm.c: Unknown PCM front:1
 I: alsa-util.c: Error opening PCM device front:1: No such file or
 directory
 D: alsa-util.c: Trying hw:1 with SND_PCM_NO_AUTO_FORMAT ...
 D: alsa-util.c: Managed to open hw:1
 D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
 D: alsa-util.c: Trying hw:1 without SND_PCM_NO_AUTO_FORMAT ...
 D: alsa-util.c: Managed to open hw:1
 D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
 D: alsa-util.c: Trying plug:hw:1 with SND_PCM_NO_AUTO_FORMAT ...
 D: alsa-util.c: Managed to open plug:hw:1
 D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
 D: alsa-util.c: Trying plug:hw:1 without SND_PCM_NO_AUTO_FORMAT ...
 D: alsa-util.c: Managed to open plug:hw:1
 D: alsa-util.c: snd_pcm_hw_params_set_channels(2) failed: Invalid argument
 I: alsa-util.c: Failed to set hardware parameters on plug:hw:1: Invalid
 argument
 }}}

 The alsa driver is broken: it doesn't provide the "front" device. In case
 of stereo output, Pulseaudio tries "hw" and "plug:hw" as fallbacks, but
 they don't work either, because snd_pcm_hw_params_set_channels() fails.
 This is presumably a driver bug too.

 Since you mentioned 7.1 surround output, here are the lines 1325-1330:

 {{{
 D: alsa-mixer.c: Looking at profile output:analog-surround-71
 D: alsa-mixer.c: Checking for playback on Analog Surround 7.1 (analog-
 surround-71)
 D: alsa-util.c: Trying surround71:1 with SND_PCM_NO_AUTO_FORMAT ...
 I: (alsa-lib)conf.c: Unknown parameters 1
 I: (alsa-lib)pcm.c: Unknown PCM surround71:1
 I: alsa-util.c: Error opening PCM device surround71:1: Invalid argument
 }}}

 It seems that the driver provides the "surround71" device as it should,
 but it doesn't handle the card index parameter. Again, this is a bug in
 the alsa driver as far as I can tell.

-- 
Ticket URL: <http://pulseaudio.org/ticket/678#comment:4>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list