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

ALSA: sb8: Fix fall-through annotations

Replace "fallthru" with a proper "fall through" annotation.

This fix is part of the ongoing efforts to enabling
-Wimplicit-fallthrough
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 59502295
...@@ -130,13 +130,13 @@ static int snd_sb8_playback_prepare(struct snd_pcm_substream *substream) ...@@ -130,13 +130,13 @@ static int snd_sb8_playback_prepare(struct snd_pcm_substream *substream)
chip->playback_format = SB_DSP_HI_OUTPUT_AUTO; chip->playback_format = SB_DSP_HI_OUTPUT_AUTO;
break; break;
} }
/* fallthru */ /* fall through */
case SB_HW_201: case SB_HW_201:
if (rate > 23000) { if (rate > 23000) {
chip->playback_format = SB_DSP_HI_OUTPUT_AUTO; chip->playback_format = SB_DSP_HI_OUTPUT_AUTO;
break; break;
} }
/* fallthru */ /* fall through */
case SB_HW_20: case SB_HW_20:
chip->playback_format = SB_DSP_LO_OUTPUT_AUTO; chip->playback_format = SB_DSP_LO_OUTPUT_AUTO;
break; break;
...@@ -287,7 +287,7 @@ static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream) ...@@ -287,7 +287,7 @@ static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream)
chip->capture_format = SB_DSP_HI_INPUT_AUTO; chip->capture_format = SB_DSP_HI_INPUT_AUTO;
break; break;
} }
/* fallthru */ /* fall through */
case SB_HW_20: case SB_HW_20:
chip->capture_format = SB_DSP_LO_INPUT_AUTO; chip->capture_format = SB_DSP_LO_INPUT_AUTO;
break; break;
...@@ -387,7 +387,7 @@ irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip) ...@@ -387,7 +387,7 @@ irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip)
case SB_MODE_PLAYBACK_16: /* ok.. playback is active */ case SB_MODE_PLAYBACK_16: /* ok.. playback is active */
if (chip->hardware != SB_HW_JAZZ16) if (chip->hardware != SB_HW_JAZZ16)
break; break;
/* fallthru */ /* fall through */
case SB_MODE_PLAYBACK_8: case SB_MODE_PLAYBACK_8:
substream = chip->playback_substream; substream = chip->playback_substream;
if (chip->playback_format == SB_DSP_OUTPUT) if (chip->playback_format == SB_DSP_OUTPUT)
...@@ -397,7 +397,7 @@ irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip) ...@@ -397,7 +397,7 @@ irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip)
case SB_MODE_CAPTURE_16: case SB_MODE_CAPTURE_16:
if (chip->hardware != SB_HW_JAZZ16) if (chip->hardware != SB_HW_JAZZ16)
break; break;
/* fallthru */ /* fall through */
case SB_MODE_CAPTURE_8: case SB_MODE_CAPTURE_8:
substream = chip->capture_substream; substream = chip->capture_substream;
if (chip->capture_format == SB_DSP_INPUT) if (chip->capture_format == SB_DSP_INPUT)
......
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