Commit a773c3b6 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mark Brown

ASoC: omap-dmic: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1468847 ("Missing break in switch")
Addresses-Coverity-ID: 1468849 ("Missing break in switch")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 16bbeb2b
...@@ -213,8 +213,10 @@ static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream, ...@@ -213,8 +213,10 @@ static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream,
switch (channels) { switch (channels) {
case 6: case 6:
dmic->ch_enabled |= OMAP_DMIC_UP3_ENABLE; dmic->ch_enabled |= OMAP_DMIC_UP3_ENABLE;
/* fall through */
case 4: case 4:
dmic->ch_enabled |= OMAP_DMIC_UP2_ENABLE; dmic->ch_enabled |= OMAP_DMIC_UP2_ENABLE;
/* fall through */
case 2: case 2:
dmic->ch_enabled |= OMAP_DMIC_UP1_ENABLE; dmic->ch_enabled |= OMAP_DMIC_UP1_ENABLE;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment