diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-10-06 13:43:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-10-07 11:46:20 +0100 |
commit | 249ce1387b7739dbea2ac1a697e4bf1e37ec06b7 (patch) | |
tree | 04c94ebed2f16c4fcd730292557cfad6479ef4b4 /include/sound/soc.h | |
parent | da83fea6122ea637be5f960b95bb599561617319 (diff) | |
download | linux-249ce1387b7739dbea2ac1a697e4bf1e37ec06b7.tar.bz2 |
ASoC: dapm: Add support for virtual mixer controls
This patch adds support for virtual DAPM mixer controls. They are similar to
virtual DAPM enums. There is no hardware register backing the control, so
changing the control's value wont have any direct effect on the hardware. But it
still influences the DAPM graph by causing the path it sits on to be connected
or disconnected. This in turn can cause power changes for some of the widgets on
the DAPM graph, which will then modify the hardware state.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r-- | include/sound/soc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index d22cb0a06feb..b429dba57bf6 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1088,7 +1088,8 @@ struct snd_soc_pcm_runtime { /* mixer control */ struct soc_mixer_control { int min, max, platform_max; - unsigned int reg, rreg, shift, rshift; + int reg, rreg; + unsigned int shift, rshift; unsigned int invert:1; unsigned int autodisable:1; }; |