[arch-commits] CVS update of extra/multimedia/alsa-utils (PKGBUILD alsa alsa.conf.d)

Tobias Powalowski tpowa at archlinux.org
Fri Jan 11 08:10:36 UTC 2008


    Date: Friday, January 11, 2008 @ 03:10:36
  Author: tpowa
    Path: /home/cvs-extra/extra/multimedia/alsa-utils

   Added: alsa.conf.d (1.1)
Modified: PKGBUILD (1.46 -> 1.47) alsa (1.1 -> 1.2)

'upgpkg: added http://bugs.archlinux.org/task/9018'


-------------+
 PKGBUILD    |   14 +++++++++-----
 alsa        |   14 ++++++++++++++
 alsa.conf.d |    4 ++++
 3 files changed, 27 insertions(+), 5 deletions(-)


Index: extra/multimedia/alsa-utils/PKGBUILD
diff -u extra/multimedia/alsa-utils/PKGBUILD:1.46 extra/multimedia/alsa-utils/PKGBUILD:1.47
--- extra/multimedia/alsa-utils/PKGBUILD:1.46	Fri Oct 19 03:17:35 2007
+++ extra/multimedia/alsa-utils/PKGBUILD	Fri Jan 11 03:10:36 2008
@@ -1,15 +1,17 @@
-# $Id: PKGBUILD,v 1.46 2007/10/19 07:17:35 tpowa Exp $
+# $Id: PKGBUILD,v 1.47 2008/01/11 08:10:36 tpowa Exp $
 # Maintainer: judd <jvinet at zeroflux.org>
 pkgname=alsa-utils
 pkgver=1.0.15
-pkgrel=1
+pkgrel=2
 pkgdesc="An alternative implementation of Linux sound support"
 arch=(i686 x86_64)
 url="http://www.alsa-project.org"
 depends=('alsa-lib>=1.0.15' 'dialog' 'pciutils' 'ncurses')
 license=('GPL')
 source=(ftp://ftp.alsa-project.org/pub/utils/$pkgname-${pkgver}.tar.bz2 \
-        alsa alsaconf.patch)
+        alsa alsaconf.patch alsa.conf.d)
+backup=(etc/conf.d/alsa)
+
 
 build() {
   cd $startdir/src/$pkgname-${pkgver}
@@ -18,7 +20,9 @@
   make || return 1
   make DESTDIR=$startdir/pkg install
   install -D -m755 ../alsa $startdir/pkg/etc/rc.d/alsa
+  install -D -m644 ../alsa.conf.d $startdir/pkg/etc/conf.d/alsa
 }
 md5sums=('287f46f891581c15018de4f8c0731575'
-         'fc8526312f35fe9c7a095edc3dca28f3'
-         '538f82650d08e901efea86c5395520df')
+         'cce0969b0203a2bb35540fdf4f7e96ae'
+         '538f82650d08e901efea86c5395520df'
+         '366d370f874a45e67b63ce4a8b048202')
Index: extra/multimedia/alsa-utils/alsa
diff -u extra/multimedia/alsa-utils/alsa:1.1 extra/multimedia/alsa-utils/alsa:1.2
--- extra/multimedia/alsa-utils/alsa:1.1	Fri Mar 18 16:22:29 2005
+++ extra/multimedia/alsa-utils/alsa	Fri Jan 11 03:10:36 2008
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 . /etc/rc.conf
+. /etc/conf.d/alsa
 . /etc/rc.d/functions
 
 case "$1" in
@@ -13,6 +14,19 @@
       stat_done
       add_daemon alsa
     fi
+
+    POWERSAVE=${POWERSAVE:-0}
+    if [ -e /sys/module/snd_ac97_codec/parameters/power_save \
+	 -a $POWERSAVE -ne 0 ]; then
+        echo $POWERSAVE > /sys/module/snd_ac97_codec/parameters/power_save
+        echo 1 > /dev/dsp
+    fi
+
+    if [ -e /sys/module/snd_hda_intel/parameters/power_save \
+	 -a $POWERSAVE -ne 0 ]; then
+	echo $POWERSAVE > /sys/module/snd_hda_intel/parameters/power_save
+        echo 1 > /dev/dsp
+    fi
     ;;
   stop)
     stat_busy "Saving ALSA Levels"
Index: extra/multimedia/alsa-utils/alsa.conf.d
diff -u /dev/null extra/multimedia/alsa-utils/alsa.conf.d:1.1
--- /dev/null	Fri Jan 11 03:10:36 2008
+++ extra/multimedia/alsa-utils/alsa.conf.d	Fri Jan 11 03:10:36 2008
@@ -0,0 +1,4 @@
+# Enables powersaving mode for AC97 and hda_intel audio chips.
+# Set to 1 to enable powersaving.
+# Set to 0 to disable powersaving (default).
+POWERSAVE=0




More information about the arch-commits mailing list