mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Baojun Xu <baojun.xu@ti.com>
To: <broonie@kernel.org>, <tiwai@suse.de>
Cc: <andriy.shevchenko@linux.intel.com>, <13916275206@139.com>,
	<shenghao-ding@ti.com>, <baojun.xu@ti.com>,
	<linux-sound@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<lgirdwood@gmail.com>, <robh@kernel.org>, <krzk+dt@kernel.org>,
	<conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
	<k-yi@ti.com>, <henry.lo@ti.com>, <robinchen@ti.com>,
	<will-wang@ti.com>, <jim.shil@goertek.com>,
	<toastcheng@google.com>, <chinkaiting@google.com>, <riyo@ti.com>,
	<a0393308@india.ti.com>
Subject: [PATCH v2 2/2] ASoC: tas2781: Add TAS2573 support
Date: Tue, 2 Jun 2026 18:05:32 +0800	[thread overview]
Message-ID: <20260602100532.6463-2-baojun.xu@ti.com> (raw)
In-Reply-To: <20260602100532.6463-1-baojun.xu@ti.com>

The TAS2573 belongs to the TAS257x device family, featuring an integrated
DSP and IV sensing capability.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
---
v2:
 - Skip TAS2573 calibration; assign calibration kcontrol to TAS2563 and
   TAS2781
---
 include/sound/tas2781.h        | 1 +
 sound/soc/codecs/tas2781-i2c.c | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/sound/tas2781.h b/include/sound/tas2781.h
index 95296bb4a33a..d45f805b5d18 100644
--- a/include/sound/tas2781.h
+++ b/include/sound/tas2781.h
@@ -120,6 +120,7 @@ enum audio_device {
 	TAS2568,
 	TAS2570,
 	TAS2572,
+	TAS2573,
 	TAS2574,
 	TAS2781,
 	TAS5802,
diff --git a/sound/soc/codecs/tas2781-i2c.c b/sound/soc/codecs/tas2781-i2c.c
index 620ed4ef577d..9e6f0ad5f05d 100644
--- a/sound/soc/codecs/tas2781-i2c.c
+++ b/sound/soc/codecs/tas2781-i2c.c
@@ -108,6 +108,7 @@ static const struct i2c_device_id tasdevice_id[] = {
 	{ .name = "tas2568", .driver_data = TAS2568 },
 	{ .name = "tas2570", .driver_data = TAS2570 },
 	{ .name = "tas2572", .driver_data = TAS2572 },
+	{ .name = "tas2573", .driver_data = TAS2573 },
 	{ .name = "tas2574", .driver_data = TAS2574 },
 	{ .name = "tas2781", .driver_data = TAS2781 },
 	{ .name = "tas5802", .driver_data = TAS5802 },
@@ -132,6 +133,7 @@ static const struct of_device_id tasdevice_of_match[] = {
 	{ .compatible = "ti,tas2568", .data = &tasdevice_id[TAS2568] },
 	{ .compatible = "ti,tas2570", .data = &tasdevice_id[TAS2570] },
 	{ .compatible = "ti,tas2572", .data = &tasdevice_id[TAS2572] },
+	{ .compatible = "ti,tas2573", .data = &tasdevice_id[TAS2573] },
 	{ .compatible = "ti,tas2574", .data = &tasdevice_id[TAS2574] },
 	{ .compatible = "ti,tas2781", .data = &tasdevice_id[TAS2781] },
 	{ .compatible = "ti,tas5802", .data = &tasdevice_id[TAS5802] },
@@ -1683,7 +1685,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 	tas_priv->fw_state = TASDEVICE_DSP_FW_ALL_OK;
 
 	/* There is no calibration required for TAS58XX. */
-	if (tas_priv->chip_id < TAS5802) {
+	if (tas_priv->chip_id == TAS2563 || tas_priv->chip_id == TAS2781) {
 		ret = tasdevice_create_cali_ctrls(tas_priv);
 		if (ret) {
 			dev_err(tas_priv->dev, "cali controls error\n");
@@ -1736,6 +1738,7 @@ static void tasdevice_fw_ready(const struct firmware *fmw,
 	if (tas_priv->fw_state == TASDEVICE_RCA_FW_OK) {
 		switch (tas_priv->chip_id) {
 		case TAS2563:
+		case TAS2573:
 		case TAS2781:
 		case TAS5802:
 		case TAS5806M:
@@ -1900,6 +1903,7 @@ static int tasdevice_codec_probe(struct snd_soc_component *codec)
 	case TAS2568:
 	case TAS2570:
 	case TAS2572:
+	case TAS2573:
 	case TAS2574:
 		p = (struct snd_kcontrol_new *)tas2x20_snd_controls;
 		size = ARRAY_SIZE(tas2x20_snd_controls);
@@ -2094,6 +2098,7 @@ static const struct acpi_device_id tasdevice_acpi_match[] = {
 	{ "TXNW2568", (kernel_ulong_t)&tasdevice_id[TAS2568] },
 	{ "TXNW2570", (kernel_ulong_t)&tasdevice_id[TAS2570] },
 	{ "TXNW2572", (kernel_ulong_t)&tasdevice_id[TAS2572] },
+	{ "TXNW2573", (kernel_ulong_t)&tasdevice_id[TAS2573] },
 	{ "TXNW2574", (kernel_ulong_t)&tasdevice_id[TAS2574] },
 	{ "TXNW2781", (kernel_ulong_t)&tasdevice_id[TAS2781] },
 	{ "TXNW5802", (kernel_ulong_t)&tasdevice_id[TAS5802] },
-- 
2.25.1


  reply	other threads:[~2026-06-02 10:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 10:05 [PATCH v2 1/2] ASoC: dt-bindings: ti,tas2781: " Baojun Xu
2026-06-02 10:05 ` Baojun Xu [this message]
2026-06-08  8:07 ` Krzysztof Kozlowski
2026-06-08 18:01 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260602100532.6463-2-baojun.xu@ti.com \
    --to=baojun.xu@ti.com \
    --cc=13916275206@139.com \
    --cc=a0393308@india.ti.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=chinkaiting@google.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=henry.lo@ti.com \
    --cc=jim.shil@goertek.com \
    --cc=k-yi@ti.com \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=riyo@ti.com \
    --cc=robh@kernel.org \
    --cc=robinchen@ti.com \
    --cc=shenghao-ding@ti.com \
    --cc=tiwai@suse.de \
    --cc=toastcheng@google.com \
    --cc=will-wang@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®