六、MT8168/MT8175 音频驱动之TDM(ES7210)

1.简介

本章主要介绍MT8175(MT8168)平台ES7210驱动移植方法。通过本章学习,可以了解到TDM接口配置方法,ES7210驱动移植方法,tinymix调试方法。

2.ES7210移植指南

2.1 添加驱动文件
 

kernel-4.14/sound/soc/codecs/es7210.h
kernel-4.14/sound/soc/codecs/es7210.c

2.2 Makefile设置

kernel-4.14/sound/soc/codecs/Makefile
obj-$(CONFIG_SND_SOC_ES7210) += es7210.o

2.3 Kconfig配置

kernel-4.14/sound/soc/codecs/Kconfig
config SND_SOC_ES7210
tristate "Support ES7210 TDM device driver"
depends on I2C

2.4 select SND_SOC_ES7210

sound/soc/mediatek/Kconfig
config SND_SOC_MT8168_P1
tristate "ASoC Audio driver for MT8168 P1 Board"
depends on SND_SOC_MT8168
+ select SND_SOC_ES7210

2.5 配置BE

sound/soc/media

猜你喜欢

转载自blog.csdn.net/Joon2020/article/details/126265320
今日推荐