<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Pulseaudio not recognizing device 1 of multi-device USB soundcard"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92973">92973</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Pulseaudio not recognizing device 1 of multi-device USB soundcard
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>alsa
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>christian.leibig@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=119719" name="attach_119719" title="Pulseaudio verbose log">attachment 119719</a> <a href="attachment.cgi?id=119719&action=edit" title="Pulseaudio verbose log">[details]</a></span>
Pulseaudio verbose log
Hi,
I'm using a gaming USB DAC/Soundcard in Linux, the device is called "Astro
Mixamp Pro TR". It has a PC mode where it works as a soundcard, providing
multiple audio devices under a single system device. In my system it's assigned
the card id 2 and the name "Pro". Device 0 supports 2.0 Stereo, device 1
supports 5.1 surround.
There is no official Linux support for this card, however it works fine in
Alsa, so it should be able to work with PulseAudio.
Both devices work fine in Alsa:
$ aplay -l
[...]
card 2: Pro [Astro MixAmp Pro], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 2: Pro [Astro MixAmp Pro], device 1: USB Audio [USB Audio #1]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ pasuspender -- speaker-test -D plughw:Pro,0 -c2
$ speaker-test -D plughw:Pro,1 -c6
You can already see that for device 0 I need to use pasuspender because it is
claimed by pulseaudio. Device 1 however is not in use and can be accessed
directly by alsa.
My problem now is that all functionality of device 1 is not recognized in
pulseaudio, I can only choose stereo profiles in pavucontrol. From the
pulseaudio log it seems that device 1 is never really configured, although I'm
not sure what that would even look like. I have attached the very verbose
pulseaudio log when connecting the device.
>From the pulseaudio -vvvvv logfile, though this all seems to be trying to
configure only card 2 device 0:
[...]
D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 5.1
(analog-surround-51)
D: [pulseaudio] alsa-util.c: Trying surround51:2 with SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open surround51:2
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying surround51:2 without SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open surround51:2
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:surround51:2 with
SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open plug:surround51:2
I: [pulseaudio] pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:surround51:2 without
SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open plug:surround51:2
I: [pulseaudio] pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
I: [pulseaudio] alsa-util.c: Failed to set hardware parameters on
plug:surround51:2: Invalid argument
D: [pulseaudio] alsa-mixer.c: Caching failure to open output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:analog-mono - will not be able to open
output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:analog-stereo - will not be able to open
output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:iec958-stereo - will not be able to open
output:analog-surround-51
One thing I found is that aplay -L lists the following:
sysdefault:CARD=Pro
Astro MixAmp Pro, USB Audio
Default Audio Device
front:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
Front speakers
surround21:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Pro,DEV=0
Astro MixAmp Pro, USB Audio
IEC958 (S/PDIF) Digital Audio Output
Notice that all entries are for CARD=Pro and DEV=0, even the surround modes
which should belong to DEV=1. But trying to debug this further has not lead
anywhere, Alsa just doesn't give me enough information. If you have any tips on
that I'd be happy, too.
If you need more information just ask, and I'm happy for any help with this.
Been spending a couple of hours on this problem already and I'm not getting
further without some experts.
System is Gentoo Linux 64-bit, Pulseaudio version is 7.1.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>