alsa: properly convert position-less channels from ALSA
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 21 Mar 2016 15:34:37 +0000 (16:34 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Tue, 12 Apr 2016 18:48:30 +0000 (14:48 -0400)
commit6e7fa6659f3dbf0efc3d4aaeb2186d4e52a7ee70
tree11c12c56c614583e2f2e7b03ab96df4e54003df4
parent7c5dfd713c4d352e6eddbcbabae21d389a8b83e2
alsa: properly convert position-less channels from ALSA

The only way for ALSA to expose a position-less multi channels is to
return an array full of SND_CHMAP_MONO. Converting this to a
GST_AUDIO_CHANNEL_POSITION_MONO array would be invalid as
GST_AUDIO_CHANNEL_POSITION_MONO is meant to be used only with one
channel.

Fix this by using GST_AUDIO_CHANNEL_POSITION_NONE which is meant to be
used for position-less channels.

https://bugzilla.gnome.org/show_bug.cgi?id=763799
ext/alsa/gstalsa.c