forked from pool/alsa-utils
Takashi Iwai
a8785cdb8c
- Backport upstream fixes: a few speaker-test fixes, minor alsactl fixes and a revert of a wrong fix for aplay. 0007-speaker-test-Add-missing-draining-at-the-end.patch 0008-alsactl-Fix-the-file-locking-routines-for-the-state-.patch 0009-alsactl-aded-missing-monitor-prototype.patch 0010-speaker-text-fix-simple-signess-assignment-warning.patch 0011-monitor-fix-clang-warning-Declared-variable-length-a.patch 0012-alsactl-coverity-missing_va_end-va_end-was-not-calle.patch 0013-Revert-aplay-fix-pcm_read-return-value.patch OBS-URL: https://build.opensuse.org/request/show/257836 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=108
31 lines
892 B
Diff
31 lines
892 B
Diff
From f58ce3619de0612a6402c38f1cd81fb821818b60 Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Tue, 16 Sep 2014 16:36:44 +0200
|
|
Subject: [PATCH] speaker-test: Add missing draining at the end
|
|
|
|
Without the call of snd_pcm_drain() the pending data on the buffer
|
|
might be discarded, which results in the abort of playback sound in
|
|
the middle. Let's fix it.
|
|
|
|
Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
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 61396f296c65..362efa7ffc0d 100644
|
|
--- a/speaker-test/speaker-test.c
|
|
+++ b/speaker-test/speaker-test.c
|
|
@@ -1307,6 +1307,7 @@ int main(int argc, char *argv[]) {
|
|
}
|
|
}
|
|
|
|
+ snd_pcm_drain(handle);
|
|
|
|
free(frames);
|
|
#ifdef CONFIG_SUPPORT_CHMAP
|
|
--
|
|
2.1.2
|
|
|