From 51ba8b3eee2ccfede2c766494b38b1b3404b95e4 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 10 Oct 2024 13:25:47 -0400 Subject: erosqhosted: Support HW volume control on rev2+ hardware This also adds hwrev info to the debug output. Change-Id: Ia75218cacb8f756a23a77334ea6ab69ac3b20d10 --- firmware/target/hosted/agptek/debug-agptek.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/hosted/agptek/debug-agptek.c') 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 @@ static int line = 0; +extern int hwver; + bool dbg_hw_info(void) { int btn = 0; @@ -61,6 +63,10 @@ bool dbg_hw_info(void) lcd_putsf(0, line++, "Boot ver: %s", verstr); } +#ifdef EROS_Q + lcd_putsf(0, line++, "hwver: %d", hwver); +#endif + lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); lcd_putsf(0, line++, "pcm xruns: %d", pcm_alsa_get_xruns()); #ifdef HAVE_HEADPHONE_DETECTION -- cgit v1.2.3