ASoC: cs42l52: Reorder Min/Max and update to SX_TLV for Beep Volume
authorBrian Austin <brian.austin@cirrus.com>
Tue, 6 Aug 2013 17:57:21 +0000 (12:57 -0500)
committerMark Brown <broonie@linaro.org>
Tue, 6 Aug 2013 18:38:19 +0000 (19:38 +0100)
Beep Volume Min/Max was backwards.
Change to SOC_SONGLE_SX_TLV for correct volume representation

Signed-off-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@kernel.org
sound/soc/codecs/cs42l52.c

index 987f728718c52cad7ee2a5f1c5dd8dc2fc6d3f02..ee25f325d65c15ecc5adfa85f54e5acc2b8bf348 100644 (file)
@@ -451,7 +451,7 @@ 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, hl_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),