projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a500231
)
ASoC: sta32x: Optimize the array work to find rate_min and rate_max
author
Axel Lin
<
[email protected]
>
Sun, 1 Jan 2012 10:36:14 +0000
(18:36 +0800)
committer
Mark Brown
<
[email protected]
>
Tue, 3 Jan 2012 21:18:32 +0000
(21:18 +0000)
For a given ir and fs, there is at most one possible match for the case
mclk_ratios[ir][j].ratio * fs == freq.
Thus we can break from the inner loop once a match is found.
Signed-off-by: Axel Lin <
[email protected]
>
Acked-by: Johannes Stezenbach <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/sta32x.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/sta32x.c
b/sound/soc/codecs/sta32x.c
index fbd145091356bab5133738f29ee896c19323e0bd..7db6fa515028d566cfd75c5ee048db8b52f2ca54 100644
(file)
--- a/
sound/soc/codecs/sta32x.c
+++ b/
sound/soc/codecs/sta32x.c
@@
-522,6
+522,7
@@
static int sta32x_set_dai_sysclk(struct snd_soc_dai *codec_dai,
rate_min = fs;
if (fs > rate_max)
rate_max = fs;
+ break;
}
}
}