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.

fuze+: add unknown channel to debug menu imx233: always divide physical channels by two for wider range

The Fuze+ OF monitors channel 2 but I'm unable to determine the meaning of it.
Print the value on the debug menu so that people can have a look at it.

Change-Id: I8a942febeafbce06014178abda12e38a16c26664

+5 -2
+1 -1
firmware/target/arm/imx233/adc-imx233.c
··· 76 76 { 77 77 int virt = imx233_lradc_acquire_channel(TIMEOUT_BLOCK); 78 78 // divide by two for wider ranger 79 - imx233_lradc_setup_channel(virt, false, false, 0, src); 79 + imx233_lradc_setup_channel(virt, true, false, 0, src); 80 80 int val = adc_read_physical_ex(virt); 81 81 imx233_lradc_release_channel(virt); 82 82 return val;
+2
firmware/target/arm/imx233/sansa-fuzeplus/adc-fuzeplus.c
··· 27 27 [ADC_DIE_TEMP] = IMX233_ADC_DIE_TEMP, 28 28 [ADC_VDDIO] = IMX233_ADC_VDDIO, 29 29 [ADC_5V] = HW_LRADC_CHANNEL_5V, 30 + [ADC_CH2] = HW_LRADC_CHANNEL(2), 30 31 }; 31 32 32 33 const char *imx233_adc_channel_name[] = ··· 35 36 "Die temperature(°C)", 36 37 "VddIO", 37 38 "Vdd5V", 39 + "Channel 2", 38 40 };
+2 -1
firmware/target/arm/imx233/sansa-fuzeplus/adc-target.h
··· 21 21 #ifndef _ADC_TARGET_H_ 22 22 #define _ADC_TARGET_H_ 23 23 24 - #define NUM_ADC_CHANNELS 4 24 + #define NUM_ADC_CHANNELS 5 25 25 26 26 #define ADC_BATTERY 0 27 27 #define ADC_DIE_TEMP 1 28 28 #define ADC_VDDIO 2 29 29 #define ADC_5V 3 30 + #define ADC_CH2 4 30 31 31 32 #endif