[alsa-devel] How does ALSALIB commuciates with low level kernel API

Clemens Ladisch clemens at ladisch.de
Wed Jun 15 09:00:01 CEST 2016


Chemsi Mehdi wrote:
> I want to underatnd how ALSA userspace API calls kernel space code ?
> for example when I call  snd_pcm_open() which code is called in kernel
> sound code ?

The generic PCM code in alsa-lib/src/pcm/pcm.c calls some plugin.
The "hw" plugin (in pcm_hw.c) handles communication with the kernel.

The kernel code is in sound/core/.

> and how the link is made ? via IOCTL/write ?

Yes.


Regards,
Clemens


More information about the Alsa-devel mailing list