alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: wm8523: Fix array size for bclk_ratios
@ 2017-08-02  9:55 Axel Lin
  2017-08-02  9:55 ` [PATCH 2/2] ASoC: wm8523: Constfiy lrclk_ratios and bclk_ratios Axel Lin
  2017-08-02 17:30 ` Applied "ASoC: wm8523: Fix array size for " Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2017-08-02  9:55 UTC (permalink / raw)
  To: Mark Brown; +Cc: patches, Charles Keepax, Axel Lin, Liam Girdwood, alsa-devel

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>
---
 sound/soc/codecs/wm8523.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c
index 6d0a272..b1e4ce7 100644
--- 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 },
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-02 17:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-02  9:55 [PATCH 1/2] ASoC: wm8523: Fix array size for bclk_ratios Axel Lin
2017-08-02  9:55 ` [PATCH 2/2] ASoC: wm8523: Constfiy lrclk_ratios and bclk_ratios Axel Lin
2017-08-02 17:30   ` Applied "ASoC: wm8523: Constfiy lrclk_ratios and bclk_ratios" to the asoc tree Mark Brown
2017-08-02 17:30 ` Applied "ASoC: wm8523: Fix array size for " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).