From 1063c1f2e3ac297d0e766f2573ee6459bc31df11 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 3 Mar 2009 22:19:37 +0100
Subject: [PATCH] alsa: log period and buffer size

Log the real period and buffer size.  This might be useful when
debugging xruns.  Note that the same information is available in
/proc/asound/card*/pcm*p/sub*/hw_params
---
 src/output/alsa_plugin.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index 83df3279f..fb748fdec 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -369,6 +369,9 @@ configure_hw:
 	if (err < 0)
 		goto error;
 
+	g_debug("buffer_size=%u period_size=%u",
+		(unsigned)alsa_buffer_size, (unsigned)alsa_period_size);
+
 	return true;
 
 error: