dts: use ASoC name prefix node

replace the name-prefix node in the wsa and swr_dmic
with ASoC defined name-prefix node that can be read in
the ASoC API soc_probe_link_components

the original prefx setting approach may cause ASoC probe
failed if the prefix is not set prior the probe call.

Change-Id: If0678fc32ad6bd26af8dc1e03dcb28b9a6b2744a
Signed-off-by: Junkai Cai <junkai@quicinc.com>
This commit is contained in:
Junkai Cai
2021-10-25 14:13:09 -07:00
committed by Gerrit - the friendly Code Review server
parent 13cfaf33db
commit a6c5cff31b

View File

@@ -72,7 +72,7 @@
swr_dmic_04: dmic_swr@58350223 {
compatible = "qcom,swr-dmic";
reg = <0x08 0x58350223>;
qcom,swr-dmic-prefix = "SWR_MIC3";
sound-name-prefix = "SWR_MIC3";
qcom,codec-name = "swr-dmic.04";
qcom,swr-dmic-supply = <3>;
qcom,wcd-handle = <&wcd938x_codec>;
@@ -82,7 +82,7 @@
swr_dmic_03: dmic_swr@58350222 {
compatible = "qcom,swr-dmic";
reg = <0x08 0x58350222>;
qcom,swr-dmic-prefix = "SWR_MIC2";
sound-name-prefix = "SWR_MIC2";
qcom,codec-name = "swr-dmic.03";
qcom,swr-dmic-supply = <1>;
qcom,wcd-handle = <&wcd938x_codec>;
@@ -92,7 +92,7 @@
swr_dmic_02: dmic_swr@58350221 {
compatible = "qcom,swr-dmic";
reg = <0x08 0x58350221>;
qcom,swr-dmic-prefix = "SWR_MIC1";
sound-name-prefix = "SWR_MIC1";
qcom,codec-name = "swr-dmic.02";
qcom,swr-dmic-supply = <1>;
qcom,wcd-handle = <&wcd938x_codec>;
@@ -102,7 +102,7 @@
swr_dmic_01: dmic_swr@58350220 {
compatible = "qcom,swr-dmic";
reg = <0x08 0x58350220>;
qcom,swr-dmic-prefix = "SWR_MIC0";
sound-name-prefix = "SWR_MIC0";
qcom,codec-name = "swr-dmic.01";
qcom,swr-dmic-supply = <3>;
qcom,wcd-handle = <&wcd938x_codec>;
@@ -203,7 +203,7 @@
qcom,cdc-vdd-1p8-voltage = <1800000 1800000>;
qcom,cdc-vdd-1p8-current = <20000>;
qcom,cdc-static-supplies = "cdc-vdd-1p8";
qcom,wsa-prefix = "SpkrLeft";
sound-name-prefix = "SpkrLeft";
};
wsa883x_0222: wsa883x@02170222 {
@@ -216,7 +216,7 @@
qcom,cdc-vdd-1p8-voltage = <1800000 1800000>;
qcom,cdc-vdd-1p8-current = <20000>;
qcom,cdc-static-supplies = "cdc-vdd-1p8";
qcom,wsa-prefix = "SpkrRight";
sound-name-prefix = "SpkrRight";
};
};
};
@@ -262,7 +262,7 @@
qcom,cdc-vdd-1p8-voltage = <1800000 1800000>;
qcom,cdc-vdd-1p8-current = <20000>;
qcom,cdc-static-supplies = "cdc-vdd-1p8";
qcom,wsa-prefix = "Spkr2Left";
sound-name-prefix = "Spkr2Left";
};
wsa883x_2_0222: wsa883x@02170222 {
@@ -275,7 +275,7 @@
qcom,cdc-vdd-1p8-voltage = <1800000 1800000>;
qcom,cdc-vdd-1p8-current = <20000>;
qcom,cdc-static-supplies = "cdc-vdd-1p8";
qcom,wsa-prefix = "Spkr2Right";
sound-name-prefix = "Spkr2Right";
};
};
};