projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea6b8f
)
ASoC: adau1373: fix DB_RANGE size
author
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:10:27 +0000
(15:10 +0100)
committer
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:46:24 +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/adau1373.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/adau1373.c
b/sound/soc/codecs/adau1373.c
index 1ccf8dd47576ce4c746ffb54461c19f196acff43..45c63028b40d1636b56f6aa3e5f13e0d110b9a5d 100644
(file)
--- a/
sound/soc/codecs/adau1373.c
+++ b/
sound/soc/codecs/adau1373.c
@@
-245,7
+245,7
@@
static const char *adau1373_bass_hpf_cutoff_text[] = {
};
static const unsigned int adau1373_bass_tlv[] = {
- TLV_DB_RANGE_HEAD(
4
),
+ TLV_DB_RANGE_HEAD(
3
),
0, 2, TLV_DB_SCALE_ITEM(-600, 600, 1),
3, 4, TLV_DB_SCALE_ITEM(950, 250, 0),
5, 7, TLV_DB_SCALE_ITEM(1400, 150, 0),