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.

ipod 4g/color: Fix unresponsive buttons after booting

The iPod 4g and color always ignored the very first
button press after booting, i.e. you needed to either
press another button or scroll for a bit first.

Not sure whether any other PP iPods exhibit the same
behavior, although it is not reproducible on an iPod
video.

This patch basically copies the code from FS#5230
that fixed unresponsive buttons whenever the HOLD
switch was turned off (committed as a5961c944b).

Change-Id: I8d3444094e5d000e0f8e30e39a23f054abeeb0f5

+7 -1
+7 -1
firmware/target/arm/ipod/button-clickwheel.c
··· 327 327 void button_init_device(void) 328 328 { 329 329 opto_i2c_init(); 330 - 330 + 331 + /* fixes first button press being ignored */ 332 + #if defined(IPOD_4G) || defined(IPOD_COLOR) 333 + outl(inl(0x7000c100) & ~0x60000000, 0x7000c100); 334 + outl(inl(0x7000c104) | 0x04000000, 0x7000c104); 335 + outl(inl(0x7000c100) | 0x60000000, 0x7000c100); 336 + #endif 331 337 /* hold button - enable as input */ 332 338 GPIOA_ENABLE |= 0x20; 333 339 GPIOA_OUTPUT_EN &= ~0x20;