aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8711.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-18 16:29:31 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-08-18 16:29:31 -0400
commitb5ab887e6dfa12c32ef39827da47d5d021320a3f (patch)
tree0e5de4041f9b5154f912d211a89a911f750d3cf8 /sound/soc/codecs/wm8711.c
parent431f7771774e8f37dde5acb3f7c4c5f6fa1109e3 (diff)
ASoC: Add TLV information to WM8711
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r--sound/soc/codecs/wm8711.c7
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 @@
24#include <sound/pcm_params.h> 24#include <sound/pcm_params.h>
25#include <sound/soc.h> 25#include <sound/soc.h>
26#include <sound/soc-dapm.h> 26#include <sound/soc-dapm.h>
27#include <sound/tlv.h>
27#include <sound/initval.h> 28#include <sound/initval.h>
28 29
29#include "wm8711.h" 30#include "wm8711.h"
@@ -50,10 +51,12 @@ static const u16 wm8711_reg[WM8711_CACHEREGNUM] = {
50 51
51#define wm8711_reset(c) snd_soc_write(c, WM8711_RESET, 0) 52#define wm8711_reset(c) snd_soc_write(c, WM8711_RESET, 0)
52 53
54static const DECLARE_TLV_DB_SCALE(out_tlv, -12100, 100, 1);
55
53static const struct snd_kcontrol_new wm8711_snd_controls[] = { 56static const struct snd_kcontrol_new wm8711_snd_controls[] = {
54 57
55SOC_DOUBLE_R("Master Playback Volume", WM8711_LOUT1V, WM8711_ROUT1V, 58SOC_DOUBLE_R_TLV("Master Playback Volume", WM8711_LOUT1V, WM8711_ROUT1V,
56 0, 127, 0), 59 0, 127, 0, out_tlv),
57SOC_DOUBLE_R("Master Playback ZC Switch", WM8711_LOUT1V, WM8711_ROUT1V, 60SOC_DOUBLE_R("Master Playback ZC Switch", WM8711_LOUT1V, WM8711_ROUT1V,
58 7, 1, 0), 61 7, 1, 0),
59 62