mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
20ea6adbf1
Build system: x86_64 Build-tested: bcm2708, bcm2709, bcm2710, bcm2711 Run-tested: bcm2708/RPiB+, bcm2709/RPi3B, bcm2710/RPi3B, bcm2711/RPi4B Signed-off-by: Marty Jones <mj8263788@gmail.com> Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
63 lines
1.7 KiB
Diff
63 lines
1.7 KiB
Diff
From 19d40913d12d4e837022003eca8b5a8c7565b8e6 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 27 Jul 2021 09:27:49 +0100
|
|
Subject: [PATCH] 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(-)
|
|
|
|
--- 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(st
|
|
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;
|