[alsa-devel] audio-over-SPI driver for ASoC

Brian Clarkson clarkson at orthogonaldevices.com
Fri Oct 9 16:29:40 CEST 2015


Hi

I'm about to embark on the development of an ASoC capture driver that 
uses SPI to stream the samples to the processor.  I'm still spending a 
lot of my time going through the ALSA kernel code but as I do that may I 
have some suggestions as to which examples would be closest to my case?  
My development hardware is AM335x --> McSPI --> ADS8868.

So far I think I have achieved a solid understanding of the 
"simple-card" case where you have dai-link that connects a processor 
peripheral driver (e.g. McASP ) with a codec driver and forms a 
snd_soc_card that can be registered.  Is my best option to:

- write a new CPU DAI (snd_soc_dai_driver) based on the existing SPI driver
- write a new CODEC DAI (snd_soc_dai_driver) which will be mostly empty
- write a new platform driver that populates and registers a new 
snd_soc_card struct with the above in a dai_link?

Any advice would be much appreciated.

Cheers,
Brian

-- 
Orthogonal Devices
Tokyo, Japan
www.orthogonaldevices.com
+81 80 8700 2340



More information about the Alsa-devel mailing list