arm64: dts: qcom: c630: Fix soundcard setup
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Thu, 9 Dec 2021 17:53:41 +0000 (17:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:53:57 +0000 (10:53 +0100)
[ Upstream commit c02b360ca67ebeb9de07b47b2fe53f964c2561d1 ]

Currently Soundcard has 1 rx device for headset and SoundWire Speaker Playback.

This setup has issues, ex if we try to play on headset the audio stream is
also sent to SoundWire Speakers and we will hear sound in both headsets and speakers.

Make a separate device for Speakers and Headset so that the streams are
different and handled properly.

Fixes: 45021d35fcb2 ("arm64: dts: qcom: c630: Enable audio support")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Steev Klimaszewski <steev@kali.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211209175342.20386-2-srinivas.kandagatla@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts

index ad6561843ba28489effeb34e75aecabbc4f91d9e..e080c317b5e3dd52090daaae94f2e9ae866ec6ca 100644 (file)
        dai@1 {
                reg = <1>;
        };
+
+       dai@2 {
+               reg = <2>;
+       };
 };
 
 &sound {
                "SpkrLeft IN", "SPK1 OUT",
                "SpkrRight IN", "SPK2 OUT",
                "MM_DL1",  "MultiMedia1 Playback",
+               "MM_DL3",  "MultiMedia3 Playback",
                "MultiMedia2 Capture", "MM_UL2";
 
        mm1-dai-link {
                };
        };
 
+       mm3-dai-link {
+               link-name = "MultiMedia3";
+               cpu {
+                       sound-dai = <&q6asmdai  MSM_FRONTEND_DAI_MULTIMEDIA3>;
+               };
+       };
+
        slim-dai-link {
                link-name = "SLIM Playback";
                cpu {
                        sound-dai = <&wcd9340 1>;
                };
        };
+
+       slim-wcd-dai-link {
+               link-name = "SLIM WCD Playback";
+               cpu {
+                       sound-dai = <&q6afedai SLIMBUS_1_RX>;
+               };
+
+               platform {
+                       sound-dai = <&q6routing>;
+               };
+
+               codec {
+                       sound-dai =  <&wcd9340 2>;
+               };
+       };
 };
 
 &tlmm {