音频底层驱动

来源:互联网 发布:励志类书籍推荐知乎 编辑:程序博客网 时间:2024/05/19 14:36


驱动组成部分

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).



驱动文件组成
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
原创粉丝点击