From patchwork Thu Dec 5 08:40:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13894846 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 2C72E1D433C for ; Thu, 5 Dec 2024 08:40:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733388030; cv=none; b=hzIhoe1vWMRdJGaKo4v6VpgLlps5K4/0vr89SepkLV/CGRyOJXSqTYeM5ExtA3c7OIaBNtmMvCwkK9WQeYyf4yp5/aJSmU5BvUr9UW96RX+l2XFcy3l7JHZaRtNJ6PFkDIGsLDJMeHwEpvN14s3HQMT3ZlPBfFVcnogXEtv0T2c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733388030; c=relaxed/simple; bh=xjXR+zk+M/gbXTMjCLEiAICwQMABoaPIj5xLhMiEpGM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YoBAFjI9/g2PMn1KLKuFZPuBAbNRER1CRQBhFTJXqN+CBKPe1BfVByxRde3AVSZpFd6j6BlFHi5lFJF1hqFTQL2SR5CK4mCPXvNpPVlyM7fqKtZ5XBew59Hc+tNuOUIb1g/D9q/usTV9UwKjI4k68Ev8d1by8Ul23EXmRgnvO3M= 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=XLvQM6vG; arc=none smtp.client-ip=209.85.128.50 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="XLvQM6vG" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-434941aac88so185765e9.3 for ; Thu, 05 Dec 2024 00:40:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733388027; x=1733992827; 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=DH+J2UQA3VOyjrU/P16pyU+YqVrTV2zl0tHrALJVR1E=; b=XLvQM6vGdICz/PvnTSce5Qqrors0BfOzfkuVAwKLamHvQ6+JWBS4ICkJpob+HeU327 VQ9BcAA7gg9dhqkima6HTs+A3HrCbRu2ul4gJdW7u3kqMbwTJq3IDsl9NnkJWKGdKpIy ZgTHPTfyq0oRPn/Jo4puZ6P28Z0S3gLmzJWejK5k8g+ROP75oqn6n9je1cq9PgeBoKW7 5CQ6NSWLheJdMTDV8mTXejJ67sbEfX0CqERc+6AaczTfpjfLW9XyN2rfYkWiHcGL3XP2 9WKEoB36/4QqhcjHb7Sp6icO1H86lE1/1vzdzQo6j888k8lOPZfIOf1U3MmFClH4B7ar jxQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733388027; x=1733992827; 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=DH+J2UQA3VOyjrU/P16pyU+YqVrTV2zl0tHrALJVR1E=; b=AIAMr6yrnARYFX9fpfeZyJcEVHkG/yAc8xdIsj3vkpXzpVXoYmSfKBf8jiQxs0aiUE Wk028+wH31tMmYiIiVgwl1TDWXbBy4Zf6MpY1Sd7ipWwFFO1vpFQ5NDW67rzM1F20cUF vSfaZb8nDeUgsV8U/BUyTAk3uQ3UHqtYbtkPTcBLgxfglkjUSg0MkeyxeCZAPApEJujd vjZOj6/gKI9x8KHo2yQ6QRYY///g/Bs25BWM2iYtZXRDzNUL2HEqh8isFf7FxDLvFKeA aDgl1iMtKjiLdi/1XfNFUbWIjz+aHcwtSCEvTEUye7Hn8fGD0BVWrMjflUbfBsGrt7bU FJUA== X-Forwarded-Encrypted: i=1; AJvYcCX/LJ+9JC5nokZRB463KOzbiT+vJM2wqi12AspbIYGbtcQ0+dt2DoG44Ur7LJtoZFGZZ4+DYtUZ+0BJcA==@vger.kernel.org X-Gm-Message-State: AOJu0YxwvcKXGgb0FEJ0yuZLXc26LowzzC7LeRhW3OXPN9AjSiD9QXLk q3agnjuAb/hjY81KDmIJ0DMzZNEfJKsrE9rntT0li/LX6H3p7RmWO/skNxrqYvY= X-Gm-Gg: ASbGncvobtU0Qe5PfYAvHadCut2lhkgzbrqvYvwlBSVoNHxAr9ZWHtbAvB7h+oomPx0 zw9dUSSPD0lIimdptQB02YmAMfva39ZLZLtAjWMSV8n9VLuMZwNDxB+D0WJEbLnq8W+iKzj2o4j a5Tng5ryN9YpVJq6ZdXSNydltlCudNUC1XWjBynTVdHr8FtYadtOxl1oZp6AISKC0RdRpJd/Oj7 i6EB0FDOwKJWPLw/Pz6NpXQQ9Cvi5bK6HpwZBSKMF3gusOUmp6F0Xa2biSnhnFq X-Google-Smtp-Source: AGHT+IH5z3TSEXxivD/BkQB0gvwva92E/y7Ua/n01z4CyjTb5eBwOSqHS1jSJiEwgXjn4T4axoxYhw== X-Received: by 2002:a05:600c:3594:b0:434:a1e4:d32d with SMTP id 5b1f17b1804b1-434d08eef18mr32429525e9.0.1733388027475; Thu, 05 Dec 2024 00:40:27 -0800 (PST) Received: from krzk-bin.. ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434da0dab9esm15935965e9.22.2024.12.05.00.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 00:40:26 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Dzmitry Sankouski Subject: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Date: Thu, 5 Dec 2024 09:40:20 +0100 Message-ID: <20241205084021.35610-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Number of DAIs in the codec is not really a binding, because it could grow, e.g. when we implement missing features. Add the define to the driver, which will replace the one in the binding header. Signed-off-by: Krzysztof Kozlowski --- Cc: Dzmitry Sankouski --- sound/soc/codecs/wcd9335.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index a2521e16c099..d2604da619f6 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -159,6 +159,8 @@ {"AMIC MUX" #id, "ADC5", "ADC5"}, \ {"AMIC MUX" #id, "ADC6", "ADC6"} +#define NUM_CODEC_DAIS (AIF4_PB + 1) + enum { WCD9335_RX0 = 0, WCD9335_RX1, From patchwork Thu Dec 5 08:40:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13894847 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 B6B0A11187 for ; Thu, 5 Dec 2024 08:40:30 +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=1733388033; cv=none; b=ucBeVXqTiPJJ4tyttG+mUPfE6Sfq1d7u4RbZXK37Bv0IJz4OwpEcpUr3VhfLzZBv14fzSEYo9HxK65QL7AAPyOW/MwLQ08b34qivq/0afjA6h18Gmgo+gtWlXBAiZ1+9E1D3YaT8lq0+MsP/C5nP0iqdRKeWDo8Ezj5+P/hpuUQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733388033; c=relaxed/simple; bh=VXAHZgsFwE3gVMNHVJ2Z6U10+Ur4Mnaa+RQ8u3Z94VM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YH6EY5WdmmGKlvcd/WL04XXjxHLJVFx5qXjnNtmfe/zbL94kyMQNKnbpWq26haC7colbY+d2cW5Qxe041AQPp/VqCCxAD2h/3ckhMWbATfAueXA4HII1PQY05co4hxCW4yYhSoRTD30AmJOy7lWi88Z7NtG7j28EwhE7b4qVGvg= 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=qoSi1QZ4; 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="qoSi1QZ4" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-43499332f7aso904925e9.1 for ; Thu, 05 Dec 2024 00:40:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733388029; x=1733992829; 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=+OmUztXtNWohIcewPdYnom5QGJ43Ux3+mIBMeP3r1+s=; b=qoSi1QZ4WxgekJpcOJsJ6ILzm0WtBdDpLJqcDA4ZAPMN50JLwdtYNz0mR7fSnwkEwk ibfd7aG+qh3MOrmI2TiaeKSTKpmOV7KBVt7acaUSno3IV2Q+NT2qqbVs9mxMPFv98UAd 3nnUXSnEBzvGawHet/SgEipOgGbbenVWwmOzAd48dTR2MP5TolLucl4KoXmmIMgwsqOV QU+LtzKbW68CQwqrpfQBF3+cQ8zD3dwfJcI3J5RQmg0wnumViv67FcHnl+C32Oo9pkqY Rri7gRWAZJAoLUB6sNyyYURpdh/XPAEzSKUeLxCVUj8RXNfcb2PZrystVTKE02HwK6UY 46BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733388029; x=1733992829; 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=+OmUztXtNWohIcewPdYnom5QGJ43Ux3+mIBMeP3r1+s=; b=AW+njrP281dd2kFrQd88heIB9qjCxkeZsTHEApAp3mN3avup41JyhYKPbUxyFqMeit 0aykUAQiD3oBBfp0/jNa0IRWG/oCza7rVFNVn7P/A73K4A6NZKE8f2/JysgMoKAR21vB w+sukT8w7sPt0YbvgT283V2h4GxXv9DAESlU1+FnqG+sQBGL0rDWiN4ZUXyLnD08pvhx nb6lqVvDoaF8WWXQTsNFjhfOTO8e7WmAj9mSnfoazflnd7sd3QTGtSKeYWyWPYWRrXXw gcz8qUUAFRtSY1LXTp4/f4Xb9wyGJoeVh4TsiaUysMt7hPxAVQ059FlfBm/VRCL5KgP8 PkFw== X-Forwarded-Encrypted: i=1; AJvYcCVd9MaDn57pxfkFtZj+skU3LQ7PcgR/y00MObLUZLg8YaspMzewZx0zQVpWXuX6hBAh9d0xKyoa83f50w==@vger.kernel.org X-Gm-Message-State: AOJu0Yz+xfDG+Sv2YTmrT7g+DaFMayqdsaBRcB8wsNoyIUMjhjnmL8/V Z3IG0Dq7LD0kA+YM/Vjn9PETg9l0WsseB5YDaD+FZTQhN/ympWd2KlCsuHZDnDv9cFVUiwxa+Bo ILDU= X-Gm-Gg: ASbGnctfU0f1lRKDbDzrOeHewa/GDrecKgJ1CeErx2ebGV7uoVHvdS/OMljnEw1gCqj 5BmowaAKR5Eip8rf6T02qkHM50c70Z2sbWoBU7BAqMVgxTBm9bGfZkZg26nPXbSSVEZXSZtCiZ/ 0CKLHOApBrpTkM2xDCtRRaCbtuHn4/owuJGKuH68kxRXRzf9RF6psf1TPTW8oeeR859PlIGAx5K r6Ll9hTXQcycIynfPLWliG9FKd8KQ27xjL516BtrjXme9mFXLIIpQMXwJEcoLE8 X-Google-Smtp-Source: AGHT+IGSkYgvAgwhu7WSyQqH3Y+yt4UQ2jGt9iuwru2727ErGBAZvYMWIUUnfNAP+kzH0fju4MoCbQ== X-Received: by 2002:a05:600c:a07:b0:42c:aeee:80a with SMTP id 5b1f17b1804b1-434d11c7b9dmr31086225e9.7.1733388029090; Thu, 05 Dec 2024 00:40:29 -0800 (PST) Received: from krzk-bin.. ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434da0dab9esm15935965e9.22.2024.12.05.00.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2024 00:40:28 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Dzmitry Sankouski Subject: [PATCH 2/2] ASoC: codecs: wcd9335: Drop number of DAIs from the header Date: Thu, 5 Dec 2024 09:40:21 +0100 Message-ID: <20241205084021.35610-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241205084021.35610-1-krzysztof.kozlowski@linaro.org> References: <20241205084021.35610-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Number of DAIs in the codec is not really a binding constant, because it could grow, e.g. when we implement missing features. Signed-off-by: Krzysztof Kozlowski --- Cc: Dzmitry Sankouski --- include/dt-bindings/sound/qcom,wcd9335.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/dt-bindings/sound/qcom,wcd9335.h b/include/dt-bindings/sound/qcom,wcd9335.h index f5e9f1db091e..4fc68aeb9e04 100644 --- a/include/dt-bindings/sound/qcom,wcd9335.h +++ b/include/dt-bindings/sound/qcom,wcd9335.h @@ -10,6 +10,5 @@ #define AIF3_PB 4 #define AIF3_CAP 5 #define AIF4_PB 6 -#define NUM_CODEC_DAIS 7 #endif