I am running Mandriva 2007.0, kernel 2.6.17-5mdv. My KDE sound system is currently set-up to use the OSS driver for my on-board audio. With this audio set-up, I have some sound skipping when playing MP3 files using Amarok, regardless of buffer settings, and I am unable to play MIDI files. Also, when I start DOSBox 0.72 (self-compiled) I see the following Konsole output:
[me@mycomputer]$ dosbox
DOSBox version 0.72
Copyright 2002-2007 DOSBox Team, published under GNU GPL.
---
ALSA lib confmisc.c:670
snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3479
_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391
snd_func_concat) error evaluating strings
ALSA lib conf.c:3479
_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070
snd_func_refer) error evaluating name
ALSA lib conf.c:3479
_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3947
snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143
snd_pcm_open_noupdate) Unknown PCM default
CONFIG:Loading primary settings from config file /home/myuserID/.dosboxrc
CONFIG:Loading additional settings from config file dosbox.conf
ALSA lib seq_hw.c:457
snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
ALSA:Can't open sequencer
MIDI:Opened device:none
MAPPER: Loading mapper settings from /home/myuserID/mapper.txt
Obviously, DOSBox would prefer having ALSA installed, and the sound I hear when running it confirms that fact. So, I have decided to switch to the ALSA driver, but before doing so, I have two initial questions.
1. Switching to the ALSA driver is easily done using MCC:
MCC/Hardware/Look at and configure the hardware/Soundcard ICH2 810 Chipset AC'97 Audio Controller/Run config tool/...
i810_audio [OSS]
snd-intel8x0 [ALSA]
but I would like to know the corresponding CLI method for changing the soundcard driver.
2. After the ALSA driver has been selected and loaded, the ALSA documentation recommends:
Copy and paste this [script] to the bottom of your /etc/modules.conf file:
# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
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
For Mandriva 2007.0, the correct path is /etc/modprobe.conf; there is no /etc/modules.conf file. The above script, by the way, is specific to the i810 chipset.
The ALSA documentation also recommends: "If you get an 'init_module: No such device' error when you run this <modprobe> command [referring to initial module insertion tests, not the execution of the above script, which serves to automate the module loading], make sure that you uninstall all the sound related modules first."
I do not anticipate any module removal, but should it be necessary I do not want to do anything permanently; I want the option to be able to easily revert back to the OSS sound system if something is not to my liking. I am a complete newbie as far as the <modprobe -r> command is concerned, but I understand that only modules that are not in use can be removed, and I assume that any modules removed using <modprobe -r> are only removed from memory, not permanently from the kernel stored on HDD.
All this sets up my second question: if I need to prevent specific modules from being loaded at boot-up, how can I do so, again by using the CLI method? At this moment I am assuming that appropriate lines, such as "remove ... etc. ... etc.", added to modprobe.conf will do the job.
I should have more questions concerning ALSA configuration in the near future, particularly when I tackle MIDI functionality. Doing that will require adding more lines of script to /etc/modprobe.conf, among other things. I have already installed almost every ALSA-related package for Mandriva 2007.0, so whatever I might need is readily at-hand.
Thanks in advance for reading all this. I was educated in a scientific discipline, so I rapidly learned to rely in the time-trusted addage, "If you can't dazzle them with brilliance, then baffle them with ...", well, you know the last word ... I don't have to spell it out. Anyway, terse prose is not one of my talents.
Some additional Konsole output follows:
[me@mycomputer]# lsmod <-- This shows loaded modules
...
i810_audio 33684 0
ac97_codec 18316 1 i810_audio
soundcore 8096 1 i810_audio
...
[me@mycomputer]$ cat modprobe.conf <-- This shows current settings
alias eth0 eepro100
alias sound-slot-0 i810_audio
install usb-interface /sbin/modprobe uhci-hcd; /bin/true
alias net-pf-10 off
[me@mycomputer]# lspci | egrep audio
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 02)
[me@mycomputer]# lspcidrake -v | grep -i audio
i810_audio : Intel Corp.|ICH2 810 Chipset AC'97 Audio Controller [MULTIMEDIA_AUDIO] (vendor:8086 device:2445 subv:0e11 subd:000b)
--------------------------------------------------
Compaq Deskpro EN, Pentium III 933 MHz, 256 MB RAM, Nvidia Riva TNT2 AGP Card, Canon BJC-610 Printer, Best Data 56SX92 External Serial Modem, Mandriva 2007.0, kernel 2.6.17-5mdv, KDE 3.5.4
--------------------------------------------------