|
发表于 2020-3-21 14:47:06
只看该作者
沙发
1. pdm_i2s_dais: 这个是适配麦克风阵列板的或者数字mic的
2. 使用耳机mic,可以参考如下
- diff --git a/kernel/arch/arm64/boot/dts/rockchip/rk3308-roc-cc-dmic-pdm_emmc.dts b/kernel/arch/arm64/boot/dts/rockchip/rk3308-roc-cc-dmic-pdm_emmc.dts
- index b996358..735ddb2 100644
- --- a/kernel/arch/arm64/boot/dts/rockchip/rk3308-roc-cc-dmic-pdm_emmc.dts
- +++ b/kernel/arch/arm64/boot/dts/rockchip/rk3308-roc-cc-dmic-pdm_emmc.dts
- @@ -13,7 +13,7 @@
- compatible = "firefly,rk3308-roc-cc-dmic-pdm_emmc", "firefly,rk3308";
-
- pdm_i2s_dais: pdm-i2s-dais {
- - status = "okay";
- + status = "disabled";
- compatible = "rockchip,rk3308-multi-dais", "rockchip,multi-dais";
- dais = <&pdm_8ch>, <&i2s_8ch_2>;
- capture,channel-mapping = <6 2>;
- @@ -34,13 +34,23 @@
- };
-
- vad-sound {
- - status = "okay";
- + status = "disabled";
- compatible = "rockchip,multicodecs-card";
- rockchip,card-name = "rockchip,rk3308-vad";
- rockchip,cpu = <&pdm_i2s_dais>;
- rockchip,codec = <&acodec>, <&vad>;
- };
-
- + vad_acodec_sound: vad-acodec-sound {
- + status = "okay";
- + compatible = "rockchip,multicodecs-card";
- + rockchip,card-name = "rockchip,rk3308-acodec";
- + rockchip,codec-hp-det;
- + rockchip,mclk-fs = <256>;
- + rockchip,cpu = <&i2s_8ch_2>;
- + rockchip,codec = <&acodec>, <&vad>;
- + };
- +
- leds {
- status = "okay";
- compatible = "gpio-leds";
- @@ -63,6 +73,14 @@
- status = "disabled";
- };
-
- +&acodec {
- + rockchip,micbias1;
- + rockchip,micbias2;
- + rockchip,en-always-grps = <0 1 2 3>;
- + rockchip,adc-grps-route = <0 1 2 3>;
- + /delete-property/rockchip,loopback-grp;
- +};
- +
- &bluetooth_sound {
- status = "okay";
- };
- @@ -74,7 +92,7 @@
- };
-
- &pdm_8ch {
- - status = "okay";
- + status = "disabled";
- #sound-dai-cells = <0>;
- rockchip,no-dmaengine;
- pinctrl-names = "default";
- @@ -88,7 +106,7 @@
-
- &vad {
- status = "okay";
- - rockchip,audio-src = <&pdm_8ch>;
- + rockchip,audio-src = <&i2s_8ch_2>;
- rockchip,det-channel = <0>;
- rockchip,mode = <1>;
- rockchip,buffer-time-ms = <200>;
- @@ -102,7 +120,7 @@
- };
-
- &pdm_i2s_dais {
- - status = "okay";
- + status = "disabled";
- #sound-dai-cells = <0>;
- };
-
复制代码 |
|