Re: ALSA vs. OSS

From: Olaf Dabrunz
Date: Tue Jan 20 2004 - 09:51:16 EST


On 20-Jan-04, Jaroslav Kysela wrote:
> On Tue, 20 Jan 2004, Olaf Dabrunz wrote:
>
> > > We don't do this in kernel. We implemented the direct stream mixing in our
> > > library (userspace). If your applications already uses ALSA APIs or if you
> > > redirect the OSS ioctls to ALSA library (our aoss library), you can enjoy
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > How can this be done? Just by creating symlinks?
>
> No. Use aoss script in our alsa-oss package.

Ah, I see.

# objdump -t /usr/lib/libaoss.so.0.0.0

/usr/lib/libaoss.so.0.0.0: file format elf32-i386

SYMBOL TABLE:
[...]
000062a0 g F .text 00000088 ioctl
[...]
00006490 g F .text 0000008f munmap
[...]
00006bc0 g F .text 00000857 select
[...]
000063c0 g F .text 000000cf mmap
[...]
00006180 g F .text 00000088 write
[...]
00006210 g F .text 00000088 read
[...]
00006890 g F .text 00000325 poll
[...]
00005fd0 g F .text 000000da open
[...]
00006330 g F .text 00000088 fcntl
[...]
000060b0 g F .text 000000c9 close
[...]

So libaoss.so is a wrapper for all file-related system-calls, I suppose
to catch calls involving /dev/dsp and /dev/audio.

--
Olaf Dabrunz (od / odabrunz), SUSE Linux AG, Nürnberg

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/