]> git.alsa-project.org Git - alsa-utils.git/commitdiff
New mixer API updates for testing (compatibility mode) amixer
authorJaroslav Kysela <perex@t61.perex-int.cz>
Thu, 14 May 2009 13:40:52 +0000 (15:40 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 15 May 2009 12:20:46 +0000 (14:20 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsamixer/alsamixer.c
alsamixer/go
amixer/amixer.c
amixer/go
go [new file with mode: 0755]

index c65c22defe59df7c0ad1c74e6d63ed06e2a0e18f..edb5e917568e21f399f1b2ed0b6b4cdc8bacc26f 100644 (file)
 #include <time.h>
 
 #include <alsa/asoundlib.h>
+#include <alsa/mixer_old.h>
 #include "aconfig.h"
 
 /* example compilation commandline:
index c33c298443c57d4a2143220ca12c50bc32d04ca0..2c2c1dff53b038275a2c28fb0c4e35c165b33576 100755 (executable)
@@ -1,10 +1,3 @@
 #!/bin/bash
 
-#GDB="gdb --args"
-GDB=""
-
-ALSA_MIXER_SIMPLE_MODULES="$HOME/hg/alsa-lib/modules/mixer/simple/.libs" \
-ALSA_MIXER_SIMPLE="$HOME/hg/alsa-lib/src/conf/smixer.conf" \
-ALSA_MIXER_SIMPLE_MPYTHON="$HOME/hg/alsa-lib/modules/mixer/simple/python/main.py" \
-LD_PRELOAD="$HOME/hg/alsa-lib/src/.libs/libasound.so" \
-$GDB ./alsamixer "$@"
+../go run ./alsamixer "$@"
index 962072133ccdaae8e23772ac1fcbb4d6c85a232a..4dc38634cd99888b3cc7f94fa3d663e98ecfdf02 100644 (file)
@@ -28,6 +28,7 @@
 #include <errno.h>
 #include <assert.h>
 #include <alsa/asoundlib.h>
+#include <alsa/mixer_old.h>
 #include <sys/poll.h>
 #include "amixer.h"
 
index 071627f656c2dad011f3b68bf7d38c0dba42d616..3e1d13d525e29163248ddf3580db00e47d688688 100755 (executable)
--- a/amixer/go
+++ b/amixer/go
@@ -1,10 +1,3 @@
 #!/bin/bash
 
-#GDB="gdb --args"
-GDB=""
-
-ALSA_MIXER_SIMPLE_MODULES="$HOME/hg/alsa-lib/modules/mixer/simple/.libs" \
-ALSA_MIXER_SIMPLE="$HOME/hg/alsa-lib/src/conf/smixer.conf" \
-ALSA_MIXER_SIMPLE_MPYTHON="$HOME/hg/alsa-lib/modules/mixer/simple/python/main.py" \
-LD_PRELOAD="$HOME/hg/alsa-lib/src/.libs/libasound.so" \
-$GDB ./amixer "$@"
+../go run ./amixer "$@"
diff --git a/go b/go
new file mode 100755 (executable)
index 0000000..13ee43a
--- /dev/null
+++ b/go
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+GDB=""
+#GDB="gdb --args"
+BASEDIR=`pwd`/..
+[ ! -d $BASEDIR/alsa-lib ] && BASEDIR="$BASEDIR/.."
+CMD="$1"
+shift
+ALSALIB_CONF=$BASEDIR/alsa-lib/src/conf/alsa.conf
+
+case $CMD in
+run)
+  PROG="$1"
+  shift
+  ALSA_CONFIG_PATH="$ALSALIB_CONF" \
+    LD_PRELOAD=$BASEDIR/alsa-lib/src/.libs/libasound.so $GDB $PROG "$@"
+  ;;
+*)
+  echo "This is test build using alsa-lib in: $BASEDIR"
+  ./gitcompile --with-alsa-inc-prefix=$BASEDIR/alsa-lib/include \
+              --with-alsa-prefix=$BASEDIR/alsa-lib/src/.libs
+  ;;
+esac