aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs')
-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