Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

AMSv2: don't reboot on USB plug

Users will have to reboot to OF manually or to power off, and then plug USB
No message is displayed because usb_detect() is run from a tick

This lacks documentation but should be OK for Unstable devices, and
will hopefully prevent clueless users from opening their devices and
breaking them definitely, instead of waiting for the battery to power
off.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27837 a1c6a512-1295-4272-9138-f99709370657

+6
+6
firmware/target/arm/as3525/usb-as3525.c
··· 55 55 56 56 int usb_detect(void) 57 57 { 58 + #if CONFIG_CPU == AS3525v2 59 + /* Rebooting on USB plug can crash these players in a state where 60 + * hardware power off (pressing the power button) doesn't work anymore 61 + * TODO: Implement USB in rockbox for these players */ 62 + return USB_EXTRACTED; 63 + #endif 58 64 return usb_status; 59 65 }