bcm27xx: add support for linux v5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.15 / 950-0454-ASoC-bcm-Compiler-warnings-in-audioinjector-octo.patch
1 From 19d40913d12d4e837022003eca8b5a8c7565b8e6 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 27 Jul 2021 09:27:49 +0100
4 Subject: [PATCH] ASoC: bcm: Compiler warnings in audioinjector-octo
5
6 Avoid compiler warnings by using the "fallthrough" pseudo-keyword in
7 place of the old "/* fall through */" comment convention.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 sound/soc/bcm/audioinjector-octo-soundcard.c | 12 ++++++------
12 1 file changed, 6 insertions(+), 6 deletions(-)
13
14 --- a/sound/soc/bcm/audioinjector-octo-soundcard.c
15 +++ b/sound/soc/bcm/audioinjector-octo-soundcard.c
16 @@ -143,40 +143,40 @@ static int audioinjector_octo_trigger(st
17 case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
18 if (!non_stop_clocks)
19 break;
20 - /* fall through */
21 + fallthrough;
22 case SNDRV_PCM_TRIGGER_START:
23 case SNDRV_PCM_TRIGGER_RESUME:
24 case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
25 switch (audioinjector_octo_rate) {
26 case 96000:
27 __assign_bit(3, mult, 1);
28 - /* fall through */
29 + fallthrough;
30 case 88200:
31 __assign_bit(1, mult, 1);
32 __assign_bit(2, mult, 1);
33 break;
34 case 48000:
35 __assign_bit(3, mult, 1);
36 - /* fall through */
37 + fallthrough;
38 case 44100:
39 __assign_bit(2, mult, 1);
40 break;
41 case 32000:
42 __assign_bit(3, mult, 1);
43 - /* fall through */
44 + fallthrough;
45 case 29400:
46 __assign_bit(0, mult, 1);
47 __assign_bit(1, mult, 1);
48 break;
49 case 24000:
50 __assign_bit(3, mult, 1);
51 - /* fall through */
52 + fallthrough;
53 case 22050:
54 __assign_bit(1, mult, 1);
55 break;
56 case 16000:
57 __assign_bit(3, mult, 1);
58 - /* fall through */
59 + fallthrough;
60 case 14700:
61 __assign_bit(0, mult, 1);
62 break;