Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3630432pxb; Mon, 24 Jan 2022 13:57:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbWlSHyE4as1LbaMrjKbkcO3jLc83nONJ01B9Y3wFLUgtlr/VlwFr5D22fFowSWuKVd53k X-Received: by 2002:a63:1157:: with SMTP id 23mr12957115pgr.12.1643061460970; Mon, 24 Jan 2022 13:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061460; cv=none; d=google.com; s=arc-20160816; b=NOvIdqTZXKpGCCTIlPcgns6+zxD5k2vPsTMaxuTGyAkGTxHiDk+kfjsdLbQndaUirG b3dBLYQQlEBGvSHP6j0e0OkiSI0lXBeYfm1CkFe3p3Mn0t9LBuAy0+i+JOVDzYTzUn6W KAjQMBDYL480y2vdjF+h+f37sEkXI3/+oWA8T6ktGBRbYmKNcJV5kGve5gc2vRmmDIs9 X8uYeKamJq6Wx3bHE1qFSfusSjvBE8p9XFETS4bagYEoGSaU9QxmwP43b2MSMAzwKtig 9+wrylT35+uIsW3ROkiwt3HqE1Rw/Q0MlfrIv4hDeLqF2ccqNU6JH89u8Fki/UhxAoHe zPEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sBK2mUHlCOi2YAj0sIhzpBe9/X58/8v+LPupjnd5USg=; b=efCmlfwptRgruz8vzVw5HHg6KE3XIlu3r4SVbS+tvoNE6QB+lFZcm/Al/aHnUzcNzt 0pBb+WFejqAgbn93ROb2q8dahsPFYSibNYCdUpsVi72diRnGtU1l2+miTrcryC2HWX7e 3ytX6LcrRqyIvDKz3vuqpRwod9kT/t9ya0bC6aQks7TFtGcz985abvDynXp4w1z1Za0y /CsLQPxf6p3BgcKz+qJ7J1rsFs9wsHb1dTEkwL7t970qJsmWIhE5M03W3PNo+bYm4TUA AyZGYhRw/8Z4K+eS9ivADR37aa0oFW3Pa+YFrVc063a65wa1W78F/H64tOeM079BXgM/ VWlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UcgmLeFW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h124si14274171pgc.65.2022.01.24.13.57.28; Mon, 24 Jan 2022 13:57:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UcgmLeFW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573254AbiAXVop (ORCPT + 99 others); Mon, 24 Jan 2022 16:44:45 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:59964 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1446212AbiAXVHf (ORCPT ); Mon, 24 Jan 2022 16:07:35 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C957561425; Mon, 24 Jan 2022 21:07:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5C2BC340E8; Mon, 24 Jan 2022 21:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058454; bh=DX+nFBJs/yKtyiEOKkXjDicl5+9iBgWUYkW0pg5pwmk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UcgmLeFWWARiCVxFiKjehv0+7jlcStqKEQpK2lCe+2iBhCoQUI32I8JwZpwSNJHXa hItF1jcvXxOHRqMdrcExSM6lbcuNpjQrCPeV98piGGe6yurFG3ea5/pqdvQ9SZaUkU 2YaRmLCwWtWFcOjFU09v/79TQjdpat2xO3V+h84I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Srinivas Kandagatla , Steev Klimaszewski , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.16 0293/1039] arm64: dts: qcom: c630: Fix soundcard setup Date: Mon, 24 Jan 2022 19:34:42 +0100 Message-Id: <20220124184135.128752743@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Srinivas Kandagatla [ 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 Tested-by: Steev Klimaszewski Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20211209175342.20386-2-srinivas.kandagatla@linaro.org Signed-off-by: Sasha Levin --- .../boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts index d6b2ba4396f68..2e882a977e2c4 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -523,6 +523,10 @@ dai@1 { reg = <1>; }; + + dai@2 { + reg = <2>; + }; }; &sound { @@ -535,6 +539,7 @@ "SpkrLeft IN", "SPK1 OUT", "SpkrRight IN", "SPK2 OUT", "MM_DL1", "MultiMedia1 Playback", + "MM_DL3", "MultiMedia3 Playback", "MultiMedia2 Capture", "MM_UL2"; mm1-dai-link { @@ -551,6 +556,13 @@ }; }; + mm3-dai-link { + link-name = "MultiMedia3"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + slim-dai-link { link-name = "SLIM Playback"; cpu { @@ -580,6 +592,21 @@ 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 { -- 2.34.1