alsa-mixer: add mixer handling to the fallback stereo case
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 8 Sep 2017 12:10:41 +0000 (15:10 +0300)
committerArun Raghavan <arun@arunraghavan.net>
Wed, 13 Sep 2017 02:50:05 +0000 (08:20 +0530)
commitb4d1c298a28f313d8ca72604ca05dfa68cc06e69
tree0a6a743fc2f60beaa977df727baec5ad0fc486bb
parentf30203c2d43eb16d76f25d87e1980e34a60753cf
alsa-mixer: add mixer handling to the fallback stereo case

Some sound cards don't have any alsa-lib configuration, but they used to
work well enough up to PulseAudio 10. PulseAudio 11 stopped using "hw:0"
for the analog-stereo mapping, and instead defined it as a fallback
mapping without any mixer handling. As a result, switching between
headphones and speakers stopped working without changing the mixer
settings manually at least on Toshiba Chromebook 2. This patch adds the
mixer handling back to the fallback mapping.

I also renamed "unknown-stereo" to "stereo-fallback", because I like
that name more.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=102560
src/modules/alsa/alsa-mixer.c
src/modules/alsa/mixer/profile-sets/default.conf