summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8993.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-11-20 15:14:11 +0100
committerClemens Ladisch <clemens@ladisch.de>2011-11-20 15:46:51 +0100
commitdac678f5c281fac55aadfa5f390c12a8d14bbc67 (patch)
tree0041e63a19da9e57d55930509ded9581298965c0 /sound/soc/codecs/wm8993.c
parent43e9dc7bce9f21355cd2aa493a99281eae03b156 (diff)
downloadop-kernel-dev-dac678f5c281fac55aadfa5f390c12a8d14bbc67.zip
op-kernel-dev-dac678f5c281fac55aadfa5f390c12a8d14bbc67.tar.gz
ASoC: wm8993: fix DB_RANGE size
Give the correct number of entries to TLV_DB_RANGE_HEAD to prevent reading more data than actually is in the array. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/soc/codecs/wm8993.c')
-rw-r--r--sound/soc/codecs/wm8993.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c
index eec8e14..d1a142f4 100644
--- a/sound/soc/codecs/wm8993.c
+++ b/sound/soc/codecs/wm8993.c
@@ -512,7 +512,7 @@ static const DECLARE_TLV_DB_SCALE(drc_comp_threash, -4500, 75, 0);
static const DECLARE_TLV_DB_SCALE(drc_comp_amp, -2250, 75, 0);
static const DECLARE_TLV_DB_SCALE(drc_min_tlv, -1800, 600, 0);
static const unsigned int drc_max_tlv[] = {
- TLV_DB_RANGE_HEAD(4),
+ TLV_DB_RANGE_HEAD(2),
0, 2, TLV_DB_SCALE_ITEM(1200, 600, 0),
3, 3, TLV_DB_SCALE_ITEM(3600, 0, 0),
};
OpenPOWER on IntegriCloud