Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64: dts: qcom: sm8550-mtp: add sound card

Add the sound card node with tested playback over WSA8845 speakers and
WCD9385 headset over USB Type-C. The recording links were not tested,
but should be similar to previous platforms.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230612173758.286411-2-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
3f01d016 9f5ebcd6

+81
+81
arch/arm64/boot/dts/qcom/sm8550-mtp.dts
··· 87 87 }; 88 88 }; 89 89 90 + sound { 91 + compatible = "qcom,sm8550-sndcard", "qcom,sm8450-sndcard"; 92 + model = "SM8550-MTP"; 93 + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", 94 + "SpkrRight IN", "WSA_SPK2 OUT", 95 + "IN1_HPHL", "HPHL_OUT", 96 + "IN2_HPHR", "HPHR_OUT", 97 + "AMIC2", "MIC BIAS2", 98 + "VA DMIC0", "MIC BIAS1", 99 + "VA DMIC1", "MIC BIAS1", 100 + "VA DMIC2", "MIC BIAS3", 101 + "TX DMIC0", "MIC BIAS1", 102 + "TX DMIC1", "MIC BIAS2", 103 + "TX DMIC2", "MIC BIAS3", 104 + "TX SWR_ADC1", "ADC2_OUTPUT"; 105 + 106 + wcd-playback-dai-link { 107 + link-name = "WCD Playback"; 108 + 109 + cpu { 110 + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 111 + }; 112 + 113 + codec { 114 + sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 115 + }; 116 + 117 + platform { 118 + sound-dai = <&q6apm>; 119 + }; 120 + }; 121 + 122 + wcd-capture-dai-link { 123 + link-name = "WCD Capture"; 124 + 125 + cpu { 126 + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 127 + }; 128 + 129 + codec { 130 + sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; 131 + }; 132 + 133 + platform { 134 + sound-dai = <&q6apm>; 135 + }; 136 + }; 137 + 138 + wsa-dai-link { 139 + link-name = "WSA Playback"; 140 + 141 + cpu { 142 + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 143 + }; 144 + 145 + codec { 146 + sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&lpass_wsamacro 0>; 147 + }; 148 + 149 + platform { 150 + sound-dai = <&q6apm>; 151 + }; 152 + }; 153 + 154 + va-dai-link { 155 + link-name = "VA Capture"; 156 + 157 + cpu { 158 + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 159 + }; 160 + 161 + codec { 162 + sound-dai = <&lpass_vamacro 0>; 163 + }; 164 + 165 + platform { 166 + sound-dai = <&q6apm>; 167 + }; 168 + }; 169 + }; 170 + 90 171 vph_pwr: vph-pwr-regulator { 91 172 compatible = "regulator-fixed"; 92 173 regulator-name = "vph_pwr";