rpms/alsa-lib/F-11 alsa-lib-1.0.22-hwparams.patch, NONE, 1.1 alsa-lib.spec, 1.89, 1.90

perex perex at fedoraproject.org
Tue Jan 26 12:07:42 UTC 2010


Author: perex

Update of /cvs/pkgs/rpms/alsa-lib/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4961

Modified Files:
	alsa-lib.spec 
Added Files:
	alsa-lib-1.0.22-hwparams.patch 
Log Message:
fix for bug#553497

alsa-lib-1.0.22-hwparams.patch:
 pcm_params.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE alsa-lib-1.0.22-hwparams.patch ---
--- src/pcm/pcm_params.c~	2010-01-26 09:30:46.000000000 +0100
+++ src/pcm/pcm_params.c	2010-01-26 09:30:46.000000000 +0100
@@ -1104,7 +1104,7 @@
 	err = snd_pcm_hw_param_set_first(pcm, params, SND_PCM_HW_PARAM_RATE, NULL, 0);
 	if (err < 0)
 		return err;
-	if (compat && *compat) {
+	if (!compat || (*compat != 'n' && *compat != 'N' && *compat != '0')) {
 		/* old mode */
 		err = snd_pcm_hw_param_set_first(pcm, params, SND_PCM_HW_PARAM_PERIOD_TIME, NULL, 0);
 		if (err < 0)


Index: alsa-lib.spec
===================================================================
RCS file: /cvs/pkgs/rpms/alsa-lib/F-11/alsa-lib.spec,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -p -r1.89 -r1.90
--- alsa-lib.spec	28 Dec 2009 15:48:54 -0000	1.89
+++ alsa-lib.spec	26 Jan 2010 12:07:42 -0000	1.90
@@ -6,7 +6,7 @@
 Summary: The Advanced Linux Sound Architecture (ALSA) library
 Name:    alsa-lib
 Version: 1.0.22
-Release: 2%{?prever_dot}%{?dist}
+Release: 3%{?prever_dot}%{?dist}
 License: LGPLv2+
 Group:   System Environment/Libraries
 Source:  ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
@@ -16,6 +16,7 @@ Patch2:  alsa-lib-1.0.14-glibc-open.patc
 Patch4:	 alsa-lib-1.0.16-no-dox-date.patch
 Patch5:  alsa-lib-1.0.22-closetimer.patch
 Patch6:  alsa-lib-1.0.22-softvol.patch
+Patch7:  alsa-lib-1.0.22-hwparams.patch
 URL:     http://www.alsa-project.org/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: doxygen
@@ -49,6 +50,7 @@ against the ALSA libraries and interface
 %patch4 -p1 -b .no-dox-date
 %patch5 -p1 -b .closetimer
 %patch6 -p1 -b .softvol
+%patch7 -p0 -b .hwparams
 
 %build
 %configure --disable-aload
@@ -98,6 +100,9 @@ rm -rf %{buildroot}
 %{_datadir}/aclocal/alsa.m4
 
 %changelog
+* Mon Dec 28 2009 Jaroslav Kysela <jkysela at redhat.com> - 1.0.22-3
+- fix hwparams issue - redhat bug #553497
+
 * Mon Dec 28 2009 Jaroslav Kysela <jkysela at redhat.com> - 1.0.22-2
 - Updated to 1.0.22 final
 - Fix file descriptor leak in pcm_hw plugin



More information about the scm-commits mailing list