aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-15 11:37:52 +0100
committerMark Brown <broonie@linaro.org>2013-08-15 11:37:52 +0100
commitc200d8881634a390bcb6ef4e23aa5d9a08d41efa (patch)
tree1ed0409747fe2d3968fc813cfcc809ba53498ee5 /sound
parentLinux 3.11-rc5 (diff)
parentASoC: cs42l52: Add new TLV for Beep Volume (diff)
downloadlinux-dev-c200d8881634a390bcb6ef4e23aa5d9a08d41efa.tar.xz
linux-dev-c200d8881634a390bcb6ef4e23aa5d9a08d41efa.zip
Merge remote-tracking branch 'asoc/fix/cs42l52' into asoc-linus
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/cs42l52.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs42l52.c b/sound/soc/codecs/cs42l52.c
index 987f728718c5..be2ba1b6fe4a 100644
--- a/sound/soc/codecs/cs42l52.c
+++ b/sound/soc/codecs/cs42l52.c
@@ -195,6 +195,8 @@ static DECLARE_TLV_DB_SCALE(pga_tlv, -600, 50, 0);
static DECLARE_TLV_DB_SCALE(mix_tlv, -50, 50, 0);
+static DECLARE_TLV_DB_SCALE(beep_tlv, -56, 200, 0);
+
static const unsigned int limiter_tlv[] = {
TLV_DB_RANGE_HEAD(2),
0, 2, TLV_DB_SCALE_ITEM(-3000, 600, 0),
@@ -451,7 +453,8 @@ static const struct snd_kcontrol_new cs42l52_snd_controls[] = {
SOC_ENUM("Beep Pitch", beep_pitch_enum),
SOC_ENUM("Beep on Time", beep_ontime_enum),
SOC_ENUM("Beep off Time", beep_offtime_enum),
- SOC_SINGLE_TLV("Beep Volume", CS42L52_BEEP_VOL, 0, 0x1f, 0x07, hl_tlv),
+ SOC_SINGLE_SX_TLV("Beep Volume", CS42L52_BEEP_VOL,
+ 0, 0x07, 0x1f, beep_tlv),
SOC_SINGLE("Beep Mixer Switch", CS42L52_BEEP_TONE_CTL, 5, 1, 1),
SOC_ENUM("Beep Treble Corner Freq", beep_treble_enum),
SOC_ENUM("Beep Bass Corner Freq", beep_bass_enum),