projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5771a8c
)
ASoC: wm8523: Fix array size for bclk_ratios
author
Axel Lin
<axel.lin@ingics.com>
Wed, 2 Aug 2017 09:55:13 +0000
(17:55 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 2 Aug 2017 10:19:13 +0000
(11:19 +0100)
ARRAY_SIZE(bclk_ratios) returns 7 for current code, then it cannot catch
the error if "no matching BCLK/fs ratio". Fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8523.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm8523.c
b/sound/soc/codecs/wm8523.c
index 6d0a2723bfde7e06956934d1792f719263353699..b1e4ce72e533058e0c105b992418092161d339e0 100644
(file)
--- a/
sound/soc/codecs/wm8523.c
+++ b/
sound/soc/codecs/wm8523.c
@@
-116,7
+116,7
@@
static struct {
static struct {
int value;
int ratio;
-} bclk_ratios[
WM8523_NUM_RATES
] = {
+} bclk_ratios[] = {
{ 2, 32 },
{ 3, 64 },
{ 4, 128 },