diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-18 21:29:31 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-08-18 21:29:31 +0100 |
commit | b5ab887e6dfa12c32ef39827da47d5d021320a3f (patch) | |
tree | 0e5de4041f9b5154f912d211a89a911f750d3cf8 /sound/soc/codecs | |
parent | 431f7771774e8f37dde5acb3f7c4c5f6fa1109e3 (diff) | |
download | linux-b5ab887e6dfa12c32ef39827da47d5d021320a3f.tar.gz linux-b5ab887e6dfa12c32ef39827da47d5d021320a3f.tar.bz2 linux-b5ab887e6dfa12c32ef39827da47d5d021320a3f.zip |
ASoC: Add TLV information to WM8711
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r-- | sound/soc/codecs/wm8711.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index f98c2bc32f9e..ae083eb92fb7 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c @@ -24,6 +24,7 @@ #include <sound/pcm_params.h> #include <sound/soc.h> #include <sound/soc-dapm.h> +#include <sound/tlv.h> #include <sound/initval.h> #include "wm8711.h" @@ -50,10 +51,12 @@ static const u16 wm8711_reg[WM8711_CACHEREGNUM] = { #define wm8711_reset(c) snd_soc_write(c, WM8711_RESET, 0) +static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1); + static const struct snd_kcontrol_new wm8711_snd_controls[] = { -SOC_DOUBLE_R("Master Playback Volume", WM8711_LOUT1V, WM8711_ROUT1V, - 0, 127, 0), +SOC_DOUBLE_R_TLV("Master Playback Volume", WM8711_LOUT1V, WM8711_ROUT1V, + 0, 127, 0, out_tlv), SOC_DOUBLE_R("Master Playback ZC Switch", WM8711_LOUT1V, WM8711_ROUT1V, 7, 1, 0), |