Ticket #678 (new defect)

Opened 2 years ago

Last modified 2 years ago

Trust USB Audio - incorrect config when plugged in

Reported by: Tweenk Owned by: lennart
Milestone: Component: daemon
Keywords: Cc:

Description

When I plug in a Trust USB Audio card, there is only one option available in the Gnome Sound Preferences dialog: Analog Stereo Input.

If I want to use the card in any of the useful modes (like Analog 7.1 Surround Output), I have to kill the pulseaudio daemon, otherwise it won't list other modes.

Attachments

pulse-log.txt.tar.gz (10.5 kB) - added by Tweenk 2 years ago.
Log of pulseaudio -vvvv

Change History

  Changed 2 years ago by lennart

Which version of PA is this? Which distribution is this?

Have you made sure that no other application is using the audio card and hence PA cannot access the audio device properly?

Please run pa in debug mode (either passing -vvvv or by setting log=debug in daemon.conf). Then provide the output this generates. This should tell use why PA cannot access the device for output.

  Changed 2 years ago by Tweenk

PulseAudio 0.9.19 (latest) Ubuntu Karmic with latest updates

Changed 2 years ago by Tweenk

Log of pulseaudio -vvvv

follow-up: ↓ 4   Changed 2 years ago by Tweenk

The attached file is a log of pulseaudio -vvvv. At line 979 I plug in the Trust USB Audio card.

in reply to: ↑ 3   Changed 2 years ago by tanuk

Replying to 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.

Note: See TracTickets for help on using tickets.