From patchwork Wed Jan 24 12:18:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 191549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2553:b0:103:945f:af90 with SMTP id p19csp948342dyi; Wed, 24 Jan 2024 04:20:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGp+76WhM3ga5jQ4yZAFKyx8XaRtk8gRx1yYWVZD7/ZLV7t1kbkaDyDREyu7l79r7YbKteX X-Received: by 2002:a17:903:189:b0:1d7:4377:e5ff with SMTP id z9-20020a170903018900b001d74377e5ffmr973893plg.122.1706098830979; Wed, 24 Jan 2024 04:20:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706098830; cv=pass; d=google.com; s=arc-20160816; b=Y3zBspZCc1UIYsE4l7bz0hWYS2UfzdfBsWTijinEuQEL0m5GKVVuFeCw2/VpShEPAi A5LZSw9IXBz1mnrP2Pejd/Qy6P3J7p36WK9jPw5UUie8YI/1xx2k2LWDrrmovRxaRtbr TZYOdgb3hD821KakGj/gVuA2DkpSplFMzXY613Zd9D3iPPP2iO6RMJuathrDFNMjcXc8 uvBLs2Ov42XnQ5kDXrDI6NJrW+L4BxUefzj+EIxR+EP1fhcRATtLwHV1PtHh48/ssnrO rDinfe1RoEtXQiwhDzKfMwemEBh2/24fGlO69/klTDVdggpVdxZymlozSiQEETzISZmE 0A0A== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=jNUo9fmppzhxqCOCweksWJMOKUUrwtvtpbWK33yZ9uo=; fh=abCWo19lIq+7/wXHHhyMx9KXtm0MrU16tMRvEI2nEtc=; b=i4pe3SLltEQyvXsJkxQd2Pg2W4yIgm3WIQeRknGxhA9BT7nlcdfzhc+nciyK2VWAGs R44xwnPN7hKhfXarekUh0Pp31KvmR48D7ymmniVpSABq1bk9s6sFYLPq1wMaKTxB9VY9 nndjp8m8tbdQRKyUkMAr21OcS+0eM2/AntMIgV2p2hC5XE4yxOSelEkPFjoPqVdmz4TU vmClj+TgLf0Qq+CT9uXURNW3Epf9nl4ZYW5uVNtf+IFojGs/4kHLFIt9DoSMkr1OfsUk WmEgOWf53ATvgSUVs4YbNCeVs+GIyEBbp8cSZS/7vaYvbyJCVmwYgUUhpCNmPn7v7BLV lT2g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bfJv5NNq; 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-36956-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36956-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n61-20020a17090a2cc300b00290f643ac56si858795pjd.146.2024.01.24.04.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:20:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36956-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bfJv5NNq; 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-36956-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36956-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A5ADB2890A6 for ; Wed, 24 Jan 2024 12:19:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 800C66312B; Wed, 24 Jan 2024 12:19:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bfJv5NNq" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 33C5360BAC for ; Wed, 24 Jan 2024 12:19:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706098743; cv=none; b=WtcUrz6pNcepKw/uThhj/xmNzRq+3dvb+WsJE5UYrQEHkZCKRzZlPx9QkPZ2dAoQoxYqe3ryahOEdWIjMTEYnKiwTzgCd7iCRVfCvYTV6jNZFdBOYbj6Tf/u+oD9w/U92xKpOIzmzCjFu4+rzFGXpjND7otZ7u5emWD4RtkFr2o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706098743; c=relaxed/simple; bh=Y3qoJUP7/9l5Q7/HB4lgNbSYXukSY3os/nqfvZZ+iPU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bTbXCgGHM9RY84QWJfCj534ZG4MI5XYLMhc7hpGLDuvg9ctO5a6/wVUuM0bv2w7uMkebB9ZMZ9Iw9j7Mib4vOPlL9vj769rUqeRYomeokAA4PA5mNN74A/EgUiEv0gExwDLs2hk6S0Y1C5JtEfLeUlZvUbIoofOsHDOtMcs6kd8= 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=bfJv5NNq; arc=none smtp.client-ip=209.85.218.44 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-f44.google.com with SMTP id a640c23a62f3a-a3122b70439so58191966b.3 for ; Wed, 24 Jan 2024 04:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706098740; x=1706703540; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jNUo9fmppzhxqCOCweksWJMOKUUrwtvtpbWK33yZ9uo=; b=bfJv5NNqB1Fhwo9pCl8ei+TGKTGEbiSLHRTc/sj42H/Qkb1Ie+YHTLLUR/vUr7HMXO TNfCXnQ3i9qemPsak9L6/Ketc89NQGac+jxhBTyvzNSiA+OSBsLtg15chi6phm5GZq5C ARbLF8KDiF7MgS87fs5zM1T7o5um+tFy+HajvsHKdUbDdkfb4VZAHnljybXx1x9GI/We QaYFh8B0RZnxBKjuPO6BtgaLPgADQ6kfX2hJdO3lFcJKeI4X1mtFb3uJNYChmiQ4vjLf gFQZHq66dHKUuXdG8FpAhMB+7yhY+hfovCJauERy1GlGsoifBmJY2nF07ymt5Mlt8Yi6 GZcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706098740; x=1706703540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jNUo9fmppzhxqCOCweksWJMOKUUrwtvtpbWK33yZ9uo=; b=PPlk6ppzhldQ3mVNQafN/VwKffzg/uzpwYbM8mkvZ/cE8DIY8pXVf28OHCELfnsLc/ mOdjW69oGL8C0Lf7Dgo2AtvKo9TnDrJBLzYGZC/bYOWwcFOapi5i7BnUX1gR2ZBPDrgX aIRsJqkS/Bdj4QyF7AYK0cz+RLGzsRH4PmNMP74AcKODnMAOV1VxOJQK5oVtOd1G0DKJ lfZzs7zDoAccFqg91nV2OX/m59gcF9IGM04VxrXUSX+vmZf+qYby4g+0Qe1s0QoN0AGq W8PuFA+YAXpcJnmZ2gEw8u+SPITt0/ZA1J8iOKzR0W5DKzt407WcAUr67/Zyl0M3CtQA OJQw== X-Gm-Message-State: AOJu0YxE4LVQ58IQptWfMwKgTOi2ZtEx1CU/Du28GdJrlBuragkBbgyo 7BbcjYtE7q9GvjEHnDfR0swxIS6wJI06u2Q1edXTTwXOsL6CctIdaxfo5hSNWow= X-Received: by 2002:a17:906:5919:b0:a30:cdf2:376c with SMTP id h25-20020a170906591900b00a30cdf2376cmr734189ejq.55.1706098740259; Wed, 24 Jan 2024 04:19:00 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id k16-20020a170906129000b00a274f3396a0sm15582415ejb.145.2024.01.24.04.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 04:18:59 -0800 (PST) From: Krzysztof Kozlowski To: Andy Gross , 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] arm64: dts: qcom: sm8450-hdk: correct AMIC4 and AMIC5 microphones Date: Wed, 24 Jan 2024 13:18:55 +0100 Message-Id: <20240124121855.162730-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788974287859417444 X-GMAIL-MSGID: 1788974287859417444 Due to lack of documentation the AMIC4 and AMIC5 analogue microphones were never actually working, so the audio routing for them was added hoping it is correct. It turned out not correct - their routing should point to SWR_INPUT0 (so audio mixer TX SMIC MUX0 = SWR_MIC0) and SWR_INPUT1 (so audio mixer TX SMIC MUX0 = SWR_MIC1), respectively. With proper mixer settings and fixed LPASS TX macr codec TX SMIC MUXn widgets, this makes all microphones working on HDK8450. Cc: Fixes: f20cf2bc3f77 ("arm64: dts: qcom: sm8450-hdk: add other analogue microphones") Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts index 03fad2e698af..ce398927beb9 100644 --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts @@ -931,8 +931,8 @@ &sound { "TX DMIC3", "MIC BIAS1", "TX SWR_INPUT0", "ADC1_OUTPUT", "TX SWR_INPUT1", "ADC2_OUTPUT", - "TX SWR_INPUT2", "ADC3_OUTPUT", - "TX SWR_INPUT3", "ADC4_OUTPUT"; + "TX SWR_INPUT0", "ADC3_OUTPUT", + "TX SWR_INPUT1", "ADC4_OUTPUT"; wcd-playback-dai-link { link-name = "WCD Playback";