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-qrd: 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-1-krzysztof.kozlowski@linaro.org

authored by

Krzysztof Kozlowski and committed by
Bjorn Andersson
9f5ebcd6 edb92fae

+81
+81
arch/arm64/boot/dts/qcom/sm8550-qrd.dts
··· 104 104 }; 105 105 }; 106 106 107 + sound { 108 + compatible = "qcom,sm8550-sndcard", "qcom,sm8450-sndcard"; 109 + model = "SM8550-QRD"; 110 + audio-routing = "SpkrLeft IN", "WSA_SPK1 OUT", 111 + "SpkrRight IN", "WSA_SPK2 OUT", 112 + "IN1_HPHL", "HPHL_OUT", 113 + "IN2_HPHR", "HPHR_OUT", 114 + "AMIC2", "MIC BIAS2", 115 + "VA DMIC0", "MIC BIAS1", 116 + "VA DMIC1", "MIC BIAS1", 117 + "VA DMIC2", "MIC BIAS3", 118 + "TX DMIC0", "MIC BIAS1", 119 + "TX DMIC1", "MIC BIAS2", 120 + "TX DMIC2", "MIC BIAS3", 121 + "TX SWR_ADC1", "ADC2_OUTPUT"; 122 + 123 + wcd-playback-dai-link { 124 + link-name = "WCD Playback"; 125 + 126 + cpu { 127 + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 128 + }; 129 + 130 + codec { 131 + sound-dai = <&wcd938x 0>, <&swr1 0>, <&lpass_rxmacro 0>; 132 + }; 133 + 134 + platform { 135 + sound-dai = <&q6apm>; 136 + }; 137 + }; 138 + 139 + wcd-capture-dai-link { 140 + link-name = "WCD Capture"; 141 + 142 + cpu { 143 + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 144 + }; 145 + 146 + codec { 147 + sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; 148 + }; 149 + 150 + platform { 151 + sound-dai = <&q6apm>; 152 + }; 153 + }; 154 + 155 + wsa-dai-link { 156 + link-name = "WSA Playback"; 157 + 158 + cpu { 159 + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 160 + }; 161 + 162 + codec { 163 + sound-dai = <&north_spkr>, <&south_spkr>, <&swr0 0>, <&lpass_wsamacro 0>; 164 + }; 165 + 166 + platform { 167 + sound-dai = <&q6apm>; 168 + }; 169 + }; 170 + 171 + va-dai-link { 172 + link-name = "VA Capture"; 173 + 174 + cpu { 175 + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 176 + }; 177 + 178 + codec { 179 + sound-dai = <&lpass_vamacro 0>; 180 + }; 181 + 182 + platform { 183 + sound-dai = <&q6apm>; 184 + }; 185 + }; 186 + }; 187 + 107 188 vph_pwr: vph-pwr-regulator { 108 189 compatible = "regulator-fixed"; 109 190 regulator-name = "vph_pwr";