diff options
author | Mike Montour <mail@mmontour.net> | 2008-06-11 08:47:14 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-06-13 10:48:17 -0400 |
commit | a2e31a595ea74120a5e9de91fce56dd835edff94 (patch) | |
tree | b0ea67fffe17d558d854f87ece1b4a42b0de91f4 /sound | |
parent | 10144c09a0d6a62e1d56e25f142743c7a00e5dba (diff) |
ALSA: ASoC: Add TLV information to the LM4857 controls on the GTA01
Signed-off-by: Mike Montour <mail@mmontour.net>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/s3c24xx/neo1973_wm8753.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c index c1a0161bc72e..34851238dea0 100644 --- a/sound/soc/s3c24xx/neo1973_wm8753.c +++ b/sound/soc/s3c24xx/neo1973_wm8753.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <sound/pcm.h> | 22 | #include <sound/pcm.h> |
23 | #include <sound/soc.h> | 23 | #include <sound/soc.h> |
24 | #include <sound/soc-dapm.h> | 24 | #include <sound/soc-dapm.h> |
25 | #include <sound/tlv.h> | ||
25 | 26 | ||
26 | #include <asm/mach-types.h> | 27 | #include <asm/mach-types.h> |
27 | #include <asm/hardware/scoop.h> | 28 | #include <asm/hardware/scoop.h> |
@@ -474,13 +475,16 @@ static const struct soc_enum neo_scenario_enum[] = { | |||
474 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(neo_scenarios), neo_scenarios), | 475 | SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(neo_scenarios), neo_scenarios), |
475 | }; | 476 | }; |
476 | 477 | ||
478 | static const DECLARE_TLV_DB_SCALE(stereo_tlv, -4050, 150, 0); | ||
479 | static const DECLARE_TLV_DB_SCALE(mono_tlv, -3450, 150, 0); | ||
480 | |||
477 | static const struct snd_kcontrol_new wm8753_neo1973_controls[] = { | 481 | static const struct snd_kcontrol_new wm8753_neo1973_controls[] = { |
478 | SOC_SINGLE_EXT("Amp Left Playback Volume", LM4857_LVOL, 0, 31, 0, | 482 | SOC_SINGLE_EXT_TLV("Amp Left Playback Volume", LM4857_LVOL, 0, 31, 0, |
479 | lm4857_get_reg, lm4857_set_reg), | 483 | lm4857_get_reg, lm4857_set_reg, stereo_tlv), |
480 | SOC_SINGLE_EXT("Amp Right Playback Volume", LM4857_RVOL, 0, 31, 0, | 484 | SOC_SINGLE_EXT_TLV("Amp Right Playback Volume", LM4857_RVOL, 0, 31, 0, |
481 | lm4857_get_reg, lm4857_set_reg), | 485 | lm4857_get_reg, lm4857_set_reg, stereo_tlv), |
482 | SOC_SINGLE_EXT("Amp Mono Playback Volume", LM4857_MVOL, 0, 31, 0, | 486 | SOC_SINGLE_EXT_TLV("Amp Mono Playback Volume", LM4857_MVOL, 0, 31, 0, |
483 | lm4857_get_reg, lm4857_set_reg), | 487 | lm4857_get_reg, lm4857_set_reg, mono_tlv), |
484 | SOC_ENUM_EXT("Amp Mode", lm4857_mode_enum[0], | 488 | SOC_ENUM_EXT("Amp Mode", lm4857_mode_enum[0], |
485 | lm4857_get_mode, lm4857_set_mode), | 489 | lm4857_get_mode, lm4857_set_mode), |
486 | SOC_ENUM_EXT("Neo Mode", neo_scenario_enum[0], | 490 | SOC_ENUM_EXT("Neo Mode", neo_scenario_enum[0], |