diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-11-20 15:14:55 +0100 |
---|---|---|
committer | Clemens Ladisch <clemens@ladisch.de> | 2011-11-20 15:46:51 +0100 |
commit | a1320fee27352b608a82020a47a59bb15e6e5db8 (patch) | |
tree | 8ca9f179f4b63cfa0dc1f2570ec0b712bd6b3388 | |
parent | dac678f5c281fac55aadfa5f390c12a8d14bbc67 (diff) | |
download | op-kernel-dev-a1320fee27352b608a82020a47a59bb15e6e5db8.zip op-kernel-dev-a1320fee27352b608a82020a47a59bb15e6e5db8.tar.gz |
ASoC: wm9090: 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 arrays.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
-rw-r--r-- | sound/soc/codecs/wm9090.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9090.c b/sound/soc/codecs/wm9090.c index 2b5252c..f94c060 100644 --- a/sound/soc/codecs/wm9090.c +++ b/sound/soc/codecs/wm9090.c @@ -177,19 +177,19 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec) } static const unsigned int in_tlv[] = { - TLV_DB_RANGE_HEAD(6), + TLV_DB_RANGE_HEAD(3), 0, 0, TLV_DB_SCALE_ITEM(-600, 0, 0), 1, 3, TLV_DB_SCALE_ITEM(-350, 350, 0), 4, 6, TLV_DB_SCALE_ITEM(600, 600, 0), }; static const unsigned int mix_tlv[] = { - TLV_DB_RANGE_HEAD(4), + TLV_DB_RANGE_HEAD(2), 0, 2, TLV_DB_SCALE_ITEM(-1200, 300, 0), 3, 3, TLV_DB_SCALE_ITEM(0, 0, 0), }; static const DECLARE_TLV_DB_SCALE(out_tlv, -5700, 100, 0); static const unsigned int spkboost_tlv[] = { - TLV_DB_RANGE_HEAD(7), + TLV_DB_RANGE_HEAD(2), 0, 6, TLV_DB_SCALE_ITEM(0, 150, 0), 7, 7, TLV_DB_SCALE_ITEM(1200, 0, 0), }; |