From 379def16a83cef19a689645de6eb6a4530b7f4ec Mon Sep 17 00:00:00 2001 From: perex Date: Sep 07 2009 10:47:15 +0000 Subject: alsa-lib: weight patch --- diff --git a/alsa-lib-1.0.21-weight.patch b/alsa-lib-1.0.21-weight.patch new file mode 100644 index 0000000..14aa79e --- /dev/null +++ b/alsa-lib-1.0.21-weight.patch @@ -0,0 +1,36 @@ +From ac9de424bc0a896e8e30b5ec176daf924a2cefb2 Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Mon, 31 Aug 2009 16:41:12 +0200 +Subject: [PATCH] mixer: Add Speaker and Beep names to the weight list + +Added strings "Speaker" and "Beep" to the weight list so that the entries +appear in more appropriate positions. + +Signed-off-by: Takashi Iwai +--- + src/mixer/simple_none.c | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c +index 4802200..9259a08 100644 +--- a/src/mixer/simple_none.c ++++ b/src/mixer/simple_none.c +@@ -134,6 +134,7 @@ static int get_compare_weight(const char *name, unsigned int idx) + static const char *const names[] = { + "Master", + "Headphone", ++ "Speaker", + "Tone", + "Bass", + "Treble", +@@ -158,6 +159,7 @@ static int get_compare_weight(const char *name, unsigned int idx) + "I2S", + "IEC958", + "PC Speaker", ++ "Beep", + "Aux", + "Mono", + "Playback", +-- +1.5.5.1 + diff --git a/alsa-lib.spec b/alsa-lib.spec index b6516a6..d56b84f 100644 --- a/alsa-lib.spec +++ b/alsa-lib.spec @@ -1,3 +1,4 @@ + #define prever rc3 #define prever_dot .rc3 #define postver a @@ -5,7 +6,7 @@ Summary: The Advanced Linux Sound Architecture (ALSA) library Name: alsa-lib Version: 1.0.21 -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 @@ -13,6 +14,7 @@ Source10: asound.conf Patch0: alsa-lib-1.0.17-config.patch Patch2: alsa-lib-1.0.14-glibc-open.patch Patch4: alsa-lib-1.0.16-no-dox-date.patch +Patch5: alsa-lib-1.0.21-weight.patch URL: http://www.alsa-project.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: doxygen @@ -44,6 +46,7 @@ against the ALSA libraries and interfaces. %patch0 -p1 -b .config %patch2 -p1 -b .glibc-open %patch4 -p1 -b .no-dox-date +%patch5 -p1 -b .weight %build %configure --disable-aload @@ -93,6 +96,9 @@ rm -rf %{buildroot} %{_datadir}/aclocal/alsa.m4 %changelog +* Mon Sep 7 2009 Jaroslav Kysela - 1.0.21-2 +- Added mixer weight patch for Speaker and Beep controls + * Wed Sep 2 2009 Jaroslav Kysela - 1.0.21-1 - Updated to 1.0.21 final