diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 16:13:26 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-08-06 03:33:45 -0400 |
commit | ef0075280cfe09ef076ce1b85f0a2294c5ed86f3 (patch) | |
tree | a432520ffc49250371e7916da4f2e632806bb5a9 | |
parent | 9d5a289a86a15a1a4248022f9338517f7e62832b (diff) |
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: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/echoaudio/echoaudio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 358ef7dcf410..907cf1a46712 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -713,6 +713,7 @@ static int pcm_prepare(struct snd_pcm_substream *substream) | |||
713 | break; | 713 | break; |
714 | case SNDRV_PCM_FORMAT_S32_BE: | 714 | case SNDRV_PCM_FORMAT_S32_BE: |
715 | format.data_are_bigendian = 1; | 715 | format.data_are_bigendian = 1; |
716 | /* fall through */ | ||
716 | case SNDRV_PCM_FORMAT_S32_LE: | 717 | case SNDRV_PCM_FORMAT_S32_LE: |
717 | format.bits_per_sample = 32; | 718 | format.bits_per_sample = 32; |
718 | break; | 719 | break; |
@@ -764,6 +765,7 @@ static int pcm_trigger(struct snd_pcm_substream *substream, int cmd) | |||
764 | pipe->last_counter = 0; | 765 | pipe->last_counter = 0; |
765 | pipe->position = 0; | 766 | pipe->position = 0; |
766 | *pipe->dma_counter = 0; | 767 | *pipe->dma_counter = 0; |
768 | /* fall through */ | ||
767 | case PIPE_STATE_PAUSED: | 769 | case PIPE_STATE_PAUSED: |
768 | pipe->state = PIPE_STATE_STARTED; | 770 | pipe->state = PIPE_STATE_STARTED; |
769 | break; | 771 | break; |