21 Aug 2012 16:36
pcm-oss.conf
Hi.
Where is //compat/linux/etc/alsa/pcm/pcm-oss.conf file for the linux apps.
It has deafult device configured. I've got usb webcam with intergrated microphone (which appears as hda device).
If I run skype, it doesn't know anything about it, because there is no entry in
/compat/linux/etc/alsa/pcm/pcm-oss.conf but only default device. So I've got sound, but buddy on the
other side doesn't hear me. If I make microphone hda device (pcm6 here) default one, I've got no sound in
Skype of course, but buddy on the other side hears me. :)
Well, imho, there is some ways to fix this:
- pregenerate anough devices in pcm-oss.conf;
- generate device list each time I change sound configuration;
- generate pcm-oss.conf each time sound device configuration changes (using devd, for example).
The last variant seems to be most user friendly and Plug'n'Play-like, but it introduces some kind of
automagical staff which (personally) I don't like. But you may find it ok. Here is rough-and-ready
prototype for this variant, it may be called by devfs attach/detach events, it may be like webcamd script:
[code]
#!/bin/sh
PCM=`egrep -o 'pcm[0-9]+' /dev/sndstat | egrep -o '[0-9]+'`
cat > /tmp/pcm-oss.conf <<EOF
# pcm-oss plugin configuration
pcm.oss {
type oss
device /dev/dsp
hint {
description "Open Sound System"
}
(Continue reading)
RSS Feed