Commit e2d413f9 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: Replace with fallthrough pseudo keyword in the remaining places

A few places (except for ASoC) are left unconverted for the new
fallthrough pseudo keyword.  Now replace them all.
Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200709111750.8337-4-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 401b3e6e
...@@ -998,7 +998,7 @@ static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem ...@@ -998,7 +998,7 @@ static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem
val = 3; val = 3;
} else } else
retVal = snd_es18xx_mixer_bits(chip, 0x7a, 0x08, 0x00) != 0x00; retVal = snd_es18xx_mixer_bits(chip, 0x7a, 0x08, 0x00) != 0x00;
/* fall through */ fallthrough;
/* 4 source chips */ /* 4 source chips */
case 0x1868: case 0x1868:
case 0x1878: case 0x1878:
......
...@@ -1103,7 +1103,7 @@ vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, ...@@ -1103,7 +1103,7 @@ vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma,
hwwrite(vortex->mmio, hwwrite(vortex->mmio,
VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0xc, VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0xc,
snd_pcm_sgbuf_get_addr(dma->substream, psize * 3)); snd_pcm_sgbuf_get_addr(dma->substream, psize * 3));
/* fall through */ fallthrough;
/* 3 pages */ /* 3 pages */
case 3: case 3:
dma->cfg0 |= 0x12000000; dma->cfg0 |= 0x12000000;
...@@ -1111,14 +1111,14 @@ vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma, ...@@ -1111,14 +1111,14 @@ vortex_adbdma_setbuffers(vortex_t * vortex, int adbdma,
hwwrite(vortex->mmio, hwwrite(vortex->mmio,
VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x8, VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x8,
snd_pcm_sgbuf_get_addr(dma->substream, psize * 2)); snd_pcm_sgbuf_get_addr(dma->substream, psize * 2));
/* fall through */ fallthrough;
/* 2 pages */ /* 2 pages */
case 2: case 2:
dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize - 1); dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize - 1);
hwwrite(vortex->mmio, hwwrite(vortex->mmio,
VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x4, VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x4,
snd_pcm_sgbuf_get_addr(dma->substream, psize)); snd_pcm_sgbuf_get_addr(dma->substream, psize));
/* fall through */ fallthrough;
/* 1 page */ /* 1 page */
case 1: case 1:
dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize - 1) << 0xc); dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize - 1) << 0xc);
...@@ -1381,20 +1381,20 @@ vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma, ...@@ -1381,20 +1381,20 @@ vortex_wtdma_setbuffers(vortex_t * vortex, int wtdma,
dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize-1); dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize-1);
hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0xc, hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0xc,
snd_pcm_sgbuf_get_addr(dma->substream, psize * 3)); snd_pcm_sgbuf_get_addr(dma->substream, psize * 3));
/* fall through */ fallthrough;
/* 3 pages */ /* 3 pages */
case 3: case 3:
dma->cfg0 |= 0x12000000; dma->cfg0 |= 0x12000000;
dma->cfg1 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc); dma->cfg1 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc);
hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x8, hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x8,
snd_pcm_sgbuf_get_addr(dma->substream, psize * 2)); snd_pcm_sgbuf_get_addr(dma->substream, psize * 2));
/* fall through */ fallthrough;
/* 2 pages */ /* 2 pages */
case 2: case 2:
dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize-1); dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize-1);
hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x4, hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x4,
snd_pcm_sgbuf_get_addr(dma->substream, psize)); snd_pcm_sgbuf_get_addr(dma->substream, psize));
/* fall through */ fallthrough;
/* 1 page */ /* 1 page */
case 1: case 1:
dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc); dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc);
......
...@@ -137,7 +137,7 @@ static int oxygen_open(struct snd_pcm_substream *substream, ...@@ -137,7 +137,7 @@ static int oxygen_open(struct snd_pcm_substream *substream,
SNDRV_PCM_RATE_64000); SNDRV_PCM_RATE_64000);
runtime->hw.rate_min = 44100; runtime->hw.rate_min = 44100;
} }
/* fall through */ fallthrough;
case PCM_A: case PCM_A:
case PCM_B: case PCM_B:
runtime->hw.fifo_size = 0; runtime->hw.fifo_size = 0;
......
...@@ -820,7 +820,7 @@ int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *cdev) ...@@ -820,7 +820,7 @@ int snd_usb_caiaq_audio_init(struct snd_usb_caiaqdev *cdev)
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_SESSIONIO): case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_SESSIONIO):
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_GUITARRIGMOBILE): case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_GUITARRIGMOBILE):
cdev->samplerates |= SNDRV_PCM_RATE_192000; cdev->samplerates |= SNDRV_PCM_RATE_192000;
/* fall thru */ fallthrough;
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO2DJ): case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO2DJ):
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO4DJ): case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO4DJ):
case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO8DJ): case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO8DJ):
......
...@@ -187,7 +187,7 @@ static void usb_ep1_command_reply_dispatch (struct urb* urb) ...@@ -187,7 +187,7 @@ static void usb_ep1_command_reply_dispatch (struct urb* urb)
break; break;
} }
#ifdef CONFIG_SND_USB_CAIAQ_INPUT #ifdef CONFIG_SND_USB_CAIAQ_INPUT
/* fall through */ fallthrough;
case EP1_CMD_READ_ERP: case EP1_CMD_READ_ERP:
case EP1_CMD_READ_ANALOG: case EP1_CMD_READ_ANALOG:
snd_usb_caiaq_input_dispatch(cdev, buf, urb->actual_length); snd_usb_caiaq_input_dispatch(cdev, buf, urb->actual_length);
......
...@@ -2401,7 +2401,7 @@ int __snd_usbmidi_create(struct snd_card *card, ...@@ -2401,7 +2401,7 @@ int __snd_usbmidi_create(struct snd_card *card,
break; break;
case QUIRK_MIDI_US122L: case QUIRK_MIDI_US122L:
umidi->usb_protocol_ops = &snd_usbmidi_122l_ops; umidi->usb_protocol_ops = &snd_usbmidi_122l_ops;
/* fall through */ fallthrough;
case QUIRK_MIDI_FIXED_ENDPOINT: case QUIRK_MIDI_FIXED_ENDPOINT:
memcpy(&endpoints[0], quirk->data, memcpy(&endpoints[0], quirk->data,
sizeof(struct snd_usb_midi_endpoint_info)); sizeof(struct snd_usb_midi_endpoint_info));
......
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