Skip to content

Commit e9c1cce

Browse files
mohsRafiKomal-Bajaj
authored andcommitted
FROMLIST: arm64: dts: qcom: qcm6490-idp: Add sound card
Add the sound card node with tested playback over WSA8835 speakers, digital on-board mics along with wcd9370 headset playabck and record. Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com> Link: https://lore.kernel.org/linux-arm-msm/20250527111227.2318021-9-quic_pkumpatl@quicinc.com/ Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
1 parent 2ecf060 commit e9c1cce

1 file changed

Lines changed: 84 additions & 0 deletions

File tree

arch/arm64/boot/dts/qcom/qcm6490-idp.dts

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,90 @@
764764
cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>;
765765
};
766766

767+
&sound {
768+
compatible = "qcom,qcm6490-idp-sndcard";
769+
model = "qcm6490-idp-snd-card";
770+
771+
audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT",
772+
"SpkrRight IN", "WSA_SPK2 OUT",
773+
"IN1_HPHL", "HPHL_OUT",
774+
"IN2_HPHR", "HPHR_OUT",
775+
"AMIC2", "MIC BIAS2",
776+
"TX DMIC0", "MIC BIAS1",
777+
"TX DMIC1", "MIC BIAS2",
778+
"TX DMIC2", "MIC BIAS3",
779+
"TX SWR_ADC1", "ADC2_OUTPUT",
780+
"VA DMIC0", "VA MIC BIAS3",
781+
"VA DMIC1", "VA MIC BIAS3",
782+
"VA DMIC2", "VA MIC BIAS1",
783+
"VA DMIC3", "VA MIC BIAS1";
784+
785+
wsa-dai-link {
786+
link-name = "WSA Playback";
787+
788+
codec {
789+
sound-dai = <&left_spkr>, <&right_spkr>,
790+
<&swr2 0>, <&lpass_wsa_macro 0>;
791+
};
792+
793+
cpu {
794+
sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>;
795+
};
796+
797+
platform {
798+
sound-dai = <&q6apm>;
799+
};
800+
};
801+
802+
wcd-playback-dai-link {
803+
link-name = "WCD Playback";
804+
805+
codec {
806+
sound-dai = <&wcd9370 0>, <&swr0 0>, <&lpass_rx_macro 0>;
807+
};
808+
809+
cpu {
810+
sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>;
811+
};
812+
813+
platform {
814+
sound-dai = <&q6apm>;
815+
};
816+
};
817+
818+
wcd-capture-dai-link {
819+
link-name = "WCD Capture";
820+
821+
codec {
822+
sound-dai = <&wcd9370 1>, <&swr1 0>, <&lpass_tx_macro 0>;
823+
};
824+
825+
cpu {
826+
sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>;
827+
};
828+
829+
platform {
830+
sound-dai = <&q6apm>;
831+
};
832+
};
833+
834+
va-dai-link {
835+
link-name = "VA Capture";
836+
837+
codec {
838+
sound-dai = <&lpass_va_macro 0>;
839+
};
840+
841+
cpu {
842+
sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>;
843+
};
844+
845+
platform {
846+
sound-dai = <&q6apm>;
847+
};
848+
};
849+
};
850+
767851
&swr0 {
768852
status = "okay";
769853

0 commit comments

Comments
 (0)