From patchwork Mon Dec 9 09:44:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899152 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 6B913215F65 for ; Mon, 9 Dec 2024 09:44:54 +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=1733737497; cv=none; b=tOxgY5Vpz2TKwslTPZ6bV9Nz1j6ASad4lcdqB5aXMZG5X8ZajfP6uBY8t3dEGgZh8IHvPy90ox/BnTSY2bQ0HcyNzX/Crwk/GPGvv/3E9PbFKVPqKJJuBWkiFU7cX4Qja96Qk+VnIt7F/X8mnRUuy+whTpvKGORsyWOCc9+Cs7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733737497; c=relaxed/simple; bh=fjb9i990GoQpb8o7S4Y3ba1ibdKhHVEzq60SLMZRjGs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=S8Y79RnMjJ/5SLIEwDU29er2yaXkScnJb3AIa23J2l5UZ+h4l2GeS2VebE7aq2tHiY3RdFEpd8/HKU1+wTqmFkOqAar+xx3a17TvOW7qb3fMMN1JGV1t3apk9qHbEKgwm8xH0p5o28AD/UEiZVetnpRUaFwe1ZnZNZSSIqjVhxY= 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=JvwHl3ez; 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="JvwHl3ez" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-434e9e22a99so730395e9.1 for ; Mon, 09 Dec 2024 01:44:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733737493; x=1734342293; 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=l1sUV7roJsGmgZfOhLBngscTUOda+ttUP/edvvhP//E=; b=JvwHl3ezHSEJaYCiyOrpmTuh9tSGsuLKg+QoRQEGtLp7pSd1qQtfKuP/pyu5GV7QIs fHIJ7NYZRwth/XPfGa6W6/O/diVe25HcsyvupgkBS0oupeIbQuotxlNBN50xAZb6xTkM c6h8syR8eUxmlzF9qt4Y+qu65Bw6UGKbN2WMAxQGRlJ6293fcbg465HZtxnFOYBxlQfG fJSIVoVGqZ9ySCXDnrnJefDGM7pPWtsyWon+eel7Ck/2lMKQN+z2JqDs41/10w7qLnpQ koJ6njV+VcC9osEbTvuspWlP6fDyYvmnfpi0zGSVv1rSR88EPVSMc5rHlBMFqc3tZeCC gfHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733737493; x=1734342293; 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=l1sUV7roJsGmgZfOhLBngscTUOda+ttUP/edvvhP//E=; b=UUp4gWQEFmiNx8Ng5k0LTGRUXwaujCx6hj2G2ow7xE5YaSeCyiyAQA3l6XJq/UUyfr PjMe2QNftXRqiIg5OjJJ+Jq9y/vs0fjlVoeTobG0TD/bG7bBP8eJUIGeGtIU1fngOJWY uTmNeTwGsaLwYkm5FxYOYWA4EKX2jYFcYnBCNsASY1UWHfh06X8fXU3AZBHvF6mTFS11 zYO//PfL40d82AwifVztE4BwAL+CB9PBJCC7Q8tSkZBZRagTpyl6SzkZYe4W2bSx5fTB NZvVAtIJPjT0Io8nxnYSS3VrHgNfPGg3LM9+7fb0kQmP+DmybtdVfnnyBHBX0mS3T++7 qUmg== X-Forwarded-Encrypted: i=1; AJvYcCWmZz3vjOwRxxoAxHAALfAMix7TYW+dHxzSsvIYDU/zqRyNi4eFGhHL/41qr5+SZypPTm8ZRS1eW95h0A==@vger.kernel.org X-Gm-Message-State: AOJu0YwZpHJhinZubt9j/wF210i6FDXVq46bbxFhudIbrNcTlttKBsN5 oSquB7zpHSPqieLZb1tlDtoE5jnwrLqjLOGEf7rXo41PmngD5VlgUsfU1nqHcPI= X-Gm-Gg: ASbGncvd21OIf//U9IP1PKuFAMrYdOgXyNTgHzYebi7TCAqWTD8tfvZbky4Kvzs149F bL3JbkRMeNFUgMQ/qJbVNUlt19yQsRfL2+9TUNR1FkL6eD6y1fSKyt+ZNmxlhHKBiQjS+oKghUb fFaVsd6fI6a+a+cm4q6UtQIWcVvkc+S+i4d5u75ZwXHVYbE0LSWP9WPMPwBOwk8EqhZB8zrW+sT KrNhN7PhI9q/GfIhoTNQPm+7ShDNT5vvPM0mlON//8LTqWLObHwZ9XzootxOOGD X-Google-Smtp-Source: AGHT+IFfnWuaEEFQ2SCpKa35Hxvbxx4TbEd7vRGr3JaRGDSa3d6Pbtwvg8lyAMELgezOfxR6fP5yTw== X-Received: by 2002:a05:600c:1c0e:b0:42c:aeee:80a with SMTP id 5b1f17b1804b1-434dded5411mr38198335e9.7.1733737492784; Mon, 09 Dec 2024 01:44:52 -0800 (PST) Received: from krzk-bin.. ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434e962028bsm80503345e9.38.2024.12.09.01.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 01:44:52 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Dzmitry Sankouski Subject: [PATCH v2 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Date: Mon, 9 Dec 2024 10:44:41 +0100 Message-ID: <20241209094442.38900-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 Changes in v2: 1. Fix 'error: "NUM_CODEC_DAIS" redefined' error (Mark). --- 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..7cef43bb2a88 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 7 + enum { WCD9335_RX0 = 0, WCD9335_RX1, From patchwork Mon Dec 9 09:44:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13899153 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.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 EDB29216387 for ; Mon, 9 Dec 2024 09:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733737497; cv=none; b=SqHlAjJbqg6guUlf/y+VyzuxhjOahV4P6RNOxtzij7BAajSPdoZkpLsBDZIDALj8CbcPPGmXE9pwGO6X5sYvDy8keM0mdLMTG4hgw3ddQPahom8700X+UeCyuVIL2rBAj8gzyk7o0Ib1UZSxpy/RLGI5ohEAyJVFz+3WLZjGF7w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733737497; c=relaxed/simple; bh=ZMBz5ZZR5lOt9yuXE50yqmicdPRxRt8rxwXfEc+KwWQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=raOxbHVMaZ0YjS2IBEWjl//5bvv5QhSuLf/cGjTvCtCddjcOjfx/kHyEmgzbnAMtI/7mBBPrIjuJlcmZHO8VJhu+4xiKTdyzsywgk0ntYpiCDofGEUGjn5JBRcImPmEYVAkHJXeGdJU1X9F1r4l7u15kaL+OAkN5ms50UgrZeT0= 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=tWnDqDmJ; arc=none smtp.client-ip=209.85.128.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tWnDqDmJ" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-434e8ed6389so836395e9.0 for ; Mon, 09 Dec 2024 01:44:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733737494; x=1734342294; 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=Cs9vbivkO216Dc8HYQ/Zd8gvHi0Ause9by/A/vR6Gl0=; b=tWnDqDmJjGJ1Xy5Oug080yEh178hFhpv/hvnskPD2l9d7g4c4ASsfUqhY1i44k98k2 skVN77GebYJ7yjOxDCVlP+SZ390NNtoV25Rps9orJVL+1jnXrfB/X/Fp2Q89JPueQr+8 Zl+6FFLzRAREDRThFW61VMmyrPYMCExLxJjULrmrXFvnyEA0GeHBEL73TZcM6Tw9GzXs XjlkfUe2ecTPhCWqppfkZPEsAWmI9PwVsaCIzSdvXTCBqYCDgYNzMKNUTsqCQiWyLEaT mV9DY42CDRyQbZmJ/qSd5MB7rvVczQIdPB8Lot16NWAAKs65J61+lVpwrchseE4BW3ca cB/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733737494; x=1734342294; 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=Cs9vbivkO216Dc8HYQ/Zd8gvHi0Ause9by/A/vR6Gl0=; b=blXIk5ucsrHC5myv5Xd83XkMEkc7ihAy8u2kdzNlWRxz/btX7jQWGyYXPiTNh/k0// uJb5b2WftuvNrJLgmH3aawnxOdE0RjRauIMdw8kgQ/un2FABiXV7hkBw9wPT/unlisgH y0PMxwNBt/KNQZMcRiMdXJ2QN4Ef1QGsExqpqWFOkwF589u/NRx0v1bqmokRWuY5VXAx jM4wjfgxOq1i7cu4mhw9TrXPb0FyC82OBw0IObT3oATLmXvHajdG7xrmD6UF6KWz2OdP G04x/TSj+6fS0R2PEL8moqKmnZa1tY99aDw70K5Zkge5lUZg99bd4B2gRVl/f/zw17B3 0dIg== X-Forwarded-Encrypted: i=1; AJvYcCWTcoaZFMdJRNT6v8YokjOEGeH2FYD91bHqBWvNLWYwYe8M0xsoguw2/nfgzHDJ5oG9FSfBjLF5ItPYrg==@vger.kernel.org X-Gm-Message-State: AOJu0YyEz+AceWFltLMJxJkySldvLR+V699i6bT4ZH9wzDjsNIpbT0xl uWPhxIYpBGbN1lfZAtPBfsANn8qVR+VAnYV5FOnkLn7u1YE5BXQdKBEiTEgGzgs= X-Gm-Gg: ASbGnculfbYndouqaoh2RtEh1FuvyTSxgCBrc/vZqA02cGhiLRyLSRiA9QyX6DSFAmM tUWjPhAHmTR/t6527rr+dFpXoWBYda2c03ARGg1aBlJGn4uZA9U3q36lMXmgAvsCXvcjO1D5yZV iddUAM/v2Rme9kE3hr5xXnTAzxQFFID4bQ+30VXU33m/xY8Kd68KiE9Cfrr7zSmm7EMmLJItIUk iQ39YLzHPjRf02/BI7DsTzr54BF5jaTMvEfXDYnL+7AnBTQZ7C31xa/tG4JtU3g X-Google-Smtp-Source: AGHT+IHecMb6+js452qiT9G+qHvWh9vpINrVmf9jmZNLo9NLCiKBHCX+t3zASHR8lIlaD2w5TTHXtA== X-Received: by 2002:a05:600c:138c:b0:434:941c:9df2 with SMTP id 5b1f17b1804b1-434dded98a6mr37786385e9.8.1733737494165; Mon, 09 Dec 2024 01:44:54 -0800 (PST) Received: from krzk-bin.. ([178.197.223.165]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434e962028bsm80503345e9.38.2024.12.09.01.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 01:44:53 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Dzmitry Sankouski Subject: [PATCH v2 2/2] ASoC: dt-bindings: qcom,wcd9335: Drop number of DAIs from the header Date: Mon, 9 Dec 2024 10:44:42 +0100 Message-ID: <20241209094442.38900-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241209094442.38900-1-krzysztof.kozlowski@linaro.org> References: <20241209094442.38900-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 Changes in v2: 1. Use "dt-bindings" in the subject prefix. --- 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