1. 参考文档
Driver_All_in_One_V1.0_MT6735_6753.pdf
2. 代码修改
hal:
vendor/mediatek/proprietary/custom/CRP12XI/hal/audioflinger/audio/audio_custom_exp.h
...
#define USING_CLASSD_AMP //驱动喇叭所以选择需要的功放类型,这里使用D型功放
//#define USING_EXTAMP_HP //使用内部PA则注释掉
kernel:
kernel-3.18/arch/arm/configs/CRP12XI_debug_defconfig
kernel-3.18/arch/arm/configs/CRP12XI_defconfig
...
CONFIG_MTK_SPEAKER=y //作用于:kernel-3.10\sound\soc\mediatek\mt_soc_audio_6580\mt_soc_codec_63xx.c
project:
device/eastaeon/CRP12XI/ProjectConfig.mk
...
MTK_2IN1_SPK_SUPPORT = yes