赞
踩
https://github.com/jakemoroni/audio_async_loopback
https://lkml.org/lkml/2019/12/9/738https://lkml.org/lkml/2019/12/9/738
从上面的解释中,跟之前对其理解A2B网络是一个提前预定义好的网络结构,非热插拔网络.
- /work/adi/a2b/opt/analog/cces-linux-add-in/1.3.1/buildroot-sc5xx-1.3.1/src$ patch -p0 < ./opt/analog/a2b-alsa-driver/0.1.0/a2bpatch/a2bpatchfile
- patching file buildroot/linux/linux-kernel/arch/arm/boot/dts/sc584-ezkit.dts
- patching file buildroot/linux/linux-kernel/arch/arm/boot/dts/sc58x.dtsi
- patching file buildroot/linux/linux-kernel/arch/arm/configs/sc584-ezkit_defconfig
- patching file buildroot/linux/linux-kernel/arch/arm/mach-sc58x/include/mach/sc58x.h
- patching file buildroot/linux/linux-kernel/arch/arm/mach-sc58x/sc58x-ezkit.c
- patching file buildroot/linux/linux-kernel/include/sound/sc5xx-dai.h
- patching file buildroot/linux/linux-kernel/include/sound/sc5xx-sru.h
- patching file buildroot/linux/linux-kernel/sound/soc/adi/Kconfig
- patching file buildroot/linux/linux-kernel/sound/soc/adi/Makefile
- patching file buildroot/linux/linux-kernel/sound/soc/adi/sc5xx-asoc-card.c
- patching file buildroot/linux/linux-kernel/sound/soc/adi/sc5xx-i2s.c
- patching file buildroot/linux/linux-kernel/sound/soc/adi/sc5xx-sport.c
- patching file buildroot/linux/linux-kernel/sound/soc/adi/sc5xx-tdm.c
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/a2b24xx.c
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/a2b24xx.h
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/a2b24xx-i2c.c
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/adi_a2b_i2c_commandlist.h
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/Kconfig
- patching file buildroot/linux/linux-kernel/sound/soc/codecs/Makefile
硬件设备跟下面的驱动打印完全对应的上。
Linux ALSA 音频系统架构大致如下:
- +--------+ +--------+ +--------+
- |tinyplay| |tinycap | |tinymix |
- +--------+ +--------+ +--------+
- | ^ ^
- V | V
- +--------------------------------+
- | ALSA Library API |
- | (tinyalsa, alsa-lib) |
- +--------------------------------+
- user space ^
- -------------------------------|---------------------
- kernel space V
- +--------------------------------+
- | ALSA CORE |
- | +-------+ +-------+ +------+ |
- | | PCM | |CONTROL| | MIDI |...|
- | +-------+ +-------+ +------+ |
- +--------------------------------+
- |
- +--------------------------------+
- | ASoC CORE |
- +--------------------------------+
- |
- +--------------------------------+
- | hardware driver |
- | +-------+ +--------+ +-----+ |
- | |Machine| |Platform| |Codec| |
- | +-------+ +--------+ +-----+ |
- +--------------------------------+
ALSA/ASoC 中硬件设备关系:
- +------------------------------------------+
- | Machine |
- | +--------------+ +--------------+ |
- | | Platform | | Codec | |
- | | | I2S | | |
- | | cpu_dai|<---->|codec_dai | |
- | | | | | |
- | +--------------+ +--------------+ |
- +------------------------------------------+
下面的图中说明了Machine,Platform,Codec,cpu_dai,codec_dai
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。