mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-13 20:01:55 +00:00
67 lines
1.9 KiB
Diff
67 lines
1.9 KiB
Diff
From 3a93b993e3915c8e2a9a67ac46897f760c1f3566 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 27 Jul 2021 09:27:49 +0100
|
|
Subject: [PATCH 481/634] ASoC: bcm: Compiler warnings in audioinjector-octo
|
|
|
|
Avoid compiler warnings by using the "fallthrough" pseudo-keyword in
|
|
place of the old "/* fall through */" comment convention.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
sound/soc/bcm/audioinjector-octo-soundcard.c | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/sound/soc/bcm/audioinjector-octo-soundcard.c b/sound/soc/bcm/audioinjector-octo-soundcard.c
|
|
index 47d622df3ec7..db507f341867 100644
|
|
--- a/sound/soc/bcm/audioinjector-octo-soundcard.c
|
|
+++ b/sound/soc/bcm/audioinjector-octo-soundcard.c
|
|
@@ -143,40 +143,40 @@ static int audioinjector_octo_trigger(struct snd_pcm_substream *substream,
|
|
case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
|
|
if (!non_stop_clocks)
|
|
break;
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case SNDRV_PCM_TRIGGER_START:
|
|
case SNDRV_PCM_TRIGGER_RESUME:
|
|
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
|
|
switch (audioinjector_octo_rate) {
|
|
case 96000:
|
|
__assign_bit(3, mult, 1);
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case 88200:
|
|
__assign_bit(1, mult, 1);
|
|
__assign_bit(2, mult, 1);
|
|
break;
|
|
case 48000:
|
|
__assign_bit(3, mult, 1);
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case 44100:
|
|
__assign_bit(2, mult, 1);
|
|
break;
|
|
case 32000:
|
|
__assign_bit(3, mult, 1);
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case 29400:
|
|
__assign_bit(0, mult, 1);
|
|
__assign_bit(1, mult, 1);
|
|
break;
|
|
case 24000:
|
|
__assign_bit(3, mult, 1);
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case 22050:
|
|
__assign_bit(1, mult, 1);
|
|
break;
|
|
case 16000:
|
|
__assign_bit(3, mult, 1);
|
|
- /* fall through */
|
|
+ fallthrough;
|
|
case 14700:
|
|
__assign_bit(0, mult, 1);
|
|
break;
|
|
--
|
|
2.33.1
|
|
|