Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3978555pxb; Tue, 25 Jan 2022 00:30:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRY4zLyPWwTBLCK+hED3gL3pK+YUz0B7xhsFS9Il6KC9MjLiYhKaPdnkrcSk4qXzD6FZb7 X-Received: by 2002:a63:6c89:: with SMTP id h131mr14528191pgc.106.1643099434985; Tue, 25 Jan 2022 00:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099434; cv=none; d=google.com; s=arc-20160816; b=SSK0GR1OHN+q6tee46ywDfZpiXa1F6rn/S2akeVI6I1gsUXZNGnU7PhZ1xg0R1e0ao 2Os28+6oA0qh7jUUgSHYyhkPvGJdMCDowvGOY5DqsKPXqgT6ZRVk4q6W/CTI72bFqsL7 SO1aZLMWD8+0zR0BPGjWUaO+/ECcOGF3IT3hcgAbcJ75e9uNKgtnGY+KSRD/ZaqI/qQl ge7BHzGz9D1RJY8bpVS8fWq1tXu8iRNxrI+GxQO3pFs8fMFas0JQE2D0rmM0vdKT2jej 8aWCtDS8td2tWwGeLfHftUwbCayKnjKoPCJ2JKtDCdH0egALJcEeT3uJq62XCXUTJaky V7vg== 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=jpvS40+Xexbj5EhK0mTxIVvZZSQNywACiGCgnt27XQo=; b=UWLCANJJ3dOtt1TlXZ1wbKQCtSzz2JA0nTI1Fo87YW1P5pCvWLP6O6JNGnhJaap2x2 Ol+U3xFPSE2LG9Qd3oOpbGH//yfaSlGMOGwU6cw4F/BTHHsLSvk7MWL0E2zQ/gr105rh AROdzvPBXGPZghIuUoh9oKR/M6sdhNZ2MQK3otiWwuElfkdSHrGGq3m/vd1XSGMZCB4p EwJTDGGVFxOfMlMPZbzNY03tHPJrLd8oVGYar9jnvBtV5TYaMm7rX66UQ/QPBA3GA1Xc MHEz6tnhSUteTcwpBualnUheFteczrndRcG97l29nIT/Tb/5BMabSVQJgXQJBhCN5MwM qtqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yawm2nGO; 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 a184si15235715pfb.57.2022.01.25.00.30.23; Tue, 25 Jan 2022 00:30:34 -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=yawm2nGO; 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 S3411196AbiAYCnC (ORCPT + 99 others); Mon, 24 Jan 2022 21:43:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1386940AbiAXUgK (ORCPT ); Mon, 24 Jan 2022 15:36:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00339C038AE5; Mon, 24 Jan 2022 11:49:19 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 90EF7B81188; Mon, 24 Jan 2022 19:49:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B3381C340E5; Mon, 24 Jan 2022 19:49:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643053757; bh=7YyOM7VdATn/fg3G6KlcXEwxLFCFISDdhKejS+MmA9A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yawm2nGOFkXKYy/9nAAd3bU+ILtMEI4lTDO6+hjONWijnfFMHOFyggdx59G+Dyppb Ft7eT/UUtJCGJMZoDdQQIUrfaQNwbimXudbnbTd9FqR7a5kf9E3VAqLiboYTbiTYtZ 80JyVlnZ9yCA+KK2t0G6WbDBsGCPQLFDqmxJOqRg= 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.10 167/563] arm64: dts: qcom: c630: Fix soundcard setup Date: Mon, 24 Jan 2022 19:38:52 +0100 Message-Id: <20220124184030.178934142@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184024.407936072@linuxfoundation.org> References: <20220124184024.407936072@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 ad6561843ba28..e080c317b5e3d 100644 --- a/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts +++ b/arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts @@ -365,6 +365,10 @@ dai@1 { reg = <1>; }; + + dai@2 { + reg = <2>; + }; }; &sound { @@ -377,6 +381,7 @@ "SpkrLeft IN", "SPK1 OUT", "SpkrRight IN", "SPK2 OUT", "MM_DL1", "MultiMedia1 Playback", + "MM_DL3", "MultiMedia3 Playback", "MultiMedia2 Capture", "MM_UL2"; mm1-dai-link { @@ -393,6 +398,13 @@ }; }; + mm3-dai-link { + link-name = "MultiMedia3"; + cpu { + sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + slim-dai-link { link-name = "SLIM Playback"; cpu { @@ -422,6 +434,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