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:
0aed4a9
)
ASoC: rt5631: fix DB_RANGE size
author
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:11:54 +0000
(15:11 +0100)
committer
Clemens Ladisch
<clemens@ladisch.de>
Sun, 20 Nov 2011 14:46:25 +0000
(15:46 +0100)
Give the correct number of entries to TLV_DB_RANGE_HEAD to prevent
the last entry from being omitted.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/soc/codecs/rt5631.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/rt5631.c
b/sound/soc/codecs/rt5631.c
index 27a078cbb6eb2542cb6bc0fa0be372b5a77cabac..4646e808b90a334e0d59935a1e93244672d276be 100644
(file)
--- a/
sound/soc/codecs/rt5631.c
+++ b/
sound/soc/codecs/rt5631.c
@@
-177,7
+177,7
@@
static const DECLARE_TLV_DB_SCALE(dac_vol_tlv, -95625, 375, 0);
static const DECLARE_TLV_DB_SCALE(in_vol_tlv, -3450, 150, 0);
/* {0, +20, +24, +30, +35, +40, +44, +50, +52}dB */
static unsigned int mic_bst_tlv[] = {
- TLV_DB_RANGE_HEAD(
6
),
+ TLV_DB_RANGE_HEAD(
7
),
0, 0, TLV_DB_SCALE_ITEM(0, 0, 0),
1, 1, TLV_DB_SCALE_ITEM(2000, 0, 0),
2, 2, TLV_DB_SCALE_ITEM(2400, 0, 0),