A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita audio rust zig deno mpris rockbox mpd

Fix AMSv2 variant 1 detection if rockbox loaded from SD card

Change-Id: Ie7c9c06170601e109f8d3de9686773c38a6e224a

+14
+7
bootloader/sansa_as3525.c
··· 160 160 #endif 161 161 } 162 162 163 + #if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP) 164 + /* It is necessary for proper detection AMSv2 variant 1. 165 + * We should restore initial state of GPIOB_PIN(5) as it used for 166 + * variant detection, but can be changed if we switch SD card. */ 167 + if (amsv2_variant == 1) 168 + GPIOB_PIN(5) = 1 << 5; 169 + #endif 163 170 kernel_entry = (void*) loadbuffer; 164 171 commit_discard_idcache(); 165 172 printf("Executing");
+7
firmware/rolo.c
··· 275 275 /* Set CVDD1 power supply to default*/ 276 276 ascodec_write_pmu(0x17, 1, 0); 277 277 #endif 278 + #if defined(SANSA_FUZEV2) || defined(SANSA_CLIPPLUS) || defined(SANSA_CLIPZIP) 279 + /* It is necessary for proper detection AMSv2 variant 1. 280 + * We should restore initial state of GPIOB_PIN(5) as it used for 281 + * variant detection, but can be changed if we switch SD card. */ 282 + if (amsv2_variant == 1) 283 + GPIOB_PIN(5) = 1 << 5; 284 + #endif 278 285 279 286 #if CONFIG_CPU != IMX31L /* We're not finished yet */ 280 287 #ifdef CPU_ARM