Luca wrote:
> Hi!
>
> I'm having a problem with alsa and oss emulation, when I start kcontrol
> to enter the sound system menu on the general tab the test sound works
> but the test midi no, (error message in the console ALSA lib
> seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or
> directory), the output in the console for these two test is this:
> server status: running, autosuspend disabled
> real-time status: real-time
> server buffer time: 46.4399 ms
> buffer size multiplier: 1
> minimum stream buffer time: 46.4399 ms
> auto suspend time: 0 s
> audio method: alsa
> sampling rate: 44100
> channels: 2
> sample size: 16 bits
> duplex: full
> device: default
> fragments: 2
> fragment size: 4096
> server status: busy
> real-time status: real-time
> server buffer time: 46.4399 ms
> buffer size multiplier: 1
> minimum stream buffer time: 46.4399 ms
> auto suspend time: 0 s
> audio method: alsa
> sampling rate: 44100
> channels: 2
> sample size: 16 bits
> duplex: full
> device: default
> fragments: 2
> fragment size: 4096
>
> I added a specific rule to 15-alsa.rules to load a SF2 file on startup
> and added the entries for oss emulation in modprobe.conf.
> KinfoCenter about the sound tells the following:
> Installed drivers: Type 10:  ALSA emulation
> Card config: Audigy 2 ZS [SB0350](rev.4, serial:0x20021102) at 0xd000,
> irq 217
> M Audio Audiophile 24/96 at 0xe800, irq 193
> Audio devices: NOT ENABLED IN CONFIG
> Synth devices: NOT ENABLED IN CONFIG
> Midi devices: 0: Audigy MPU-401 (UART)
> 1: M Audio Audiophile 24/96 MIDI
> Timers: 31: system timer
> Mixers: NOT ENABLED IN CONFIG
> However in the kcontrol center in the hardware tab I selected ALSA as
> sound, but in the midi section in gave no output for the midi device and
> don't let me use the mapper midi.
>
> Attached are the specific files.
>
> Bye,
> Luca
>   
> ------------------------------------------------------------------------
>
> blacklist emu10k1
> blacklist eth1394
>
> alias char-major-116 snd
>
> options snd-emu10k1 index=0
> options snd-ice1712 index=1
> options snd-via82xx index=2
>
> # qnJ_.t3RdoeOdN+4:SB Audigy
> alias snd-card-0 snd-emu10k1
> # lgGW.oA8Yuvq001D:M-Audio Delta Audiophile
> alias snd-card-1 snd-ice1712
> # Ssy1.wXN6pYJ5d_9:VT8233/A/8235/8237 AC97 Audio Controller
> alias snd-card-2 snd-via82xx
>
> alias char-major-14 soundcore
> alias sound-slot-0 snd-emu10k1
> alias sound-service-0-0 snd-mixer-oss
> alias sound-service-0-1 snd-seq-oss
> alias sound-service-0-3 snd-pcm-oss
> alias sound-service-0-8 snd-seq-oss
> alias sound-service-0-12 snd-pcm-oss
>
> alias eth0 ns83820
>
>   
> ------------------------------------------------------------------------
>
> #!/bin/sh -e
>
> CARD=${DEVNAME##/dev/snd/hwC}
> CARD=${CARD%%D0}
>
> 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 CT4MGM.SF2
>   ;;
> sbawe)
>   /etc/alsa.d/load-soundfont $CARD default.bnk default.sf2 default.sbk 
> gu11-rom.sf2 GU11-ROM.SF2
>   ;;
> esac
>
> exit 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
>   
Oops in the previous mail I forgot to attach the alsa.rules, here attached.
# Give the audio group ownership of sound devices
SUBSYSTEM=="sound",       GROUP="audio"
SUBSYSTEM=="snd",         GROUP="audio"

# ALSA Devices
# When a sound device is detected, restore the volume settings
KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"
KERNEL=="controlC[0-9]*",  NAME="snd/%k"
KERNEL=="hw[CD0-9]*",      NAME="snd/%k"
KERNEL=="pcm[CD0-9cp]*",   NAME="snd/%k"
KERNEL=="midi[CD0-9]*",    NAME="snd/%k"
KERNEL=="timer",           NAME="snd/%k"
KERNEL=="seq",             NAME="snd/%k"
KERNEL=="hwC0D0", DRIVERS=="EMU10K1_Audigy", RUN+="/etc/alsa.d/udev-soundfont"
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to