diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 14:06:48 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-01 15:41:30 -0400 |
commit | b030bf5885dc5e018dd38eacbb294f1321f2b400 (patch) | |
tree | 4d9f06c7928fa44d225477b5551c69c29617a98a /firmware/target/hosted/agptek/debug-agptek.c | |
parent | 6d47dc9a8860a17a9e630b8662f33df63011bad9 (diff) | |
download | rockbox-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/debug-agptek.c')
-rw-r--r-- | firmware/target/hosted/agptek/debug-agptek.c | 7 |
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) | |||
41 | line = 0; | 41 | line = 0; |
42 | 42 | ||
43 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); | 43 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); |
44 | #ifdef HAVE_HEADPHONE_DETECTION | ||
45 | lcd_putsf(0, line++, "hp: %d", headphones_inserted()); | ||
46 | #endif | ||
47 | #ifdef HAVE_LINEOUT_DETECTION | ||
48 | lcd_putsf(0, line++, "lo: %d", lineout_inserted()); | ||
49 | #endif | ||
50 | |||
44 | btn = button_read_device(); | 51 | btn = button_read_device(); |
45 | 52 | ||
46 | lcd_update(); | 53 | lcd_update(); |