diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-11-18 14:08:17 -0500 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-11-18 14:38:12 -0500 |
commit | 3027cead01d8aacce03dc360cedaa4cc44a062fc (patch) | |
tree | f7ff9d4fa1b4ab201580cb3468e36f705b0a9a8d /firmware/target/hosted/agptek | |
parent | 473aa615de2528e469a421d01be007e022d0a5b5 (diff) | |
download | rockbox-3027cead01d8aacce03dc360cedaa4cc44a062fc.tar.gz rockbox-3027cead01d8aacce03dc360cedaa4cc44a062fc.zip |
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
Diffstat (limited to 'firmware/target/hosted/agptek')
-rw-r--r-- | firmware/target/hosted/agptek/debug-agptek.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
62 | } | 62 | } |
63 | 63 | ||
64 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); | 64 | lcd_putsf(0, line++, "pcm srate: %d", pcm_alsa_get_rate()); |
65 | lcd_putsf(0, line++, "pcm xruns: %d", pcm_alsa_get_xruns()); | ||
65 | #ifdef HAVE_HEADPHONE_DETECTION | 66 | #ifdef HAVE_HEADPHONE_DETECTION |
66 | lcd_putsf(0, line++, "hp: %d", headphones_inserted()); | 67 | lcd_putsf(0, line++, "hp: %d", headphones_inserted()); |
67 | #endif | 68 | #endif |