diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-08-08 09:27:27 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-08-08 09:27:27 -0400 |
commit | 275c762bb2a5998e28fd68e69efc16723fb6738f (patch) | |
tree | 9ed85d5a11b5fe9c7e5f7c5d2b37a949d3a2101f | |
parent | 0a6d7abd135c67f92a4882c73a49e81ffb1ff7b4 (diff) | |
download | rockbox-275c762bb2a5998e28fd68e69efc16723fb6738f.tar.gz rockbox-275c762bb2a5998e28fd68e69efc16723fb6738f.zip |
As3525 wavpack_enc document some intentional switch fall through
Change-Id: I56bf439df2c05653d65f49238e886e4ef2291176
-rw-r--r-- | firmware/target/arm/as3525/audio-as3525.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/as3525/debug-as3525.c | 7 | ||||
-rw-r--r-- | lib/rbcodec/codecs/wavpack_enc.c | 1 |
3 files changed, 8 insertions, 1 deletions
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) | |||
67 | { | 67 | { |
68 | default: /* playback - no recording */ | 68 | default: /* playback - no recording */ |
69 | source = AUDIO_SRC_PLAYBACK; | 69 | source = AUDIO_SRC_PLAYBACK; |
70 | /*fallthrough*/ | ||
70 | case AUDIO_SRC_PLAYBACK: | 71 | case AUDIO_SRC_PLAYBACK: |
71 | if (source != last_source) | 72 | if (source != last_source) |
72 | { | 73 | { |
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) | |||
288 | { | 288 | { |
289 | case DEBUG_CANCEL: | 289 | case DEBUG_CANCEL: |
290 | *done = true; | 290 | *done = true; |
291 | /*fallthrough*/ | ||
291 | case DEBUG_NEXT: | 292 | case DEBUG_NEXT: |
292 | cont = false; | 293 | cont = false; |
294 | /*fallthrough*/ | ||
293 | case DEBUG_LEFT_JUSTIFY: | 295 | case DEBUG_LEFT_JUSTIFY: |
294 | (*x) = 0; | 296 | (*x) = 0; |
295 | sleep(HZ/5); | 297 | sleep(HZ/5); |
296 | break; | 298 | break; |
297 | case DEBUG_LEFT_SCROLL: | 299 | case DEBUG_LEFT_SCROLL: |
298 | (*x)--; | 300 | (*x)--; |
301 | break; | ||
302 | default: | ||
303 | break; | ||
299 | } | 304 | } |
300 | } | 305 | } |
301 | lcd_clear_display(); | 306 | lcd_clear_display(); |
@@ -610,4 +615,4 @@ int get_cpu_voltage_setting(void) | |||
610 | 615 | ||
611 | return value; | 616 | return value; |
612 | } | 617 | } |
613 | #endif /* HAVE_ADJUSTABLE_CPU_VOLTAGE */ \ No newline at end of file | 618 | #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) | |||
365 | if (!(data = ci->enc_encbuf_get_buffer(out_reqsize))) | 365 | if (!(data = ci->enc_encbuf_get_buffer(out_reqsize))) |
366 | continue; | 366 | continue; |
367 | getbuf = GETBUF_PCM; | 367 | getbuf = GETBUF_PCM; |
368 | /*fallthrough*/ | ||
368 | case GETBUF_PCM: | 369 | case GETBUF_PCM: |
369 | if (!ci->enc_pcmbuf_read(input_buffer + PCM_SAMP_PER_CHUNK, | 370 | if (!ci->enc_pcmbuf_read(input_buffer + PCM_SAMP_PER_CHUNK, |
370 | PCM_SAMP_PER_CHUNK)) | 371 | PCM_SAMP_PER_CHUNK)) |