summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-08-02 17:20:04 +0200
committerMark Brown <broonie@kernel.org>2015-08-05 13:24:17 +0100
commitdfd0edda1fb3cd7a7cdde56467d718b1e49e32d5 (patch)
tree4aa1d142ce89d1b782fc4ecdd2e1714dda7424b5 /sound
parentfcbb71e9ccac59940b619bdd5a51c96495dd4731 (diff)
downloadop-kernel-dev-dfd0edda1fb3cd7a7cdde56467d718b1e49e32d5.zip
op-kernel-dev-dfd0edda1fb3cd7a7cdde56467d718b1e49e32d5.tar.gz
ASoC: wm8990: Don't use range container for TLV with one entry
For TLVs with only a single entry it is not necessary to use a range container. Use DECLARE_TLV_DB_SCALE() directly instead of a combination of TLV_DB_RANGE_HEAD() and TLV_DB_SCALE_ITEM(). Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8990.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index 1993fd2..2befdde 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -418,10 +418,7 @@ static int outmixer_event(struct snd_soc_dapm_widget *w,
}
/* INMIX dB values */
-static const unsigned int in_mix_tlv[] = {
- TLV_DB_RANGE_HEAD(1),
- 0, 7, TLV_DB_SCALE_ITEM(-1200, 600, 0),
-};
+static const DECLARE_TLV_DB_SCALE(in_mix_tlv, -1200, 600, 0);
/* Left In PGA Connections */
static const struct snd_kcontrol_new wm8990_dapm_lin12_pga_controls[] = {
OpenPOWER on IntegriCloud