]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: mediatek: mt8390-genio-common: Add delay codec for DMIC
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Tue, 25 Feb 2025 14:33:54 +0000 (11:33 -0300)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 6 Mar 2025 09:53:06 +0000 (10:53 +0100)
The signal from the dual digital microphones connected to the DMIC_BE
takes 30ms to settle after being enabled. Add a dmic-codec with
corresponding wakeup-delay-ms to prevent an initial "pop" sound when
recording with the microphones.

Co-developed-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20250225-genio700-dmic-v2-8-3076f5b50ef7@collabora.com
[Angelo: Resolved merge conflicts]
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8390-genio-common.dtsi

index f0615674e34226bafebac01a3728d4f7796e4550..60139e6dffd8e0e326690d922f3360d829ed026b 100644 (file)
                stdout-path = "serial0:921600n8";
        };
 
+       dmic_codec: dmic-codec {
+               #sound-dai-cells = <0>;
+               compatible = "dmic-codec";
+               num-channels = <2>;
+               wakeup-delay-ms = <30>;
+       };
+
        firmware {
                optee {
                        compatible = "linaro,optee-tz";
                        sound-dai = <&pmic 0>;
                };
        };
+
+       dai-link-1 {
+               link-name = "DMIC_BE";
+
+               codec {
+                       sound-dai = <&dmic_codec>;
+               };
+       };
 };
 
 &spi2 {