<p><br>
><br>
> Add surround-21 as a alias to set up a 2.1 channel map.<br>
><br>
> Signed-off-by: David Henningsson <<a href="mailto:david.henningsson@canonical.com">david.henningsson@canonical.com</a>><br>
> ---<br>
> src/pulse/channelmap.c | 6 ++++++<br>
> 1 file changed, 6 insertions(+)<br>
><br>
> diff --git a/src/pulse/channelmap.c b/src/pulse/channelmap.c<br>
> index 72e4130..e1b173a 100644<br>
> --- a/src/pulse/channelmap.c<br>
> +++ b/src/pulse/channelmap.c<br>
> @@ -536,6 +536,12 @@ pa_channel_map *pa_channel_map_parse(pa_channel_map *rmap, const char *s) {<br>
> map.map[0] = PA_CHANNEL_POSITION_LEFT;<br>
> map.map[1] = PA_CHANNEL_POSITION_RIGHT;<br>
> goto finish;<br>
> + } else if (pa_streq(s, "surround-21")) {<br>
> + map.channels = 3;<br>
> + map.map[0] = PA_CHANNEL_POSITION_FRONT_LEFT;<br>
> + map.map[1] = PA_CHANNEL_POSITION_FRONT_RIGHT;<br>
> + map.map[2] = PA_CHANNEL_POSITION_LFE;<br>
> + goto finish;<br><br></p>
<p><a href="https://launchpadlibrarian.net/176239734/pulseverbose.log">https://launchpadlibrarian.net/176239734/pulseverbose.log</a></p>
<p>Seem bug in alsa lib as device was keep busy after "Found no matching channel map"</p>
<p>101| 0.000) D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-41<br>
( 0.101| 0.000) D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 4.1 (analog-surround-41)<br>
( 0.101| 0.000) D: [pulseaudio] alsa-util.c: Trying surround41:0 with SND_PCM_NO_AUTO_FORMAT ...<br>
( 0.101| 0.000) I: [pulseaudio] (alsa-lib)pcm_route.c: Found no matching channel map<br>
( 0.101| 0.000) I: [pulseaudio] alsa-util.c: Error opening PCM device surround41:0: Invalid argument<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Caching failure to open output:analog-surround-41<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping profile output:analog-surround-41+input:analog-mono - will not be able to open output:analog-surround-41<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping profile output:analog-surround-41+input:analog-stereo - will not be able to open output:analog-surround-41<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Skipping profile output:analog-surround-41+input:iec958-stereo - will not be able to open output:analog-surround-41<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-50<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 5.0 (analog-surround-50)<br>
( 0.102| 0.000) D: [pulseaudio] alsa-util.c: Trying surround50:0 with SND_PCM_NO_AUTO_FORMAT ...<br>
( 0.102| 0.000) I: [pulseaudio] (alsa-lib)pcm_hw.c: open '/dev/snd/pcmC0D0p' failed (-16)<br>
( 0.102| 0.000) I: [pulseaudio] alsa-util.c: Error opening PCM device surround50:0: Device or resource busy<br>
( 0.102| 0.000) D: [pulseaudio] alsa-mixer.c: Caching failure to open output:analog-surround-50<br>
</p>