Driver Components
Asocsplits an embedded audio system into 3 components :-
* Codec DRIVER: the codec driver is platformindependent and contains audio
Controls, audio interface capabilities, codec dapm definition and CODEC Io
Functions.
* Platform DRIVER: The Platform drivercontains the audio DMA engine and audio interface drivers (e.g. I2S, ac97, PCM) for that platform.
* Machine driver: The machine driver handlesany machine specific controls and Audio events (e.g. Turning on an amp at startof playback ).
Driver file Composition
Ad1938 with ASOC
Codec
Ad1938 codec DRIVER:
Sound/soc/codecs/ad1938.h
Sound/soc/codecs/ad1938.c
Platform
TDM Dai DRIVER:
Sound/soc/Blackfin/bf5xx-tdm.h
Sound/soc/Blackfin/bf5xx-tdm.c
Tdm pcm (DMA) DRIVER:
Sound/soc/Blackfin/bf5xx-tdm-pcm.h
Sound/soc/Blackfin/bf5xx-tdm-pcm.c
Sport interface driver:
Sound/soc/Blackfin/bf5xx-sport.h
Sound/soc/Blackfin/bf5xx-sport.c
Board
Machine (board) DRIVER:
Sound/soc/Blackfin/bf5xx-ad1938.c
SPI board info:
Add related information to arch/Blackfin/Mach-xxx/boards/xxx. c