--- alsa-utils-1.0.16.orig/debian/udev.rules +++ alsa-utils-1.0.16/debian/udev.rules @@ -0,0 +1,2 @@ +KERNEL=="controlC[0-9]*", ACTION=="add", \ + RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/alsa/bogus --startas /etc/init.d/alsa-utils -- start %n" --- alsa-utils-1.0.16.orig/debian/rules +++ alsa-utils-1.0.16/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +CFLAGS = -Wall -g + +INSTALL_UAG := -o root -g audio + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +clean: unpatch + dh_testdir + dh_clean + [ ! -f Makefile ] || $(MAKE) distclean + -rm -f version + -rm -f configure-stamp build-stamp + -rm -f config.cache config.log config.status Makefile.conf + -rm -f config.sub config.guess + -rm -f aplay/arecord + +configure: debian/stamp-patched configure-stamp +configure-stamp: + dh_testdir + -rm -f config.sub config.guess + ln -s /usr/share/misc/config.sub config.sub + ln -s /usr/share/misc/config.guess config.guess + ./configure --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) + touch configure-stamp + +build: configure build-stamp +build-stamp: + $(MAKE) CFLAGS='$(CFLAGS)' + touch build-stamp + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=$(CURDIR)/debian/alsa-utils + rm -f debian/alsa-utils/usr/share/man/fr/man8/alsaconf.8 + rmdir debian/alsa-utils/usr/share/man/fr/man8 + rmdir debian/alsa-utils/usr/share/man/fr + + # move alsactl to /sbin + mkdir debian/alsa-utils/sbin + mv debian/alsa-utils/usr/sbin/alsactl debian/alsa-utils/sbin + + # do not install alsaconf for Ubuntu + rm -f debian/alsa-utils/usr/sbin/alsaconf + rm -f debian/alsa-utils/usr/share/man/man8/alsaconf* + rm -f debian/alsa-utils/usr/share/locale/*/LC_MESSAGES/alsaconf* + + rmdir debian/alsa-utils/usr/sbin + +binary-indep: +binary-arch: build install + dh_testdir + dh_testroot + dh_installdirs + install $(INSTALL_UAG) -m755 debian/asoundconf \ + debian/alsa-utils/usr/bin + install $(INSTALL_UAG) -m644 debian/udev.rules \ + debian/alsa-utils/etc/udev/rules.d/85-alsa.rules + dh_link + DH_OPTIONS= dh_installinit --no-start -- stop 50 0 6 . + dh_installdocs + dh_installman + cp debian/PATCHES.Debian \ + debian/alsa-utils/usr/share/doc/alsa-utils/ + cp alsamixer/README \ + debian/alsa-utils/usr/share/doc/alsa-utils/README.alsamixer + dh_installchangelogs debian/changelog.ALSA + dh_installmenu + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary binary-arch binary-indep install configure patch --- alsa-utils-1.0.16.orig/debian/changelog.ALSA +++ alsa-utils-1.0.16/debian/changelog.ALSA @@ -0,0 +1,612 @@ +Changelog between 1.0.15 and 1.0.16 releases +(http://www.alsa-project.org/main/index.php/Changes_v1.0.15_v1.0.16) +(Reformated as ASCII text) +******************************************** + +* alsa-utils + + Core + - alsactl - restore dB level + + ALSA Control (alsactl) + - alsactl - Fix wrong restore + - alsactl: skip inactive controls + - alsactl - fix double entry of comment.tlv + - alsactl - Set -F option as default + - Make alsactl restore a bit more robust + - alsactl - restore dB level + + Speaker Test + - speaker-test - Fix number of periods to play + - speaker-test - Put errors to stderr + - Remove xfer_align + + alsamixer + - alsamixer: add 8-channel support + + aplay/arecord + - aplay - Reset non-blocking flag before snd_pcm_drain() + - Remove sleep_min from aplay + - Remove xfer_align + + aseqnet + - Add missing inclusion of assert.h + + iecset + - iecset: fix card index check + - iecset - Add -n option + +Changelog between 1.0.14 and 1.0.15 releases +(http://www.alsa-project.org/main/index.php/Changes_v1.0.14_v1.0.15) +(Reformated as ASCII text) +******************************************** + +* alsa-utils + + ALSA Control (alsactl) + - alsactl - Remove debug print + + Speaker Test + - Add missing library dependency + + alsaconf + - alsaconf - Don't produce hwcfg file for openSUSE 10.3 + + alsamixer + - alsamixer - Handle capture enums separately + - amixer/alsamixer - updated go scripts for debugging + + amixer + - amixer - Fix selection of enum items + - Ignore errors with -s option + - amixer - Allow to pass enum item string for cset, too + - amixer/alsamixer - updated go scripts for debugging + + aplay/arecord + - Remove unneeded -lasound + - aplay - Fix possible endless loop with SIGBART + - aplay - Fix VU meter + - aplay - Include missing time.h for time() + + aplaymidi/arecordmidi + - arecordmidi: mention SMF type in man page + +Changelog between 1.0.14rc4 and 1.0.14 releases +(http://www.alsa-project.org/changes/v1-0-14rc4--v1-0-14.txt) +******************************************* + +* alsa-utils + + ALSA Control (alsactl) + - alsactl - Error message when failing to open the config file + - alsactl - adjust spaces in help texts + - alsactl - More explicit open error message + - alsactl - More explicit open error message (#2) + - alsactl - Display help for names command + + alsamixer + - alsamixer - Fix duplicated appearance in All view mode +* alsa-firmware + + Core + - Add Dreamcast AICA firmware + + AICA (Dreamcast) Firmware + - Renamed aica/licence.txt -> aica/license.txt + - Add Dreamcast AICA firmware + + AudioScience ASIHPI Firmware + - Update ASIHPI firmware 3.07.04 + +Changelog between 1.0.14rc2 and 1.0.14r4 releases +(http://www.alsa-project.org/changes/v1-0-14rc3--v1-0-14rc4.txt) +******************************************** + +* alsa-utils + + Core + - release 1.0.14rc2 + + ALSA RawMidi Utility (amidi) + - amidi: open devices non-blockingly + + amixer + - amixer - show iec958 status bits in contents command + +Changelog between 1.0.14rc1 and 1.0.14r2 releases +(http://www.alsa-project.org/changes/v1-0-14rc1--v1-0-14rc2.txt) +******************************************** + +* alsa-utils + + aconnect + - Fix aconnect man page + +Changelog between 1.0.13 and 1.0.14rc1 releases +(http://www.alsa-project.org/changes/v1-0-13--v1-0-14rc1.txt) +******************************************** + +* alsa-utils + + Core + - utils: Make default sample files be in /usr/share/sounds/alsa + - alsa-utils.spec.in - additions + + ALSA Control (alsactl) + - alsactl - return error state, fail when no configuration is found + + Speaker Test + - speaker-test: fix typos in manpage + + alsaconf + - alsaconf fix: cannot find the snd-powerpc module + - alsaconf - rcalsasound script does not exists in some distros + + alsamixer + - alsamixer: cosmetic fix + + amixer + - Implement Playback/Capture enum. + - amixer: sset - check if command is valid + - amixer - remove beep on errors in arguments + + aplay/arecord + - Fix argument for snd_device_name_hint(). + - aplay: add fflush(stdout) for -vvv verbosity + - fix for recent namehint API (use get_hint function) + - aplay: namehint fix - use filter before printing device name + - aplay/arecord -L command: process properly end-of-line characters + - aplay/arecord: Remove -n commad (obsolete, undocumented) + - aplay/arecord - use snd_device_name_hint() for -L command + - aplay/arecord: filter direction for -L command + + aplaymidi/arecordmidi + - aplaymidi: handle big SysEx commands + +Changelog between 1.0.12 and 1.0.13 releases +(http://www.alsa-project.org/changes/v1-0-12--v1-0-13.txt) +******************************************** + +* alsa-utils + + ALSA Control (alsactl) + - Restore user-defined TLV + + alsaconf + - Fix setup for SLES10/SLED10 + - Initialize volumes using dB in alsaconf + + alsamixer + - Show the mute dB state correctly + + amixer + - Add handling of dB to amixer + - Add linear-volume handling in amixer + +Changelog between 1.0.11 and 1.0.12 releases +(http://www.alsa-project.org/changes/v1-0-11--v1-0-12.txt) +******************************************** + +* alsa-utils + + Core + - amixer - added basic TLV support (read only) for 'amixer controls' + + ALSA RawMidi Utility (amidi) + - amidi: Fix device list + - amidi: fix --list-devices + + Speaker Test + - Fix the default buffer size calculation in speaker-test + + alsamixer + - amixer - show dB values for simple mixer interface (which is default) + + amixer + - Fix print_dB() with a minus value + - amixer - show dB values for simple mixer interface (which is default) + - amixer - added basic TLV support (read only) for 'amixer controls' + + aplay/arecord + - Fix segfault in aplay when snd_pcm_name() == NULL + - Use the right word in message of areacord + - Don't call close() for the same fd twice in arecord + - Fix misc bugs in arecord + - Fix arecord to quit properly at max file size + - Allow aplay/arecord to handle up to 2GB for WAV + - Fix a compile warning in aplay.c + - Fix endless loop of recording in arecord + + aplaymidi/arecordmidi + - aplaymidi: list only MIDI-capable ports + + +Changelog between 1.0.10 and 1.0.11 releases +(http://www.alsa-project.org/changes/v1-0-10--v1-0-11.txt) +******************************************** + +* alsa-utils + + Core + - Add WAV file playback support to speaker-test + + Add WAV file playback support to speaker-test. + The support is still limited to S16_LE, and doesn't refer to csv file yet. + + ALSA Control (alsactl) + - Remove obsolete power command from alsactl + + Remove obsolete power command from alsactl. + + Speaker Test + - Improve buffer/period set up in speaker-test + + Improve buffer/period set up in speaker-test. + + - Don't ignore -b and -p options but use them if specified + - Clean up and improvement of messy buffer/period setup codes + - Add -P option for specifying number of periods explicitly + - Fix missing commas + + Fixed missing commas in array elements (ALSA bug#1938). + - Add --nloops option and fix manpage + + - Added --nloops option to specify the number of loops + - Fixed man page of speaker-test + - Fix a typo in speaker-test help text + + Fix a typo in speaker-test help text. Updated ja.po, too. + - Make speaker-test compatible with dmix by default. + - Avoid unnecessary drain/restart in speaker-test + + Avoid unnecessary drain/restart in speaker-test when the buffer + is enough small. + - speaker-test - Fix missing i18n + + Add the gettext tags to newly added texts. + - speaker-test: Fix version reporting. + - Tentative fix for speaker-test WAV with 5 or more channels + + Fix the WAV file name for center/lfe. Use the existing + "Rear_Center.wav" for LFE as a workaround. + - Add missing comma + + Add a missing comma in the last fix... + - Fix compile on big-endian arch + + Fix compile on big-endian arch. + - Remove loops after errors + + Don't retry after fatal errors. + - Add WAV file playback support to speaker-test + + Add WAV file playback support to speaker-test. + The support is still limited to S16_LE, and doesn't refer to csv file yet. + + alsaconf + - Fix a text in alsa-utils + + Fix a text in alsa-utils after proof-reading. + - Minor clean up of bashism + + Minor clean up of bashism, replaced with normal test. + - Fix PCI class and name extraction in alsaconf + + - Allow all PCI class 04xx, not only 040x + - Fix the extraction of device name from lspci output + + ALSA bug#1935 + - Use amixer -s option + + Optimize to use amixer with -s option. + + amixer + - amixer - Add -s option + + - Add -s option to read from stdin the command sequentially. + - Suppress unneeded warnings in sset. + + aplay/arecord + - Fix a typo in manpage + + Fix a typo in manpage of aplay. + - Don't show invalid plug example in the error message of aplay + + Don't show invalid examples of usage with plug prefix + in the error message of aplay/arecord. + - alternative peak meter for aplay + From: Dirk Jagdmann + + This patch adds an alternative peak meter for aplay/arecord which is + enabled via three "-v" command line arguments. This new mode differs + from the old in a larger meter, no linefeeds for every meter update and + a static maximum peak (for 1s). + - split interleaved files in arecord when reaching 2GB + From: Dirk Jagdmann + + This patch will split files in chunks of aprox. 2GB in the interleaved + recording mode of arecord. This is meant to overcome the 2GB filesize + limit of .wav files, which is easily reached when recording multiple + channels. + + cvscompile + - Add exec permission to cvscompile + +Changelog between 1.0.10rc3 and 1.0.10 releases +(http://www.alsa-project.org/changes/v1-0-10rc3--v1-0-10.txt) +************************************************** + +* alsa-utils + + Core + - Add largefile support + - release 1.0.10 + + Speaker Test + - Disable NLS support when --disable-nls is passed + + aconnect + - Disable NLS support when --disable-nls is passed + + alsaconf + - Add Sparc support in alsaconf + + aplay/arecord + - Disable NLS support when --disable-nls is passed + - aplay/arecord - show the default settings + + aseqnet + - Disable NLS support when --disable-nls is passed + + +Changelog between 1.0.10rc1 and 1.0.10rc2 releases +(http://alsa-project.org/changes/v1-0-10rc1--v1-0-10rc2.txt) +*********************************************** + +* alsa-utils + + Core + - release 1.0.10rc2 + + ALSA Control (alsactl) + - Fix / clean up man pages + - Extend 'alsactl names' to show modem devices + + ALSA RawMidi Utility (amidi) + - Fix / clean up man pages + + Speaker Test + - speaker-test: Add support for testing FLOAT_LE format. + + alsaconf + - Allow separate build and source trees + - Fix hwcfg file name by alsaconf + + alsamixer + - Fix / clean up man pages + - Use strsignal() + - Implement dB gain level display. + + amixer + - Fix / clean up man pages + - Added more better error fault handling for sset toggle + - Fix for more better error fault handling for sset toggle + + +Changelog between 1.0.9a and 1.0.10rc1 releases +(http://alsa-project.org/changes/v1-0-9b--v1-0-10rc1.txt) +*********************************************** + +* alsa-utils + + Core + - Summary: i18nize some programs + i18nize some programs with gettext. + - Summary: update build tools. + It seems that running ./cvscompile changes all these files due to + an updates. So, sink CVS with build tools. + - Summary: fix installation instructions + Add the required "gettextize" call to the CVS compilation instructions. + - Summary: fix handling of po/Makefile.in + gettextize 0.14.1 adds po/Makefile.in to the first line of AC_OUPUT. + The duplicate in the next line then upsets autoheader. + This patch removes the potentially duplicate "po/Makefile.in" so that + it's safe for gettextize to add it again. + - Summary: release 1.0.10rc1 + - Summary: Fix compilation + - Revert gettext version to older one + - Added po/Makefile.in again + - Summary: Fix autoreconf + Fixed the package to be autoreconf-able. + + /include/Makefile.am + - Summary: Add missing header files + Added missing header files to Makefile.am. + + ALSA RawMidi Utility (amidi) + - Summary: Output help messages to stdout + Output help messages and lists to stdout instead of stderr. + + Speaker Test + - Summary: i18nize some programs + i18nize some programs with gettext. + - Summary: Correct buffer size choosing. + + aconnect + - Summary: Fix typos in man pages + Fix typos in man pages (bug #1024) + - Summary: i18nize some programs + i18nize some programs with gettext. + - Summary: Output help messages to stdout + Output help messages and lists to stdout instead of stderr. + + alsaconf + - Summary: Add Russian translation + Add Russian translation for alsaconf, taken from BTS #1130. + - Summary: Two modporbe calls lack path + All but two calls to modprobe in alsaconf call it with the full path. + For consistency the remaining two calls should also use the full path. + - Summary: fixed detection of ISAPnP cards using 2.6 sysfs + - Summary: Support hwcfg-* set up + Added /etc/sysconfig/hardware/hwcfg-* set up for the recent suse + versions. + - Summary: added -R,--resources option and improved resource checking + using sysfs + - added the -R,--resource option + - the check_dma_avail() and check_irq_avail() procedures now checks also + active resources from sysfs & PnP subsystem to avoid collisions + - Summary: alsaconf - add support for PnP BIOS devices + This patch adds the support for PnP BIOS devices. + - Summary: Removed debug print for awk + + alsamixer + - Summary: Fix typos in man pages + Fix typos in man pages (bug #1024) + - Summary: Fix unexpected abort of alsamixer + Fixed unexpected abort of alsamixer when no playback or capture elements + are available. Also fixed the wrong use of temporary array in + displaying item name. + - Summary: Fix a wrong display in the last patch + Fixed a wrong item display in the last patch. + - Summary: Added support for abstraction selection + - (basic abst might be the default someday) + - Summary: initial debug script + - Summary: Output help messages to stdout + Output help messages and lists to stdout instead of stderr. + + amixer + - Set the device name for smixer_options + - Summary: amixer - useful script for debugging + - Summary: Add enum control support to sget/sset + Added the enum control support to amixer sget/sset. + + aplay/arecord + - Summary: i18nize some programs + i18nize some programs with gettext. + - Summary: Output help messages to stdout + Output help messages and lists to stdout instead of stderr. + + aseqdump + - Summary: i18nize some programs + i18nize some programs with gettext. + - Summary: aseqdump - remove fishy comment + Remove the fishy comment because it isn't needed anymore after the tuna + has been accidentally removed. + + aseqnet + - Summary: i18nize some programs + i18nize some programs with gettext. + + cvscompile + - Summary: Add gettextize + Added gettextize to process po files correctly. + - Summary: handle better the getexize dependency + - Summary: more cvscompile cleanups (m4/Makefile.am) + - Summary: Create m4 directory + Create m4 directory (which was removed from cvs repo) + - Summary: Fix autoreconf + Fixed the package to be autoreconf-able. + + +Changelog between 1.0.9 and 1.0.9a releases +(http://alsa-project.org/changes/v1-0-9--v1-0-9a.txt) +******************************************* + +* alsa-utils + + Core + - release 1.0.9a + + alsamixer + - Comment out a section that causes an assert in alsamixer, until + this section of code works. + - Fix crash with enum controls + +Changelog between 1.0.8 and 1.0.9 releases +(http://alsa-project.org/changes/v1-0-8--v1-0-9.txt) +****************************************** + +* alsa-utils + + Core + - move event dumping from arecordmidi to aseqdump + - release: 1.0.9rc1 + - release: 1.0.9rc2 + - Install sound samples to correct places. + - release: 1.0.9rc3 + - alsa-lib 1.0.9 is required now + - release: 1.0.9rc4 + - release: 1.0.9rc4a + - release: 1.0.9 + + /seq/Makefile.am + - move event dumping from arecordmidi to aseqdump + + ALSA Control (alsactl) + - return error code on faillure + - Fix exit code + - split source per command and added command 'names' + - fix name of hw sequencer definition + - alsactl - probe rawmidi device for rawmidi definitions + - alsactl - add names for unique rawmidi subdevices + - Ignore -ENOTTY error + - Fix --force option + - Add alsactl.h + + ALSA RawMidi Utility (amidi) + - allow --send-hex data without quotes + - clarify options in man page + - fix buffer length calculation + - use non-breaking hyphens in man page + - fix amidi error handling + - detect attempts to play .mid files with amidi + + Speaker Test + - Update to speaker-tools 0.0.7 + - adopt readme changes in manpage + - Minor updates. No functionallity changes. + - Implement Pink noise output. + - Add sound samples. + - Install sound samples to correct places. + - Implement order for 8-channel sound, arranged in 7.1 mode. + - Fix speaker-test with -FS32_LE format. + - Don't use max volume + - Add .cvsignore + + aconnect + - Fix typo + + alsaconf + - Fix make without NLS + - Sort options in alphabetic order + - Fix exit code + - Use -q option with grep + - Fix typo in alsaconf "modinfo" option + - Fix check of fedora and redhat distributions + - Change the Debian configuration file name + - Add alsaconf french man page + - Adjust Front volume as default + - fix typo + - Fix manpage installation + + alsamixer + - Fix compile warnings + - Show other view names + - Fix typo + - Improve display of long text for enums. + - Fix segfault with no-capture devices + + amixer + - exits with status 0 after -h option + - Fix exit status + - amixer no-range-checking option + - Added -a,--abstract switch for upcoming abstract mixer API + - Fixed basic astraction selection for simple mixer API + - Fix compile warnings + + aplay/arecord + - Added -n (--list-devnames) command + + aplaymidi/arecordmidi + - move event dumping from arecordmidi to aseqdump + - Remove unused variable + + aseqdump + - move event dumping from arecordmidi to aseqdump + + iecset + - Fix 32kHz sample rates + +(http://music.columbia.edu/pipermail/linux-audio-announce/2005-January/000522.html) +1.0.8 +----- + +* alsa-utils + + Core + - release: 1.0.8-rc1 + - release: 1.0.8rc1 + - i18nize alsaconf + - Move m4 to the tail of SUBDIRS + - Require alsa-lib 1.0.8 + - release: 1.0.8rc2 + - release: 1.0.8 + + ALSA Control (alsactl) + - Support user-defined controls + - Fix compilation + + Speaker Test + - Add man page of speaker-test + + alsaconf + - Start aplay/arecord in non-blocking mode + - i18nize alsaconf + - Misc clean up + - Fix installation + - Fix installation + + alsamixer + - Change the view toggle behavior + - Assign alternative keys for function keys + - Reinitialize the size calculation at view change + - Add -V option + - More descriptions about mixer views and view modes + - Usability improvement + - fix crashes when selecting an empty view + - Remove number key assignment + - Support quick volume change + + aplay/arecord + - Fix VU meter + +(http://music.columbia.edu/pipermail/linux-audio-announce/2004-November/000484.html) +1.0.7 +----- + +* alsa-utils + - Fix hyphens in man pages + - aplay + - don't parse -X option because such an option doesn't exist + - allow argument for --sleep-min option + - fix handling of .voc magic string + - fix handling of .voc files on big-endian machines + - remove superfluous "size" parameter from check_wavefile_space macro + - reallocate buffer only if needed in check_wavefile_space + - fix playback of >2GB .wav files + - skip over padding bytes in .wav files + - fix memory leak when playing .voc silence blocks + - fix file length when recording >2GB .wav files + - fix recording of >4GB files + - alsamixer + - display 2 different views of the mixer controls (Playback, Capture) + - alsaconf + - some fixes + - fixed long options + - Now -L option requires the logfile argument + - corrected man page + +(http://music.columbia.edu/pipermail/linux-audio-announce/2004-August/000435.html) +1.0.6a +------ + +* alsa-utils + - aplay + - Show warning if the format is changed due to the file type. + (e.g. WAV yields little-endian) + + +(http://music.columbia.edu/pipermail/linux-audio-announce/2004-May/000396.html) +1.0.5 +----- + +* alsa-utils + - arecordmidi enhancements by Pedro Lopez-Cabanillas + - arecord fix (timelimit) + - added speaker-test utility + --- alsa-utils-1.0.16.orig/debian/postrm +++ alsa-utils-1.0.16/debian/postrm @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +case "$1" in +purge) + # Remove legacy config and state files + rm -f /etc/alsa/0.9/asound.conf /etc/asound.state + # Remove configuration file generated by alsaconf + rm -f /etc/modprobe.d/sound /etc/modutils/sound + # Remove state file generated by alsactl + rm -f /var/lib/alsa/asound.state + ;; +esac + +#DEBHELPER# + --- alsa-utils-1.0.16.orig/debian/preinst +++ alsa-utils-1.0.16/debian/preinst @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +case "$1" in + install|upgrade) + # Delete obsolete alsa-base dev.d symlinks + for N in 0 1 2 3 4 5 6 7 ; do + D="/etc/dev.d/snd/controlC$N" + if [ -d "$D" ] ; then + L="$D/alsa-base.dev" + rm -fv "$L" + fi + done + # Delete obsolete alsa-base dev.d script + rm -fv /etc/alsa/dev.d/alsa-base + ;; + abort-upgrade) + # Nothing to do + ;; +esac + +#DEBHELPER# + --- alsa-utils-1.0.16.orig/debian/manpages +++ alsa-utils-1.0.16/debian/manpages @@ -0,0 +1 @@ +debian/asoundconf.1 --- alsa-utils-1.0.16.orig/debian/PATCHES.Debian +++ alsa-utils-1.0.16/debian/PATCHES.Debian @@ -0,0 +1,32 @@ +Patches applied in the Debian version of : + +debian/patches/move_asound_state_to_var.patch (David B. Harris): + Move asound.state location to /var/lib/alsa/ + +debian/patches/alsaconf_safe_tmp.patch (Thomas Hood): + Create alsaconf.cards temporary file safely + Always run in modinfo mode + +debian/patches/debian_alsaconf_paths.patch (Thomas Hood): + Don't precompute paths for lspci and lsmod + +debian/patches/debian_alsaconf_idmode.patch (Thomas Hood): + Use Debian-specified GID and mode for ALSA devices. + +debian/patches/debian_alsaconf_noclear.patch (Thomas Hood): + Don't clear the screen. (Let the user see error messages.) + +debian/patches/debian_alsaconf_unload_modules.patch (Thomas Hood): + Run initscript force-unload method rather than stop + and do it after the intro rather than before + +debian/patches/debian_alsaconf_improve_intro.patch (Thomas Hood): + Improve introductory message + +debian/patches/debian_alsaconf_nodup.patch (Thomas Hood): + Do not put any lines into /etc/mod{utils,probe.d}/sound that are + already present in /etc/mod{utils,probe.d}/alsa-base + +debian/patches/debian_alsaconf_modprobe_ignoreinstall.patch (Thomas Hood): + Use modprobe --ignore-install when modprobing legacy card drivers with args + --- alsa-utils-1.0.16.orig/debian/NOTES +++ alsa-utils-1.0.16/debian/NOTES @@ -0,0 +1,53 @@ + MAINTAINER NOTES + for alsa-utils + + +TODO when someone has time +~~~~~~~~~~~~~~~~~~~~~~~~~~ +/etc/init.d/alsa-utils should be changed so that instead of doing a +mere "alsactl restore" it takes the following steps in the "start" method: + + Move old asound.state to asound.state_PREV + Run "alsactl store" to create new asound.state + Run asound.state through a processor which sets "sane" + default values without changing the structure of the file + Use the values in asound.state_PREV to update the values in + the new asound.state without changing the structure of + the file + Run "alsactl restore" + +This would run faster than the current code and might deal better with +driver upgrades. + +See https://bugzilla.ubuntu.com/show_bug.cgi?id=15585 + + +TODO for each new upstream release +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +* Check Ubuntu patches at http://people.ubuntulinux.org/~scott/patches/ +* Update debian/changelog.ALSA from release announcement + + +Setting default mixer levels +---------------------------- +Mandriva takes an interesting approch to resetting mixer levels. + http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/sound-scripts/ +Its reset_sound script does: + * alsactl store to file + * process file with perl script alsa_default.pl + * alsactl restore from file +We should consider taking this code which appears to be much +smarter than our sanify_levels_on_card(). + +Some controls need to be set differently on different machines. +* External Amplifier + + Need it on: + https://bugtrack.alsa-project.org/alsa-bug/view.php?id=963 + http://lists.debian.org/debian-kernel/2004/04/msg00020.html + + Need it off: + http://www.seismo.ethz.ch/linux/sony_vaio_t1xp_linux.html + http://bugzilla.ubuntu.com/show_bug.cgi?id=15099 +* Audigy Analog/Digital Output Jack +These should be set to appropriate defaults in the driver and not +touched by our initscript. + --- alsa-utils-1.0.16.orig/debian/dirs +++ alsa-utils-1.0.16/debian/dirs @@ -0,0 +1,4 @@ +etc/udev/rules.d +sbin +usr/bin +var/lib/alsa --- alsa-utils-1.0.16.orig/debian/README.Debian +++ alsa-utils-1.0.16/debian/README.Debian @@ -0,0 +1,87 @@ + alsa-utils README.Debian + ------------------------ + +Contents +-------- +News +Restoring mixer levels +Storing mixer levels +Error messages + + +News +---- +Last updated 20 July 2005 + + +Restoring mixer levels +---------------------- +ALSA drivers initialize hardware mixer levels to zero. It is usually +desirable to set things up so that the mixer levels for basic sound +output are automatically raised to reasonable levels after the drivers +have completed their initialization. + +Currently, alsa-utils accomplishes this by having its initscript's +"start" method restore mixer levels to what they were the last time +they were saved (see below). The levels are stored in the file +/var/lib/alsa/asound.state. If either the latter file or the alsactl +program is not available then amixer is used to set mixer levels to +"reasonable" default values. + +To set mixer levels to "reasonable" default values from the command +line (i.e., without trying first to restore saved values), run +"/etc/init.d/alsa-utils reset". + +For modular drivers on a udev system, the /lib/alsa/udev script runs +the initscript "start" method after a driver has initialized and its +associated control device has been created. + +For modular drivers on a non-udev system, if alsa-base is installed +then the script /etc/alsa/modprobe-post-install.d/alsa-utils runs the +initscript "start" method after any sound card driver module has +finished loading. + +For integral drivers and modular ones loaded very early in the boot +process, the initscript is configured to be run as part of runlevel +initialization. Restoration of mixer levels on bootup can be disabled +by configuring the alsa-utils "service" as stopped in runlevel S. On a +system that uses sysv-rc this means that you should RENAME +/etc/rcS.d/S50alsa-utils to /etc/rcS.d/K50alsa-utils. The symlink +should not be deleted---only renamed. + + +Storing mixer levels +------------------------- +By default mixer levels are stored before shutdown by the initscript's +"stop" method. The initscript is run with "stop" in runleves 0 and 6. + +To disable this behavior, if you are using sysv-rc, REMOVE the +"K50alsa-utils" symbolic links from /etc/rc0.d/ and /etc/rc6.d/. +The symlinks should be removed, not just renamed. + +Note that this scheme is different from and simpler than the scheme +that was used by the "alsa" initscript when it contained the code +that implemented mixer level storing and restoring. The runlevels_save +environment variable is no longer used---indeed, there is no +/etc/default/ file for alsa-utils at all---and there is no longer a +choice of values for "alsactl_store_on_shutdown". Now "alsactl store" +is run on shutdown unconditionally; however, this can be disabled by +configuring the alsa-utils "service" as floating in runlevels 0 and 6, +as described above. + + +Error messages +-------------- +If the initscript "start" method is run early in the boot process, +before /usr/ is mounted, then it may print an error message. The +message can be ignored because the initscript gets run again later in +the boot process. + + /etc/init.d/alsa-utils: Warning: No alsactl program available. + +If you use the snd-cs46xx module then you may see messages like this: + + Jan 26 14:32:50 foo kernel: ALSA ../../alsa-kernel/pci/cs46xx/cs46xx_lib.c:427: cs46xx: failure waiting for FIFO command to complete + +This arises from a bug in the driver, but so far I have yet to +observe any consequent malfunction in the sound card. --- alsa-utils-1.0.16.orig/debian/links +++ alsa-utils-1.0.16/debian/links @@ -0,0 +1,2 @@ +/usr/bin/aplay /usr/bin/arecord +/usr/share/man/man1/aplay.1.gz /usr/share/man/man1/arecord.1.gz --- alsa-utils-1.0.16.orig/debian/asoundconf.1 +++ alsa-utils-1.0.16/debian/asoundconf.1 @@ -0,0 +1,82 @@ +.TH asoundconf "1" "06 May 2008" +.SH NAME +asoundconf \- utility to read and change the user's ALSA library configuration +.SH SYNOPSIS +\fBasoundconf\fR \fBis\-active\fR +.PP +\fBasoundconf\fR \fBget\fR|\fBdelete\fR \fIPARAMETER\fR +.PP +\fBasoundconf\fR \fBset\fR \fIPARAMETER\fR \fIVALUE\fR +.PP +\fBasoundconf\fR \fBlist\fR + +Convenience macro functions: +.PP +\fBasoundconf\fR \fBset\-default\-card\fR \fIPARAMETER\fR +.PP +\fBasoundconf\fR \fBreset\-default\-card\fR +.PP +\fBasoundconf\fR \fBset\-pulseaudio\fR +.PP +\fBasoundconf\fR \fBunset\-pulseaudio\fR +.PP +\fBasoundconf\fR \fBset\-oss\fR \fIPARAMETER\fR +.PP +\fBasoundconf\fR \fBunset\-oss\fR + +.SH DESCRIPTION +.B asoundconf +configures the ALSA library for the user. +It does this by reading the values of parameters from +and writing the values of parameters +to the special file .asoundrc.asoundconf +in the user's home directory. +The .asoundrc.asoundconf file should not be edited by hand! +.PP +The .asoundrc.asoundconf file only has an effect +on the ALSA library +if it is included by the user's .asoundrc file, +also located in the user's home directory. +When +.B asoundconf +is run and it finds either +that the ~/.asoundrc file does not exist +or that the file exists and contains the markers +of the obsolete +.B set\-default\-soundcard +program then +.B asoundconf +adds the required inclusion statement to ~/.asoundrc; +otherwise +.B asoundconf +does not change ~/.asoundrc. +Hence, if you want to disable control +of ALSA library configuration parameters by +.B asoundconf +then simply comment out this inclusion statement +but do not delete the ~/.asoundrc file. +(It is OK for ~/.asoundrc to be an empty file.) +.SH WARNING +This program is under development. +Its features will change without notice +and without preservation of backward compatibility, +except insofar as they are put to use +by other components of +the Debian and/or Ubuntu operating systems. +(As of this writing the Ubuntu developers have plans to use +.B asoundconf +for setting parameters listed in /usr/share/alsa/alsa.conf +under the defaults section. Separate graphical frontend +tools are under development to ease the configuration of +multichannel .asoundrc files.) +.SH FILES +.TP +.I ~/.asoundrc +user-specific ALSA library configuration file +.TP +.I ~/.asoundrc.asoundconf +file containing +.BR asoundconf -managed +parameter settings +.SH AUTHOR +This program was written by Martin Pitt . --- alsa-utils-1.0.16.orig/debian/compat +++ alsa-utils-1.0.16/debian/compat @@ -0,0 +1 @@ +5 --- alsa-utils-1.0.16.orig/debian/copyright +++ alsa-utils-1.0.16/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Wichert Akkerman on 7 Jun 1998. +Masato Taruishi took over on 17 Oct 1999. +Since September 2002 it has been maintained by the participants in +the pkg-alsa project at alioth.debian.org. + +Bugs in the source code (as opposed to bugs in the packaging) are best +reported to the upstream bug tracking system: + + https://bugtrack.alsa-project.org/alsa-bug + +The source code was downloaded from the ALSA homepage: + + http://alsa.sourceforge.net + +alsa-utils +---------- +Copyright (C) Jarsolav Kysela and others. + +set-default-soundcard +--------------------- +Copyright (C) 2005 Canonical Ltd. +Author: Martin Pitt + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the + Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in /usr/share/common-licenses/GPL . --- alsa-utils-1.0.16.orig/debian/set-default-soundcard +++ alsa-utils-1.0.16/debian/set-default-soundcard @@ -0,0 +1,123 @@ +#!/usr/bin/python + +# (C) 2005 Canonical Ltd. +# Author: Martin Pitt +# License: GNU General Public License, version 2 or any later version + +# Configure default output device in ~/.asoundrc. + +import sys, re, os.path + +conffile = os.path.expanduser('~/.asoundrc') + +def help(): + print '''Usage: set-default-soundcard | --check-markers +If %s does not exist, or its magic comments are present, +change the default sound card setting in it to the given number. If +--check-markers is given, the exit code shows whether the configuration file +could be modified, but does not actually change it. +''' % conffile + +def create_conffile(card_num): + '''Create a new configuration file with the given card as default.''' + + try: + f = open(conffile, 'w') + print >> f, '''### BEGIN set-default-soundcard +# If the "### BEGIN..." and "### END..." comments are intact, then you +# can change your default soundcard with "set-default-soundcard(1)." +# Remove these comments if you want to maintain a custom configuration +# that should not be changed automatically. + +# Default soundcard +defaults.pcm.card %s + +### END set-default-soundcard +''' % card_num + except IOError: + print >> sys.stderr, 'Could not create', conffile + sys.exit(1) + +def change_conffile(card_num): + '''Change default to given card number an existing configuration file. If + successful, return true; return false if the file does not exist, cannot be + written, or does not have the magic comments. If card_num is None, then + only the markers are checked without actually modifying the file.''' + + try: + lines = open(conffile).readlines() + except IOError: + return False + + # search for the BEGIN marker + marker = re.compile('### BEGIN set-default-soundcard') + lineno = 0 + found = 0 + for l in lines: + lineno = lineno+1 + if marker.match(l): + found = 1 + break + if not found: + return False + + # search for default setting + marker = re.compile('(defaults.pcm.card\s+)(\d+)(.*)$') + found = 0 + for l in lines[lineno:]: + lineno = lineno+1 + m = marker.match(l) + if m: + if card_num: + lines[lineno-1] = m.group(1) + card_num + m.group(3) + '\n' + found = 1 + break + if not found: + return False + + # search for the END marker + marker = re.compile('### END set-default-soundcard') + found = 0 + for l in lines[lineno:]: + lineno = lineno+1 + if marker.match(l): + found = 1 + break + if not found: + return False + + # write back file + if card_num: + try: + open(conffile, 'w').writelines(lines) + except IOError: + return False + return True + +if len(sys.argv) < 2 or sys.argv[1] == '--help' or sys.argv[1] == '-h': + help() + sys.exit(0) + +check_only = (sys.argv[1] == '--check-markers') + +if len(sys.argv) != 2 or not (check_only or sys.argv[1].isdigit()): + help() + sys.exit(1) + +if not check_only: + card_num = sys.argv[1] +else: + card_num = None + +# if ~/.asoundrc does not exist, create it +if not os.path.exists(conffile): + if check_only: + sys.exit(0) + create_conffile(card_num) +else: + if not change_conffile(card_num): + if not check_only: + print >> sys.stderr, conffile, \ + 'was modified manually, cannot be changed by this program.' + sys.exit(1) + --- alsa-utils-1.0.16.orig/debian/postinst +++ alsa-utils-1.0.16/debian/postinst @@ -0,0 +1,28 @@ +#!/bin/sh + +set -e + +case "$1" in + configure) + if dpkg --compare-versions "$2" lt "1.0.10-1ubuntu6"; then + rm -f /etc/alsa/modprobe-post-install.d/alsa-utils + rmdir /etc/alsa/modprobe-post-install.d 2>/dev/null || true + rmdir /etc/alsa 2>/dev/null || true + + rm -f /etc/udev/alsa-utils.rules + + rm -f /etc/rcS.d/S50alsa-utils + rm -f /etc/udev/rules.d/z60_alsa-utils.rules + fi + ;; + abort-upgrade|abort-remove|abort-deconfigure) + # Nothing to do because we didn't take any action in the prerm + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + --- alsa-utils-1.0.16.orig/debian/control +++ alsa-utils-1.0.16/debian/control @@ -0,0 +1,29 @@ +Source: alsa-utils +Section: sound +Priority: optional +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Debian ALSA Maintainers +Uploaders: Jordi Mallach , Elimar Riesebieter , Martin Pitt +Build-Depends: debhelper (>= 6), libncurses5-dev, autotools-dev, quilt (>=0.40), libasound2-dev (>= 1.0.16) +Standards-Version: 3.7.3 +Homepage: http://www.alsa-project.org/ +XS-Debian-Vcs-Svn: svn://svn.debian.org/pkg-alsa/trunk/alsa-utils +XS-Debian-Vcs-Browser: http://svn.debian.org/wsvn/pkg-alsa/trunk/alsa-utils/ +Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/alsa-utils/ubuntu.new + +Package: alsa-utils +Architecture: i386 ia64 alpha amd64 arm armeb armel hppa lpia m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc +Provides: audio-mixer +Depends: ${shlibs:Depends}, whiptail | dialog, module-init-tools, pciutils (>=1:2.1.11-4), python, lsb-base (>= 3.0-9), linux-sound-base (>= 1.0.15-1) +Recommends: alsa-base (>= 1.0.15-1), udev (>= 0.096-1) +Conflicts: udev (<< 0.060), alsa-base (<< 1.0.9b-3) +Description: ALSA utilities + This package contains utilities for configuring and using ALSA, including: + o amixer: command line mixer + o alsamixer: curses mixer + o amidi: read from and write to ALSA RawMIDI ports + o aplay, arecord: command line playback and recording + o aplaymidi, arecordmidi: command line MIDI playback and recording + o aconnect, aseqnet, aseqdump: command line MIDI sequencer control + . + ALSA is the Advanced Linux Sound Architecture. --- alsa-utils-1.0.16.orig/debian/asoundconf +++ alsa-utils-1.0.16/debian/asoundconf @@ -0,0 +1,456 @@ +#!/usr/bin/python + +# (C) 2005 Canonical Ltd. +# Author: Martin Pitt +# License: GNU General Public License, version 2 or any later version +# +# Modified by: Thomas Hood, Daniel T Chen +# +# Get and set configuration parameters in ~/.asoundrc.asoundconf. + +import sys, re, os.path + +our_conf_file = os.path.expanduser('~/.asoundrc.asoundconf') +asoundrc_file = os.path.expanduser('~/.asoundrc') +predefs_file = '/usr/share/alsa/alsa.conf' + +setting_re_template = '!?\s*%s\s*(?:=|\s)\s*([^;,]+)[;,]?$' + +our_conf_header = '''# ALSA library configuration file managed by asoundconf(1). +# +# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN! +# +# Manual changes to the ALSA library configuration should be implemented +# by editing the ~/.asoundrc file, not by editing this file. +''' + +asoundrc_header = '''# ALSA library configuration file +''' + +inclusion_comment = '''# Include settings that are under the control of asoundconf(1). +# (To disable these settings, comment out this line.)''' + +usage = '''Usage: +asoundconf is-active +asoundconf get|delete PARAMETER +asoundconf set PARAMETER VALUE +asoundconf list + +Convenience macro functions: +asoundconf set-default-card PARAMETER +asoundconf reset-default-card +asoundconf set-pulseaudio +asoundconf unset-pulseaudio +asoundconf set-oss PARAMETER +asoundconf unset-oss +''' + + +needs_default_card = '''You have omitted a necessary parameter. Please see the output from `asoundconf list`, and use one of those sound card(s) as the parameter. +''' + + +needs_oss_dev = '''You have omitted a necessary parameter. Please specify an OSS device (e.g., /dev/dsp). +''' + + +superuser_warn = '''Please note that you are attempting to run asoundconf as a privileged superuser, which may have unintended consequences. +''' + + +def get_default_predefs(): + try: + if not os.path.exists(predefs_file): + return + predefs_file_entire = open(predefs_file).readlines() + r = re.compile('^defaults') + ## Between these hashes, add additional unique regexps that + ## must exist at the end of the user's custom asoundrc. + s = re.compile('^defaults.namehint') + ## + predefs_list = [] + must_append_predefs_list = [] + for i in predefs_file_entire: + if r.match(i) and not s.match(i): + predefs_list.append(str(i).strip()) + elif s.match(i): + must_append_predefs_list.append(str(i).strip()) + for i in must_append_predefs_list: + predefs_list.append(str(i).strip()) + return predefs_list + except IOError: + pass + + +def ensure_our_conf_exists(): + '''If it does not exist then generate a default configuration + file with no settings. + + Return: True on success, False if the file could not be created. + ''' + + if os.path.exists(our_conf_file): + return True + + try: + open(our_conf_file, 'w').write(our_conf_header) + return True + except IOError: + print >> sys.stderr, 'Error: could not create', our_conf_file + return False + + +def ensure_asound_rc_exists(): + '''Generate a default user configuration file with only the + inclusion line. + + Return: True on success, False if the file could not be created. + ''' + + if os.path.exists(asoundrc_file): + return True + + try: + open(asoundrc_file, 'w').write('%s\n%s\n<%s>\n\n' % (asoundrc_header, inclusion_comment, our_conf_file)) + return True + except IOError: + print >> sys.stderr, 'Error: could not create', asoundrc_file + return False + + +def sds_transition(): + '''Replace the magic comments added to the user configuration file + by the obsolete set-default-soundcard program with the standard + inclusion statement for our configuration file. + ''' + + if not os.path.exists(asoundrc_file): + return + + lines = open(asoundrc_file).readlines() + + start_marker_re = re.compile('### BEGIN set-default-soundcard') + end_marker_re = re.compile('### END set-default-soundcard') + + userconf_lines = [] + our_conf_lines = [] + + # read up to start comment + lineno = 0 + found = 0 + for l in lines: + lineno = lineno+1 + if start_marker_re.match(l): + found = 1 + break + userconf_lines.append(l) + + if found: + # replace magic comment section with include + userconf_lines.append('%s\n<%s>\n\n' % (inclusion_comment, our_conf_file)) + else: + # no magic comment + return + + # read magic comment section until end marker and add it to asoundconf + found = 0 + for l in lines[lineno:]: + lineno = lineno+1 + if end_marker_re.match(l): + found = 1 + break + if not l.startswith('#'): + our_conf_lines.append(l) + + if not found: + # no complete magic comment + return + + # add the rest to user conf + userconf_lines = userconf_lines + lines[lineno:] + + # write our configuration file + if not ensure_our_conf_exists(): + return + try: + open(our_conf_file, 'a').writelines(our_conf_lines) + except IOError: + return # panic out + + # write user configuration file + try: + open(asoundrc_file, 'w').writelines(userconf_lines) + except IOError: + pass + + +def is_active(): + '''Check that the user configuration file is either absent, or, + if present, that it includifies the asoundconf configuration file; + in those cases asoundconf can be used to change the user's ALSA + library configuration. + + Also transition from the legacy set-default-soundcard program. + + Return True if the above condition is met, False if not. + ''' + + if not os.path.exists(asoundrc_file): + return True + + sds_transition() + + # check whether or not the file has the inclusion line + include_re = re.compile('\s*<\s*%s\s*>' % our_conf_file) + for l in open(asoundrc_file): + if include_re.match(l): + return True + + return False + +def get(prmtr): + '''Print the value of the given parameter on stdout + + Also transition from the legacy set-default-soundcard program. + + Return True on success, and False if the value is not set. + ''' + + sds_transition() + + if not os.path.exists(our_conf_file): + return False + + setting_re = re.compile(setting_re_template % prmtr) + + try: + for line in open(our_conf_file): + m = setting_re.match(line) + if m: + print m.group(1).strip() + return True + return False + except IOError: + return False + +def list(): + '''Get card names from /proc/asound/cards''' + + cardspath = '/proc/asound/cards' + if not os.path.exists(cardspath): + return False + procfile = open(cardspath, 'rb') + cardline = re.compile('^\s*\d+\s*\[') + card_lines = [] + lines = procfile.readlines() + for l in lines: + if cardline.match(l): + card_lines.append(re.sub(r'^\s*\d+\s*\[(\w+)\s*\].+','\\1',l)) + print "Names of available sound cards:" + for cardname in card_lines: + print cardname.strip() + return True + +def delete(prmtr): + '''Delete the given parameter. + + Also transition from the legacy set-default-soundcard program. + + Return True on success, and False on an error. + ''' + + sds_transition() + + if not os.path.exists(our_conf_file): + return False + + setting_re = re.compile(setting_re_template % prmtr) + lines = [] + try: + lines = open(our_conf_file).readlines() + except IOError: + return False + + found = 0 + for i in xrange(len(lines)): + if setting_re.match(lines[i]): + del lines[i] + found = 1 + break + + if found: + # write back file + try: + f = open(our_conf_file, 'w') + except IOError: + return False + f.writelines(lines) + + return True + + +def set(prmtr, value): + '''Set the given parameter to the given value + + Also transition from the legacy set-default-soundcard program. + + Return True on success, and False on an error. + ''' + + sds_transition() + + setting_re = re.compile(setting_re_template % prmtr) + lines = [] + + ensure_asound_rc_exists() + # N.B. We continue even if asoundrc could not be created + # and we do NOT ensure that our configuration is "active" + + if not ensure_our_conf_exists(): + return False + + try: + lines = open(our_conf_file).readlines() + except IOError: + return False + + newsetting = '%s %s\n' % (prmtr, value) + + # if setting is already present, change it + found = 0 + for i in xrange(len(lines)): + if setting_re.match(lines[i]): + lines[i] = newsetting + found = 1 + break + + if not found: + lines.append(newsetting) + + # write back file + try: + f = open(our_conf_file, 'w') + except IOError: + return False + f.writelines(lines) + return True + +def set_default_card(card): + clist = get_default_predefs() + sep = re.compile(r'[ ]') + r = re.compile('^defaults.pcm.card') + s = re.compile('^defaults.ctl.card') + ## !defaults.pcm.card and defaults.ctl.card should lead + ## the user's custom asoundrc. + if set('!defaults.pcm.card', card) and \ + set('defaults.ctl.card', card): + for i in clist: + (j, k) = sep.split(i) + if not r.match(j) and not s.match(j): + if not set(j, k): + return False + return True + else: + return False + +def reset_default_card(): + clist = get_default_predefs() + sep = re.compile(r'[ ]') + for i in clist: + (j, k) = sep.split(i) + if not delete(j): + return False + return True + +def set_pulseaudio(): + return set('pcm.!default', '{ type pulse }') and \ + set('ctl.!default', '{ type pulse }') and \ + set('pcm.pulse', '{ type pulse }') and \ + set('ctl.pulse', '{ type pulse }') + +def unset_pulseaudio(): + return delete('pcm.!default') and \ + delete('ctl.!default') and \ + delete('pcm.pulse') and \ + delete('ctl.pulse') + +def set_oss(device): + endbrace = ' }' + return set('pcm.!default { type oss device', device + endbrace) + +def unset_oss(): + return delete('pcm.!default') + +def exit_code(result): + '''Exit program with code 0 if result is True, otherwise exit with code + 1. + ''' + + if result: + sys.exit(0) + else: + sys.exit(1) + + +## +## main +## + +if os.geteuid() == 0: + print superuser_warn + +if len(sys.argv) < 2 or sys.argv[1] == '--help' or sys.argv[1] == '-h': + print usage + sys.exit(0) + +if sys.argv[1] == 'is-active': + exit_code(is_active()) + +if sys.argv[1] == 'get': + if len(sys.argv) != 3: + print usage + sys.exit(1) + exit_code(get(sys.argv[2])) + +if sys.argv[1] == 'delete': + if len(sys.argv) != 3: + print usage + sys.exit(1) + exit_code(delete(sys.argv[2])) + +if sys.argv[1] == 'set': + if len(sys.argv) != 4: + print usage + sys.exit(1) + exit_code(set(sys.argv[2], sys.argv[3])) + +if sys.argv[1] == 'list': + exit_code(list()) + +if sys.argv[1] == 'set-default-card': + if len(sys.argv) != 3: + print needs_default_card + sys.exit(1) + exit_code(set_default_card(sys.argv[2])) + +if sys.argv[1] == 'reset-default-card': + exit_code(reset_default_card()) + +if sys.argv[1] == 'set-pulseaudio': + exit_code(set_pulseaudio()) + +if sys.argv[1] == 'unset-pulseaudio': + exit_code(unset_pulseaudio()) + +if sys.argv[1] == 'set-oss': + if len(sys.argv) != 3: + print needs_oss_dev + sys.exit(1) + exit_code(set_oss(sys.argv[2])) + +if sys.argv[1] == 'unset-oss': + exit_code(unset_oss()) + +print usage +sys.exit(1) + --- alsa-utils-1.0.16.orig/debian/menu +++ alsa-utils-1.0.16/debian/menu @@ -0,0 +1,5 @@ +?package(alsa-utils):needs="text" section="Applications/System/Administration" \ + title="alsaconf" \ + longtitle="ALSA configuration tool" \ + description="Configure your soundcards for the ALSA system" \ + command="su-to-root -p root -c /usr/sbin/alsaconf" --- alsa-utils-1.0.16.orig/debian/watch +++ alsa-utils-1.0.16/debian/watch @@ -0,0 +1,2 @@ +version=2 +ftp://ftp.alsa-project.org/pub/utils/alsa-utils-(.*).tar.bz2 debian uupdate --- alsa-utils-1.0.16.orig/debian/changelog +++ alsa-utils-1.0.16/debian/changelog @@ -0,0 +1,1504 @@ +alsa-utils (1.0.16-1ubuntu3~ppa1) hardy; urgency=low + + * Backport from Intrepid to resolve PulseAudio issues. + * debian/asoundconf: expand 'set-pulseaudio' and 'unset-pulseaudio' + to include pcm.pulse and ctl.pulse definitions. + + -- Conn O Griofa Thu, 14 Aug 2008 15:16:30 +0100 + +alsa-utils (1.0.16-1ubuntu3) intrepid; urgency=low + + * Really make the change to the init script to mute the PC speaker + on initial start/reset. (LP: #242966) + + -- Luke Yelavich Mon, 04 Aug 2008 15:22:31 +1000 + +alsa-utils (1.0.16-1ubuntu2) intrepid; urgency=low + + [ Daniel T Chen ] + * debian/init: Mute 'Jack Detect' as per user request. + + [ Luke Yelavich ] + * debian/init: Mute the PC speaker card on initial level set/reset. + (LP: #242966) + + -- Luke Yelavich Mon, 04 Aug 2008 10:33:09 +1000 + +alsa-utils (1.0.16-1ubuntu1) intrepid; urgency=low + + * Merge from Debian unstable. + * Packaging: + - no alsaconf; + + lpia arch, maintainer and Vcs fields munging; + + toggle additional mixer elements in initscript; + + asoundconf{,.1}: Update asoundconf-trunk from bzr adding + {,un}set-oss convenience macros as per requests for OSSv4 + routing. + + -- Daniel T Chen Fri, 09 May 2008 16:17:32 -0400 + +alsa-utils (1.0.16-1) unstable; urgency=low + + * New upstream release (closes: #393686, #399223, #400499, #406738, #447898, + #422805) + + [ Elimar Riesebieter ] + * Tweaked asoundconf. (closes: #399623) + * Forgot to add Speaker to mute_and_zero_levels_on_card() in the init file. + Thanks Dan Chen for the hint. + + [ Jordi Mallach ] + * Bump libasound2-dev build dep to 1.0.16, as snd_tlv_get_dB_range is + needed. + + -- Jordi Mallach Tue, 26 Feb 2008 00:41:40 +0100 + +alsa-utils (1.0.15-3ubuntu2) hardy; urgency=low + + * Default "Digital" capture mixer used on HDA-Intel cards to be at a + more usable volume. (LP: #193823) + + -- Mario Limonciello Wed, 20 Feb 2008 15:59:38 -0600 + +alsa-utils (1.0.15-3ubuntu1) hardy; urgency=low + + * Merge from Debian unstable, remaining changes: + - Packaging: + + no alsaconf, + + Vcs-Bzr (updated URI), lpia arch, maintainer field munging, + + toggle additional mixer elements in initscript: in addition to + the fix in 1.0.15-3 for Thinkpad T61/X61, also twit the control + in mute_and_zero_levels_on_card() (LP: #190393). + + -- Daniel T Chen Sun, 10 Feb 2008 09:41:23 +0000 + +alsa-utils (1.0.15-3) unstable; urgency=low + + [ Elimar Riesebieter ] + * alsa-utils needs /usr at boot but did not depend on $remote_fs. init script + fixed. Thanks Petter Reinholdtsen. (closes: #464020) + * AD1984 -- Thinkpad T61/X61 set switch_control "Speaker" and "Headphone" on + Thanks Jerone Young. Fixes: LP#190393. + + -- Jordi Mallach Sun, 10 Feb 2008 04:41:36 +0100 + +alsa-utils (1.0.15-2ubuntu1) hardy; urgency=low + + * Merge from Debian unstable, remaining changes: + - Packaging: + + no alsaconf, + + Vcs-Bzr, lpia arch, maintainer field munging, + + toggle additional mixer elements in initscript. + + -- Daniel T Chen Fri, 11 Jan 2008 21:41:16 +0000 + +alsa-utils (1.0.15-2) unstable; urgency=low + + [ Elimar Riesebieter ] + * Fixed asoundconf to list available cards. Customized to the format of + /proc/asound/cards. Thanks Ari Pollak. (closes: #451574) + * Introduced /usr/sbin/alsa instead of /etc/init.d/alsa in alsaconf script. + * Bumped standard version to 3.7.3. No changes. + * The python-minimal package (and versioned variants thereof) exists + only to possibly become an Essential package. Depending on it is always + an error since it should never be installed without python. If it + becomes Essential, there is no need to depend on it, and until then, + packages that require Python must depend on python: Redepended on python. + * Don't install empty dir /usr/share/lintian/overrides. + + [ Jordi Mallach ] + * Switch to now official Vcs-* control fields. + + -- Jordi Mallach Fri, 11 Jan 2008 17:56:28 +0100 + +alsa-utils (1.0.15-1ubuntu1) hardy; urgency=low + + * Merge from Debian unstable. + * Ubuntu-specific changes: + - debian/control: + + Add bzr URI, + + Add lpia to supported arches, + + Adhere to DebianMaintainerField; + - debian/init: + + Mute 'IEC958' by default, + + Unmute 'Master Surround', 'Audigy Analog/Digital Output Jack'; + - debian/modprobe-post-install-part: Remove - not used; + - Don't install alsaconf. + + -- Daniel T Chen Sat, 27 Oct 2007 23:17:58 +0100 + +alsa-utils (1.0.15-1) unstable; urgency=low + + * New upstream release. + + [ Elimar Riesebieter ] + * Added Homepage header in debian/control. + * debian/rules: s/-$(MAKE) distclean/[ ! -f Makefile ] || $(MAKE) distclean/ + * debian/control: Recommend udev (>= 0.096-1) + * Switched alsa-utils dependency from python to python-minimal. + (closes: #447736) + + -- Jordi Mallach Sat, 27 Oct 2007 12:46:54 +0200 + +alsa-utils (1.0.14-2) unstable; urgency=low + + [ Elimar Riesebieter ] + * Tweaked alsaconf to work properly with 2.6 kernel drivers. + (closes: #391921, #411305, #426759, #429784, #430624, #432678, #439842) + (closes: #404215, #4417769) + * Reduced the default mixersettings in alsaconf a bit. + * Removed modutils from alsa-utils' Depends: + * Tweaked the menu entry to menu policy 3.5. + * Changed clean target according to lintians help ;) + + -- Jordi Mallach Sat, 15 Sep 2007 21:50:40 +0200 + +alsa-utils (1.0.14-1ubuntu4) gutsy; urgency=low + + * debian/asoundconf* : Update from + https://code.launchpad.net/~motu/asoundconf-ui/asoundconf-trunk, + which enables asoundconf to create an .asoundrc specific for the + system's installed alsa-lib version instead of relying on + hard-coded items in the script. (This extensibility is + anticipated for 8.04 LTS.) + + -- Daniel T Chen Mon, 03 Sep 2007 22:33:55 -0400 + +alsa-utils (1.0.14-1ubuntu3) gutsy; urgency=low + + * Add lpia to the alsa-utils architecure list. + + -- Adam Conrad Tue, 31 Jul 2007 14:33:48 +1000 + +alsa-utils (1.0.14-1ubuntu2) gutsy; urgency=low + + * debian/asoundconf{,.1}: Use correct dmix.* syntax, and + pretty-print convenience macro functions in the man page. + Thanks to Dana Goyette for testing. + + -- Daniel T Chen Thu, 14 Jun 2007 13:58:35 -0400 + +alsa-utils (1.0.14-1ubuntu1) gutsy; urgency=low + + * Merge from Debian unstable, remaining changes: + - debian/asoundconf{,.1}: + + Merge updated configuration parameters from alsa/alsa.conf, + + Handle insufficient user-provided parameters (LP: #114062), + + Clarify man page for consistency, + - debian/control: + + Don't list modutils as an alternate for module-init-tools, + + Adhere to DebianMaintainerField, + - debian/init: + + Mute 'IEC958' by default, + + Unmute 'Master Surround', 'Audigy Analog/Digital Output Jack', + and 'SB Live Analog/Digital Output Jack' by default, + - debian/modprobe-post-install-part: Remove - not used in Ubuntu, + - debian/patches/{00list,*.dpatch}: Remove - integrated into + upstream and obsoleted by quilt conversion. + + -- Daniel T Chen Tue, 12 Jun 2007 00:18:40 -0400 + +alsa-utils (1.0.14-1) unstable; urgency=low + + * New upstream release. + + [ Elimar Riesebieter ] + * We've found that a new board from ASUS need to use Front channel as + master control. Thanks Otavio Salvador. (closes: #425430) + * Patch management switched to quilt. This is more comfortable. + + -- Jordi Mallach Sat, 09 Jun 2007 21:24:11 +0200 + +alsa-utils (1.0.14~rc4-1) experimental; urgency=low + + [ Elimar Riesebieter ] + * New upstream release candidate. + + [ Jordi Mallach ] + * debian/control: add XS-Vcs-Browser and XS-Vcs-Svn headers. + + -- Jordi Mallach Sun, 13 May 2007 12:09:39 +0200 + +alsa-utils (1.0.14~rc2-1) experimental; urgency=low + + [ Elimar Riesebieter ] + * New upstream release candidate. + + -- Jordi Mallach Fri, 13 Apr 2007 01:46:54 +0200 + +alsa-utils (1.0.14~rc1-1) experimental; urgency=low + + * New upstream release candidate. + + [ Elimar Riesebieter ] + * Removed debian/patches/30_alsaconf_ppc.dpatch. Applied from upstream. + * Removed debian/patches/35_speaker-test_1.dpatch. Applied from upstream. + * Removed debian/patches/94_debian_alsaconf_modprobe_driver.dpatch. Applied + different from upstream. + * Added arch armel to alsa-utils. (closes: Bug#408773) + + -- Jordi Mallach Sat, 13 Jan 2007 02:23:38 +0100 + +alsa-utils (1.0.13-2) unstable; urgency=medium + + [ Elimar Riesebieter ] + * Added XS-X-Vcs-Svn field in control. + + [ Jordi Mallach ] + * debian/init: unmute "Master Mono" channels as some laptops do have + mono speakers, muted by default (closes: #406047). + + -- Jordi Mallach Fri, 12 Jan 2007 14:12:07 +0100 + +alsa-utils (1.0.13-1ubuntu5) feisty; urgency=low + + * debian/asoundconf: Fix reset_default_card() (LP #86048). + + -- Daniel T Chen Sun, 18 Feb 2007 15:12:28 -0500 + +alsa-utils (1.0.13-1ubuntu4) feisty; urgency=low + + The "damned if you do, damned if you don't" revision. + + * debian/asoundconf: Fix unset_pulseaudio() (Closes Ubuntu: #78735), + * debian/init: + - Mute 'IEC958' by default (Closes Ubuntu: #19648), + - Unmute 'Master Surround', 'Audigy Analog/Digital Output Jack' and + 'SB Live Analog/Digital Output Jack' by default. + + -- Daniel T Chen Fri, 12 Jan 2007 10:20:43 -0500 + +alsa-utils (1.0.13-1ubuntu3) feisty; urgency=low + + * debian/asoundconf{,.1}: Teach asoundconf about pulseaudio. + By installing the pulseaudio (and its Suggests and Recommends) and + libasound2-plugins packages, a user can now activate a pulseaudio + config by executing ``pulseaudio -D && asoundconf set-pulseaudio''. + + -- Daniel T Chen Sun, 7 Jan 2007 02:28:45 -0500 + +alsa-utils (1.0.13-1ubuntu2) feisty; urgency=low + + * Merge updated configuration parameters from alsa/alsa.conf + into debian/asoundconf (Closes Ubuntu: #77348, #73377). + + -- Daniel T Chen Wed, 3 Jan 2007 15:40:37 -0500 + +alsa-utils (1.0.13-1ubuntu1) feisty; urgency=low + + * Merge from Debian unstable, remaining Ubuntu changes: + - debian/asoundconf: + + Enumerate user asoundrc parameters correctly, + + Handle leading whitespace in contents of /proc/asound/cards + for Linux >= 2.6.16, + - debian/control: Don't list modutils as an alternate for + module-init-tools, + - debian/modprobe-post-install-part: Drop, not used in Ubuntu, + - debian/patches/40_*: + + alsactl_bail_on_nonexistent_config.dpatch: Add, + + amixer_dont_beep_on_argv_errors: Add (Closes Ubuntu: #18272), + + amixer_validate_commands: Add. + + -- Daniel T Chen Wed, 22 Nov 2006 05:22:45 -0500 + +alsa-utils (1.0.13-1) unstable; urgency=low + + * New upstream release + + [ Elimar Rieseebieter ] + * Cleaned out hunks in debian/patches + + -- Jordi Mallach Tue, 3 Oct 2006 12:00:49 +0200 + +alsa-utils (1.0.12-1) unstable; urgency=low + + * New upstream release + + [ Elimar Riesebieter ] + * Added a more reasonable package description. Thanks Alexandre Fayolle. + (closes: #384971) + * Bumped compat to 5 and debhelper version >= 5.0.37. + * Adjusted libasound-dev build-dependency version in debian/control. + * Adjusted debian/init. Thanks Petter Reinholdtsen. (closes: #386624) + + -- Jordi Mallach Mon, 11 Sep 2006 11:29:17 +0200 + +alsa-utils (1.0.11-6ubuntu2) edgy; urgency=low + + * debian/asoundconf: + - list(): Handle leading whitespace when parsing /proc/asound/cards + (see fix applied in 1.0.10-1ubuntu11 for #43197). + - set_default_card()/reset_default_card(): Add additional + definitions from alsa-lib's confdir/alsa.conf so that using the + standard overridable ones (e.g., plug:dmix) don't throw alsa-lib + errors (Closes Ubuntu: #43146). + + -- Daniel T Chen Sun, 30 Jul 2006 19:35:51 -0400 + +alsa-utils (1.0.11-6ubuntu1) edgy; urgency=low + + * Merge from Debian unstable: + - debian/modprobe-post-install-part: Drop, not used in Ubuntu. + + -- Daniel T Chen Tue, 18 Jul 2006 01:32:29 +0100 + +alsa-utils (1.0.11-6) unstable; urgency=low + + [ Elimar Riesebieter ] + * Adjusted debian/modprobe-post-install-part. We have only to check for udev + and not for kernel-version >= 2.5. (closes: #377514) Thanks Marco d'Itri. + * Use lsb init-functions in init script. Thanks Carlos Villegas + (closes: #377717) + + -- Jordi Mallach Mon, 17 Jul 2006 18:11:44 +0200 + +alsa-utils (1.0.11-5ubuntu1) edgy; urgency=low + + * Merge from debian unstable: + - debian/control: Retain Depends delta (no modutils). + + -- Daniel T Chen Thu, 06 Jul 2006 00:18:04 +0100 + +alsa-utils (1.0.11-5) unstable; urgency=low + + [ Elimar Riesebieter ] + * Adjusted Required-(Start|Stop) in the initscript. (closes: #375388) + * Switched alsa-utils dependency from python-minimal to python for now. + (closes: #368462) + * Introduced 30_alsaconf_ppc.dpatch. Now snd-powermac should be found by the + deprecated alsaconf tool. Thanks to Juan A. Diaz. (closes: #344008) + * Added 35_speaker-test_1.dpatch to fix typos. Thanks A. Costa + (closes: #354560) + + -- Jordi Mallach Wed, 5 Jul 2006 10:45:43 +0200 + +alsa-utils (1.0.11-4ubuntu1) edgy; urgency=low + + * Merge from debian unstable: + - debian/asoundconf: Drop Ubuntu delta (whitespace-only). + - debian/control: Retain delta (see 1.0.10-1ubuntu5 for rationale). + - debian/dirs: + + Retain delta (keep sbin but drop lib/udev; see below for + debian/udev.script). + + Remove usr/share/lintian/overrides (see 1.0.11-1 for + rationale). + - debian/init: + + Retain /sbin/alsactl delta. + + Drop shell quoting delta [both $() and `` being valid POSIX]. + + Retain delta for earlier exit with $TARGET_CARD. + - debian/modprobe-post-install-part: Drop (see 1.0.10-1ubuntu5 for + rationale). + - debian/{postinst,rules}: + + Retain deltas (/etc/udev/rules.d/85-alsa.rules). + + Don't install lintian override. + - debian/udev.script: Drop (instead hack debian/{init,udev.rules}). + + -- Daniel T Chen Wed, 05 Jul 2006 17:28:22 -0400 + +alsa-utils (1.0.11-4) unstable; urgency=low + + * debian/init: fix a typo in Tumbler test (closes: #368114). + + -- Jordi Mallach Sat, 20 May 2006 02:41:48 +0200 + +alsa-utils (1.0.11-3) unstable; urgency=low + + [ Martin Pitt ] + * debian/init, echo_card_indices(): Fix sed expression to accept leading + spaces in front of card numbers. Kernels 2.6.16+ write the card number + with '%2i'. (Closes: #366883) + * debian/asoundconf: + - Remove the automatic prepending of '!' for non-numeric parameter values; + this approach is flawed (see lengthy explanation in LP#31699). + - Add two convenience functions set-default-card and reset-default-card + which care for the correct handling of !defaults.pcm.card, + defaults.ctl.card, defaults.pcm.device, and defaults.pcm.subdevice. + Doing it here in python is way easier and less error prone than handling + this in C in control-center. (Ubuntu#31699) + * debian/asoundconf.1: Describe set-default-card and reset-default-card. + + [ Elimar Riesebieter ] + * Bumped Standard-Version to 3.7.2; no changes needed. + * Added ppc Tumbler card to preinit_levels_on_card() in debian/init. + (Closes: #367953) Thanks to Markus Koller. + + -- Jordi Mallach Fri, 19 May 2006 21:25:08 +0200 + +alsa-utils (1.0.11-2) unstable; urgency=low + + [ Elimar Riesebieter ] + * Adjusted the initscript: + use [ -x /usr/sbin/alsactl ] || exit 0 instead of + [ -d /lib/alsa-utils ] || exit 0 + as /lib/alsa-utils doesn't exist anymore. Thanks to Michael Setzer and Dan + Chen. (Closes: #364593, #364583) + + -- Jordi Mallach Tue, 25 Apr 2006 13:32:05 +0200 + +alsa-utils (1.0.11-1) unstable; urgency=low + + [ Elimar Riesebieter ] + * New upstream release + * bad handling of udev symlink: Applied patch from Julien Danjou, thanks. + (Closes: #357276) + * Reworked debian/patches/90_debian_alsaconf_paths.dpatch + * Removed lintian-overrides as starting with capital-letters in descr is + accepted now + + -- Jordi Mallach Sun, 23 Apr 2006 17:14:24 +0200 + +alsa-utils (1.0.10+1.0.11rc2-2) experimental; urgency=low + + [ Thomas Hood ] + * Depend on python-minimal rather than on python (Closes: #325876) + * Put module-init-tools before modutils in Depends + * /etc/init.d/alsa-utils: Use a more standard PATH + * Correct license text quotations in the copyright file + * debian/asoundconf: Correct description of is-active to reflect + changed semantics (see Martin Pitt's changes) + * /lib/udev/alsa-utils (formerly /lib/alsa-utils/udev), + /etc/alsa/modprobe-post-install.d/alsa-utils: + Work with latest udev (Closes: #353893) + * Make postinst handle abort-upgrade (Closes: #357456) + + [ Jordi Mallach ] + * Build-depend on libasound2-dev (>= 1.0.10) instead of the very latest rc + + [ Martin Pitt ] + * debian/asoundconf: + - Support string values + - get/delete: Also match parameters prefixed with '!' + - set: Prefix parameter with '!' if it is not a number + - is-active: Consider the absence of ~/.asoundrc as valid for handling + with asoundconf + - Add 'list' command to display available sound card names, update + manpage. + * debian/init: + - Add new functions preinit_levels()/preinit_levels_on_card() which are + executed everytime (sanify_levels() is only executed if there is no + saved state). + - preinit_levels_on_card(): If card is a PowerMac Snapper, do a 'mute + "Auto Mute", mute "PC Speaker", unmute "Auto Mute" again' dance to set + the default output to the internal speakers. This makes powerpc sound + work out of the box again. (Closes: #355753) + + [ Elimar Riesebieter ] + * Switch from /usr/sbin/su-to-root to su-to-root in debian/menu as + recommended by lintian + + -- Martin Pitt Thu, 9 Mar 2006 09:29:02 +0100 + +alsa-utils (1.0.10+1.0.11rc2-1) experimental; urgency=low + + * New upstream release candidate + + [ Elimar Riesebieter ] + * Remove 80_alsa-utils-1.0.11_rc1-bigendian.dpatch which was + applied upstream + + -- Jordi Mallach Tue, 10 Jan 2006 01:03:09 +0100 + +alsa-utils (1.0.10+1.0.11rc1-1) experimental; urgency=low + + * New upstream release candidate + + [ Elimar Riesebieter ] + * Introduce 80_alsa-utils-1.0.11_rc1-bigendian.dpatch. This adds + inclusion of byteswap.h header when building on big endian machines, + which was a powerbook in my case ;) + + -- Jordi Mallach Fri, 30 Dec 2005 14:21:44 +0100 + +alsa-utils (1.0.10-1ubuntu14) dapper; urgency=low + + * debian/init: Add change from Debian's alsa-utils_1.0.11-4 so that + Tumbler goes through the same preinit_levels_on_card() dance (see + Malone #30963) + + -- Daniel T Chen Sun, 28 May 2006 02:10:49 -0400 + +alsa-utils (1.0.10-1ubuntu13) dapper; urgency=low + + * debian/init: Set 'IEC958 Playback AC97-SPSA' to 0 so that PCM1 is + routed and audible by default for hardware allowing AC97 through + IEC958. Symptoms included inaudible volume despite correct mixer + settings. This toggle is used for analog output. + + -- Daniel T Chen Fri, 12 May 2006 16:22:10 -0400 + +alsa-utils (1.0.10-1ubuntu12) dapper; urgency=low + + * debian/init: Unmute all 'VIA DXS' elements for newer Via hardware. + Closes: LP#31784, LP#40810. + + -- Daniel T Chen Wed, 10 May 2006 16:49:48 -0400 + +alsa-utils (1.0.10-1ubuntu11) dapper; urgency=low + + * debian/init, echo_card_indices(): Fix sed expression to accept leading + spaces in front of card numbers. Kernels 2.6.16+ write the card number + with '%2i'. Closes: LP#43197 + + -- Martin Pitt Wed, 10 May 2006 14:35:45 +0200 + +alsa-utils (1.0.10-1ubuntu10) dapper; urgency=low + + * debian/asoundconf: + - Remove the automatic prepending of '!' for non-numeric parameter values; + this approach is flawed (see lengthy explanation in LP#31699). + - Add two convenience functions set-default-card and reset-default-card + which care for the correct handling of !defaults.pcm.card, + defaults.ctl.card, defaults.pcm.device, and defaults.pcm.subdevice. + Doing it here in python is way easier and less error prone than handling + this in C in control-center. Closes: LP#31699 + * debian/asoundconf.1: Describe set-default-card and reset-default-card. + + -- Martin Pitt Tue, 9 May 2006 13:24:56 +0200 + +alsa-utils (1.0.10-1ubuntu9) dapper; urgency=low + + * debian/init: Unmute 'Front' element for HDA Intel (hda-intel), and + unmute 'Analog Front' element for SB Live 7.1/24-bit (ca0106). + Closes: LP#35775 + + -- Daniel T Chen Mon, 27 Mar 2006 18:02:00 -0500 + +alsa-utils (1.0.10-1ubuntu8) dapper; urgency=low + + * debian/init: + - Add new functions preinit_levels()/preinit_levels_on_card() which are + executed everytime (sanify_levels() is only executed if there is no + saved state) + - preinit_levels_on_card(): If card is a PowerMac Snapper, do a 'mute + "Auto Mute", mute "PC Speaker", unmute "Auto Mute" again' dance to set + the default output to the internal speakers. This makes powerpc sound + work out of the box again. (Malone #32151 and a dozen duplicates) + * debian/asoundconf: Add 'list' command to list available sound card names + for using with get/set. Thanks to Rocco Stanzione for the patch. + (Malone #31893) + + -- Martin Pitt Tue, 7 Mar 2006 12:08:04 +0100 + +alsa-utils (1.0.10-1ubuntu7) dapper; urgency=low + + * Make the udev rule match on the control device the same as the naming + rule shipped by udev itself. + * Start the alsa mixer setting script in the background so we don't wait + for it. + * Make the script spin until /usr/bin exists and /var/lib/alsa also exists + (a handy hint that they have been mounted) + + -- Scott James Remnant Thu, 16 Feb 2006 21:23:18 +0000 + +alsa-utils (1.0.10-1ubuntu6) dapper; urgency=low + + * And remove the udev/rules.d symlink. + + -- Scott James Remnant Fri, 3 Feb 2006 13:19:08 +0000 + +alsa-utils (1.0.10-1ubuntu5) dapper; urgency=low + + * Drop dependency on modutils, as it's simply not needed anymore. + * Drop the modprobe-post-install script as alsa-base doesn't run these + anymore, and it didn't work with new udev anyway. Just use udev rules + in Ubuntu. + * Install the rules directly into /etc/udev/rules.d so they'll get + reloaded automatically if they're ever changed. + * Don't run the init script on startup, instead just run it whenever cards + are inserted through the rule and don't output messages as usplash gets + confused. + * Move alsactl from /usr/sbin to /sbin so we can run it even if /usr + is on a different partition + + -- Scott James Remnant Fri, 3 Feb 2006 12:44:58 +0000 + +alsa-utils (1.0.10-1ubuntu4) dapper; urgency=low + + * debian/asoundconf: Consider the absence of ~/.asoundrc as valid for + handling with asoundconf. This fixes the sound card selector for a clean + install. + + -- Martin Pitt Thu, 2 Feb 2006 12:09:58 +0000 + +alsa-utils (1.0.10-1ubuntu3) dapper; urgency=low + + * Prefer module-init-tools over modutils + + -- Matt Zimmerman Mon, 30 Jan 2006 07:11:44 -0800 + +alsa-utils (1.0.10-1ubuntu2) dapper; urgency=low + + * debian/asoundconf: + - get/delete: Also match parameters prefixed with '!'. + - set: Prefix parameter with '!' if it is not a number. + + -- Martin Pitt Tue, 24 Jan 2006 19:13:44 +0100 + +alsa-utils (1.0.10-1ubuntu1) dapper; urgency=low + + * Synchronize to Debian, apply remaining Ubuntu changes to pristine Debian + package. + * Only remaining change: debian/rules: Do not install alsaconf. + + -- Martin Pitt Mon, 23 Jan 2006 17:15:46 +0100 + +alsa-utils (1.0.10-1) unstable; urgency=low + + * New upstream release + Closes: #273125 "aplay.1: Does not give default values for options" + + -- Jordi Mallach Wed, 23 Nov 2005 00:14:17 +0100 + +alsa-utils (1.0.9+1.0.10rc3-1) experimental; urgency=low + + * New upstream release candidate + * Thomas Hood + - Add "armeb" to our static list of target architectures. + - /etc/init.d/alsa-utils: Add LSB header + + -- Thomas Hood Tue, 8 Nov 2005 22:26:46 +0100 + +alsa-utils (1.0.9+1.0.10rc2-1) experimental; urgency=low + + * New upstream release candidate + - Closes: #325771 "aplay.1: two SYNOPSIS sections" + * Thomas Hood + - debian/control: s/Architecture: any/Architecture: / + - Remove z60_alsa-utils.rules on purge (Closes: #330035) + - Don't use /usr/bin/env in asoundconf shebang + - Use latest lsb init-functions in initscript + + -- Jordi Mallach Fri, 28 Oct 2005 12:50:21 +0200 + +alsa-utils (1.0.9+1.0.10rc1-1) experimental; urgency=low + + * New upstream release candidate + - Closes: #299458 (cannot control 'Capture Volume') + - Closes: #311262 (aplay does not use standard output) + - Closes: #302147 (man page typos) + - Closes: #317868 (alsamixer: unexpected quit) + * Thomas Hood + - Update upstream changelog + - Update 20_alsaconf_safe_tmp, 94_debian_alsaconf_modprobe_driver, + 95_debian_alsaconf_unload_modules for new upstream release + - Use newfangled (>= 3.0-2) lsb-base init functions if available + - Set "Master Playback Switch" on by default (Closes: Ubuntu#5813) + - Add Martin Pitt's asoundconf program (addresses #199226) + - Remove obsolete set-default-soundcard program + - Build-Depend on new libasound2-dev (otherwise build fails) + - Drop unused /usr/share/alsa-utils/ + - initscript: Don't set "Audigy Analog/Digital Output Jack" + The driver should set this up properly + + -- Jordi Mallach Mon, 19 Sep 2005 21:39:08 +0200 + +alsa-utils (1.0.9a-4) unstable; urgency=low + + * Thomas Hood + - Add set-default-soundcard from Ubuntu and consequently: + - Add "python" to Dependencies + - Conflict with udev << 0.060 since mixer-level-restore feature + now uses the new udev mechanism. + - Suggest udev >= 0.063 + - Conflict with alsa-base <= 1.0.9b-2 + - Create alsa-utils initscript + + Start with old alsa initscript + + Add "reset" method + + Make it use lib init functions if they are available (thus + rendering it unnecessary for Ubuntu to patch the script) + - Don't keep runlevels_save feature or default file and + don't keep debconf question about saving mixer levels. + Whether or not to save mixer levels should now be controlled + using a runlevel editor: levels are saved when "stop" is run. + "Start" alsa-utils at S:S50; "stop" at [06]:K50 + The foregoing allows massive simplification of the package + - Add /etc/alsa/modprobe-post-install.d/alsa-utils + - Add /etc/udev/alsa-base.rules (Closes: #316909) + - Add /lib/alsa-utils/udev which is called by udev obeying + the alsa-utils.rules file. [Note added later: this file was + moved to /lib/udev/alsa-utils.] + Note that /etc/alsa/dev.d/ no longer functions as a run-parts + directory. This means that new udev rules files should be + introduced for any local hook scripts that were formerly in + /etc/alsa/dev.d/. + - Omit out-of-date French alsaconf(8) (see: #316981) + - Eliminate obsolete dependencies + + -- Jordi Mallach Mon, 1 Aug 2005 21:48:24 +0200 + +alsa-utils (1.0.9a-3) unstable; urgency=low + + * Thomas Hood + - Bump Standards-Version to 3.6.2.1; no changes required + - Reverse the order of dialog/whiptail dependency to prefer + whiptail, following Ubuntu's lead + - Modify 95_debian_alsaconf_unload_modules.dpatch to make + alsaconf use the OSS-module-list from linux-sound-base, + thus making the following change possible + - Make alsa-utils Depend on linux-sound-base rather than + alsa-base, thus eliminating the Dependency cycle + - Add upstream changelog + + -- Jordi Mallach Tue, 28 Jun 2005 19:29:05 +0200 + +alsa-utils (1.0.9a-2) unstable; urgency=low + + * Thomas Hood + - Supply upstream's speaker-test.1 rather than our own + - Clean up dpatch headers + - Add 99_debian_alsaconf_modprobe_ignoreinstall.dpatch + (Closes: #306177) + + -- Jordi Mallach Wed, 8 Jun 2005 17:10:51 +0200 + +alsa-utils (1.0.9a-1) unstable; urgency=low + + * New upstream release + - Fix segfault on the device without capture controls when the + view is changed to capture mode (Closes: #308090) + * Thomas Hood: + - Fix dpatch 10_move_asound_state_to_var + * Jordi Mallach: + - debian/control: bump libasound2-dev requirement to 1.0.9. + + -- Jordi Mallach Sun, 5 Jun 2005 23:03:34 +0200 + +alsa-utils (1.0.8+1.0.9rc3-1) experimental; urgency=low + + * New upstream release candidate + - Fixes part of #299458 "alsamixer, amixer cannot control + Capture Volume and Capture Switch on azx" + - Closes: #302147 "man page typos" + * Thomas Hood + - Drop dpatches applied upstream: + + 15_alsaconf_fix_opt + + 97_debian_alsaconf_cfgfile + - Update dpatches: + + 20_alsaconf_safe_tmp + + 98_debian_alsaconf_nodup + . Don't omit card options for legacy cards + - Don't ship obsolete upstream changelog. + Please see the upstream changelog in alsa-base instead. + + -- Jordi Mallach Wed, 11 May 2005 20:34:35 +0200 + +alsa-utils (1.0.8-4) unstable; urgency=medium + + * Thomas Hood + - Tweak patch descriptions + - 20_alsaconf_safe_tmp: + + Don't mention --modinfo in usage + + Don't abort if card database is empty (Closes: #297779) + Thanks to B. Zhang for assistance. + + -- Jordi Mallach Fri, 4 Mar 2005 11:34:35 +0100 + +alsa-utils (1.0.8-3) unstable; urgency=low + + * Thomas Hood + - 20_alsaconf_safe_tmp: + Generate card database temporary file safely and only run in + "modinfo" mode (Closes: #294128) + + -- Jordi Mallach Sun, 20 Feb 2005 16:38:24 +0100 + +alsa-utils (1.0.8-2) unstable; urgency=medium + + * Thomas Hood + - Depend on alsa-base >= 1.0.8-4 so that alsaconf can run the + initscript force-unload method + - alsaconf: + + 95_debian_alsaconf_unload_modules.dpatch: + . Run force-unload initscript method, not force-stop which + was removed (Closes: #294112) + . Patch has a new name + + 98_debian_alsaconf_nodup.dpatch + . Tweak so that alsaconf doesn't fail if + /etc/mod(utils|probe.d)/alsa-base not present + + -- Jordi Mallach Thu, 10 Feb 2005 22:49:09 +0100 + +alsa-utils (1.0.8-1) unstable; urgency=low + + * New upstream release + (Closes: #222435 "alsamixer.1: explain the display") + (Closes: #285629 "alsa-utils: Line LiveDrive Capture gone since 1.0.7") + (Closes: #286192 "alsamixer: document new display modes") + (Closes: #283924 "alsa-utils: Please allow localisation of alsaconf") + (Closes: #286194 "alsamixer: add command-line control of startup mode") + * Thomas Hood + - Update 10_move_asound_state_to_var.dpatch (context) + - debian/control + + Build-Depends: libasound2-dev (>= 1.0.8) + - Replace /usr/lib/alsa/modprobe-post-install by a symlink + (for backward compatibility) to /lib/alsa/modprobe-post-install + and Depend on alsa-base >> 1.0.7-2 which contains the latter + - Remove 92_debian_alsaconf_restore.dpatch + - Update 98_debian_alsaconf_nodup.dpatch to remove more cruft + from /etc/mod(utils|probe.d)/sound files + - Remove /etc/alsa/modprobe-post-install.d from package + (It is now in alsa-base.) + + -- Jordi Mallach Mon, 17 Jan 2005 12:10:00 +0100 + +alsa-utils (1.0.7-2) unstable; urgency=medium + + * Thomas Hood + - Correct descriptions in patch headers + - debian/control + + alsa-utils Depends: alsa-base (>> 1.0.7-1) for + new initscript + - Remove obsolete debian/patches/* + + 15_alsaconf_doc_config + - Add new debian/patches/* + + 94_debian_alsaconf_modprobe_driver + . Modprobe snd card driver on exit + + 95_debian_alsaconf_force_stop_driver + . Invoke initscript force-stop on entrance + and remove OSS modules _after_ printing + introductory message + + 96_debian_alsaconf_improve_intro + . Improve introductory message + + 97_debian_alsaconf_cfgfile + . Change 2.4 config file to /etc/modutils/sound + so as not to overwrite /etc/modutils/alsa-base + which is one of our conffiles + + 98_debian_alsaconf_nodup + . Do not add lines to /etc/mod(utils|probe.d)/sound + that duplicate lines in .../alsa-base + - debian/watch: update + - debian/postrm: Delete /etc/mod(probe.d|utils)/sound on purge + + -- Jordi Mallach Thu, 9 Dec 2004 13:08:32 +0100 + +alsa-utils (1.0.7-1) unstable; urgency=low + + * New upstream release + - Closes: #219874 "alsamixer: Please make ? a synonym for h" + * Thomas Hood + - debian/patches/ + + 10_move_asound_state_to_var Update + + 10_alsaconf_lspci_401 Remove obsolete + + 15_amixer_doc_bug271556 Remove obsolete + + 15_alsamixer_doc_space Remove obsolete + + 15_alsamixer_doc_keycase Remove obsolete + + 15_alsamixer_doc_mute Remove obsolete + + 15_arecord_doc_duration Remove obsolete + + 15_alsaconf_doc_config Leave + + 20_alsaconf_lspci Remove obsolete + + 50_aconnect_betwen Remove obsolete + + 90_debian_alsaconf_paths Leave + + 90_debian_alsaconf_idmode Leave + + 90_debian_alsaconf_cfgfile Remove obsolete + + 90_debian_alsaconf_notouch Remove obsolete + + 91_debian_alsaconf_noclear Leave + + 92_debian_alsaconf_restore Leave + - debian/postinst, prerm, postrm: + + Eliminate unnecessarily complex asound.state-moving code + - debian/control: + + Depend on alsa-base >= 1.0.6a + + Tweak Description + - /usr/lib/alsa/modprobe-post-install: + + Judge udev to be in use if /dev/.udevdb/ exists and + only if kernel version >= 2.6 + + Only do "alsactl restore" if asound.state is present + + -- Jordi Mallach Tue, 30 Nov 2004 14:56:54 +0100 + +alsa-utils (1.0.6-4) unstable; urgency=medium + + * Thomas Hood: + - Tweak Description + - Fix up copyright file + - 92_debian_alsaconf_restore: + + Pass name of card driver to /usr/lib/alsa/modprobe-post-install + - /usr/lib/alsa/modprobe-post-install: + + run-parts /etc/alsa/modprobe-post-install.d/ + + -- Jordi Mallach Mon, 18 Oct 2004 19:12:03 +0200 + +alsa-utils (1.0.6-3) unstable; urgency=medium + + * Thomas Hood: + - Add 10_alsaconf_lspci_401. Anticipates upstream change. + Adapt 20_alsaconf_lspci and 90_debian_alsaconf_paths accordingly. + - modprobe-post-install: + + Don't "alsactl restore" if udev is active. + This begins to address #273090. + + -- Jordi Mallach Sun, 26 Sep 2004 18:14:36 +0200 + +alsa-utils (1.0.6-2) unstable; urgency=low + + * Thomas Hood: + - alsaconf.8 + + Describe new --config option + - speaker-test.1 + + Add + * Jordi Mallach: + - Rebuild with a correct import to get the new alsaconf in. + + -- Jordi Mallach Tue, 21 Sep 2004 23:57:43 +0200 + +alsa-utils (1.0.6-1) unstable; urgency=low + + * New upstream release. + * Thomas Hood: + - aconnect.c + + 50_aconnect_betwen: 'betwen' -> 'between' + (Closes: #272319) + - /usr/lib/alsa/modprobe-post-install + + Add + - alsaconf.in: + + Split up 90_debian_alsaconf into three patches: + . 90_debian_alsaconf_paths + . 90_debian_alsaconf_idmode + . 90_debian_alsaconf_cfgfile + + Add 90_debian_alsaconf_notouch: + . Do not create /etc/modprobe.conf if it didn't exist before. + (Closes: #270413) + . Also, do not update /etc/modprobe.d/sound if it hasn't changed. + . Set cleanup trap before creating temporary files (not after). + + Add 91_debian_alsaconf_noclear: + . Don't really clear screen; just newline (Closes: #261850) + + Add 92_debian_alsaconf_restore: + . Set up module loader to do + /usr/lib/alsa/modprobe-post-install (Closes: #268221) + - amixer.1 + + Add 15_amixer_doc_bug271556: + . Fix formatting (Closes: #271556) + - alsamixer.1 + + Add 15_alsamixer_doc_space which is nothing other than + D. B. Harris's debian/patches/15_alsamixer_docfixes renamed + (see the entry for 1.0.3-1). Add it to debian/patches/00list + so that it actually gets applied. + + Add 15_alsamixer_doc_keycase: + . Note that commands given in upper case can also be given + in lower case (Closes: #258860) + . Note that h brings up a help screen (Closes: #272346) + + Add 15_alsamixer_doc_mute: + . Note that < and > mute channels independently only if + the hardware supports this. (Closes: #262371) + - arecord.1 + + Add 15_arecord_doc_duration: + . Note that the default duration is zero (Closes: #243965) + * Jordi Mallach: + - debian/control: add Thomas Hood to Uploaders. + + -- Jordi Mallach Mon, 20 Sep 2004 18:22:44 +0200 + +alsa-utils (1.0.5-3) unstable; urgency=low + + * Jordi Mallach: + - debian/patches/20_alsaconf_lspci.dpatch: apply patch from + Sergio Gelato to make alsaconf work with the new lspci output + (closes: #258303). + - debian/patches/90_debian_alsaconf.dpatch: sync. + + -- Jordi Mallach Thu, 15 Jul 2004 17:36:37 +0200 + +alsa-utils (1.0.5-2) unstable; urgency=low + + * Jordi Mallach: + - debian/patches/90_debian_alsaconf.dpatch: update config file + location (closes: #256698). Thanks, Fabio Massimo Di Nitto. + - debian/control: don't suggest alsadriver, which isn't provided + by anything anymore (closes: #258606). + - debian/rules: + + apply patch from Mikael Magnusson to apply patches before + configure, to assure alsaconf.in gets the patches applied + on time. Thanks! (closes: #257753). + + don't set sysconfdir to /etc/alsa/0.9 anymore. + - debian/dirs: remove etc/alsa/0.9 (closes: #254360). + + -- Jordi Mallach Sun, 11 Jul 2004 00:36:25 +0200 + +alsa-utils (1.0.5-1) unstable; urgency=low + + * New upstream release. + * Jordi Mallach: + - debian/control: require pciutils (>= 1:2.1.11-4) to ensure lspci is in + /usr/bin (closes: #249179). + + -- Jordi Mallach Thu, 10 Jun 2004 01:52:00 +0200 + +alsa-utils (1.0.4-1) unstable; urgency=low + + * New upstream release. + * Jordi Mallach: + - debian/control: + + change Maintainer name to "Debian ALSA Maintainers". + + require alsa-base 1.0.4 or newer, as alsaconf now relies on the new + location of the modutils file. + - debian/postinst: remove update-menus call and a #DEBHELPER# marker + instead. + - debian/patches/90_debian_alsaconf.dpatch: update path to the Debian + modutils file (0.9 -> 1.0) (closes: #233250, #243143). + + -- Jordi Mallach Tue, 13 Apr 2004 23:21:37 +0200 + +alsa-utils (1.0.3-1) unstable; urgency=low + + * New upstream release + * Jordi Mallach: + - debian/control: sync description with alsa-lib's. + * David B. Harris: + - debian/control: + + Change my Uploaders: email address from my private address to + dbharris@debian.org + + Add pciutils to Depends, alsaconf uses lspci (Closes: #235203) + - Move /etc/asound.state to /var/lib/alsa/asound.state: + + alsaconf/alsaconf.in, alsactl/alsactl.{1,c} via + patches/10_move_asound_state_to_var.dpatch: Move the default + asound.state from /etc/ to /var/lib/alsa/ (Closes: #106244) + + debian/postinst: If /etc/asound.state exists, copy it to + /var/lib/alsa. alsa-base will require a versioned Depends: on this + package so that restarting ALSA in its postinst will get the state + from the right place. + + debian/postrm: Add abort-{upgrade,install} support so that + /var/lib/alsa/asound.state is moved back to /etc/ on a failed upgrade. + + debian/prerm: New, support downgrading to versions of alsa-utils which + store state in /etc/asound.state + - alsamixer/alsamixer.1 via debian/patches/15_alsamixer_docfixes.dpatch: + Fix documentation - the space key in alsamixer doesn't add or remove + channels from the recording stream, it simply turns on recording for + that channel and turns it off everywhere else. (Closes: #222431) + - debian/menu: Use full path to /usr/sbin/su-to-root, as per lintian's + suggestion. + - debian/postinst: Call update-menus, thanks again to lintian for pointing + that oversight out. + + -- David B. Harris Fri, 5 Mar 2004 14:40:31 -0500 + +alsa-utils (1.0.2-1) unstable; urgency=low + + * New upstream release. + * Jordi Mallach: + - debian/control: + + bump the required libasound2-dev to 1.0.1, the version we ended up + releasing. + + bump Standards-Version to 3.6.1.0 (no changes required). + - debian/menu: err, the package is alsa-utils, not alsaconf now. + * Steve Kowalik: + - Depend on modutils, or module-init-tools. (Closes: #225902) + * David B Harris: + - alsa-utils now Provides: audio-mixer (it has both amixer and alsamixer). + (Closes: #231779) + + -- Jordi Mallach Sun, 15 Feb 2004 00:38:09 +0100 + +alsa-utils (1.0.1-1) unstable; urgency=low + + * New upstream release. + * Steve Kowalik: + + dpatch-ify this package. + * David B Harris: + + Migrate alsaconf binary package (from source package alsa-driver) to + this binary package, alsa-utils. Upstream folks have moved it. This was + the sane place for it anyways. + debian/control: + - Add alsa-utils Conflicts/Replaces/Provides alsaconf + - Add alsa-utils Conflicts with alsaconf-0.4, alsa-base-0.4 + - Add alsa-utils Depends: dialog | whiptail, modutils (>= 2.3.5-1) + - Add debian/patches/90_debian_alsaconf.dpatch, based on the one from + alsa-driver + - Add debian/menu for alsaconf, copied directly from alsa-driver + + debian/rules (binary-arch): Depend on patch-stamp instead of patch + + -- Jordi Mallach Mon, 26 Jan 2004 14:55:08 +0100 + +alsa-utils (0.9.8-1) unstable; urgency=low + + * New upstream release. + + -- Jordi Mallach Fri, 14 Nov 2003 13:16:02 +0100 + +alsa-utils (0.9.6-1) unstable; urgency=low + + * New upstream release. + * David B. Harris: + + Import new upstream version to our CVS tree. + + -- David B Harris Tue, 26 Aug 2003 14:39:49 +0200 + +alsa-utils (0.9.4-1) unstable; urgency=low + + * David B. Harris: + + imported new upstream release. + + -- Jordi Mallach Fri, 13 Jun 2003 13:21:14 +0200 + +alsa-utils (0.9.3-1) unstable; urgency=low + + * New upstream release. + + -- Jordi Mallach Sat, 10 May 2003 19:21:56 +0200 + +alsa-utils (0.9.2-2) unstable; urgency=low + + * Steve Kowalik + - Rebuilt on a known-good installation. + + -- Steve Kowalik Mon, 31 Mar 2003 00:22:07 +1000 + +alsa-utils (0.9.2-1) unstable; urgency=low + + * David B Harris: + - New upstream release. + * Jordi Mallach: + - bump dependencies to 0.9.2. + + -- Jordi Mallach Fri, 28 Mar 2003 23:45:06 +0100 + +alsa-utils (0.9.1-1) unstable; urgency=low + + * New upstream release. + * Jordi Mallach: + - debian/control: + + bump dependencies to 0.9.1. + + Standards-Version: 3.5.9.0 (no changes). + + -- Jordi Mallach Fri, 14 Mar 2003 17:00:00 +0100 + +alsa-utils (0.9.0rc8a-1) unstable; urgency=low + + * New upstream release + + aplay segfaults should be fixed in this version, according to upstream + (closes: #177522). + + alsamixer should not fail anymore with ALI5451 South Bridge + (closes: #174690). + * debian/control: bump dependencies to 0.9.0rc8. + + -- Jordi Mallach Tue, 11 Mar 2003 12:53:33 +0100 + +alsa-utils (0.9.0rc7-2) unstable; urgency=low + + * debian/control: + + add David B. Harris to Uploaders, + remove Martin Loschwitz. + + Sync maintainer name with alsa-driver and alsa-lib. + + Standards-Version: 3.5.8.0 (no changes). + * debian/copyright: update maintainer names. + * debian/docs: add more documentation. + * debian/rules: build cleanups. + * debian/compat: use debhelper compatibility 4. + * The following are patches from David B. Harris: + * alsamixer/alsamixer.c: + + hide terminal cursor (closes: #81169). + + add "Press Escape to quit" message to titlebar (closes: #178393). + * aplay/aplay.c: Ensure that if both -l and -L are processed if + both are provided (closes: #177521). + * amixer/amixer.c: remove trailing white spaces from program output + (closes: #177518). + + -- Jordi Mallach Sun, 23 Feb 2003 03:43:16 -0500 + +alsa-utils (0.9.0rc7-1) unstable; urgency=low + + * New upstream release. + * Daniel Kobras' aplay patch has been accepted upstream; removed. + * debian/control: + + change maintainer to "Debian Alsa Psychos + ", add Martin to Uploaders:. + + bump Build-Depend on libasound-dev to (>= 0.9.0rc7-1). + + bump alsa-base Dependency to (>= 0.9.0rc7-1). + + -- Jordi Mallach Mon, 3 Feb 2003 03:57:44 +0100 + +alsa-utils (0.9.0rc6-1) unstable; urgency=low + + * New upstream release. + * debian/control: + + new Maintainers, Martin Loschwitz , + Jordi Mallach and Steve Kowalik . + + Build-Depend on autotools-dev and bump libasound2-dev to (>= 0.9.0rc6). + + bump alsa-base dependency to 0.9.0rc6. + * debian/copyright: add more packaging history and reword copyright terms. + * debian/rules: replace config.{guess,sub} with symlinks to those provided + by autotools and remove them on clean. + * Maintainer upload, ack NMU's (closes: #100519, #124127, #70198, #98718, + closes: #119986, #125802, #131165, #131875, #139318, #148323, #159822). + + -- Jordi Mallach Tue, 10 Dec 2002 17:13:01 +0100 + +alsa-utils (0.9.0rc5-0.2) unstable; urgency=low + + * Non-Maintainer Upload. + * debian/control: bump Build-Depends to libasound2-dev (>= 0.9.0rc5-0.2). + + -- Jordi Mallach Wed, 30 Oct 2002 22:58:13 +0100 + +alsa-utils (0.9.0rc5-0.1) unstable; urgency=low + + * Non-Maintainer Upload. + * New upstream release. + * debian/changelog: removed local emacs variables. + * debian/control: bump alsa-base dependency to 0.9.0rc5. + * debian/rules: + + run "make distclean" instead of "make clean" when cleaning. + + remove "version" on clean. + + disable config.{guess,sub} autoupdate code. These aren't used in the + original sources. + + -- Jordi Mallach Wed, 30 Oct 2002 19:03:06 +0100 + +alsa-utils (0.9.0rc3-0.3) unstable; urgency=low + + * Rebuild against the latest libasound2-dev. + * debian/control: build-dep on libasound2-dev (>= 0.9.0rc3-0.3). + + -- Jordi Mallach Tue, 15 Oct 2002 19:43:16 +0200 + +alsa-utils (0.9.0rc3-0.2) unstable; urgency=low + + * Non-Maintainer Upload. + * debian/control: Build-Depend on versioned debhelper (>= 4.0.0). + * debian/rules: + + support DEB_BUILD_OPTIONS "noopt", drop "debug". + + use DH_COMPAT=4. + * Bas Zoetekouw reports that rc1 works for his EMU10K1 card + (closes: #100519). + * aplay.1/arecord.1 manpages seem to be up to date (closes: #98718). + * Build-Depends were added long ago (closes: #70198). + * alsa-utils and alsa-base versions are synced in both stable and unstable. + alsa-utils also now depends on the same version of alsa-base, so hopefully + this won't happen again (closes: #119986). + * aplay/aplay.c: patch from Daniel Kobras which fixes generation of buggy + wav files (closes: #131875). + + -- Jordi Mallach Sun, 22 Sep 2002 18:24:19 +0200 + +alsa-utils (0.9.0rc3-0.1) unstable; urgency=low + + * Non-Maintainer Upload. Most of the work was done by + Bastian Kleineidam . + * New upstream release (closes: #139318). + * Standards-Version: 3.5.6.1. + * Use absolute filenames in dh_link (closes: #148323). + * Testing/stable versions are consistent (closes: #124127). + * Update dependencies version of alsa-base to rc3. + * Add arecord symlinks in debian/links. + * Conflict with alsa-utils-0.5. + + -- Jordi Mallach Sun, 08 Sep 2002 17:48:12 +0200 + +alsa-utils (0.9.0rc1-1) unstable; urgency=low + + * New upstream release + * Standards-Version: 3.5.6.0 + + -- Masato Taruishi Mon, 13 May 2002 00:51:01 +0900 + +alsa-utils (0.9.0beta12-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Wed, 3 Apr 2002 14:58:38 +0900 + +alsa-utils (0.9.0beta10a-2) unstable; urgency=low + + * Added alsactl symlink (closes: #124321). + + -- Masato Taruishi Mon, 17 Dec 2001 19:55:38 +0900 + +alsa-utils (0.9.0beta10a-1) unstable; urgency=low + + * New upstream release + * Used new alsa-base's version select framework. + + -- Masato Taruishi Sat, 15 Dec 2001 13:03:17 +0900 + +alsa-utils (0.9.0beta9-1) unstable; urgency=low + + * New upstream release + * Removed invocation of automake and autoconf (closes: #115166). + + -- Masato Taruishi Tue, 27 Nov 2001 04:23:06 +0900 + +alsa-utils (0.9.0beta7-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Thu, 6 Sep 2001 16:34:26 +0900 + +alsa-utils (0.9.0beta4-1) unstable; urgency=low + + * New upstream release (closes: #97753, #97761) + + -- Masato Taruishi Thu, 17 May 2001 19:06:01 +0900 + +alsa-utils (0.9.0beta3-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Sun, 13 May 2001 14:17:24 +0900 + +alsa-utils (0.5.9b-2) unstable; urgency=low + + * Priority now optional. + + -- Masato Taruishi Mon, 4 Dec 2000 21:23:10 +0900 + +alsa-utils (0.5.9b-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Fri, 6 Oct 2000 00:37:40 +0900 + +alsa-utils (0.5.9-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Thu, 17 Aug 2000 12:20:29 +0900 + +alsa-utils (0.5.8-1) unstable; urgency=low + + * new upstream release. + + -- Masato Taruishi Tue, 6 Jun 2000 22:22:32 +0900 + +alsa-utils (0.5.7-3) unstable; urgency=low + + * Added Build-Depends: libasound1-dev and more. (closes: #63570) + + -- Masato Taruishi Sat, 6 May 2000 01:31:30 +0900 + +alsa-utils (0.5.7-2) unstable; urgency=low + + * Added alsautils to install alsa-utils automatically if + an old alsautils installed. + + -- Masato Taruishi Mon, 10 Apr 2000 01:37:57 +0900 + +alsa-utils (0.5.7-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Fri, 7 Apr 2000 17:28:40 +0900 + +alsa-utils (0.5.6-2) unstable; urgency=low + + * Fixed debian/copyright. + + -- Masato Taruishi Wed, 15 Mar 2000 01:00:56 +0900 + +alsa-utils (0.5.6-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Sun, 12 Mar 2000 01:42:26 +0900 + +alsa-utils (0.5.5-2) unstable; urgency=low + + * Removed version name from this source name. + + -- Masato Taruishi Sat, 11 Mar 2000 04:50:41 +0900 + +alsa-utils-0.5 (0.5.5-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Sat, 4 Mar 2000 06:49:25 +0900 + +alsa-utils-0.5 (0.5.4-1) unstable; urgency=low + + * New upstream release + + -- Masato Taruishi Tue, 29 Feb 2000 18:56:42 +0900 + +alsa-utils-0.5 (0.5.3-1) unstable; urgency=low + + * New upstream release. + * Changed source name. + + -- Masato Taruishi Fri, 18 Feb 2000 00:26:34 +0900 + +alsautils (0.4.1-5) unstable; urgency=low + + * Fixed wrong command name. (Closes: #49577) + + -- Masato Taruishi Tue, 9 Nov 1999 02:25:02 +0900 + +alsautils (0.4.1-4) unstable; urgency=low + + * Changed the hard coding config_read dir. Note that this is a + temporary solution. (Closes: #49116) + + -- Masato Taruishi Fri, 5 Nov 1999 00:29:54 +0900 + +alsautils (0.4.1-3) unstable; urgency=low + + * Rebuild with new libasound0.4 with new shlibs info. (Closes: #48158, #48226, #48227) + + -- Masato Taruishi Mon, 25 Oct 1999 21:42:01 +0900 + +alsautils (0.4.1-2) unstable; urgency=low + + * New upstream release. + * Changed the maintainer. + * Comment out xpm file entries in /etc/xamixer.conf. (Closes #45368) + + -- Masato Taruishi Sun, 17 Oct 1999 05:16:38 +0900 + +alsautils (0.3.2-1) unstable; urgency=low + + * New upstream version. Compiled with new alsalib (0.3.2) + + -- David Huggins-Daines Fri, 18 Jun 1999 15:09:10 -0400 + +alsautils (0.3.0-pre3-1) unstable; urgency=low + + * New upstream version + * Compiled with alsalib 0.3.0-pre3a + * Cleanup debian/rules + * Change priority to extra + + -- Wichert Akkerman Wed, 3 Feb 1999 00:45:43 +0100 + +alsautils (0.0.7-2) unstable; urgency=low + + * Recompiled with new alsalib (0.3.0) + + -- Wichert Akkerman Sat, 23 Jan 1999 21:15:53 +0100 + +alsautils (0.0.7-1) unstable; urgency=low + + * New upstream version + * Fix a couple of lintian errors & warnings + + -- Wichert Akkerman Sun, 15 Nov 1998 02:32:50 +0100 + +alsautils (0.0.6-2) frozen unstable; urgency=low + + * Recompiled with ncurses4 + + -- Wichert Akkerman Mon, 2 Nov 1998 15:47:37 +0100 + +alsautils (0.0.6-1) unstable; urgency=low + + * New upstream version + * Suggest alsadriver + + -- Wichert Akkerman Wed, 16 Sep 1998 03:01:48 +0200 + +alsautils (0.0.4-1) unstable; urgency=low + + * New upstream version + * Don't include init-file, that's for alsadriver + * Call dh_undocumented for all binaries + * Fix clean-target of aplay-makefile + + -- Wichert Akkerman Fri, 3 Jul 1998 00:13:03 +0200 + +alsautils (0.0.3-2) unstable; urgency=low + + * Forgot to include original source. + + -- Wichert Akkerman Tue, 9 Jun 1998 21:34:31 +0200 + +alsautils (0.0.3-1) unstable; urgency=low + + * Initial release + + -- Wichert Akkerman Sun, 7 Jun 1998 16:53:01 +0200 + --- alsa-utils-1.0.16.orig/debian/init +++ alsa-utils-1.0.16/debian/init @@ -0,0 +1,387 @@ +#!/bin/sh +# +# alsa-utils initscript +# +### BEGIN INIT INFO +# Provides: alsa-utils +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: S +# Default-Stop: 0 6 +# Short-Description: Restore and store ALSA driver settings +# Description: This script stores and restores mixer levels on +# shutdown and bootup.On sysv-rc systems: to +# disable storing of mixer levels on shutdown, +# remove /etc/rc[06].d/K50alsa-utils. To disable +# restoring of mixer levels on bootup, rename the +# "S50alsa-utils" symbolic link in /etc/rcS.d/ to +# "K50alsa-utils". +### END INIT INFO + +# Don't use set -e; check exit status instead + +# Exit silently if package is no longer installed +[ -x /sbin/alsactl ] || exit 0 + +PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +MYNAME=/etc/init.d/alsa-utils + +. /lib/lsb/init-functions + +# $1 EXITSTATUS +# [$2 MESSAGE] +log_action_end_msg_and_exit() +{ + log_action_end_msg "$1" ${2:+"$2"} + exit $1 +} + +# $1 PROGRAM +executable() +{ + # If which is not available then we must be running before + # /usr is mounted on a system that has which in /usr/bin/. + # Conclude that $1 is not executable. + [ -x /bin/which ] || [ -x /usr/bin/which ] || return 1 + which "$1" >/dev/null 2>&1 +} + +# Wait for filesystems to show up +while [ ! -d /usr/bin -o ! -d /var/lib/alsa ]; do + sleep 0.2 +done + +executable amixer || { echo "${MYNAME}: Error: No amixer program available." >&2 ; exit 1 ; } + +bugout() { echo "${MYNAME}: Programming error" >&2 ; exit 123 ; } + +# $1 | "all" +restore_levels() +{ + [ -f /var/lib/alsa/asound.state ] || return 1 + CARD="$1" + [ "$1" = all ] && CARD="" + # Assume that if alsactl prints a message on stderr + # then it failed somehow. This works around the fact + # that alsactl doesn't return nonzero status when it + # can't restore settings for the card + if MSG="$(alsactl restore $CARD 2>&1 >/dev/null)" && [ ! "$MSG" ] ; then + return 0 + else + # Retry with the "force" option. This restores more levels + # but it results in much longer error messages. + alsactl -F restore $CARD >/dev/null 2>&1 + [ -z "$CARD" ] && log_action_cont_msg "warning: 'alsactl restore' failed with error message '$MSG'" + return 1 + fi +} + +# $1 | "all" +store_levels() +{ + CARD="$1" + [ "$1" = all ] && CARD="" + if MSG="$(alsactl store $CARD 2>&1)" ; then + sleep 1 + return 0 + else + [ -z "$CARD" ] && log_action_cont_msg "warning: 'alsactl store' failed with error message '$MSG'" + return 1 + fi +} + +echo_card_indices() +{ + if [ -f /proc/asound/cards ] ; then + sed -n -e's/^[[:space:]]*\([0-7]\)[[:space:]].*/\1/p' /proc/asound/cards + fi +} + +filter_amixer_output() +{ + sed \ + -e '/Unable to find simple control/d' \ + -e '/Unknown playback setup/d' \ + -e '/^$/d' +} + +# The following functions try to set many controls. +# No card has all the controls and so some of the attempts are bound to fail. +# Because of this, the functions can't return useful status values. + +# $1 +# $2 +# $CARDOPT +unmute_and_set_level() +{ + { [ "$2" ] && [ "$CARDOPT" ] ; } || bugout + amixer $CARDOPT -q set "$1" "$2" unmute 2>&1 | filter_amixer_output || : + return 0 +} + +# $1 +# $CARDOPT +mute_and_zero_level() +{ + { [ "$1" ] && [ "$CARDOPT" ] ; } || bugout + amixer $CARDOPT -q set "$1" "0%" mute 2>&1 | filter_amixer_output || : + return 0 +} + +# $1 +# $2 "on" | "off" +# $CARDOPT +switch_control() +{ + { [ "$2" ] && [ "$CARDOPT" ] ; } || bugout + amixer $CARDOPT -q set "$1" "$2" 2>&1 | filter_amixer_output || : + return 0 +} + +# $1 +sanify_levels_on_card() +{ + CARDOPT="-c $1" + + unmute_and_set_level "Front" "80%" + unmute_and_set_level "Master" "80%" + unmute_and_set_level "Master Mono" "80%" # See Bug#406047 + unmute_and_set_level "Master Digital" "80%" # E.g., cs4237B + unmute_and_set_level "Playback" "80%" + unmute_and_set_level "Headphone" "70%" + unmute_and_set_level "PCM" "80%" + unmute_and_set_level "PCM,1" "80%" # E.g., ess1969 + unmute_and_set_level "DAC" "80%" # E.g., envy24, cs46xx + unmute_and_set_level "DAC,0" "80%" # E.g., envy24 + unmute_and_set_level "DAC,1" "80%" # E.g., envy24 + unmute_and_set_level "Synth" "80%" + unmute_and_set_level "CD" "80%" + + mute_and_zero_level "Mic" + mute_and_zero_level "IEC958" # Ubuntu #19648 + + # Intel P4P800-MX (Ubuntu bug #5813) + switch_control "Master Playback Switch" on + switch_control "Master Surround" on + + # Trident/YMFPCI/emu10k1: + unmute_and_set_level "Wave" "80%" + unmute_and_set_level "Music" "80%" + unmute_and_set_level "AC97" "80%" + + # DRC: + unmute_and_set_level "Dynamic Range Compression" "80%" + + # Required for HDA Intel (hda-intel): + unmute_and_set_level "Front" "80%" + + # Required for SB Live 7.1/24-bit (ca0106): + unmute_and_set_level "Analog Front" "80%" + + # Required at least for Via 823x hardware on DFI K8M800-MLVF Motherboard with kernels 2.6.10-3/4 (see ubuntu #7286): + switch_control "IEC958 Capture Monitor" off + + # Required for hardware allowing toggles for AC97 through IEC958, + # valid values are 0, 1, 2, 3. Needs to be set to 0 for PCM1. + unmute_and_set_level "IEC958 Playback AC97-SPSA" "0" + + # Required for newer Via hardware (see Ubuntu #31784) + unmute_and_set_level "VIA DXS,0" "80%" + unmute_and_set_level "VIA DXS,1" "80%" + unmute_and_set_level "VIA DXS,2" "80%" + unmute_and_set_level "VIA DXS,3" "80%" + + # Required on some notebooks with ICH4: + switch_control "Headphone Jack Sense" off + switch_control "Line Jack Sense" off + + # Some machines need one or more of these to be on; + # others need one or more of these to be off: + # + # switch_control "External Amplifier" on + switch_control "Audigy Analog/Digital Output Jack" on + switch_control "SB Live Analog/Digital Output Jack" on + + # D1984 -- Thinkpad T61/X61 + switch_control "Speaker" on + switch_control "Headphone" on + + # HDA-Intel w/ "Digital" capture mixer (See Ubuntu #193823) + unmute_and_set_level "Digital" "80%" + + return 0 +} + +# $1 | "all" +sanify_levels() +{ + TTSDML_RETURNSTATUS=0 + case "$1" in + all) + for CARD in $(echo_card_indices) ; do + sanify_levels_on_card "$CARD" || TTSDML_RETURNSTATUS=1 + done + + mute_and_zero_levels_on_card "pcsp" + ;; + *) + sanify_levels_on_card "$1" || TTSDML_RETURNSTATUS=1 + ;; + esac + return $TTSDML_RETURNSTATUS +} + +# $1 +preinit_levels_on_card() +{ + CARDOPT="-c $1" + + # Silly dance to activate internal speakers by default on PowerMac + # Snapper and Tumbler + id=`cat /proc/asound/card$1/id 2>/dev/null` + if [ "$id" = "Snapper" -o "$id" = "Tumbler" ]; then + switch_control "Auto Mute" off + switch_control "PC Speaker" off + switch_control "Auto Mute" on + fi +} + +# $1 | "all" +preinit_levels() +{ + TTSDML_RETURNSTATUS=0 + case "$1" in + all) + for CARD in $(echo_card_indices) ; do + preinit_levels_on_card "$CARD" || TTSDML_RETURNSTATUS=1 + done + ;; + *) + preinit_levels_on_card "$1" || TTSDML_RETURNSTATUS=1 + ;; + esac + return $TTSDML_RETURNSTATUS +} + +# $1 +mute_and_zero_levels_on_card() +{ + CARDOPT="-c $1" + for CTL in \ + Master \ + PCM \ + Synth \ + CD \ + Line \ + Mic \ + "PCM,1" \ + Wave \ + Music \ + AC97 \ + "Master Digital" \ + DAC \ + "DAC,0" \ + "DAC,1" \ + Headphone \ + Speaker \ + Playback + do + mute_and_zero_level "$CTL" + done +# for CTL in \ +# "Audigy Analog/Digital Output Jack" \ +# "SB Live Analog/Digital Output Jack" +# do +# switch_control "$CTL" off +# done + return 0 +} + +# $1 | "all" +mute_and_zero_levels() +{ + TTZML_RETURNSTATUS=0 + case "$1" in + all) + for CARD in $(echo_card_indices) ; do + mute_and_zero_levels_on_card "$CARD" || TTZML_RETURNSTATUS=1 + done + ;; + *) + mute_and_zero_levels_on_card "$1" || TTZML_RETURNSTATUS=1 + ;; + esac + return $TTZML_RETURNSTATUS +} + + +# $1 | "all" +card_OK() +{ + [ "$1" ] || bugout + if [ "$1" = all ] ; then + [ -d /proc/asound ] + return $? + else + [ -d "/proc/asound/card$1" ] || [ -d "/proc/asound/$1" ] + return $? + fi +} + +# If a card identifier is provided in $2 then regard it as an error +# if that card is not present; otherwise don't regard it as an error. + +case "$1" in + start) + EXITSTATUS=0 + TARGET_CARD="$2" + case "$TARGET_CARD" in + ""|all) TARGET_CARD=all ; log_action_begin_msg "Setting up ALSA" ;; + esac + if ! card_OK "$TARGET_CARD"; then + [ "$TARGET_CARD" = "all" ] && log_action_end_msg "$( [ ! "$2" ] ; echo $? ; )" "none loaded" + exit $? + fi + preinit_levels "$TARGET_CARD" || EXITSTATUS=1 + if ! restore_levels "$TARGET_CARD" ; then + sanify_levels "$TARGET_CARD" || EXITSTATUS=1 + restore_levels "$TARGET_CARD" >/dev/null 2>&1 || : + fi + [ "$TARGET_CARD" = "all" ] && log_action_end_msg_and_exit "$EXITSTATUS" + exit $EXITSTATUS + ;; + stop) + EXITSTATUS=0 + TARGET_CARD="$2" + case "$TARGET_CARD" in + ""|all) TARGET_CARD=all ; log_action_begin_msg "Shutting down ALSA" ;; + *) log_action_begin_msg "Shutting down ALSA card ${TARGET_CARD}" ;; + esac + card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded" + store_levels "$TARGET_CARD" || EXITSTATUS=1 + mute_and_zero_levels "$TARGET_CARD" || EXITSTATUS=1 + log_action_end_msg_and_exit "$EXITSTATUS" + ;; + restart|force-reload) + EXITSTATUS=0 + $0 stop || EXITSTATUS=1 + $0 start || EXITSTATUS=1 + exit $EXITSTATUS + ;; + reset) + TARGET_CARD="$2" + case "$TARGET_CARD" in + ""|all) TARGET_CARD=all ; log_action_begin_msg "Resetting ALSA" ;; + *) log_action_begin_msg "Resetting ALSA card ${TARGET_CARD}" ;; + esac + card_OK "$TARGET_CARD" || log_action_end_msg_and_exit "$( [ ! "$2" ] ; echo $? ; )" "none loaded" + preinit_levels "$TARGET_CARD" + sanify_levels "$TARGET_CARD" + log_action_end_msg_and_exit "$?" + ;; + *) + echo "Usage: $MYNAME {start [CARD]|stop [CARD]|restart [CARD]|reset [CARD]}" >&2 + exit 3 + ;; +esac + --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_nodup.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_nodup.patch @@ -0,0 +1,77 @@ +# debian_alsaconf_nodup.patch by Thomas Hood +# +# Do not put any lines into /etc/mod{utils,probe.d}/sound that are +# already present in /etc/mod{utils,probe.d}/alsa-base +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -881,6 +881,7 @@ + have_alias="yes" + fi + fi ++if false ; then + if [ -z "$have_alias" ]; then + echo "alias char-major-116 snd + alias char-major-14 $SOUND_CORE +@@ -898,16 +899,60 @@ + if [ -n "$CARD_OPTS" ]; then + echo "options $CARD_DRIVER $CARD_OPTS" >> $addcfg + fi ++else ++ # For Debian ++ echo "alias snd-card-0 $CARD_DRIVER ++options $CARD_DRIVER index=0${CARD_OPTS:+ $CARD_OPTS}" >> $addcfg ++fi + + if [ -n "$cfgout" ]; then + [ ! -r "$cfgfile" ] || cmp -s "$TMP" "$cfgfile" || cat "$TMP" > "$cfgfile" ++if false ; then + cmp -s "$addcfg" "$cfgout" || cat "$addcfg" > "$cfgout" ++else ++ # For Debian ++ if [ "$kernel" = old ] ; then ++ if [ -f /etc/modutils/alsa-base ] ; then ++ # Don't duplicate any lines already in /etc/modutils/alsa-base ++ grep -Fv -f /etc/modutils/alsa-base "$addcfg" > "$TMP" ++ else ++ cat "$addcfg" > "$TMP" ++ fi ++ else ++ if [ -f /etc/modprobe.d/alsa-base ] ; then ++ # Don't duplicate any lines already in /etc/modprobe.d/alsa-base ++ grep -Fv -f /etc/modprobe.d/alsa-base "$addcfg" > "$TMP" ++ else ++ cat "$addcfg" > "$TMP" ++ fi ++ fi ++ cmp -s "$TMP" "$cfgout" || cat "$TMP" > "$cfgout" ++fi + else ++if false ; then + echo "$ACB + # --- ALSACONF version $version ---" >> $TMP + cat "$addcfg" >> "$TMP" + echo "$ACE + " >> $TMP ++else ++ # For Debian ++ if [ "$kernel" = old ] ; then ++ if [ -f /etc/modutils/alsa-base ] ; then ++ # Don't duplicate any lines already in /etc/modutils/alsa-base ++ grep -Fv -f /etc/modutils/alsa-base "$addcfg" >> "$TMP" ++ else ++ cat "$addcfg" >> "$TMP" ++ fi ++ else ++ if [ -f /etc/modprobe.d/alsa-base ] ; then ++ # Don't duplicate any lines already in /etc/modprobe.d/alsa-base ++ grep -Fv -f /etc/modprobe.d/alsa-base "$addcfg" >> "$TMP" ++ else ++ cat "$addcfg" >> "$TMP" ++ fi ++ fi ++fi + cmp -s "$TMP" "$cfgfile" || cat "$TMP" > "$cfgfile" + fi + --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_paths.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_paths.patch @@ -0,0 +1,26 @@ +# debian_alsaconf.patch by Thomas Hood +# +# Don't precompute paths for lspci and lsmod +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -69,12 +69,18 @@ + distribution="unknown" + fi + ++if false; then + for prog in lspci lsmod; do + for path in /sbin /usr/sbin /bin /usr/bin;do + test -x $path/$prog && eval $prog=$path/$prog + done + done + unset prog path ++else ++# debian patch ++lspci=lspci ++lsmod=lsmod ++fi + + usage() { + xecho "ALSA configurator" --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_noclear.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_noclear.patch @@ -0,0 +1,28 @@ +# debian_alsaconf_noclear.patch by Thomas Hood +# +# Don't clear the screen. (Let the user see error messages.) +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -483,10 +483,19 @@ + $DIALOG --msgbox "$msg" 17 60 || acex 0 + } + ++clear() { ++ echo ++} ++ + # Exit function + acex() { + cleanup +- clear ++ if [ "$1" = 0 ] ; then ++ clear ++ else ++ # Don't clear error messages ++ echo ++ fi + exit $1 + } + --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_rcalsasound.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_rcalsasound.patch @@ -0,0 +1,25 @@ +Tweaked alsaconf to the new location of rcalasound script. +Elimar Riesebieter 2007/10/21 + +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-12-16 01:43:12.000000000 +0100 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-12-16 01:49:51.000000000 +0100 +@@ -510,7 +510,7 @@ + # + + if [ "$distribution" = "debian" ]; then +- rcalsasound=/etc/init.d/alsa ++ rcalsasound=/usr/sbin/alsa + elif [ -x /etc/init.d/alsasound ]; then + rcalsasound=/etc/init.d/alsasound + elif [ -x /usr/sbin/rcalsasound ]; then +@@ -1422,7 +1422,7 @@ + + intro + +-[ -x /etc/init.d/alsa ] && /etc/init.d/alsa force-unload ++[ -x $rcalsasound ] && $rcalsasound force-unload + + if [ -d /proc/asound ]; then + /sbin/rmmod dmasound dmasound_awacs 2>/dev/null --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_unload_modules.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_unload_modules.patch @@ -0,0 +1,56 @@ +# debian_alsaconf_unload_modules.patch by Thomas Hood +# +# Run initscript force-unload method rather than stop +# and do it after the intro rather than before +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -521,11 +521,13 @@ + + + # MAIN ++if false; then # In Debian don't do this + if [ -d $PROCFS/asound ]; then + $rcalsasound stop >/dev/null 2>&1 + $rcalsasound unload >/dev/null 2>&1 + /sbin/rmmod dmasound dmasound_awacs 2>/dev/null + fi ++fi + + + cleanup () { +@@ -1358,6 +1360,24 @@ + date >> "$LOGFILE" + fi + ++intro ++ ++[ -x /etc/init.d/alsa ] && /etc/init.d/alsa force-unload ++ ++if [ -d /proc/asound ]; then ++ /sbin/rmmod dmasound dmasound_awacs 2>/dev/null ++fi ++ ++# Try to unload all sound modules ++for S in OSS ALSA ; do ++ L="/usr/share/linux-sound-base/${S}-module-list" ++ if [ -r "$L" ] ; then ++ for M in $(sed -e 's/#.*//' -e '/^[[:space:]]*$/d' "$L") ; do ++ [ "$M" ] && /sbin/modprobe -r "$M" >/dev/null 2>&1 || : ++ done ++ fi ++done ++ + if [ x"$legacy_probe_card" != x ]; then + ac_opts="" + if eval ac_try_card_$legacy_probe_card >/dev/null 2>&1; then +@@ -1370,8 +1390,6 @@ + fi + fi + +-intro +- + if [ $do_legacy_only = 1 ]; then + ac_config_legacy + exit 0 --- alsa-utils-1.0.16.orig/debian/patches/series +++ alsa-utils-1.0.16/debian/patches/series @@ -0,0 +1,11 @@ +move_asound_state_to_var.patch +alsaconf_safe_tmp.patch +debian_alsaconf_paths.patch +debian_alsaconf_idmode.patch +debian_alsaconf_noclear.patch +debian_alsaconf_unload_modules.patch +debian_alsaconf_improve_intro.patch +debian_alsaconf_nodup.patch +debian_alsaconf_modprobe_ignoreinstall.patch +debian_alsaconf_udev.patch +debian_alsaconf_rcalsasound.patch --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_modprobe_ignoreinstall.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_modprobe_ignoreinstall.patch @@ -0,0 +1,31 @@ +# debian_alsaconf_ignoreinstall.patch by Thomas Hood +# +# Use modprobe --ignore-install when modprobing legacy card drivers with args +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -1034,7 +1034,11 @@ + # return 0 - OK, 1 - NG, 2 - not working (irq/dma problem) + ac_try_load () { + test -n "$LOGFILE" && echo "$1 ${*:2}" >> "$LOGFILE" ++if [ "$kernel" = old ] ; then + /sbin/modprobe snd-$1 ${*:2} >/dev/null 2>&1 ++else ++ /sbin/modprobe --ignore-install snd-$1 ${*:2} >/dev/null 2>&1 ++fi + if $lsmod | grep -q -E '^(snd-|snd_)'$1' '; then + : ; + else +@@ -1073,7 +1077,11 @@ + # ac_try_capture card duplex opts + ac_try_capture () { + test -n "$LOGFILE" && echo "$1 ${*:2}" >> "$LOGFILE" ++if [ "$kernel" = old ] ; then + /sbin/modprobe snd-$1 ${*:3} >/dev/null 2>&1 ++else ++ /sbin/modprobe --ignore-install snd-$1 ${*:3} >/dev/null 2>&1 ++fi + if $lsmod | grep -q -E '^(snd-|snd_)'$1' '; then + : ; + else --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_improve_intro.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_improve_intro.patch @@ -0,0 +1,18 @@ +# debian_alsaconf_improve_intro.patch by Thomas Hood +# +# Improve introductory message +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -458,9 +458,7 @@ + Advanced Linux Sound Architecture (ALSA) driver. + + +- If ALSA is already running, you should close all sound +- apps now and stop the sound driver. +- alsaconf will try to do this, but it's not 100%% sure." $version) ++ You should stop all sound applications now." $version) + $DIALOG --msgbox "$msg" 20 63 || acex 0 + } + --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_idmode.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_idmode.patch @@ -0,0 +1,18 @@ +# debian_alsaconf_idmode.patch by Thomas Hood +# +# Use Debian-specified GID and mode for ALSA devices. +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -110,8 +110,8 @@ + do_legacy_only=0 + use_modinfo_db=0 + alsa_uid=0 +-alsa_gid=0 +-alsa_mode=0666 ++alsa_gid=29 ++alsa_mode=0660 + legacy_probe_card="" + LOGFILE="" + TESTSOUND="@TESTSOUND@" --- alsa-utils-1.0.16.orig/debian/patches/move_asound_state_to_var.patch +++ alsa-utils-1.0.16/debian/patches/move_asound_state_to_var.patch @@ -0,0 +1,53 @@ +# move_asound_state_to_var.patch by David B. Harris +# +# Move asound.state location to /var/lib/alsa/ +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-15 10:46:57.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -938,8 +938,8 @@ + aplay -N $TESTSOUND + fi + fi +- if [ ! -r /etc/asound.state ]; then +- xecho "Saving the mixer setup used for this in /etc/asound.state." ++ if [ ! -r /var/lib/alsa/asound.state ]; then ++ xecho "Saving the mixer setup used for this in /var/lib/alsa/asound.state." + $sbindir/alsactl store + fi + clear +Index: alsa-utils-1.0.15/alsactl/alsactl.c +=================================================================== +--- alsa-utils-1.0.15.orig/alsactl/alsactl.c 2007-10-15 10:46:57.000000000 +0200 ++++ alsa-utils-1.0.15/alsactl/alsactl.c 2007-10-21 14:57:02.000000000 +0200 +@@ -30,7 +30,7 @@ + #include + #include "alsactl.h" + +-#define SYS_ASOUNDRC "/etc/asound.state" ++#define SYS_ASOUNDRC "/var/lib/alsa/asound.state" + #define SYS_ASOUNDNAMES "/etc/asound.names" + + int debugflag = 0; +Index: alsa-utils-1.0.15/alsactl/alsactl.1 +=================================================================== +--- alsa-utils-1.0.15.orig/alsactl/alsactl.1 2007-10-15 10:46:57.000000000 +0200 ++++ alsa-utils-1.0.15/alsactl/alsactl.1 2007-10-21 14:57:02.000000000 +0200 +@@ -35,7 +35,7 @@ + + .TP + \fI\-f, \-\-file\fP +-Select the configuration file to use. The default is /etc/asound.state or ++Select the configuration file to use. The default is /var/lib/alsa/asound.state or + /etc/asound.names (for the \fInames\fP command). + + .TP +@@ -52,7 +52,7 @@ + Print alsactl version number. + + .SH FILES +-\fI/etc/asound.state\fP (or whatever file you specify with the ++\fI/var/lib/alsa/asound.state\fP (or whatever file you specify with the + \fB\-f\fP flag) is used to store current settings for your + soundcards. The settings include all the usual soundcard mixer + settings. More importantly, alsactl is --- alsa-utils-1.0.16.orig/debian/patches/alsaconf_safe_tmp.patch +++ alsa-utils-1.0.16/debian/patches/alsaconf_safe_tmp.patch @@ -0,0 +1,84 @@ +# alsaconf_safe_tmp.patch by Thomas Hood +# +# Create alsaconf.cards temporary file safely +# Always run in modinfo mode +Index: alsa-utils-1.0.15/alsaconf/alsaconf.8 +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.8 2007-10-15 10:46:57.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.8 2007-10-21 14:57:02.000000000 +0200 +@@ -54,9 +54,6 @@ + .B \-l, \-\-legacy + Check only for legacy non-isapnp cards. + .TP +-.B \-m, \-\-modinfo +-Read module descriptions instead of reading a card database. +-.TP + .B \-P, \-\-listprobe + List the supported legacy card modules. + .TP +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -81,7 +81,6 @@ + echo " version $version" + xecho "usage: alsaconf [options] + -l|--legacy check only legacy non-isapnp cards +- -m|--modinfo read module descriptions instead of reading card db + -s|--sound wav-file + use the specified wav file as a test sound + -u|--uid uid set the uid for the ALSA devices (default = 0) [obsoleted] +@@ -120,8 +119,9 @@ + case "$1" in + -l|--legacy) + do_legacy_only=1; shift ;; +- -m|--modinfo) +- use_modinfo_db=1; shift ;; ++# In Debian the tool always operates in modinfo mode ++# -m|--modinfo) ++# use_modinfo_db=1; shift ;; + -s|--sound) + TESTSOUND=$2; shift 2;; + -h|--help) +@@ -517,10 +517,15 @@ + killall -9 aplay arecord >/dev/null 2>&1 + /sbin/modprobe -r isapnp >/dev/null 2>&1 + /sbin/modprobe -r isa-pnp >/dev/null 2>&1 +- rm -f "$TMP" "$addcfg" "$FOUND" "$DUMP" ++ rm -f "$CARDID_DB" "$TMP" "$addcfg" "$FOUND" "$DUMP" + } + trap cleanup 0 + ++CARDID_DB=`mktemp -q /tmp/alsaconf.cards.XXXXXX` ++if [ $? -ne 0 ]; then ++ xecho "Can't create temp file, exiting..." ++ exit 1 ++fi + TMP=`mktemp -q /tmp/alsaconf.XXXXXX` + if [ $? -ne 0 ]; then + xecho "Can't create temp file, exiting..." +@@ -638,6 +643,16 @@ + if [ "$found" = "0" ]; then + echo -n >"$DUMP" + fi ++if true; then ++ # Debian code ++ # CARDID_DB was set earlier ++ xecho "Building card database..." ++ build_card_db $CARDID_DB ++ if [ ! -e $CARDID_DB ]; then ++ xecho "No card database. Aborting." ++ exit 1 ++ fi ++else + CARDID_DB=/var/tmp/alsaconf.cards + if [ ! -r $CARDID_DB ]; then + use_modinfo_db=1 +@@ -655,6 +670,7 @@ + xecho "No card database is found.." + exit 1 + fi ++fi + ncards=`grep '^snd-.*\.o$' $CARDID_DB | wc -w` + + msg=$(gettext "Searching sound cards") --- alsa-utils-1.0.16.orig/debian/patches/debian_alsaconf_udev.patch +++ alsa-utils-1.0.16/debian/patches/debian_alsaconf_udev.patch @@ -0,0 +1,100 @@ +Tweaked alsaconf to work properly with 2.6 pci drivers. +Elimar Riesebieter 2007/09/11 + + +Index: alsa-utils-1.0.15/alsaconf/alsaconf.in +=================================================================== +--- alsa-utils-1.0.15.orig/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 ++++ alsa-utils-1.0.15/alsaconf/alsaconf.in 2007-10-21 14:57:02.000000000 +0200 +@@ -415,9 +415,9 @@ + set Front -12dB + set PCM 90% unmute + set PCM 0dB +-mixer Synth 90% unmute ++mixer Synth 75% unmute + mixer Synth 0dB +-mixer CD 90% unmute ++mixer CD 75% unmute + mixer CD 0dB + # mute mic + set Mic 0% mute +@@ -425,22 +425,22 @@ + set PCM,1 90% unmute + set PCM,1 0dB + # Trident/YMFPCI/emu10k1 +-set Wave 100% unmute +-set Music 100% unmute +-set AC97 100% unmute ++set Wave 75% unmute ++set Music 75% unmute ++set AC97 50% unmute + # CS4237B chipset: + set 'Master Digital' 75% unmute + # Envy24 chips with analog outs +-set DAC 90% unmute ++set DAC 75% unmute + set DAC -12dB +-set DAC,0 90% unmute ++set DAC,0 75% unmute + set DAC,0 -12dB +-set DAC,1 90% unmute ++set DAC,1 75% unmute + set DAC,1 -12dB + # some notebooks use headphone instead of master + set Headphone 75% unmute + set Headphone -12dB +-set Playback 100% unmute ++set Playback 75% unmute + # turn off digital switches + set "SB Live Analog/Digital Output Jack" off + set "Audigy Analog/Digital Output Jack" off +@@ -458,8 +458,16 @@ + Advanced Linux Sound Architecture (ALSA) driver. + + +- You should stop all sound applications now." $version) +- $DIALOG --msgbox "$msg" 20 63 || acex 0 ++ You should stop all sound applications now. ++ ++ Please notice, that sound configuration with this script ++ is not needed if you are running testing/sid with an up ++ to date kernel and your sound device is a suopported PCI ++ one. In that case *udev* is predestinated to load your ++ driver ;) ++ But any way, you can finish this procedure with a working ++ PCI-Sound at the end." $version) ++ $DIALOG --msgbox "$msg" 24 63 || acex 0 + } + + # FAREWELL +@@ -478,7 +486,7 @@ + program such as alsamixer or gamix. + + ") +- $DIALOG --msgbox "$msg" 17 60 || acex 0 ++ $DIALOG --msgbox "$msg" 19 60 || acex 0 + } + + clear() { +@@ -983,14 +991,15 @@ + if [ "$distribution" = "gentoo" ]; then + xecho "Running modules-update..." + modules-update ++ if [ -x $rcalsasound ] ; then ++ echo Loading driver... ++ $rcalsasound restart ++ fi + elif [ "$distribution" = "debian" ]; then +- xecho "Running update-modules..." +- update-modules +- fi +- if [ -x $rcalsasound ] ; then +- echo Loading driver... +- $rcalsasound restart ++ xecho "Loading driver..." ++ /sbin/modprobe $CARD_DRIVER + fi ++ + echo Setting default volumes... + if [ -x $bindir/set_default_volume ]; then + $bindir/set_default_volume -f