All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] dmix reports channel layouts that are not supported
@ 2014-12-11 14:48 wm4
  0 siblings, 0 replies; only message in thread
From: wm4 @ 2014-12-11 14:48 UTC (permalink / raw)
  To: alsa-devel

Opening a dmix device (i.e. "default" on most distros), and calling
snd_pcm_query_chmaps() on it, returns some surround audio channel maps,
for example 5.1. Trying to set it with snd_pcm_set_chmap() will fail
with ENXIO. Only setting the stereo channel map succeeds, and I suppose
dmix supports stereo only.

I think this should be considered a bug. dmix probably merely passes
through the channel layout of the underlying device, even though it
supports stereo only - this behavior makes no sense at all. Any device
should strictly report supported channel maps only.

To make matters worse, if you intend to play 5.1, and dmix fails in
the manner described above, then it will report "FL FR NA NA NA NA" as
channel map. This would require the application to pad stereo with 4
channels of silence, which requires extra code and is generally just
stupid.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-11 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 14:48 [BUG] dmix reports channel layouts that are not supported wm4

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.