erosqhosted: Support HW volume control on rev2+ hardware

This also adds hwrev info to the debug output.

Change-Id: Ia75218cacb8f756a23a77334ea6ab69ac3b20d10
This commit is contained in:
Solomon Peachy 2024-10-10 13:25:47 -04:00
parent 1c28cb439b
commit 51ba8b3eee
4 changed files with 95 additions and 20 deletions

View file

@ -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