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

ALSA: opti92x: mark expected switch fall-throughs

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

Addresses-Coverity-ID: 1165394 ("Missing break in switch")
Addresses-Coverity-ID: 1167851 ("Missing break in switch")
Addresses-Coverity-ID: 402015 ("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 a9fe47e5
...@@ -261,6 +261,7 @@ static unsigned char snd_opti9xx_read(struct snd_opti9xx *chip, ...@@ -261,6 +261,7 @@ static unsigned char snd_opti9xx_read(struct snd_opti9xx *chip,
retval = inb(chip->mc_base + 9); retval = inb(chip->mc_base + 9);
break; break;
} }
/* Fall through */
case OPTi9XX_HW_82C928: case OPTi9XX_HW_82C928:
case OPTi9XX_HW_82C929: case OPTi9XX_HW_82C929:
...@@ -303,6 +304,7 @@ static void snd_opti9xx_write(struct snd_opti9xx *chip, unsigned char reg, ...@@ -303,6 +304,7 @@ static void snd_opti9xx_write(struct snd_opti9xx *chip, unsigned char reg,
outb(value, chip->mc_base + 9); outb(value, chip->mc_base + 9);
break; break;
} }
/* Fall through */
case OPTi9XX_HW_82C928: case OPTi9XX_HW_82C928:
case OPTi9XX_HW_82C929: case OPTi9XX_HW_82C929:
...@@ -350,6 +352,7 @@ static int snd_opti9xx_configure(struct snd_opti9xx *chip, ...@@ -350,6 +352,7 @@ static int snd_opti9xx_configure(struct snd_opti9xx *chip,
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(4), 0xf0, 0xfc); snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(4), 0xf0, 0xfc);
/* enable wave audio */ /* enable wave audio */
snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(6), 0x02, 0x02); snd_opti9xx_write_mask(chip, OPTi9XX_MC_REG(6), 0x02, 0x02);
/* Fall through */
case OPTi9XX_HW_82C925: case OPTi9XX_HW_82C925:
/* enable WSS mode */ /* enable WSS mode */
......
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