This commit is contained in:
parent
3cca89d137
commit
24753e34da
@ -7,4 +7,3 @@ 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"
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 17 15:03:36 CEST 2007 - tiwai@suse.de
|
||||
|
||||
- move soundfont-related stuff to awesfx package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 17 08:31:42 CEST 2007 - aj@suse.de
|
||||
|
||||
|
11
alsa.spec
11
alsa.spec
@ -21,10 +21,8 @@ PreReq: %insserv_prereq %fillup_prereq
|
||||
Autoreqprov: on
|
||||
Summary: Advanced Linux Sound Architecture
|
||||
Version: 1.0.13
|
||||
Release: 41
|
||||
Release: 42
|
||||
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{package_version}.tar.bz2
|
||||
Source6: udev-soundfont
|
||||
Source7: load-soundfont
|
||||
Source8: 40-alsa.rules
|
||||
Source11: alsasound
|
||||
Source12: sysconfig.sound
|
||||
@ -173,10 +171,6 @@ ln -s ../../etc/init.d/joystick $RPM_BUILD_ROOT%{_sbindir}/rcjoystick
|
||||
#
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
||||
install -c -m 0644 %{SOURCE8} $RPM_BUILD_ROOT/etc/udev/rules.d
|
||||
# install udev-helper scripts
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/alsa.d
|
||||
install -c -m 0744 %{SOURCE6} $RPM_BUILD_ROOT/etc/alsa.d
|
||||
install -c -m 0744 %{SOURCE7} $RPM_BUILD_ROOT/etc/alsa.d
|
||||
#
|
||||
# install template to update rc.config and sysconfig files:
|
||||
# (updating the actual files is done in the %post-script)
|
||||
@ -247,7 +241,6 @@ exit 0
|
||||
%{_datadir}/sounds/alsa
|
||||
/var/adm/fillup-templates/*
|
||||
/etc/udev
|
||||
/etc/alsa.d
|
||||
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
@ -268,6 +261,8 @@ exit 0
|
||||
%{_datadir}/alsa
|
||||
|
||||
%changelog
|
||||
* Tue Apr 17 2007 - tiwai@suse.de
|
||||
- move soundfont-related stuff to awesfx package
|
||||
* Tue Apr 17 2007 - aj@suse.de
|
||||
- Fix requires of alsa.
|
||||
* Mon Apr 16 2007 - tiwai@suse.de
|
||||
|
@ -1,39 +0,0 @@
|
||||
#!/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
|
@ -1,16 +0,0 @@
|
||||
#!/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…
Reference in New Issue
Block a user