From 3027cead01d8aacce03dc360cedaa4cc44a062fc Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 18 Nov 2020 14:08:17 -0500 Subject: hosted: Improve buffer underrun handling in the ALSA driver * Bump internal mix buffer size by 4x, to 1K frames (matching ALSA period) * Handle an underrun that occurs when filling the audio buffer * Log underruns and make them available in the debug info Change-Id: I28d56dd35d88851fa167ad92368a5882937a758f --- firmware/target/hosted/agptek/debug-agptek.c | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/target/hosted/agptek') diff --git a/firmware/target/hosted/agptek/debug-agptek.c b/firmware/target/hosted/agptek/debug-agptek.c index 8ef0048945..a9b829f7ec 100644 --- a/firmware/target/hosted/agptek/debug-agptek.c +++ b/firmware/target/hosted/agptek/debug-agptek.c @@ -62,6 +62,7 @@ bool dbg_hw_info(void) } 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 lcd_putsf(0, line++, "hp: %d", headphones_inserted()); #endif -- cgit v1.2.3