if modprobe(8) complains about unresolved symbols in schedule_work, you need to run
touch include/linux/workqueue.h
between ./configure and make(1) on alsa-driver.
You probably want to set up your own .rpmmacros file first, as per RPMNotes. Remember to specify the target architecture and the card (see the ALSA soundcard matrix to find yours) to compile for, eg.
rpmbuild --rebuild alsa-driver.x.y.z-p.src.rpm --define 'cards als4000' --target $arch
where $arch might be athlon, f.ex. The RPMs will end up in RPMS/$arch/, ie f.ex in RPMS/athlon/. As with all source builds, you will need to recompile the SRPM if you upgrade your Kernel; you only need to install the kernel-module-alsa RPM, however.
Now open the alsa-driver.x.y.z-p.spec in the SPECS/ directory, locate the %configure and make commands and add the following command between them.
touch include/linux/workqueue.h
You can now install the RPMs built in the RPMS/$arch/ directory.
You can get alsa to do software mixing for you without having to resort to something like ESounD. This is done via the dmix plugin and is documented here. Basically, all you need to do is get alsa going, then put the following in a .asoundrc file in your home directory.
pcm.mixed {
type dmix ipc_key 123456 # Any unique value ipc_key_add_uid true # No idea... slave {
pcm "hw:0,0"
- Apparently for OSS emulation device, you have to set the period
- and the buffer sizes in powers of two.
period_time 0 period_size 1024 # must be power of 2 buffer_size 4096 # ditto rate 44100
}
- bindings are cool. This says, that only the first
- two channels are to be used by dmix, which is enough for
- (most) oss apps and also lets multichannel chios work
- much faster:
bindings {
0 0 # from 0 => to 0 1 1 # from 1 => to 1
}
}
pcm.!default {
type plug slave.pcm mixed
}
pcm.dsp0 {
type plug slave.pcm mixed
}
pcm.mixer0 {
type hw card 0
}
3 pages link to AlsaNotes: