3
## 10_move_asound_state_to_var.dpatch by David B. Harris
5
## All lines beginning with `## DP:' are a description of the patch.
6
## DP: Move asound.state location to /var/lib/alsa/
9
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
13
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
14
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
17
-patch) patch -p1 ${patch_opts} < $0;;
18
-unpatch) patch -R -p1 ${patch_opts} < $0;;
20
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
27
diff -urNad alsa-utils-1.0.9a/alsaconf/alsaconf.in /tmp/foo/alsa-utils-1.0.9a/alsaconf/alsaconf.in
28
--- alsa-utils-1.0.9a/alsaconf/alsaconf.in 2005-03-24 09:24:52.000000000 +0100
29
+++ /tmp/foo/alsa-utils-1.0.9a/alsaconf/alsaconf.in 2005-06-03 16:01:48.000000000 +0200
34
- if [ ! -r /etc/asound.state ]; then
35
- xecho "Saving the mixer setup used for this in /etc/asound.state."
36
+ if [ ! -r /var/lib/alsa/asound.state ]; then
37
+ xecho "Saving the mixer setup used for this in /var/lib/alsa/asound.state."
38
$sbindir/alsactl store
41
diff -urNad alsa-utils-1.0.9a/alsactl/alsactl.c /tmp/foo/alsa-utils-1.0.9a/alsactl/alsactl.c
42
--- alsa-utils-1.0.9a/alsactl/alsactl.c 2005-06-03 16:02:46.000000000 +0200
43
+++ /tmp/foo/alsa-utils-1.0.9a/alsactl/alsactl.c 2005-06-03 16:02:14.000000000 +0200
45
#include <alsa/asoundlib.h>
48
-#define SYS_ASOUNDRC "/etc/asound.state"
49
+#define SYS_ASOUNDRC "/var/lib/alsa/asound.state"
50
#define SYS_ASOUNDNAMES "/etc/asound.names"
53
diff -urNad alsa-utils-1.0.9a/alsactl/alsactl.1 /tmp/foo/alsa-utils-1.0.9a/alsactl/alsactl.1
54
--- alsa-utils-1.0.9a/alsactl/alsactl.1 2005-05-10 12:55:24.000000000 +0200
55
+++ /tmp/foo/alsa-utils-1.0.9a/alsactl/alsactl.1 2005-06-03 16:03:14.000000000 +0200
60
-Select the configuration file to use. The default is /etc/asound.state or
61
+Select the configuration file to use. The default is /var/lib/alsa/asound.state or
62
/etc/asound.names (for the \fInames\fP command).
66
Print alsactl version number.
69
-\fI/etc/asound.state\fP (or whatever file you specify with the
70
+\fI/var/lib/alsa/asound.state\fP (or whatever file you specify with the
71
\fB\-f\fP flag) is used to store current settings for your
72
soundcards. The settings include all the usual soundcard mixer
73
settings. More importantly, alsactl is