Package: linux-sound-base Version: 1.0.11-2 Severity: wishlist Tags: patch Would be nice if you could disable both ALSA and OSS sound support in the debconf template. This is useful for servers that load a bunch of drivers for their integrated sound card and none of this is ever used.
Patch attached. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-1-amd64-k8 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Versions of packages linux-sound-base depends on: ii debconf [debconf-2.0] 1.5.2 Debian configuration management sy ii module-init-tools 3.2.2-3 tools for managing Linux kernel mo ii modutils 2.4.27.0-6 Linux module utilities linux-sound-base recommends no packages. -- debconf information excluded
diff -ur alsa-driver-1.0.11.old/debian/linux-sound-base.config alsa-driver-1.0.11/debian/linux-sound-base.config --- alsa-driver-1.0.11.old/debian/linux-sound-base.config 2006-07-01 10:27:14.000000000 +0200 +++ alsa-driver-1.0.11/debian/linux-sound-base.config 2006-07-01 10:31:42.000000000 +0200 @@ -15,6 +15,11 @@ && [ -f /etc/hotplug/blacklist.d/linux-sound-base_noALSA ] then db_set linux-sound-base/sound_system OSS || : +elif \ + [ -f /etc/hotplug/blacklist.d/linux-sound-base_noOSS ] \ + && [ -f /etc/hotplug/blacklist.d/linux-sound-base_noALSA ] +then + db_set linux-sound-base/sound_system None || : fi db_input low linux-sound-base/sound_system || : diff -ur alsa-driver-1.0.11.old/debian/linux-sound-base.postinst alsa-driver-1.0.11/debian/linux-sound-base.postinst --- alsa-driver-1.0.11.old/debian/linux-sound-base.postinst 2006-07-01 10:27:14.000000000 +0200 +++ alsa-driver-1.0.11/debian/linux-sound-base.postinst 2006-07-01 10:33:59.000000000 +0200 @@ -42,6 +42,17 @@ rm -f /etc/modprobe.d/linux-sound-base_noALSA rm -f /etc/discover.conf.d/10linux-sound-base ;; + None) + ln -sf /lib/linux-sound-base/noOSS.hotplug.blacklist /etc/hotplug/blacklist.d/linux-sound-base_noOSS + ln -sf /lib/linux-sound-base/noOSS.discover1.conf /etc/discover.d/linux-sound-base_noOSS + ln -sf /lib/linux-sound-base/noOSS.modutils.conf /etc/modutils/linux-sound-base_noOSS + ln -sf /lib/linux-sound-base/noOSS.modprobe.conf /etc/modprobe.d/linux-sound-base_noOSS + rm -f /etc/discover.conf.d/10linux-sound-base + ln -sf /lib/linux-sound-base/noALSA.hotplug.blacklist /etc/hotplug/blacklist.d/linux-sound-base_noALSA + ln -sf /lib/linux-sound-base/noALSA.discover1.conf /etc/discover.d/linux-sound-base_noALSA + ln -sf /lib/linux-sound-base/noALSA.modutils.conf /etc/modutils/linux-sound-base_noALSA + ln -sf /lib/linux-sound-base/noALSA.modprobe.conf /etc/modprobe.d/linux-sound-base_noALSA + ;; esac update-modules ;; diff -ur alsa-driver-1.0.11.old/debian/linux-sound-base.templates alsa-driver-1.0.11/debian/linux-sound-base.templates --- alsa-driver-1.0.11.old/debian/linux-sound-base.templates 2006-07-01 10:27:14.000000000 +0200 +++ alsa-driver-1.0.11/debian/linux-sound-base.templates 2006-07-01 10:31:00.000000000 +0200 @@ -1,6 +1,6 @@ Template: linux-sound-base/sound_system Type: select -_Choices: ALSA, OSS, default +_Choices: ALSA, OSS, default, None Default: ALSA _Description: Sound system to use ALSA and OSS are alternative systems of drivers for @@ -19,3 +19,5 @@ you are using a 2.4 kernel and you do not want to install an alsa-modules package, or if the OSS driver works with your hardware and the ALSA driver does not. + . + If None is selected, no sound support will be provided.