In the above configuration examples, the pcm.dsp0 definition is used to wrap calls do /dev/dsp0. You can also wrap usage of /dev/dsp1, /dev/dsp2, etc. by defining pcm.dsp1, pcm.dsp2, etc..
+Note on mmap: aoss mmap support might be buggy. Your results may vary when trying to use an application that uses mmap'ing to access the OSS device files.
+
.SS Arguments
.TP
minor = (atoi(file + 10) << 4) | OSS_DEVICE_MIXER;
else if (!strncmp(file, "/dev/amixer", 11))
minor = (atoi(file + 11) << 4) | OSS_DEVICE_AMIXER;
+ else if (!strncmp(file, "/dev/sound/mixer", 16))
+ minor = (atoi(file + 16) << 4) | OSS_DEVICE_MIXER;
+ else if (!strncmp(file, "/dev/sound/amixer", 17))
+ minor = (atoi(file + 17) << 4) | OSS_DEVICE_AMIXER;
else {
errno = ENOENT;
return -1;
minor = (atoi(file + 9) << 4) | OSS_DEVICE_ADSP;
else if (!strncmp(file, "/dev/audio", 10))
minor = (atoi(file + 10) << 4) | OSS_DEVICE_AUDIO;
+ else if (!strncmp(file, "/dev/sound/dsp", 14))
+ minor = (atoi(file + 14) << 4) | OSS_DEVICE_DSP;
+ else if (!strncmp(file, "/dev/sound/dspW", 15))
+ minor = (atoi(file + 15) << 4) | OSS_DEVICE_DSPW;
+ else if (!strncmp(file, "/dev/sound/adsp", 15))
+ minor = (atoi(file + 15) << 4) | OSS_DEVICE_ADSP;
+ else if (!strncmp(file, "/dev/sound/audio", 16))
+ minor = (atoi(file + 16) << 4) | OSS_DEVICE_AUDIO;
else {
errno = ENOENT;
return -1;