summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroman.artiukhin <bahusdrive@gmail.com>2024-01-01 12:38:10 +0200
committerAidan MacDonald <amachronic@protonmail.com>2024-01-02 10:05:17 -0500
commited27dac4322362c7524ce6631f210a28465ff095 (patch)
tree83dc15b706198f5f07e29a9d404d147e5f5ba96c
parent8cc7476735dd3f9f9e3f5b1356eadc4ef40c23b4 (diff)
downloadrockbox-ed27dac4322362c7524ce6631f210a28465ff095.tar.gz
rockbox-ed27dac4322362c7524ce6631f210a28465ff095.zip
Fix CODEC_AAC_SBR_DEC check with undefined CONFIG_CPU
Define CONFIG_CPU if not defined This fix makes sure that AAC-LC decoding is used both on device and simulator. It's important for testing purposes as proper AAC-LC decoding requires changes both in decoder and in metadata handling. Fixup for 4cd65b9d9. Change-Id: Idef88825458761fffa3f5c5f4f221b555c509d89
-rw-r--r--firmware/export/config.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 74be1f9711..26ed7395ff 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -601,6 +601,15 @@ Lyre prototype 1 */
601//#error "unknown hwardware platform!" 601//#error "unknown hwardware platform!"
602#endif 602#endif
603 603
604#ifndef CONFIG_CPU
605#define CONFIG_CPU 0
606#endif
607
608// NOTE: should be placed before sim.h (where CONFIG_CPU is undefined)
609#if !(CONFIG_CPU >= PP5002 && CONFIG_CPU <= PP5022) && CODEC_SIZE >= 0x80000
610#define CODEC_AAC_SBR_DEC
611#endif
612
604#ifdef __PCTOOL__ 613#ifdef __PCTOOL__
605#undef CONFIG_CPU 614#undef CONFIG_CPU
606#define CONFIG_CPU 0 615#define CONFIG_CPU 0
@@ -681,10 +690,6 @@ Lyre prototype 1 */
681/* now set any CONFIG_ defines correctly if they are not used, 690/* now set any CONFIG_ defines correctly if they are not used,
682 No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */ 691 No need to do this on CONFIG_'s which are compulsory (e.g CONFIG_CODEC ) */
683 692
684#if !(CONFIG_CPU >= PP5002 && CONFIG_CPU <= PP5022) && CODEC_SIZE >= 0x80000
685#define CODEC_AAC_SBR_DEC
686#endif
687
688#if !defined(CONFIG_BACKLIGHT_FADING) 693#if !defined(CONFIG_BACKLIGHT_FADING)
689#define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING 694#define CONFIG_BACKLIGHT_FADING BACKLIGHT_NO_FADING
690#endif 695#endif