Files
android_kernel_xiaomi_sm8450/include/sound
Peter Ujfalusi 637d3847ba ASoC: core: Support for limiting the volume
Add support for the core to limit the maximum volume on an
existing control.
The function will modify the soc_mixer_control.max value
of the given control.
The new value must be lower than the original one (chip maximum)

If there is a need for limiting a gain on a given control,
than machine drivers can do the following in their
snd_soc_dai_link.init function:

snd_soc_limit_volume(codec, "TPA6140A2 Headphone Playback Volume", 21);

This will modify the original 31 (chip maximum) to 21, so user
space will not be able to set the gain higher than this.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2010-05-07 16:41:33 +01:00
..
2009-01-21 15:12:40 +01:00
2009-09-21 15:45:07 +02:00
2009-11-06 14:32:06 +01:00
2010-01-14 09:18:48 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-01-31 17:29:13 +01:00
2009-01-31 00:13:56 +05:30
2007-10-16 15:58:10 +02:00
2009-02-05 09:17:50 +01:00
2006-03-22 10:24:57 +01:00
2008-11-17 11:45:39 +00:00
2008-04-29 19:01:56 +02:00
2006-01-03 12:18:06 +01:00
2007-02-09 09:01:14 +01:00
2005-04-16 15:20:36 -07:00
2009-12-28 16:17:57 +01:00
2010-02-12 10:31:06 +00:00
2009-12-18 13:06:47 +00:00
2010-04-30 16:12:44 +01:00
2009-11-05 18:10:25 +01:00