1.修改mk文件
- KST_KERNEL_BOARD_CUSTOM03 =
+ KST_KERNEL_BOARD_CUSTOM03 = KST_TWO_SPEAKER
- KST_MISC_CUSTOM= KST_SUB_FLASH_SUPPORT
+ KST_MISC_CUSTOM= KST_SUB_FLASH_SUPPORT KST_AUDIO_SUPPORT_2IN1_SPEAKER KST_TWO_SPEAKER
2.修改dws
对比已实现dual_speaker的项目,发现需要更改gpio20配置
3.修改dts,添加GPIO20的配置
/* AUdio_extal_AMP_GPIO Kernel Standardization start */
&pio {
pinctrl_audioss1: pinctrl_audioss1@gpio20 {
pins_cmd_dat {
pins = <PINMUX_GPIO20__FUNC_GPIO20>;
slew-rate = <1>;
bias-pull-up = <00>;
};
};
pinctrl_audioss1_low: pinctrl_audioss1_low@gpio20 {
pins_cmd_dat {
pins = <PINMUX_GPIO20__FUNC_GPIO20>;
slew-rate = <1>;
output-low;
bias-pull-up = <00>;
};
};
pinctrl_audioss1_high: pinctrl_audioss1_high@gpio20 {
pins_cmd_dat {
pins = <PINMUX_GPIO20__FUNC_GPIO20>;
slew-rate = <1>;
output-high;
bias-pull-up = <00>;
};
};
};
&audioss {
pinctrl-names = "audioss_default", "pinctrl_audioss0", "pinctrl_audioss0_low", "pinctrl_audioss0_high","pinctrl_audioss1", "pinctrl_audioss1_low", "pinctrl_audioss1_high";
pinctrl-0 = <&audioss_default>;
pinctrl-1 = <&pinctrl_audioss0>;
pinctrl-2 = <&pinctrl_audioss0_low>;
pinctrl-3 = <&pinctrl_audioss0_high>;
pinctrl-4 = <&pinctrl_audioss1>;
pinctrl-5 = <&pinctrl_audioss1_low>;
pinctrl-6 = <&pinctrl_audioss1_high>;
status = "okay";
};
/* AUdio_extal_AMP_GPIO Kernel Standardization end */
16. dual_speaker调试
最新推荐文章于 2022-06-06 15:19:23 发布