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: 13894848 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 29EB71D432F for ; Thu, 5 Dec 2024 08:40:28 +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=1733388030; cv=none; b=QECiyHMeZQMfUHVUJ7sK48oOuGAGF49b6I1JE/k0QjYDKEqNwAqLF9OcKs+7TOP5Ce37/UHDBDTKheK1Ds5rU9He8J97w8kuFomBajXi//7jEWB2JJkaKKhxbEQzl07RUoYA3LISpnO3kUumwo+xKhgq0Kroj8XTMauY9K4m+KI= 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.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="XLvQM6vG" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4349ec4708bso187825e9.2 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=EGpbeJIzjZSsrQIJUCtuBh/wcrHAa1i8RJe9gElfg0StlawwyncFe9mupS0enjtv/5 jwHv34HnqIoUBoBJ4ZXIEB07UsnPhuLEM2Z7RNYhsj+vgrkULZsfz0fnzHibWgLc01WM PJhFkUatYII4SvRIzBGYLyVNlXlTEhYXzG5feke5eXe1DH61wBj3CDtFAkZ5ObaVYIJW cbSLMmqpv4hQBPPQGaTyYjawJx2DXN8N4tCFCpgxm9iMusYBsW3mMCmx0iPeE1EJ0d9I NW3GiXBcT9BtbCFYyXJuzRCvbaxdGjukL6wKu0bpYSnkjOqG1MKVa+xaPSNVjltOscCr OSIQ== X-Forwarded-Encrypted: i=1; AJvYcCXF5NpCXI4ijovITbBM/wyTzJQMybvdaH6HHAIPqa+s7QDCEQs3Eauk6Kl1FjDZKUe+VWRvpuzTPHV98nGU@vger.kernel.org X-Gm-Message-State: AOJu0YxZVDAR6msar9noyVY7sodtzr53/vMBUxnKzlTrdYrYuxNGTMZc JUByKm6vlW9kGtSk0eI35Ozc7Dro1xs5J4vxdS4w5GxS3NmN6Kv9Rfg4WCKrWxb4FMYAo1z95rM zdYU= X-Gm-Gg: ASbGnctqpnDM2dekCnVlmIOA5vm5uUbe0iy62XqITYCkLQoCnvqzdFdBMyYRRmRV+GR Y5lDd+HLrPgHOpJ4rZmOhwVHKuhk8Xijr4Zvkhrms8HOmJAciUW9x2eK/GOIzivHTa09jca0Kkd DAe3DbqeRWyhEB28CpMxKuK021vweQ0MIFROrQdSC8gVvxXpQ6oY+pjJcR/ACnGcc2upStzSzOo fkA+n/TtI2Zp+YVI8eo0Ysaqm1pIUG3pABfX+Z7KpYUOfjQ4arClM717kdCuLRz 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-arm-msm@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: 13894849 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 BC04E1D434D for ; Thu, 5 Dec 2024 08:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733388033; cv=none; b=GKZvjA3x+rDtlYQMkrcTaQ6C5wRaWNlgymlgsy39pepKYDWTIoMp8ELMULVkIZz4wTFJDvL09u60/ckTxXkYRg9XIbJnx82BS3lFtp3MZWPsL+nYYbJbeNRxHBR0y8m4ezt050NRvlo2WwuE0zq54I02pu3Zu3k5o68HooGF1Nw= 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.53 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-f53.google.com with SMTP id 5b1f17b1804b1-4349d25eb5bso916215e9.0 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=tTPowK5S52Vtf5HwEZ3yUk6+3HP4x0cg7GgOSJ+5IZfrUc42w114nV33X+6vA7IG6W uedfJn7exufBEHuQmmsBO486LAVDRFBETS+/5ScfEXf/jr5pxps88shplIMH3mpC8Ci5 d/YnQfZ6q5auh+iTdelGKHLHMJI7XPGwu6TtYKzjK/8bfmHCvC5PZRHhkri8NR70gCtT WLbMfnzfDixOyN18cT0o6J06ax/OjEj6uamaRDzL58NmcXr0Vt9F+Fj3SdMGwsn6hw66 djr898M9U+wTzFOSKgNIHYkTY0o3FdCB0PSmEcvh2JNFKhJHqe7rkqs4tmHu4tzn2Z/J CX0Q== X-Forwarded-Encrypted: i=1; AJvYcCXPoiNsAQ4DQ7TgNcyIJM2jg6hYqTCGxZI9RbbztcXVdW3mQF0d4CqYbgIWSyI9xhBu0Jy+W4zY5Q6/CLX4@vger.kernel.org X-Gm-Message-State: AOJu0Yx2XhhvSpDMLi7NSbfPznM6gf9om4RYbUtQL1oRGeN2CVB7Spz7 K3YriRZC1WOnM9yCJkiIbxU2GVGWbh/WTrKF4B6oSvsor51mtg8Y6aYvWM1vhW4= X-Gm-Gg: ASbGncuKLy/i7pSh3KPuGm8i4LvO2jtM2YpR4LeLQSGBY1+NzbP4jsg0sF3fWE/Wb67 H1LYafdKxk9IwFrGq47GDKFpwewxG9O9w2RQwnoa04ZFRyh28tUh0RuhNyCB0kbMqBeXewba+qh 1x7rsy8wHeyCmpKGQLSRSMedyvIzt9N6xmlF5cLtxsGhPxlg6k6sb2lPaQEZ2V9LuT4RvigRilU oZG/ynM/ftznJwchmK6ww+ZSw0vyIQtrZVhetCYw7K/ymy/DDNIYCnl413gb2NE 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-arm-msm@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