Hello,
I'm having a few problems with my configuration. Perhaps someone can
help this recent escapee from Ms Windows?
I have two "sound cards" -- a SBLive Value (Gateway OEM version), and a
Plantronix USB Headphone (with mic) -- Both are mostly working. Both
devices show up in the GNOME mixer and the ALSA mixer. I can play wav
or mp3 on either device from xmms or alsaplayer. I can play midi from
Kmidi via Timidity. I can play audio CD on SBLive using alsaplayer.
Here's my problems/questions:
1. The onboard MIDI device on the SBLive Value does not seem to be
configured correctly. Neither KDE Control Center nor Kmid show any MIDI
devices available. I haven't tried loading soundfonts using sfxload --
I know I'll have to do that, but right now, the MIDI devices don't seem
to be available, so what's the point? I have a suspicion that I need to
add some more options to the modules.conf so the driver can locate the
MIDI port(s), but I don't have clue what to add.
2. Lots of web pages and fora messages say to run alsaconfig. My
system does not have alsaconf. I have Red Hat 9. What's up with that?
(See rpm -qa below.) Also, I don't have alsasound or pmidi either.
3. When I run kmid in a terminal, it says
Sorry, this KMid version was compiled without
ALSA support but you're using ALSA .
I installed kmultimedia source rpm, edited kmultimedia.spec and changed
"without-alsa" to "with-alsa" and also added "with-arts-alsa", but after
"rpmbuild -ba", still the same error message. How do I rebuild
kdemultimedia with alsa support?
Here's I few things I learned along the way that might be useful to
newbies viewing this message
1. You must adjust the mixer settings in BOTH the oss mixer (GNOME
Volume Control) AND in the Alsa Mixer, otherwise you may not hear
anything.
2. Got Kmidi to work through Timidity (which simulates a synth, sending
output to sound card, but not sound card synth), by editing
/usr/share/apps/kmidi/config/timidity.cfg and adding
dir /usr/share/apps/kmidi/config
which allows Timidity to find the patch files in the that directory.
Also had to start Kmidi with
kmidi -c /usr/share/apps/kmidi/config/timidity.cfg
3. The system wants to load the USB sound card driver first, then the
SBLive driver. To reverse the order, use the "options index=n" commands
in modules.conf (see below).
Anyway, if someone could help me with my onboard MIDI config, I'd be
happy. Here's all the relevant info I could think of. Sorry for the
length of this message.
My system is Red Hat 9.0 AMD 700 MHz Athlon. 512MB ram. Gateway
Select 700. I do not have the low-latency kernel patches installed.
[EMAIL PROTECTED] gary]# uname -a
Linux columbine 2.4.20-13.9 #1 Mon May 12 11:03:52 EDT 2003 i686 athlon i386 GNU/Linux
[EMAIL PROTECTED] gary]# rpm -qa | grep alsa
gnome-alsamixer-0.9.3-fr1
alsa-lib-devel-0.9.3-fr2
alsa-utils-0.9.3-fr2
kernel-module-alsa-0.9.3a-fr2_2.4.20_13.9
alsa-driver-0.9.3a-fr2
xmms-alsa-0.9.10-fr1
alsa-lib-0.9.3-fr2
alsaplayer-0.99.75-fr1
[EMAIL PROTECTED] gary]# rpm -qa | grep media
kdemultimedia-devel-3.1-4
kdemultimedia-3.1-4
gnome-media-2.2.1.1-4
[EMAIL PROTECTED] gary]# locate alsaconf
[EMAIL PROTECTED] gary]# locate pmid
[EMAIL PROTECTED] gary]# locate alsasound
[EMAIL PROTECTED] gary]# /sbin/lsmod
Module Size Used by Tainted: P
agpgart 47968 3 (autoclean)
nvidia 1670784 10 (autoclean)
snd-seq-midi 5248 0 (autoclean) (unused)
snd-seq-oss 34208 0 (unused)
snd-emu10k1-synth 5948 0 (unused)
snd-emux-synth 34268 0 [snd-emu10k1-synth]
snd-seq-midi-emul 7116 0 [snd-emux-synth]
snd-seq-virmidi 5080 0 [snd-emux-synth]
snd-seq-midi-event 5672 0 [snd-seq-midi snd-seq-oss snd-seq-virmidi]
snd-seq 47088 2 [snd-seq-midi snd-seq-oss snd-emux-synth
snd-seq-midi-emul snd-seq-virmidi snd-seq-midi-event]
snd-pcm-oss 44932 1
snd-mixer-oss 16376 0 [snd-pcm-oss]
snd-emu10k1 82068 1 [snd-emu10k1-synth]
snd-util-mem 3096 0 [snd-emux-synth snd-emu10k1]
snd-hwdep 6976 0 [snd-emu10k1]
snd-ac97-codec 46472 0 [snd-emu10k1]
parport_pc 18788 1 (autoclean)
lp 8804 0 (autoclean)
parport 36800 1 (autoclean) [parport_pc lp]
autofs 13108 0 (autoclean) (unused)
8139too 18120 1
mii 3976 0 [8139too]
ipt_REJECT 3992 2 (autoclean)
iptable_filter 2412 1 (autoclean)
ip_tables 14648 2 [ipt_REJECT iptable_filter]
sg 35852 0 (autoclean)
sr_mod 17720 0 (autoclean)
ide-scsi 12016 0
scsi_mod 106584 3 [sg sr_mod ide-scsi]
ide-cd 35424 0
cdrom 33216 0 [sr_mod ide-cd]
audio 46200 0 (unused)
snd-usb-audio 51648 0
snd-pcm 84544 0 [snd-pcm-oss snd-emu10k1 snd-usb-audio]
snd-timer 19720 0 [snd-seq snd-pcm]
snd-page-alloc 8372 0 [snd-emu10k1 snd-pcm]
snd-rawmidi 18528 0 [snd-seq-midi snd-seq-virmidi snd-emu10k1
snd-usb-audio]
snd-seq-device 6268 0 [snd-seq-midi snd-seq-oss snd-emu10k1-synth
snd-emux-synth snd-seq snd-emu10k1 snd-rawmidi]
snd 44388 0 [snd-seq-midi snd-seq-oss snd-emux-synth
snd-seq-virmidi snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-emu10k1
snd-util-mem snd-hwdep snd-ac97-codec snd-usb-audio snd-pcm snd-timer snd-rawmidi
snd-seq-device]
soundcore 6468 13 [audio snd]
loop 12056 0 (autoclean)
lvm-mod 63648 0
keybdev 2912 0 (unused)
mousedev 5428 1
hid 21892 0 (unused)
input 5792 0 [keybdev mousedev hid]
usb-ohci 21160 0 (unused)
usbcore 78272 1 [audio snd-usb-audio hid usb-ohci]
ext3 69984 2
jbd 51444 2 [ext3]
[EMAIL PROTECTED] gary]# cat /etc/modules.conf
alias parport_lowlevel parport_pc
alias eth0 8139too
alias usb-controller usb-ohci
alias usb-controller usb-ohci
alias char-major-195 nvidia
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-emu10k1
alias snd-card-1 snd-usb-audio
options snd major=116 cards_limit=2 device_mode=0666
options snd-emu10k1 index=0
options snd-usb-audio index=1
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
# card #1 SBLive Value
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
# card #2 Plantronix USB
alias sound-service-1-0 snd-mixer-oss
#alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
#alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss
alias midi snd-emu10k-synth
below snd-seq-oss snd-emu10k1-synth
above snd-card-0 snd-mixer-oss snd-seq-oss snd-pcm-oss
alias /dev/sequencer snd-seq-oss
[EMAIL PROTECTED] gary]# cat /etc/rc.d/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# modprobe emu10k1
modprobe snd-emu10k1
modprobe snd-pcm-oss
modprobe snd-mixer-oss
modprobe snd-seq-oss
# Fix for KDE.
chown root:root /tmp/.ICE-unix
chmod 1777 /tmp/.ICE-unix
[EMAIL PROTECTED] gary]# aconnect -il
client 0: 'System' [type=kernel]
0 'Timer '
1 'Announce '
Connecting To: 63:0
client 64: 'Rawmidi 0 - EMU10K1 MPU-401 (UART)' [type=kernel]
0 'EMU10K1 MPU-401 (UART)'
[EMAIL PROTECTED] gary]# ls -al /proc/asound
total 0
dr-xr-xr-x 7 root root 0 Jun 12 10:25 .
dr-xr-xr-x 75 root root 0 Jun 12 06:11 ..
dr-xr-xr-x 7 root root 0 Jun 12 10:25 card0
dr-xr-xr-x 4 root root 0 Jun 12 10:25 card1
-r--r--r-- 1 root root 0 Jun 12 10:25 cards
dr-xr-xr-x 2 root root 0 Jun 12 10:25 dev
-r--r--r-- 1 root root 0 Jun 12 10:25 devices
lrwxrwxrwx 1 root root 0 Jun 12 10:25 Headset -> card1
-r--r--r-- 1 root root 0 Jun 12 10:25 hwdep
lrwxrwxrwx 1 root root 0 Jun 12 10:25 Live -> card0
-r--r--r-- 1 root root 0 Jun 12 10:25 modules
dr-xr-xr-x 2 root root 0 Jun 12 10:25 oss
-r--r--r-- 1 root root 0 Jun 12 10:25 pcm
dr-xr-xr-x 2 root root 0 Jun 12 10:25 seq
-r--r--r-- 1 root root 0 Jun 12 10:25 timers
-r--r--r-- 1 root root 0 Jun 12 10:25 version
[EMAIL PROTECTED] gary]# cat /proc/asound/cards
0 [Live ]: EMU10K1 - Sound Blaster Live!
Sound Blaster Live! (rev.7) at 0xff80, irq 9
1 [Headset ]: USB-Audio - Plantronics Headset
Plantronics Plantronics Headset at usb-00:07.4-3
[EMAIL PROTECTED] gary]# cat /proc/asound/devices
0: [0- 0]: ctl
4: [0- 0]: hardware dependent
8: [0- 0]: raw midi
19: [0- 3]: digital audio playback
26: [0- 2]: digital audio capture
25: [0- 1]: digital audio capture
16: [0- 0]: digital audio playback
24: [0- 0]: digital audio capture
1: : sequencer
9: [0- 1]: raw midi
10: [0- 2]: raw midi
33: : timer
32: [1- 0]: ctl
48: [1- 0]: digital audio playback
56: [1- 0]: digital audio capture
[EMAIL PROTECTED] gary]# ls -al /proc/asound/dev
total 0
dr-xr-xr-x 2 root root 0 Jun 12 10:26 .
dr-xr-xr-x 7 root root 0 Jun 12 10:26 ..
crw-rw-rw- 1 root root 116, 0 Jun 12 10:26 controlC0
crw-rw-rw- 1 root root 116, 32 Jun 12 10:26 controlC1
crw-rw-rw- 1 root root 116, 4 Jun 12 10:26 hwC0D0
crw-rw-rw- 1 root root 116, 8 Jun 12 10:26 midiC0D0
crw-rw-rw- 1 root root 116, 9 Jun 12 10:26 midiC0D1
crw-rw-rw- 1 root root 116, 10 Jun 12 10:26 midiC0D2
crw-rw-rw- 1 root root 116, 24 Jun 12 10:26 pcmC0D0c
crw-rw-rw- 1 root root 116, 16 Jun 12 10:26 pcmC0D0p
crw-rw-rw- 1 root root 116, 25 Jun 12 10:26 pcmC0D1c
crw-rw-rw- 1 root root 116, 26 Jun 12 10:26 pcmC0D2c
crw-rw-rw- 1 root root 116, 19 Jun 12 10:26 pcmC0D3p
crw-rw-rw- 1 root root 116, 56 Jun 12 10:26 pcmC1D0c
crw-rw-rw- 1 root root 116, 48 Jun 12 10:26 pcmC1D0p
crw-rw-rw- 1 root root 116, 1 Jun 12 10:26 seq
crw-rw-rw- 1 root root 116, 33 Jun 12 10:26 timer
[EMAIL PROTECTED] gary]# ls -al /proc/asound/seq
total 0
dr-xr-xr-x 2 root root 0 Jun 12 10:26 .
dr-xr-xr-x 7 root root 0 Jun 12 10:26 ..
-r--r--r-- 1 root root 0 Jun 12 10:26 clients
-r--r--r-- 1 root root 0 Jun 12 10:26 drivers
-r--r--r-- 1 root root 0 Jun 12 10:26 oss
-r--r--r-- 1 root root 0 Jun 12 10:26 queues
-r--r--r-- 1 root root 0 Jun 12 10:26 timer
[EMAIL PROTECTED] gary]# /sbin/lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] System Controller
(rev 25)
00:01.0 PCI bridge: Advanced Micro Devices [AMD] AMD-751 [Irongate] AGP Bridge (rev 01)
00:07.0 ISA bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ISA (rev 01)
00:07.1 IDE interface: Advanced Micro Devices [AMD] AMD-756 [Viper] IDE (rev 03)
00:07.3 Bridge: Advanced Micro Devices [AMD] AMD-756 [Viper] ACPI (rev 03)
00:07.4 USB Controller: Advanced Micro Devices [AMD] AMD-756 [Viper] USB (rev 06)
00:11.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
(rev 10)
00:14.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
00:14.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
01:05.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX 420] (rev a3)
Here's some info from /etc/sysconf/hwconf:
class: OTHER
bus: PCI
detached: 0
driver: emu10k1-gp
desc: "Creative Labs|SB Live! MIDI/Game Port"
vendorId: 1102
deviceId: 7002
subVendorId: 1102
subDeviceId: 0020
pciType: 1
-
class: AUDIO
bus: PCI
detached: 0
driver: emu10k1
desc: "Creative Labs|SB Live! EMU10k1"
vendorId: 1102
deviceId: 0002
subVendorId: 1102
subDeviceId: 8031
pciType: 1
-
Also, per instruction on the CCRMA website (an excellent resource, even
if you don't install the low-latency kernel patches), I commented out
the following blocks of code in /etc/rc.d/rc.sysinit
# Load sound modules iff they need persistent DMA buffers
if grep -q "options sound dmabuf=1" /etc/modules.conf 2>/dev/null ; then
RETURN=0
alias=`/sbin/modprobe -c | awk '/^alias sound / { print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
action $"Loading sound module ($alias): " modprobe sound
RETURN=$?
fi
alias=`/sbin/modprobe -c | awk '/^alias sound-slot-0 / { print $3 }'`
if [ -n "$alias" -a "$alias" != "off" ] ; then
action $"Loading sound module ($alias): " modprobe sound-slot-0
RETURN=$?
fi
fi
# Save mixer settings, here for lack of a better place.
grep -q "\(sparcaudio\|sound\)" /proc/devices
if [ $? = 0 -a -x /bin/aumix-minimal ]; then
runcmd $"Saving mixer settings" /bin/aumix-minimal -f /etc/.aumixrc -S
fi
My understanding is I had to do this to avoid loading the native OSS drivers.
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user