diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2024-10-10 13:25:47 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-11-01 14:12:31 -0400 |
commit | 51ba8b3eee2ccfede2c766494b38b1b3404b95e4 (patch) | |
tree | 9045030858488e25e1241f289a7d732ee2a509f5 /firmware/target/hosted/agptek | |
parent | 1c28cb439b0f2838a8132bb951787207bd0fe0f6 (diff) | |
download | rockbox-51ba8b3eee2ccfede2c766494b38b1b3404b95e4.tar.gz rockbox-51ba8b3eee2ccfede2c766494b38b1b3404b95e4.zip |
erosqhosted: Support HW volume control on rev2+ hardware
This also adds hwrev info to the debug output.
Change-Id: Ia75218cacb8f756a23a77334ea6ab69ac3b20d10
Diffstat (limited to 'firmware/target/hosted/agptek')
-rw-r--r-- | firmware/target/hosted/agptek/debug-agptek.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/agptek/debug-agptek.c b/firmware/target/hosted/agptek/debug-agptek.c index a9b829f7ec..de4bc946bc 100644 --- a/firmware/target/hosted/agptek/debug-agptek.c +++ b/firmware/target/hosted/agptek/debug-agptek.c | |||
@@ -37,6 +37,8 @@ | |||
37 | 37 | ||
38 | static int line = 0; | 38 | static int line = 0; |
39 | 39 | ||
40 | extern int hwver; | ||
41 | |||
40 | bool dbg_hw_info(void) | 42 | bool dbg_hw_info(void) |
41 | { | 43 | { |
42 | int btn = 0; | 44 | int btn = 0; |
@@ -61,6 +63,10 @@ bool dbg_hw_info(void) | |||
61 | lcd_putsf(0, line++, "Boot ver: %s", verstr); | 63 | lcd_putsf(0, line++, "Boot ver: %s", verstr); |
62 | } | 64 | } |
63 | 65 | ||
66 | #ifdef EROS_Q | ||
67 | lcd_putsf(0, line++, "hwver: %d", hwver); | ||
68 | #endif | ||
69 | |||
64 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); | 70 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); |
65 | lcd_putsf(0, line++, "pcm xruns: %d", pcm_alsa_get_xruns()); | 71 | lcd_putsf(0, line++, "pcm xruns: %d", pcm_alsa_get_xruns()); |
66 | #ifdef HAVE_HEADPHONE_DETECTION | 72 | #ifdef HAVE_HEADPHONE_DETECTION |