From 0034b1f83f6e14f89a2fc2b2b02f14fcf0e93b2f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 27 Jan 2010 10:26:52 +0100 Subject: [PATCH] speaker-test: add fflush(stdout) to write_loop Flush stdout for pipes. The monitor tool from hda-analyzer requires this. Signed-off-by: Jaroslav Kysela --- speaker-test/speaker-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/speaker-test/speaker-test.c b/speaker-test/speaker-test.c index 053ed3b..d8d68e2 100644 --- a/speaker-test/speaker-test.c +++ b/speaker-test/speaker-test.c @@ -689,6 +689,7 @@ static int write_loop(snd_pcm_t *handle, int channel, int periods, uint8_t *fram double phase = 0; int err, n; + fflush(stdout); if (test_type == TEST_WAV) { int bufsize = snd_pcm_frames_to_bytes(handle, period_size); n = 0;