From: wm4 <nfxjfg@googlemail.com>
To: alsa-devel@alsa-project.org
Subject: [BUG] dmix reports channel layouts that are not supported
Date: Thu, 11 Dec 2014 15:48:33 +0100 [thread overview]
Message-ID: <20141211154833.66054938@debian> (raw)
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.
reply other threads:[~2014-12-11 14:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141211154833.66054938@debian \
--to=nfxjfg@googlemail.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.