From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 546B6196D8E for ; Thu, 27 Jun 2024 14:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719499486; cv=none; b=KWdaPsj7t8WjUXEX+sDGeCcvQO6b/EIg0WnTYhKfu1vu3Eu6WF9khThR4wDZLm/e0IQhTfWgRaGHGwegNUTO7FVTOXwEpuF5IF00Twycask4Im3s5ueh7VMDjTXHA7ZSknMwUvbHsND2CvmnyQJk/z7rJR/UZ+IHFU+79JzApG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719499486; c=relaxed/simple; bh=TUm0RaYqomUaGHfxczMiGxcHyL3VSRfdBI0wiwOJXjs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=cDALmCNnKCpPn+aMtHRChHEdNPUKj4U4Jx03yYXLoTIGYsg/ZvaUitGHqPy2Yrbz1XRFwmZZZ67WmXWduWaW/UfSuQhH0gWbgKZ3WXz87wHt7RNnDkjl/ZCjFtOPKdbZwAqw83yHnaphBqc39Qfe+lnGDjuQxIqfSu4L8aKVZVw= 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=bq7+O61t; arc=none smtp.client-ip=209.85.128.52 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="bq7+O61t" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-424f2b73629so21596765e9.2 for ; Thu, 27 Jun 2024 07:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719499482; x=1720104282; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=AmLpAWmlJIdMq/VoHVTuZd9JbEM9j0iTEvmVKd3mZ4w=; b=bq7+O61tOaBeln+H44V0RXUNPKUCaZV2HS/jU32awrS2YTpPYXbTNiqVufRo6/hC2K nez/FkAvyMeE0if5sX4D/YHyqNzzXJ5cWhbh6JtxnJUOdArUam9x9WrwkmHbvF1EyI8F 6HtpwOi8CI8Js+uaP8d+SmVtzoQb6b9eiLXPnAz7ZYVtcmSgC/nJblC2F2//Z+AGjazS r0tD6aExt84FxgpiiEAr0EpcoGXwC9u4d3XiZqmqbD6CP/DZ81tFy99HLfcMdORC5ymN Fy17BEmjNGqsrQq1tY5QvpwtvICe9PuGMwtLRHQL4jRnqlDc5bxvleNmQJa6LF/ybiRk 1EPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719499482; x=1720104282; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AmLpAWmlJIdMq/VoHVTuZd9JbEM9j0iTEvmVKd3mZ4w=; b=VzPGL6hKO10FDjB6AoAijBwKOcViUUXwB8i8Dk8MMEshvMy7mdr5MRZ9Z3TTgxf7v6 nwdvynfAfbuCsT2vaqKiftQhFAQIB7k26CiGbxPgKeSpezM3to+0gQ/mgU/MWXXrVFKb FsDfP4Ry6/DfD2vVAW1ngKcqccNsY7Gd9TIRJDLvXFf6iqRKFR9Y42MhujQOePFufah1 ZGBwiWuKAy3rViM41CZKD87fqH4k2QMJDdGD3+9ctiBm0iCrTYOt9fZQzoQBR05w7fX7 9h4YOJ1DskvYozeW0uB5lzZXNiAssvttm+EPJP1cldwblZ1khaqQRepWwZl+VlKN7qcI 7fsg== X-Forwarded-Encrypted: i=1; AJvYcCWvyZPbjpHKF2K82YKSi7h89lhPu3aTsMOkRCT/cp3MfyFlPat5AkZsYvKfjUpFypEhM7dsdCTdXXj1U2NJxCzVb0O0gjJsdoVS+A== X-Gm-Message-State: AOJu0YxRA5rNFZtwX08VoQ2rQSTwJvbwPNR85wkdsYRrwwzRRbsqw55W e6S72Y2JLO1NkCBvgAni7Ok4CF/AByrl5FqJYxw+kzktZXUUy8fwlU0Bp+6fKdc= X-Google-Smtp-Source: AGHT+IGovERBfpldUSDoy9yj6OyIfZTUPkLDC3sHsnVcAxkg0Vg/RCJP9nojWITLyBFMPwHPCMaAEA== X-Received: by 2002:a05:600c:460a:b0:425:6976:f5d6 with SMTP id 5b1f17b1804b1-4256976f94bmr391785e9.33.1719499482639; Thu, 27 Jun 2024 07:44:42 -0700 (PDT) Received: from [192.168.1.195] ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42564b7b7c1sm31254075e9.23.2024.06.27.07.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jun 2024 07:44:41 -0700 (PDT) From: srinivas.kandagatla@linaro.org Subject: [PATCH v2 0/6] ASoC: codecs: wsa88xx: add support for static port mapping. Date: Thu, 27 Jun 2024 15:44:37 +0100 Message-Id: <20240626-port-map-v2-0-6cc1c5608cdd@linaro.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANV6fWYC/22Nyw6CMBBFf4XM2jG1RURX/odh0ccATaTFKSEYw r9bWLs895GzQiL2lOBRrMA0++RjyCBPBdheh47Qu8wghSxFJSscI0846BGpvQqrlChdqSHPjU6 EhnWw/X742DhgGxkDLdPej0ytXw7Vq8nc+zRF/h7m+bKnfyTzBQUaV9/rm5NGKfl8+6A5niN30 Gzb9gNqRURKwQAAAA== To: Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, Neil Armstrong , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Srinivas Kandagatla , Manikantan R X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1843; i=srinivas.kandagatla@linaro.org; h=from:subject:message-id; bh=TUm0RaYqomUaGHfxczMiGxcHyL3VSRfdBI0wiwOJXjs=; b=owEBbQGS/pANAwAKAXqh/VnHNFU3AcsmYgBmfXrYjFzYED0KcuZ2JaqXktrm4rVyEowwWxnc7 ZMDozvIgn2JATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZn162AAKCRB6of1ZxzRV N5JDB/43Bh6z6Gxcpdr+eCHQGR8F/SIcmOhRRJob22JEBqE9fxst1E4BmGL2OWc9anSJ0JiQvkG wDIlBGjV1kd2ClZwCkihYlOGZqDyxLdstSPAqpthkcIiPFejtitraxcVTB6sKMsdHRduPfak3qS qlE78YAwYpcjAq3tZyO3XkgrsuaJU3CQlZjaxe5lky/jxbnpINsDWMv8ZgyVFZziwHTOw6IQlWP blVTM+0Ha5AyruwnFkVODH/aJ0JgMS5n/LcsSVU7qW8mmlC/f9K27eXosEO7HhQcNiAN9LdM8/o /VE0NoeMHe8r9saW0v5K8xUmAzVcYdrw/i7xMiAdl4CeMkAJ X-Developer-Key: i=srinivas.kandagatla@linaro.org; a=openpgp; fpr=ED6472765AB36EC43B3EF97AD77E3FC0562560D6 Existing way of allocating soundwire master ports on Qualcommm platforms is dynamic, and in linear order starting from 1 to MAX_PORTS. This will work as long as soundwire device ports are 1:1 mapped linearly. However on most Qcom SoCs like SM8550, SM8650, x1e80100, these are NOT mapped in that order. The result of this is that only one speaker among the pair of speakers is always silent, With recent changes for WSA codec to support codec versions and along with these patches we are able to get all speakers working on these SoCs. Signed-off-by: Srinivas Kandagatla --- Changes in v2: - used dev_dbg instead of dev_info - Link to v1: https://lore.kernel.org/r/20240626-port-map-v1-0-bd8987d2b332@linaro.org --- Manikantan R (1): ASoC: dt-bindings: wsa883x: Document port mapping property Srinivas Kandagatla (5): ASoC: codecs: wsa883x: parse port-mapping information ASoC: dt-bindings: wsa8840: Document port mapping property ASoC: codecs: wsa884x: parse port-mapping information arm64: dts: x1e80100-crd: fix wsa soundwire port mapping arm64: dts: x1e80100-qcp: fix wsa soundwire port mapping Documentation/devicetree/bindings/sound/qcom,wsa883x.yaml | 8 ++++++++ Documentation/devicetree/bindings/sound/qcom,wsa8840.yaml | 8 ++++++++ arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 4 ++++ arch/arm64/boot/dts/qcom/x1e80100-qcp.dts | 2 ++ sound/soc/codecs/wsa883x.c | 8 ++++++++ sound/soc/codecs/wsa884x.c | 8 ++++++++ 6 files changed, 38 insertions(+) --- base-commit: 9935be184a55dd84fc3275094f2df095491f6ea1 change-id: 20240626-port-map-ef50c3304d4a Best regards, -- Srinivas Kandagatla