Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp386373lqp; Tue, 11 Jun 2024 07:26:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVkAPfKEK+uIAHzmkOp/4CWrDVJyHAzcFrKt8G3nWLV5m6vwEJB+OtXA0IsiOIpEyrA70GcB2dXH09M+qzL4Oo9at6jhfT0e900CbcXSQ== X-Google-Smtp-Source: AGHT+IFzjTHZh+naBiP7XmniGsjQyWrxRwiJ/SfxrXOrf8/rZ2cC1IlrHRka6DNtTsDSdv3QPZNJ X-Received: by 2002:a50:d5dd:0:b0:57c:7145:9c71 with SMTP id 4fb4d7f45d1cf-57c7145a015mr5634851a12.22.1718115979113; Tue, 11 Jun 2024 07:26:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718115979; cv=pass; d=google.com; s=arc-20160816; b=TCPH4wXVuTaP7Pqdh0A2menrfb3neoUHzoHGrEToWpeES1wm5Cj6O8cYApH3XoUNTG wk9Ry85joJ2taC4YOT13a6zxldlIaV5mt1ADhOk0J/WIRjWT7cE4S4mOCRM8B6BLyd8H fFyyDDuCuKghuRKkx6zvlOanNNLcjaxcLVPBBoGmSSc/p718/FOMdmeUFWoT6YYjKMqT 8qQn+XmtZ3QUVapuou33cKcy8Xkmtvruo7eKJwQC15MXxeX2rqVCjyTSL/cf+pM+9hy1 VCPyihoeKpB4nRJFhlWBa/RLfnTasv51N8mIChbIS9afoHLoI+0jc6LgP+q09jsW0Xx3 BtUA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fEIGYp+wGh2VjZ0I9sLID7yRBrttreOePBUNcFhAtA0=; fh=XoH3FGoi/dTiDpZe+5jHfVHD9MeoymUKUr5Ho3kzZ/A=; b=FuOEowRUXFe2+WkDOuDgYBYYx6W7kstu/KdkiG1YQazEZIElraMCOKW6FcYyPZSg8n BfiAVZMJWUEqEG/AXgr41xSNBtVlyn6+E6rjvWyMkI3YjJ/QjR0phwkOxJ700M3yIIxH xOQKTdNN1jlOou62L2wH8zeZQpqUWTyceX06qdyPrL8mISOgaYlMBuRqdWzSObyEiKJ+ B+GQwOE19c0d5AYSYsXcu9NjaoSgTlG7QZOiP0uVTggu6FJpL1Ga0AlOKCVCmd89OIDJ Mts/1sJoyUN/KfPX1yrYedngkOk+lVEl0zTBw5sHnpJPcusy3OpWDnYroUg98ahEEVFT OsVw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rmqmor8I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c68faf76asi4122996a12.615.2024.06.11.07.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rmqmor8I; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-210061-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210061-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id CA9811F2383E for ; Tue, 11 Jun 2024 14:26:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 04CB817D899; Tue, 11 Jun 2024 14:26:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Rmqmor8I" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 787B617DE0F for ; Tue, 11 Jun 2024 14:26:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115963; cv=none; b=GPV4g+4Cmrx1lr6D85a1knufj6dnyZ4Ovz71pGX+ygnIolT944uUdT2UoUMhDgzEYAVpPwATq5cuk00Xmnw310i6tSXv8vL6Hh+LjmIFpb1dHiWooWHJnK6Q1kYGeaaagJ6kYhyJEk/7/3OMWFn5QSBju/CHKxGe7cv2ivzCrhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718115963; c=relaxed/simple; bh=jTgcJ6I9f/rRMv8ZQvu6QHiOuSVE1U6c/CD+DvrI+aE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i5Y1J/zsYkW0Ni2iRc9jKwt61ZsAmkAcWifkv2Nd7lhGSIbUbTcHy3F2Qe5VFdsNZHwHqCjBv1nbL+lqq4g6t0c29rq3sQUvZeGZH9sAOUi53IxE9Cw22peEZe50V6/HczJXivfllpJz+1NpNxDnosNH959gppV24qN3/N18Tjo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Rmqmor8I; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a6f09b457fdso286338066b.2 for ; Tue, 11 Jun 2024 07:26:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1718115960; x=1718720760; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fEIGYp+wGh2VjZ0I9sLID7yRBrttreOePBUNcFhAtA0=; b=Rmqmor8I6jAEFEwF831mIAawoeA/3BBfBS16C2z0mD1y0GfHvnXkb4Uw0t4RQ5pqYg LHrdBESI1u/818rvowDNiO5nQvoyrGiqOD0hS2ymM/J0D1hMfXV9XXhVLWdJ0nlUMviw Z0H9BjWRK8Hfu8wwpD6wK9DYPrM46XXH91yChEC5Ocbl5enkeKRvW/4khvRbEyi2UH7d Y4H9Ya6Ou0MhCxnmoKGewM5FdTXYaKOWQQ+oMyl37Sb22hzpswnLXv71gLvBX65wo7EI N27jHiE7DgIGhHsRaFnDEX392AFrPJw7CoWVZtrlLW3sNGA7lGJmXqBQ419pxJYdbB7W xa6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718115960; x=1718720760; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fEIGYp+wGh2VjZ0I9sLID7yRBrttreOePBUNcFhAtA0=; b=dlgcHswjj9jkBg4ohI4Ob+mo0Zyb7A6q0+jjGo5DYUFQ7oTMm+Tlq1XRV8opx0hmbc JYIGfeOI8EmbLryeY/Rrm9mPIYwdH0qN9IhCqHXSCAwtohjL1PRDSUq6UvambpbkoajU Z3jNhni3pD7MZVAC3ibDzyG2Nl/bWCtYb2TTlu9oY48P56sH/uNgBiOE8aMO7vSrCmha MX/yvOvrusb724I4pLxlbvig4eGAv+JGnLDAi3uv9xMC6kMyQt2ec3TQmRs33uzIHHph AYmnKRNQPh7Duyp9yGPVzUWKuN73Lmn/6F8K82KoLuNQzcTawUOKLf8uHu3d6nEhbOiq rILw== X-Forwarded-Encrypted: i=1; AJvYcCXItOwPdJ/H7cZz7Ixkfii95v96pQiWHqEPU2aANCqVoGT400FG0KtY02ap06kkeYHLmuqv7Lmlv7Dp+tLGWSkEdWO5hWXxSx9XvApB X-Gm-Message-State: AOJu0YwpMLzU2CdZIMDPFoNBGtRJdAe1ickV3D6l5oXMZTN9qkEujNr4 yjA43cAGSC2IY2kzSCl/JLHbKdI0BvxJuFKThvfTIwacdIJ3N7KWLngkWkVr5B8= X-Received: by 2002:a17:906:68c5:b0:a6f:2d5c:5c8d with SMTP id a640c23a62f3a-a6f2d5c6342mr272886466b.30.1718115959823; Tue, 11 Jun 2024 07:25:59 -0700 (PDT) Received: from krzk-bin.. ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6ef83ac0c4sm518070666b.74.2024.06.11.07.25.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:25:59 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , stable@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: x1e80100-crd: fix DAI used for headset recording Date: Tue, 11 Jun 2024 16:25:55 +0200 Message-ID: <20240611142555.994675-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240611142555.994675-1-krzysztof.kozlowski@linaro.org> References: <20240611142555.994675-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The SWR2 Soundwire instance has 1 output and 4 input ports, so for the headset recording (via the WCD9385 codec and the TX macro codec) we want to use the next DAI, not the first one (see qcom,dout-ports and qcom,din-ports for soundwire@6d30000 node). Original code was copied from other devices like SM8450 and SM8550. On the SM8450 this was a correct setting, however on the SM8550 this worked probably only by coincidence, because the DTS defined no output ports on SWR2 Soundwire. This is a necessary fix for proper audio recording via analogue microphones connected to WCD9385 codec (e.g. headset AMIC2). Fixes: 4442a67eedc1 ("arm64: dts: qcom: x1e80100-crd: add sound card") Cc: Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 12a4c4637baf..05e62d9f1cbc 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -102,7 +102,7 @@ cpu { }; codec { - sound-dai = <&wcd938x 1>, <&swr2 0>, <&lpass_txmacro 0>; + sound-dai = <&wcd938x 1>, <&swr2 1>, <&lpass_txmacro 0>; }; platform { -- 2.43.0