Skip to contentSkip to conversation

Alsa MMAP emulation

DISCUSSION Mathieu Monney 3 participants 4 messages Mar 5, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to get working Alsa with the PortAudio library on an embedded device (Nokia N810). The problem is that the sound driver is not an hardware driver for Alsa but a plugin which deals with the internal DSP of the device. This plugin doesn't support mmap'ing at all. So I was wondering if it is possible to configure Alsa a way such PortAudio can use mmap'ing on my DSP plugin ? I saw there is a mmap_emulation flag but the problem is that it seems to be only available on HW driver and not on alsa plugins.

Any clues ?

Thank you in advance

Mathieu

#1 lore raw
Quoted 8 lines · Mathieu Monney

I'm trying to get working Alsa with the PortAudio library on an embedded device (Nokia N810). The problem is that the sound driver is not an hardware driver for Alsa but a plugin which deals with the internal DSP of the device. This plugin doesn't support mmap'ing at all. So I was wondering if it is possible to configure Alsa a way such PortAudio can use mmap'ing on my DSP plugin ? I saw there is a mmap_emulation flag but the problem is that it seems to be only available on HW driver and not on alsa plugins.

In alsa-lib 1.0.15, this function was moved into the mmap_emul plugin.

HTH
Clemens

#2 lore raw
Quoted 11 lines · Clemens Ladisch
Quoted 8 lines · Mathieu Monney

I'm trying to get working Alsa with the PortAudio library on an embedded device (Nokia N810). The problem is that the sound driver is not an hardware driver for Alsa but a plugin which deals with the internal DSP of the device. This plugin doesn't support mmap'ing at all. So I was wondering if it is possible to configure Alsa a way such PortAudio can use mmap'ing on my DSP plugin ? I saw there is a mmap_emulation flag but the problem is that it seems to be only available on HW driver and not on alsa plugins.

In alsa-lib 1.0.15, this function was moved into the mmap_emul plugin.

So, the original plugin need not be modified? mmap_emul plugin has to be used on top of it?

-pharaoh.

#3 lore raw
Quoted 10 lines · Pharaoh .
Quoted 6 lines · Clemens Ladisch
Quoted 3 lines · Mathieu Monney

use mmap'ing on my DSP plugin ? I saw there is a mmap_emulation flag but the problem is that it seems to be only available on HW driver and not on alsa plugins.

In alsa-lib 1.0.15, this function was moved into the mmap_emul plugin.

So, the original plugin need not be modified? mmap_emul plugin has to be used on top of it?

Yes.

HTH
Clemens