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:
a1320fe
)
ASoC: wm_hubs: fix DB_RANGE size
author
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:15:31 +0000
(15:15 +0100)
committer
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:46:52 +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/wm_hubs.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm_hubs.c
b/sound/soc/codecs/wm_hubs.c
index
84f33d4
..
48e61e9
100644
(file)
--- a/
sound/soc/codecs/wm_hubs.c
+++ b/
sound/soc/codecs/wm_hubs.c
@@
-40,7
+40,7
@@
static const DECLARE_TLV_DB_SCALE(outmix_tlv, -2100, 300, 0);
static const DECLARE_TLV_DB_SCALE(spkmixout_tlv, -1800, 600, 1);
static const DECLARE_TLV_DB_SCALE(outpga_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),
};