Chapter 5: ALSA SoC Framework – Leveraging Codec and Platform Class Drivers
Audio is an analog phenomenon that can be produced in all sorts of ways. Voice and audio have been communication media since the beginning of humanity. Almost every kernel provides audio support to userspace applications as an interaction mechanism between computers and humans. To achieve this, the Linux kernel provides a set of APIs known as ALSA, which stands for Advanced Linux Sound Architecture.
ALSA was designed for desktop computers, not taking into account embedded world constraints. This added a lot of drawbacks when it came to dealing with embedded devices, such as the following:
- Strong coupling between codec and CPU code, leading to difficulties in porting and code duplication.
- No standard way to handle notifications about users' audio-related behavior. In mobile scenarios, users' audio-related behaviors are frequent, so a special mechanism is needed.
- In the original...