summaryrefslogtreecommitdiffstats
path: root/firmware/target/hosted/agptek
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-01 14:06:48 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-01 15:41:30 -0400
commitb030bf5885dc5e018dd38eacbb294f1321f2b400 (patch)
tree4d9f06c7928fa44d225477b5551c69c29617a98a /firmware/target/hosted/agptek
parent6d47dc9a8860a17a9e630b8662f33df63011bad9 (diff)
downloadrockbox-b030bf5885dc5e018dd38eacbb294f1321f2b400.tar.gz
rockbox-b030bf5885dc5e018dd38eacbb294f1321f2b400.zip
xduoox3ii/x20: Proper lineout detection and volume mangling.
hotplugging hp and lineout works, without blowing out eardrums. Change-Id: I2df5c7a618bb2d1d77d416548d45dff9cfc619db
Diffstat (limited to 'firmware/target/hosted/agptek')
-rw-r--r--firmware/target/hosted/agptek/debug-agptek.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/firmware/target/hosted/agptek/debug-agptek.c b/firmware/target/hosted/agptek/debug-agptek.c
index b4fcb4246b..7f794a7073 100644
--- a/firmware/target/hosted/agptek/debug-agptek.c
+++ b/firmware/target/hosted/agptek/debug-agptek.c
@@ -41,6 +41,13 @@ bool dbg_hw_info(void)
line = 0;
lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate());
+#ifdef HAVE_HEADPHONE_DETECTION
+ lcd_putsf(0, line++, "hp: %d", headphones_inserted());
+#endif
+#ifdef HAVE_LINEOUT_DETECTION
+ lcd_putsf(0, line++, "lo: %d", lineout_inserted());
+#endif
+
btn = button_read_device();
lcd_update();