aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-27 15:57:42 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-27 15:57:42 -0400
commit6be01cfb854818298753bfce65543dbc81d51d5a (patch)
treefa5c7d7a5c75b65d79347a31c4e68bcc866e0adc /sound/soc/codecs
parent2625240d0732ac259591ed54371bc01e7bbfdd14 (diff)
ASoC: Staticise TLV values in WM8940
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm8940.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c
index 26987dcd8d55..a66dacc7cc83 100644
--- a/sound/soc/codecs/wm8940.c
+++ b/sound/soc/codecs/wm8940.c
@@ -168,16 +168,16 @@ static const char *wm8940_filter_mode_text[] = {"Audio", "Application"};
168static const struct soc_enum wm8940_filter_mode_enum 168static const struct soc_enum wm8940_filter_mode_enum
169= SOC_ENUM_SINGLE(WM8940_ADC, 7, 2, wm8940_filter_mode_text); 169= SOC_ENUM_SINGLE(WM8940_ADC, 7, 2, wm8940_filter_mode_text);
170 170
171DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1); 171static DECLARE_TLV_DB_SCALE(wm8940_spk_vol_tlv, -5700, 100, 1);
172DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0); 172static DECLARE_TLV_DB_SCALE(wm8940_att_tlv, -1000, 1000, 0);
173DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0); 173static DECLARE_TLV_DB_SCALE(wm8940_pga_vol_tlv, -1200, 75, 0);
174DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0); 174static DECLARE_TLV_DB_SCALE(wm8940_alc_min_tlv, -1200, 600, 0);
175DECLARE_TLV_DB_SCALE(wm8940_alc_max_tlv, 675, 600, 0); 175static DECLARE_TLV_DB_SCALE(wm8940_alc_max_tlv, 675, 600, 0);
176DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0); 176static DECLARE_TLV_DB_SCALE(wm8940_alc_tar_tlv, -2250, 50, 0);
177DECLARE_TLV_DB_SCALE(wm8940_lim_boost_tlv, 0, 100, 0); 177static DECLARE_TLV_DB_SCALE(wm8940_lim_boost_tlv, 0, 100, 0);
178DECLARE_TLV_DB_SCALE(wm8940_lim_thresh_tlv, -600, 100, 0); 178static DECLARE_TLV_DB_SCALE(wm8940_lim_thresh_tlv, -600, 100, 0);
179DECLARE_TLV_DB_SCALE(wm8940_adc_tlv, -12750, 50, 1); 179static DECLARE_TLV_DB_SCALE(wm8940_adc_tlv, -12750, 50, 1);
180DECLARE_TLV_DB_SCALE(wm8940_capture_boost_vol_tlv, 0, 2000, 0); 180static DECLARE_TLV_DB_SCALE(wm8940_capture_boost_vol_tlv, 0, 2000, 0);
181 181
182static const struct snd_kcontrol_new wm8940_snd_controls[] = { 182static const struct snd_kcontrol_new wm8940_snd_controls[] = {
183 SOC_SINGLE("Digital Loopback Switch", WM8940_COMPANDINGCTL, 183 SOC_SINGLE("Digital Loopback Switch", WM8940_COMPANDINGCTL,
@@ -253,7 +253,7 @@ static const struct snd_kcontrol_new wm8940_mono_mixer_controls[] = {
253 SOC_DAPM_SINGLE("PCM Playback Switch", WM8940_MONOMIX, 0, 1, 0), 253 SOC_DAPM_SINGLE("PCM Playback Switch", WM8940_MONOMIX, 0, 1, 0),
254}; 254};
255 255
256DECLARE_TLV_DB_SCALE(wm8940_boost_vol_tlv, -1500, 300, 1); 256static DECLARE_TLV_DB_SCALE(wm8940_boost_vol_tlv, -1500, 300, 1);
257static const struct snd_kcontrol_new wm8940_input_boost_controls[] = { 257static const struct snd_kcontrol_new wm8940_input_boost_controls[] = {
258 SOC_DAPM_SINGLE("Mic PGA Switch", WM8940_PGAGAIN, 6, 1, 1), 258 SOC_DAPM_SINGLE("Mic PGA Switch", WM8940_PGAGAIN, 6, 1, 1),
259 SOC_DAPM_SINGLE_TLV("Aux Volume", WM8940_ADCBOOST, 259 SOC_DAPM_SINGLE_TLV("Aux Volume", WM8940_ADCBOOST,