Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200709111750.8337-4-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>

+11 -11
+1 -1
sound/isa/es18xx.c
··· 998 998 val = 3; 999 999 } else 1000 1000 retVal = snd_es18xx_mixer_bits(chip, 0x7a, 0x08, 0x00) != 0x00; 1001 - /* fall through */ 1001 + fallthrough; 1002 1002 /* 4 source chips */ 1003 1003 case 0x1868: 1004 1004 case 0x1878:
+6 -6
sound/pci/au88x0/au88x0_core.c
··· 1103 1103 hwwrite(vortex->mmio, 1104 1104 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0xc, 1105 1105 snd_pcm_sgbuf_get_addr(dma->substream, psize * 3)); 1106 - /* fall through */ 1106 + fallthrough; 1107 1107 /* 3 pages */ 1108 1108 case 3: 1109 1109 dma->cfg0 |= 0x12000000; ··· 1111 1111 hwwrite(vortex->mmio, 1112 1112 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x8, 1113 1113 snd_pcm_sgbuf_get_addr(dma->substream, psize * 2)); 1114 - /* fall through */ 1114 + fallthrough; 1115 1115 /* 2 pages */ 1116 1116 case 2: 1117 1117 dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize - 1); 1118 1118 hwwrite(vortex->mmio, 1119 1119 VORTEX_ADBDMA_BUFBASE + (adbdma << 4) + 0x4, 1120 1120 snd_pcm_sgbuf_get_addr(dma->substream, psize)); 1121 - /* fall through */ 1121 + fallthrough; 1122 1122 /* 1 page */ 1123 1123 case 1: 1124 1124 dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize - 1) << 0xc); ··· 1381 1381 dma->cfg1 |= 0x88000000 | 0x44000000 | 0x30000000 | (psize-1); 1382 1382 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0xc, 1383 1383 snd_pcm_sgbuf_get_addr(dma->substream, psize * 3)); 1384 - /* fall through */ 1384 + fallthrough; 1385 1385 /* 3 pages */ 1386 1386 case 3: 1387 1387 dma->cfg0 |= 0x12000000; 1388 1388 dma->cfg1 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc); 1389 1389 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x8, 1390 1390 snd_pcm_sgbuf_get_addr(dma->substream, psize * 2)); 1391 - /* fall through */ 1391 + fallthrough; 1392 1392 /* 2 pages */ 1393 1393 case 2: 1394 1394 dma->cfg0 |= 0x88000000 | 0x44000000 | 0x10000000 | (psize-1); 1395 1395 hwwrite(vortex->mmio, VORTEX_WTDMA_BUFBASE + (wtdma << 4) + 0x4, 1396 1396 snd_pcm_sgbuf_get_addr(dma->substream, psize)); 1397 - /* fall through */ 1397 + fallthrough; 1398 1398 /* 1 page */ 1399 1399 case 1: 1400 1400 dma->cfg0 |= 0x80000000 | 0x40000000 | ((psize-1) << 0xc);
+1 -1
sound/pci/oxygen/oxygen_pcm.c
··· 137 137 SNDRV_PCM_RATE_64000); 138 138 runtime->hw.rate_min = 44100; 139 139 } 140 - /* fall through */ 140 + fallthrough; 141 141 case PCM_A: 142 142 case PCM_B: 143 143 runtime->hw.fifo_size = 0;
+1 -1
sound/usb/caiaq/audio.c
··· 820 820 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_SESSIONIO): 821 821 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_GUITARRIGMOBILE): 822 822 cdev->samplerates |= SNDRV_PCM_RATE_192000; 823 - /* fall thru */ 823 + fallthrough; 824 824 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO2DJ): 825 825 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO4DJ): 826 826 case USB_ID(USB_VID_NATIVEINSTRUMENTS, USB_PID_AUDIO8DJ):
+1 -1
sound/usb/caiaq/device.c
··· 187 187 break; 188 188 } 189 189 #ifdef CONFIG_SND_USB_CAIAQ_INPUT 190 - /* fall through */ 190 + fallthrough; 191 191 case EP1_CMD_READ_ERP: 192 192 case EP1_CMD_READ_ANALOG: 193 193 snd_usb_caiaq_input_dispatch(cdev, buf, urb->actual_length);
+1 -1
sound/usb/midi.c
··· 2401 2401 break; 2402 2402 case QUIRK_MIDI_US122L: 2403 2403 umidi->usb_protocol_ops = &snd_usbmidi_122l_ops; 2404 - /* fall through */ 2404 + fallthrough; 2405 2405 case QUIRK_MIDI_FIXED_ENDPOINT: 2406 2406 memcpy(&endpoints[0], quirk->data, 2407 2407 sizeof(struct snd_usb_midi_endpoint_info));