From 258164b956b0b4d3a839282c2ab899ec20d5b1b2 Mon Sep 17 00:00:00 2001 From: perex Date: Jan 26 2010 08:40:16 +0000 Subject: fix bug#553497 --- diff --git a/alsa-lib-1.0.22-hwparams.patch b/alsa-lib-1.0.22-hwparams.patch new file mode 100644 index 0000000..b7a72f2 --- /dev/null +++ b/alsa-lib-1.0.22-hwparams.patch @@ -0,0 +1,11 @@ +--- 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) diff --git a/alsa-lib.spec b/alsa-lib.spec index 2ff173d..babfe11 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -5,7 +5,7 @@ Summary: The Advanced Linux Sound Architecture (ALSA) library Name: alsa-lib Version: 1.0.22 -Release: 1%{?prever_dot}%{?dist} +Release: 2%{?prever_dot}%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2 @@ -15,6 +15,7 @@ Patch2: alsa-lib-1.0.14-glibc-open.patch Patch4: alsa-lib-1.0.16-no-dox-date.patch Patch10: alsa-lib-1.0.22-closetimer.patch Patch11: alsa-lib-1.0.22-softvol.patch +Patch12: alsa-lib-1.0.22-hwparams.patch URL: http://www.alsa-project.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: doxygen @@ -48,6 +49,7 @@ against the ALSA libraries and interfaces. %patch4 -p1 -b .no-dox-date %patch10 -p1 -b .closetimer %patch11 -p1 -b .softvol +%patch12 -p0 -b .hwparams %build %configure --disable-aload @@ -97,6 +99,9 @@ rm -rf %{buildroot} %{_datadir}/aclocal/alsa.m4 %changelog +* Tue Jan 26 2010 Jaroslav Kysela - 1.0.22-2 +- fixes hw_params settings - redhat bug #553497 + * Mon Dec 28 2009 Jaroslav Kysela - 1.0.22-1 - Updated to 1.0.22 final - Fix file descriptor leak in pcm_hw plugin