From efff787f64947d5b010163af52190b830883fa23 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@fedoraproject.org>
Date: Fri, 31 Jul 2009 14:04:31 +0000
Subject: [PATCH] Add a couple of clean up patches for the pulse plugin

---
 alsa-plugins.spec | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/alsa-plugins.spec b/alsa-plugins.spec
index 3ae15f6..37d745e 100644
--- a/alsa-plugins.spec
+++ b/alsa-plugins.spec
@@ -1,6 +1,6 @@
 Name:           alsa-plugins
 Version:        1.0.20
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        The Advanced Linux Sound Architecture (ALSA) Plugins
 # All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
 License:        GPLv2+ and LGPLv2+
@@ -16,6 +16,11 @@ Source6:        vdownmix.conf
 Source7:        pulse-default.conf
 Source8:        arcamav.conf
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0:		0001-alsa-plugins-pulse-Implement-pause.patch
+Patch1:		0001-alsa-get-rid-of-a-number-of-assert-s.patch
+Patch2:		0002-pulse-use-PA_CONTEXT_IS_GOOD-where-applicable.patch
+Patch3:		0003-pulse-unify-destruction-of-snd_pulse_t.patch
+Patch4:		0004-pulse-call-pa_threaded_mainloop_wait-to-handle-spuri.patch
 
 BuildRequires:  alsa-lib-devel
 
@@ -123,6 +128,11 @@ pre-processing of a mono stream like denoise using libspeex DSP API.
 
 %prep
 %setup -q -n %{name}-%{version}%{?prever}
+%patch0 -p1
+%patch1 -p1 
+%patch2 -p1 
+%patch3 -p1 
+%patch4 -p1 
 
 %build
 %configure --disable-static \
@@ -225,6 +235,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Fri Jul 31 2009 Lennart Poettering <lpoetter@redhat.com> - 1.0.20-4
+- Add a couple of clean up patches for the pulse plugin
+
 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.20-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild