]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Atom: flip logic for gain Switch
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 18 Dec 2015 02:35:48 +0000 (20:35 -0600)
committerMark Brown <broonie@kernel.org>
Sat, 19 Dec 2015 11:49:56 +0000 (11:49 +0000)
commit2d97130ce932f6bc9682b3e25fa1d1b50f70b572
treec00da36e07ef2a0e755ef1a56a32f82c40315aca
parentbdf6666b4494b43c385b35ccb168b2af7d14c7dc
ASoC: Intel: Atom: flip logic for gain Switch

The upstreamed code modified the control names from Mute to
Switch without changing the logic. To get audio working the Switch
needs to be off which isn't aligned with normal ALSA conventions.

Inverting the logic now so that Switch Off means mute and Switch On
means active audio using the specific volume setting.

Signed-off-by: Sebastien Guiriec <sebastien.guiriec@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst-atom-controls.c