projects
/
GitHub
/
LineageOS
/
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:
2961d67
)
ASoC: davinci-mcasp: off-by-one in davinci_mcasp_hw_rule_format()
author
Peter Ujfalusi
<peter.ujfalusi@ti.com>
Thu, 1 Sep 2016 07:05:12 +0000
(10:05 +0300)
committer
Mark Brown
<broonie@kernel.org>
Thu, 1 Sep 2016 19:56:30 +0000
(20:56 +0100)
The SNDRV_PCM_FORMAT_LAST is valid, we should not skip it.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/davinci/davinci-mcasp.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/davinci/davinci-mcasp.c
b/sound/soc/davinci/davinci-mcasp.c
index 05c2d33aa74dd9273100c9e8edf1b00bb57d8e35..3c5a9804d3f5edc259b25bd129b40918fe80197b 100644
(file)
--- a/
sound/soc/davinci/davinci-mcasp.c
+++ b/
sound/soc/davinci/davinci-mcasp.c
@@
-1218,7
+1218,7
@@
static int davinci_mcasp_hw_rule_format(struct snd_pcm_hw_params *params,
snd_mask_none(&nfmt);
- for (i = 0; i < SNDRV_PCM_FORMAT_LAST; i++) {
+ for (i = 0; i <
=
SNDRV_PCM_FORMAT_LAST; i++) {
if (snd_mask_test(fmt, i)) {
uint sbits = snd_pcm_format_width(i);
int ppm;