Commit ef007528 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Takashi Iwai

ALSA: echoaudio: Mark expected switch fall-throughs

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

Addresses-Coverity-ID: 115156 ("Missing break in switch")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 9d5a289a
...@@ -713,6 +713,7 @@ static int pcm_prepare(struct snd_pcm_substream *substream) ...@@ -713,6 +713,7 @@ static int pcm_prepare(struct snd_pcm_substream *substream)
break; break;
case SNDRV_PCM_FORMAT_S32_BE: case SNDRV_PCM_FORMAT_S32_BE:
format.data_are_bigendian = 1; format.data_are_bigendian = 1;
/* fall through */
case SNDRV_PCM_FORMAT_S32_LE: case SNDRV_PCM_FORMAT_S32_LE:
format.bits_per_sample = 32; format.bits_per_sample = 32;
break; break;
...@@ -764,6 +765,7 @@ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd) ...@@ -764,6 +765,7 @@ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd)
pipe->last_counter = 0; pipe->last_counter = 0;
pipe->position = 0; pipe->position = 0;
*pipe->dma_counter = 0; *pipe->dma_counter = 0;
/* fall through */
case PIPE_STATE_PAUSED: case PIPE_STATE_PAUSED:
pipe->state = PIPE_STATE_STARTED; pipe->state = PIPE_STATE_STARTED;
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