From 275c762bb2a5998e28fd68e69efc16723fb6738f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 8 Aug 2021 09:27:27 -0400 Subject: [PATCH] As3525 wavpack_enc document some intentional switch fall through Change-Id: I56bf439df2c05653d65f49238e886e4ef2291176 --- firmware/target/arm/as3525/audio-as3525.c | 1 + firmware/target/arm/as3525/debug-as3525.c | 7 ++++++- lib/rbcodec/codecs/wavpack_enc.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/firmware/target/arm/as3525/audio-as3525.c b/firmware/target/arm/as3525/audio-as3525.c index e4bb39b406..691ccaa028 100644 --- a/firmware/target/arm/as3525/audio-as3525.c +++ b/firmware/target/arm/as3525/audio-as3525.c @@ -67,6 +67,7 @@ void audio_input_mux(int source, unsigned flags) { default: /* playback - no recording */ source = AUDIO_SRC_PLAYBACK; + /*fallthrough*/ case AUDIO_SRC_PLAYBACK: if (source != last_source) { diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index c4c4a7f4dc..57161541fd 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c @@ -288,14 +288,19 @@ static bool dbg_btn(bool *done, int *x) { case DEBUG_CANCEL: *done = true; + /*fallthrough*/ case DEBUG_NEXT: cont = false; + /*fallthrough*/ case DEBUG_LEFT_JUSTIFY: (*x) = 0; sleep(HZ/5); break; case DEBUG_LEFT_SCROLL: (*x)--; + break; + default: + break; } } lcd_clear_display(); @@ -610,4 +615,4 @@ int get_cpu_voltage_setting(void) return value; } -#endif /* HAVE_ADJUSTABLE_CPU_VOLTAGE */ \ No newline at end of file +#endif /* HAVE_ADJUSTABLE_CPU_VOLTAGE */ diff --git a/lib/rbcodec/codecs/wavpack_enc.c b/lib/rbcodec/codecs/wavpack_enc.c index bdd999b14a..4be1684b12 100644 --- a/lib/rbcodec/codecs/wavpack_enc.c +++ b/lib/rbcodec/codecs/wavpack_enc.c @@ -365,6 +365,7 @@ enum codec_status codec_run(void) if (!(data = ci->enc_encbuf_get_buffer(out_reqsize))) continue; getbuf = GETBUF_PCM; + /*fallthrough*/ case GETBUF_PCM: if (!ci->enc_pcmbuf_read(input_buffer + PCM_SAMP_PER_CHUNK, PCM_SAMP_PER_CHUNK))