Skip to content

Commit

Permalink
ASoC: adau1373: fix DB_RANGE size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Clemens Ladisch committed Nov 20, 2011
1 parent 1ea6b8f commit 0aed4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/adau1373.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 0aed4a9

Please sign in to comment.