OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43e9dc7
)
ASoC: wm8993: fix DB_RANGE size
author
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:14:11 +0000
(15:14 +0100)
committer
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:46:51 +0000
(15:46 +0100)
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>
sound/soc/codecs/wm8993.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8993.c
b/sound/soc/codecs/wm8993.c
index
eec8e14
..
d1a142f
100644
(file)
--- 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),
};