Confused about audio drivers - where do I start?
If I were to write a non-USB audio device driver from scratch (for new hardware), what interface would I use? Has ALSA become the official Linux kernel audio subsystem? Is there a specific device driver I should use as a sample?
Signature · 2 lines
Timur Tabi Linux Kernel Developer @ Freescale
Quoted 2 lines · On Thu, 22 Mar 2007 18:01:01 -0500 Timur Tabi wrote:
If I were to write a non-USB audio device driver from scratch (for new hardware), what interface would I use? Has ALSA become the official Linux kernel audio subsystem? Is
Yes.
Quoted 1 line
there a specific device driver I should use as a sample?
Dunno. But ALSA has docs. See
http://www.alsa-project.org/documentation.php#0.9doc
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
Hi,
Quoted 4 lines · Timur Tabi
If I were to write a non-USB audio device driver from scratch (for new hardware), what interface would I use? Has ALSA become the official Linux kernel audio subsystem? Is there a specific device driver I should use as a sample?
Yes, a driver should definitely be written against ALSA.
It's probably a good idea to use the most wide-spread card/driver close to the hardware/functionality area of your new card as a sample driver, the reasoning being that due to that card's wide use it's most likely that all features are implemented as expected there.
And make sure to examine your new hardware about which sound card standards it supports (AC-97, ...) which already have good generic support in ALSA.
When designing the mixer interface, definitely read ControlNames.txt and name all mixer controls properly, since mixer apps have strongly differing behaviour and may not work correctly without very strict and verbose control naming. This implies wide testing with different mixer apps, too (gamix, alsamixer, alsamixergui, gnome-alsamixer, kmix, aumix, ...).
Why I'm saying this? Because the first user report about my azt3328 driver let me realize that some controls' naming was still broken despite having fixed most of those a while ago...
Andreas Mohr