[alsa-devel] dsp after dmix
michael at amarulasolutions.com
Wed Oct 16 17:31:33 CEST 2013
On Mon, Oct 14, 2013 at 10:33 PM, Mark Brown <broonie at kernel.org> wrote:
> On Mon, Oct 14, 2013 at 02:18:27PM +0200, Michael Trimarchi wrote:
>> > You would have to write an ALSA kernel driver for the DSP device.
>> This is not a good approach of the general problem because a lot of
>> dsp has userspace
>> support and firmware and initialization is done by userspace library.
>> Can I change
>> the writei and readi of the dmix plugin and let use my dsp function?
> I'm not sure that's generally common - memory to memory DSPs are a bit
> unusual for audio since the latency requirements tend to be fairly
> tight. I can't think of many examples that don't need some exposure to
> the kernel...
A lot of time you need to deal with SDK from others so in my case the dsp
can be used only from the userspace. If the applicaiton does not do the
audio mixing and the dmix is optimized to use the mmap and shared
memory region the only way is to use somenthing like the aloop but
this will increase the overhead like using pulseaudio.
More information about the Alsa-devel