This commit is contained in:
commit
d60590a87c
25
.gitattributes
vendored
Normal file
25
.gitattributes
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
## Specific LFS patterns
|
||||
test.wav filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
10
40-alsa.rules
Normal file
10
40-alsa.rules
Normal file
@ -0,0 +1,10 @@
|
||||
SUBSYSTEM=="sound", GROUP="audio"
|
||||
SUBSYSTEM=="snd", GROUP="audio"
|
||||
KERNEL=="controlC[0-9]*", NAME="snd/%k"
|
||||
KERNEL=="hwC[D0-9]*", NAME="snd/%k"
|
||||
KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k"
|
||||
KERNEL=="midiC[D0-9]*", NAME="snd/%k"
|
||||
KERNEL=="timer", NAME="snd/%k"
|
||||
KERNEL=="seq", NAME="snd/%k"
|
||||
SUBSYSTEM=="sound", KERNEL=="controlC?", RUN+="/usr/sbin/alsactl -F restore %n"
|
||||
SUBSYSTEM=="sound", KERNEL=="hwC?D2", DRIVERS=="EMU10K1_Audigy", RUN+="/etc/alsa.d/udev-soundfont"
|
66
README.SuSE
Normal file
66
README.SuSE
Normal file
@ -0,0 +1,66 @@
|
||||
Changes In Init Script On SL10.0
|
||||
--------------------------------
|
||||
The alsasound initscript was changed to improve the boot/halt speed.
|
||||
Now the script assumes that the devices are configured and initialized
|
||||
via udev/coldplug, and does only minimal jobs with start and stop
|
||||
commands. The modules to be loaded are listed in
|
||||
/etc/sysconfig/hardware/cfg-* files. Also, the restoration of sound
|
||||
set-up is done via udev instead of alsasound init script.
|
||||
|
||||
If you have a problem with loading sound modules, try to reconfigure
|
||||
the sound device via yast. Note that the new alsaconf sets up the
|
||||
hwcfg file properly.
|
||||
|
||||
When "restart" or "reload" command is used, alsasound behaves like
|
||||
the older version, i.e. reload the modules. This is provided just
|
||||
for convenience.
|
||||
|
||||
|
||||
General
|
||||
-------
|
||||
Since SuSE-6.4, the alsa modules come with the kernel rpms specifically
|
||||
compiled for those kernels and the alsa package contains the libs, utils
|
||||
and mixers for alsa.
|
||||
|
||||
ALSA is constantly improving, as this file. If you have any improvements
|
||||
for it, please send them via http://www.suse.de/feedback
|
||||
|
||||
|
||||
Module Configuration on Linux 2.6 Kernels
|
||||
-----------------------------------------
|
||||
The configuration of ALSA modules is written to /etc/modprobe.d/sound
|
||||
file via YaST and alsaconf. Don't modify /etc/modprobe.conf directly,
|
||||
since this file may be overwritten when the package is updated.
|
||||
|
||||
|
||||
Module Option Names
|
||||
-------------------
|
||||
The module option names are renamed to the standard style without
|
||||
snd_ prefix. For example, the former "snd_index" module option became
|
||||
now "index".
|
||||
generate-modprobe.conf script in module-init-tools package converts
|
||||
these names automatically.
|
||||
|
||||
|
||||
Changes from ALSA 0.5.x to 0.9.0
|
||||
--------------------------------
|
||||
Along with the upgrade to ALSA ver.0.9.0, there have been many changes
|
||||
done from ver.0.5.0, which was included in SuSE 6.x and 7.x
|
||||
distributions.
|
||||
|
||||
First of all, the name of top-level driver module becomes now like
|
||||
"snd-sb16.o" while the older version uses "snd-card-sb16.o".
|
||||
If you upgrade the existing system, please set up the sound
|
||||
configuration again.
|
||||
|
||||
|
||||
Package Splitting
|
||||
-----------------
|
||||
The gamix and alsa-tools (envy24control, cspctl and sbiload) are split
|
||||
to inidividual packages.
|
||||
|
||||
The programs in alsa-tools are also divided to two packages, alsa-tools
|
||||
and alsa-tools-gui. The latter includes the programs with the graphical
|
||||
interface (gtk, fltk), while the former includes only the console
|
||||
applications such as the firmware loaders.
|
||||
|
4
README.testwav
Normal file
4
README.testwav
Normal file
@ -0,0 +1,4 @@
|
||||
test.wav is copyright (c) 2001 by Matthias Nagorni <mana@suse.de>
|
||||
The file can be distributed under GPL.
|
||||
|
||||
The tune ist based on BWV 29 by J.S. Bach.
|
22
all_notes_off
Normal file
22
all_notes_off
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Send an "all notes off" event to all channels of all
|
||||
# MIDI-Devices configured in the System
|
||||
#
|
||||
# Written by Matthias Nagorni, (c) 2001 SuSE GmbH Nuremberg
|
||||
#
|
||||
for d in /dev/snd/midiC?D?; do
|
||||
echo Sending "all notes off" to MIDI device $d
|
||||
cat /usr/lib/all_notes_off.bin > $d
|
||||
done
|
||||
if [ -x /usr/bin/pmidi ]; then
|
||||
echo Can execute pmidi. Fine.
|
||||
plist=$(pmidi -l)
|
||||
for p in $plist; do
|
||||
p1=${p%:0}
|
||||
if [ "$p1" != "$p" ] && [ $p1 -gt 16 ]; then
|
||||
echo Sending "all notes off" to MIDI port $p
|
||||
pmidi -p $p -d 0 /usr/lib/all_notes_off.mid
|
||||
fi
|
||||
done
|
||||
fi
|
BIN
all_notes_off.bin
Normal file
BIN
all_notes_off.bin
Normal file
Binary file not shown.
BIN
all_notes_off.mid
Normal file
BIN
all_notes_off.mid
Normal file
Binary file not shown.
3
alsa-lib-1.0.14rc1.tar.bz2
Normal file
3
alsa-lib-1.0.14rc1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a0acfe840b519b9ab90f94878941ff2e77aac07c1e4d08c07f6d8c96661150ca
|
||||
size 714549
|
3
alsa-oss-1.0.12.tar.bz2
Normal file
3
alsa-oss-1.0.12.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:de7e492931c53339443dfdddfd1833f5fdd20f83e3a86d73940ae430dd809586
|
||||
size 236300
|
3
alsa-utils-1.0.14rc1.tar.bz2
Normal file
3
alsa-utils-1.0.14rc1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b8ede92cfa5f28d6bf6bb1253bdc562f8ac937797fb5e5303609e2e49c2e886
|
||||
size 980802
|
3239
alsa.changes
Normal file
3239
alsa.changes
Normal file
File diff suppressed because it is too large
Load Diff
218
alsasound
Normal file
218
alsasound
Normal file
@ -0,0 +1,218 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# alsasound This shell script takes care of starting and stopping
|
||||
# the ALSA sound driver.
|
||||
#
|
||||
# This script requires /usr/sbin/alsactl program from alsa-utils package.
|
||||
#
|
||||
# Copyright (c) by Jaroslav Kysela <perex@suse.cz>
|
||||
#
|
||||
#
|
||||
# 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 program 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 program; if not, write to the Free Software
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
#
|
||||
# For RedHat 5.0+:
|
||||
# chkconfig: 2345 87 14
|
||||
# description: ALSA driver
|
||||
#
|
||||
# modified to visually fit into SuSE 6.0+ by Philipp Thomas <pthomas@suse.de>
|
||||
# further improvements by Bernd Kaindl, Olaf Hering and Takashi Iwai.
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: alsasound
|
||||
# Should-Start: $remote_fs resmgr
|
||||
# Should-Stop: $remote_fs resmgr
|
||||
# Default-Start: 2 3 5
|
||||
# Default-Stop:
|
||||
# Description: Loading ALSA drivers and store/restore the current setting
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/rc.status
|
||||
. /etc/sysconfig/sound
|
||||
|
||||
# Shell functions sourced from /etc/rc.status:
|
||||
# rc_check check and set local and overall rc status
|
||||
# rc_status check and set local and overall rc status
|
||||
# rc_status -v ditto but be verbose in local rc status
|
||||
# rc_status -v -r ditto and clear the local rc status
|
||||
# rc_failed set local and overall rc status to failed
|
||||
# rc_reset clear local rc status (overall remains)
|
||||
# rc_exit exit appropriate to overall rc status
|
||||
|
||||
# First reset status of this service
|
||||
rc_reset
|
||||
|
||||
alsactl=/usr/sbin/alsactl
|
||||
asoundcfg=/etc/asound.state
|
||||
aconnect=/usr/bin/aconnect
|
||||
lsmod=/bin/lsmod
|
||||
|
||||
#
|
||||
# insert sequencer modules
|
||||
#
|
||||
load_sequencer() {
|
||||
test "$LOAD_SEQUENCER" = "yes" && modprobe -q snd-seq
|
||||
if [ x"$LOAD_SEQUENCER" = xyes -a -r /proc/asound/seq/drivers ]; then
|
||||
OLDIFS="$IFS"
|
||||
IFS=","
|
||||
while read t x c; do
|
||||
/sbin/modprobe $t
|
||||
done < /proc/asound/seq/drivers
|
||||
IFS="$OLDIFS"
|
||||
fi
|
||||
}
|
||||
|
||||
get_drivers() {
|
||||
if [ -f /etc/modprobe.d/sound ]; then
|
||||
cat /etc/modprobe.d/sound
|
||||
else
|
||||
/sbin/modprobe -c
|
||||
fi | \
|
||||
grep -E "^[[:space:]]*alias[[:space:]]+snd-card-[[:digit:]]" | sort | \
|
||||
while read a b card; do
|
||||
echo $card
|
||||
done
|
||||
}
|
||||
|
||||
#
|
||||
# insert all sound modules
|
||||
#
|
||||
load_modules() {
|
||||
module_loaded=0
|
||||
c=""
|
||||
drivers=`get_drivers`
|
||||
for i in $drivers; do
|
||||
if [ $i != off ]; then
|
||||
if [ x$c = x ]; then
|
||||
echo -n ": "
|
||||
c=1
|
||||
fi
|
||||
echo -n " ${i##snd-}"
|
||||
/sbin/modprobe $i && module_loaded=1
|
||||
fi
|
||||
done
|
||||
rc_status -v -r
|
||||
test $module_loaded -eq 0 && return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
#
|
||||
# rest of start action
|
||||
#
|
||||
start_rest() {
|
||||
load_sequencer
|
||||
if [ x"$LOAD_OSS_EMUL_MODULES" = xyes ]; then
|
||||
/sbin/modprobe snd-pcm-oss
|
||||
test x"$LOAD_OSS_SEQ_MODULE" = xyes && /sbin/modprobe snd-seq-oss
|
||||
fi
|
||||
}
|
||||
|
||||
# manual load and force to store the status
|
||||
start_all() {
|
||||
echo -n "Starting sound driver"
|
||||
load_modules && start_rest
|
||||
# hack - in case the mixer isn't restored
|
||||
(sleep 1; $alsactl -F -f $asoundcfg restore >/dev/null 2>&1)
|
||||
rc_status
|
||||
}
|
||||
|
||||
terminate() {
|
||||
#
|
||||
# Kill processes holding open sound devices
|
||||
#
|
||||
fuser -k /dev/admmidi* /dev/adsp* /dev/amidi* /dev/audio* /dev/dmfm* \
|
||||
/dev/dmmidi* /dev/dsp* /dev/dspW* /dev/midi* /dev/mixer* /dev/music \
|
||||
/dev/patmgr* /dev/sequencer* /dev/sndstat >/dev/null 2>&1
|
||||
if [ -d /dev/snd ]; then
|
||||
fuser -k /dev/snd/* >/dev/null 2>&1
|
||||
fi
|
||||
#
|
||||
# remove all sequencer connections if any
|
||||
#
|
||||
if [ -f /proc/asound/seq/clients -a -x $aconnect ]; then
|
||||
$aconnect --removeall
|
||||
fi
|
||||
}
|
||||
|
||||
# mute master to avoid clicks at unload/shutdown
|
||||
unmute_system() {
|
||||
/usr/bin/amixer set Master mute >/dev/null 2>&1
|
||||
}
|
||||
|
||||
#
|
||||
# remove all sound modules
|
||||
#
|
||||
unload_modules() {
|
||||
unmute_system
|
||||
$lsmod | grep -E "^snd" | grep -Ev "(snd-page-alloc|snd_page_alloc)" | while read m s; do
|
||||
/sbin/rmmod $m
|
||||
done
|
||||
}
|
||||
|
||||
unload_all() {
|
||||
echo -n "Shutting down sound driver"
|
||||
terminate
|
||||
unload_modules
|
||||
rc_status -v
|
||||
}
|
||||
|
||||
stop_all() {
|
||||
if [ -d /proc/asound ]; then
|
||||
$alsactl -f $asoundcfg store
|
||||
unload_all
|
||||
fi
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
start)
|
||||
if [ "$PREVLEVEL" = "N" ]; then
|
||||
test -d /proc/asound && start_rest
|
||||
else
|
||||
start_all
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ "$RUNLEVEL" = "6" ]; then
|
||||
if [ -d /proc/asound ]; then
|
||||
$alsactl -f $asoundcfg store
|
||||
unmute_system
|
||||
fi
|
||||
else
|
||||
stop_all
|
||||
fi
|
||||
;;
|
||||
unload)
|
||||
test -d /proc/asound && unload_all
|
||||
;;
|
||||
reload|restart)
|
||||
stop_all
|
||||
start_all
|
||||
;;
|
||||
status)
|
||||
if [ -d /proc/asound ]; then
|
||||
echo -n "ALSA sound driver loaded."
|
||||
rc_status -v
|
||||
else
|
||||
echo -n "ALSA sound driver not loaded."
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload|unload|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rc_exit
|
131
joystick
Normal file
131
joystick
Normal file
@ -0,0 +1,131 @@
|
||||
#! /bin/bash
|
||||
# Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany.
|
||||
#
|
||||
# Author: Takashi Iwai <tiwai@suse.de>, 2001
|
||||
#
|
||||
# /etc/init.d/joystick
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: joystick
|
||||
# Required-Start: alsasound
|
||||
# Required-Stop:
|
||||
# Default-Start: 2 3 5
|
||||
# Default-Stop:
|
||||
# Description: Loading joystick drivers
|
||||
### END INIT INFO
|
||||
|
||||
. /etc/rc.status
|
||||
. /etc/sysconfig/joystick
|
||||
|
||||
alsactl=/usr/sbin/alsactl
|
||||
if [ -x /sbin/lsmod ]; then
|
||||
lsmod=/sbin/lsmod
|
||||
else
|
||||
lsmod=/bin/lsmod
|
||||
fi
|
||||
|
||||
# load joystick drivers
|
||||
function start () {
|
||||
# first load joydev module
|
||||
if [ -z "${JOYSTICK_MODULE_0}${JOYSTICK_MODULE_1}${JOYSTICK_MODULE_2}${JOYSTICK_MODULE_3}" ]; then
|
||||
rc_failed 5
|
||||
return
|
||||
fi
|
||||
|
||||
/sbin/modprobe joydev
|
||||
for js in 0 1 2 3; do
|
||||
# configure joystick port (if necessary)
|
||||
eval jsport=\$JOYSTICK_CONTROL_PORT_$js
|
||||
if [ -n "$jsport" ]; then
|
||||
$alsactl set $js card:"Joystick Address" "port $jsport"
|
||||
fi
|
||||
# activate joystick (if necessary)
|
||||
eval jsctrl=\$JOYSTICK_CONTROL_$js
|
||||
if [ -n "$jsctrl" -a "$jsctrl" != no ]; then
|
||||
if [ "$jsctrl" = yes ]; then
|
||||
jsctrl="Joystick"
|
||||
fi
|
||||
$alsactl set $js card:"$jsctrl" true
|
||||
fi
|
||||
# load gameport module
|
||||
eval jsmod=\$GAMEPORT_MODULE_$js
|
||||
if [ -n "$jsmod" -a "$jsmod" != off ]; then
|
||||
/sbin/modprobe $jsmod >/dev/null 2>&1
|
||||
fi
|
||||
# load joystick moulde
|
||||
eval jsdev=\$JOYSTICK_MODULE_$js
|
||||
eval jsdev_opts=\$JOYSTICK_MODULE_OPTION_$js
|
||||
if [ -n "$jsdev" -a "$jsdev" != off ]; then
|
||||
/sbin/modprobe $jsdev $jsdev_opts >/dev/null 2>&1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
function stop () {
|
||||
for js in 0 1 2 3; do
|
||||
# deactivate joystick (if necessary)
|
||||
eval jsctrl=\$JOYSTICK_CONTROL_$js
|
||||
if [ -n "$jsctrl" -a "$jsctrl" != no ]; then
|
||||
if [ "$jsctrl" = yes ]; then
|
||||
jsctrl="Joystick"
|
||||
fi
|
||||
$alsactl set $js card:"$jsctrl" false
|
||||
fi
|
||||
# remove gameport module
|
||||
eval jsmod=\$GAMEPORT_MODULE_$js
|
||||
if [ -n "$jsmod" -a "$jsmod" != off ]; then
|
||||
/sbin/modprobe -r $jsmod
|
||||
fi
|
||||
# remove joystick moulde
|
||||
eval jsdev=\$JOYSTICK_MODULE_$js
|
||||
if [ -n "$jsdev" -a "$jsdev" != off ]; then
|
||||
/sbin/modprobe -r $jsdev
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting joystick driver"
|
||||
start
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
# Stop daemons.
|
||||
echo -n "Stopping joystick driver"
|
||||
stop
|
||||
rc_status -v
|
||||
;;
|
||||
try-restart)
|
||||
$0 status >/dev/null && $0 restart
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
if $lsmod | grep -q joydev; then
|
||||
echo -n "Joystick driver loaded."
|
||||
rc_status -v
|
||||
else
|
||||
echo -n "Joystick driver not loaded."
|
||||
rc_status -u
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|try-restart|restart|force-reload|reload|status}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
rc_exit
|
39
load-soundfont
Normal file
39
load-soundfont
Normal file
@ -0,0 +1,39 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
CARD=$1
|
||||
shift
|
||||
|
||||
test -x /usr/bin/asfxload || exit 0
|
||||
|
||||
. /etc/sysconfig/sound
|
||||
|
||||
load_sf () {
|
||||
for d in /usr/share/sounds/sf2 \
|
||||
/usr/share/sfbank \
|
||||
/usr/local/lib/sfbank \
|
||||
/usr/share/sfbank/creative \
|
||||
/usr/local/lib/sfbank/creative \
|
||||
; do
|
||||
if [ -r $d/$1 ]; then
|
||||
/usr/bin/asfxload -Dhw:${CARD},2 $d/$1
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
return 1
|
||||
}
|
||||
|
||||
case $SOUNDFONT_FILES in
|
||||
/*)
|
||||
if [ -r "$SOUNDFONT_FILES" ]; then
|
||||
/usr/bin/asfxload -Dhw:${CARD},2 $SOUNDFONT_FILES
|
||||
exit 0
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
for file in $SOUNDFONT_FILES $* ; do
|
||||
if load_sf $file ; then
|
||||
break
|
||||
fi
|
||||
done
|
||||
exit 0
|
63
set_default_volume
Normal file
63
set_default_volume
Normal file
@ -0,0 +1,63 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# set default volumes for playback on ALSA
|
||||
#
|
||||
# set_default_mixer [-f] [card#]
|
||||
#
|
||||
# written by Takashi Iwai <tiwai@suse.de>
|
||||
#
|
||||
|
||||
if [ -f /etc/asound.state -a x$1 != x-f ]; then
|
||||
/usr/sbin/alsactl restore >/dev/null 2>&1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ x$1 = x-f ]; then
|
||||
shift
|
||||
fi
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
card="-c $1"
|
||||
fi
|
||||
|
||||
amixer -q -s $card <<EOF
|
||||
set Master 75% unmute
|
||||
set Master -12dB
|
||||
set 'Master Mono' 75% unmute
|
||||
set 'Master Mono' -12dB
|
||||
set Front 75% unmute
|
||||
set Front -12dB
|
||||
set PCM 90% unmute
|
||||
set PCM 0dB
|
||||
mixer Synth 90% unmute
|
||||
mixer Synth 0dB
|
||||
mixer CD 90% unmute
|
||||
mixer CD 0dB
|
||||
# mute mic
|
||||
set Mic 0% mute
|
||||
# ESS 1969 chipset has 2 PCM channels
|
||||
set PCM,1 90% unmute
|
||||
set PCM,1 0dB
|
||||
# Trident/YMFPCI/emu10k1
|
||||
set Wave 100% unmute
|
||||
set Music 100% unmute
|
||||
set AC97 100% unmute
|
||||
# CS4237B chipset:
|
||||
set 'Master Digital' 75% unmute
|
||||
# Envy24 chips with analog outs
|
||||
set DAC 90% unmute
|
||||
set DAC -12dB
|
||||
set DAC,0 90% unmute
|
||||
set DAC,0 -12dB
|
||||
set DAC,1 90% unmute
|
||||
set DAC,1 -12dB
|
||||
# some notebooks use headphone instead of master
|
||||
set Headphone 75% unmute
|
||||
set Headphone -12dB
|
||||
set Playback 100% unmute
|
||||
# turn off digital switches
|
||||
set "SB Live Analog/Digital Output Jack" off
|
||||
set "Audigy Analog/Digital Output Jack" off
|
||||
EOF
|
||||
|
||||
exit 0
|
57
sysconfig.joystick
Normal file
57
sysconfig.joystick
Normal file
@ -0,0 +1,57 @@
|
||||
## Path: Hardware/Joystick
|
||||
## Description: Joystick cofigurations
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: joystick
|
||||
#
|
||||
# Gameport module names
|
||||
# (typically "ns558" for legacy gameport support)
|
||||
#
|
||||
GAMEPORT_MODULE_0=""
|
||||
GAMEPORT_MODULE_1=""
|
||||
GAMEPORT_MODULE_2=""
|
||||
GAMEPORT_MODULE_3=""
|
||||
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# Joystick module names
|
||||
# (typically "analog")
|
||||
#
|
||||
JOYSTICK_MODULE_0=""
|
||||
JOYSTICK_MODULE_1=""
|
||||
JOYSTICK_MODULE_2=""
|
||||
JOYSTICK_MODULE_3=""
|
||||
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# Joystick module options
|
||||
# (e.g. "js=gameport" for analog)
|
||||
#
|
||||
JOYSTICK_MODULE_OPTION_0=""
|
||||
JOYSTICK_MODULE_OPTION_1=""
|
||||
JOYSTICK_MODULE_OPTION_2=""
|
||||
JOYSTICK_MODULE_OPTION_3=""
|
||||
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# Control name of sound driver to activate (via alsactl)
|
||||
# e.g. "yes" (alias "Joystick") or "Joystick Enable"
|
||||
#
|
||||
JOYSTICK_CONTROL_0=""
|
||||
JOYSTICK_CONTROL_1=""
|
||||
JOYSTICK_CONTROL_2=""
|
||||
JOYSTICK_CONTROL_3=""
|
||||
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# Port to be used (via alsactl)
|
||||
# Some soundcard like ens1371 needs the port address (typically 0x200)
|
||||
#
|
||||
JOYSTICK_CONTROL_PORT_0=""
|
||||
JOYSTICK_CONTROL_PORT_1=""
|
||||
JOYSTICK_CONTROL_PORT_2=""
|
||||
JOYSTICK_CONTROL_PORT_3=""
|
41
sysconfig.sound
Normal file
41
sysconfig.sound
Normal file
@ -0,0 +1,41 @@
|
||||
## Path: Hardware/Soundcard
|
||||
## Description: Additional options for the sound system.
|
||||
## Type: yesno
|
||||
## Default: yes
|
||||
## ServiceReload: alsasound
|
||||
#
|
||||
# Load ALSA sequencer modules at boot-up? (yes/no)
|
||||
# Sequencer modules are necessary only for handling MIDI devices.
|
||||
# If you don't need MIDI, leave here no.
|
||||
#
|
||||
LOAD_SEQUENCER="yes"
|
||||
|
||||
## Type: string
|
||||
## Default: ""
|
||||
#
|
||||
# The file name of SoundFont file to be loaded at boot
|
||||
# If you need to load a specific SoundFont file for SB AWE32, SB Live!
|
||||
# and Audigy series, set the file name (or path) of the file here.
|
||||
#
|
||||
SOUNDFONT_FILES=""
|
||||
|
||||
## Type: yesno
|
||||
## Default: yes
|
||||
#
|
||||
# Load OSS-emulation modules at boot-up? (yes/no)
|
||||
# OSS-emulation modules are needed If you use OSS applications
|
||||
# with ALSA drivers. This option specifies whether these modules are
|
||||
# loaded at boot-time by alsasound init script.
|
||||
# Safe to leave yes here.
|
||||
#
|
||||
LOAD_OSS_EMUL_MODULES="yes"
|
||||
|
||||
## Type: yesno
|
||||
## Default: no
|
||||
#
|
||||
# Load OSS-sequencer emulation module at boot-up? (yes/no)
|
||||
# OSS-sequencer emulation module is needed If you use old /dev/sequencer
|
||||
# or /dev/music. The default is "no" since there are little
|
||||
# applications using these interfaces.
|
||||
#
|
||||
LOAD_OSS_SEQ_MODULE="no"
|
3
test.wav
Normal file
3
test.wav
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8a520c65358756e322dfcdfc1364f5ea0dc6db7164515a8973203262b22ce3c9
|
||||
size 1340684
|
16
udev-soundfont
Normal file
16
udev-soundfont
Normal file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
CARD=${DEVNAME##/dev/snd/hwC}
|
||||
CARD=${CARD%%D2}
|
||||
|
||||
case $PHYSDEVDRIVER in
|
||||
EMU10K1_Audigy)
|
||||
echo -en "\xf0\x00\x20\x21\x61\x00\x00\x00\x7f\x00\xf7" > /dev/snd/midiC${CARD}D1
|
||||
/etc/alsa.d/load-soundfont $CARD default.bnk default.sf2
|
||||
;;
|
||||
sbawe)
|
||||
/etc/alsa.d/load-soundfont $CARD default.bnk default.sf2 default.sbk gu11-rom.sf2 GU11-ROM.SF2
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user