1
#!/bin/sh /usr/share/dpatch/dpatch-run
3
## 99_debian_alsaconf_ignoreinstall.dpatch by Thomas Hood
5
## All lines beginning with `## DP:' are a description of the patch.
6
## DP: Use modprobe --ignore-install when modprobing legacy card drivers with args
9
diff -urNad alsa-utils-1.0.9/alsaconf/alsaconf.in /tmp/dpep.CMl3CX/alsa-utils-1.0.9/alsaconf/alsaconf.in
10
--- alsa-utils-1.0.9/alsaconf/alsaconf.in 2005-03-25 15:05:41.041891852 +0100
11
+++ /tmp/dpep.CMl3CX/alsa-utils-1.0.9/alsaconf/alsaconf.in 2005-03-25 15:08:01.589572000 +0100
12
@@ -1037,7 +1037,11 @@
13
# return 0 - OK, 1 - NG, 2 - not working (irq/dma problem)
15
test -n "$LOGFILE" && echo "$1 ${*:2}" >> "$LOGFILE"
16
+if [ "$kernel" = old ] ; then
17
/sbin/modprobe snd-$1 ${*:2} >/dev/null 2>&1
19
+ /sbin/modprobe --ignore-install snd-$1 ${*:2} >/dev/null 2>&1
21
if $lsmod | grep -q -E '^(snd-|snd_)'$1' '; then
24
@@ -1076,7 +1080,11 @@
25
# ac_try_capture card duplex opts
27
test -n "$LOGFILE" && echo "$1 ${*:2}" >> "$LOGFILE"
28
+if [ "$kernel" = old ] ; then
29
/sbin/modprobe snd-$1 ${*:3} >/dev/null 2>&1
31
+ /sbin/modprobe --ignore-install snd-$1 ${*:3} >/dev/null 2>&1
33
if $lsmod | grep -q -E '^(snd-|snd_)'$1' '; then