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.

xduoo_x3: Disable keypress IRQ since we poll for keypresses.

Change-Id: Ieab5f864751cf798b62c4e89e670acf7ade756ab

+7 -4
+7 -4
firmware/target/mips/ingenic_jz47xx/xduoo_x3/sadc-xduoo_x3.c
··· 62 62 63 63 __gpio_disable_pull(PIN_BTN_POWER); 64 64 __gpio_disable_pull(PIN_BTN_HOLD); 65 - 65 + 66 + #if 0 67 + /* We poll this, no need to set it up for an interrupt */ 66 68 __gpio_as_irq_fall_edge(PIN_KEY_INT); 67 69 system_enable_irq(GPIO_IRQ(PIN_KEY_INT)); 70 + #endif 68 71 69 72 __gpio_set_pin(PIN_CHARGE_CON); /* 0.7 A */ 70 73 __gpio_as_output(PIN_CHARGE_CON); ··· 85 88 { 86 89 static bool hold_button = false; 87 90 bool hold_button_old; 88 - 91 + 89 92 hold_button_old = hold_button; 90 93 hold_button = (__gpio_get_pin(PIN_BTN_HOLD) ? true : false); 91 94 ··· 127 130 else 128 131 if (key_val < 2600) 129 132 btn |= BUTTON_HOME; 130 - 133 + 131 134 return btn; 132 135 } 133 136 ··· 202 205 sadcstate = REG_SADC_ADSTATE; 203 206 state = REG_SADC_ADSTATE & (~REG_SADC_ADCTRL); 204 207 REG_SADC_ADSTATE &= sadcstate; 205 - 208 + 206 209 if(state & ADCTRL_ARDYM) 207 210 { 208 211 key_val = REG_SADC_ADADAT;