From: Niranjan H Y <niranjan.hy@ti.com>
To: <linux-sound@vger.kernel.org>
Cc: <linux-kernel@vger.kernel.org>, <broonie@kernel.org>,
<ckeepax@opensource.cirrus.com>, <lgirdwood@gmail.com>,
<perex@perex.cz>, <tiwai@suse.com>, <cezary.rojewski@intel.com>,
<peter.ujfalusi@linux.intel.com>,
<yung-chuan.liao@linux.intel.com>, <kai.vehmanen@linux.intel.com>,
<pierre-louis.bossart@linux.dev>, <baojun.xu@ti.com>,
<shenghao-ding@ti.com>, <sandeepk@ti.com>, <v-hampiholi@ti.com>,
Niranjan H Y <niranjan.hy@ti.com>
Subject: [PATCH v2 5/5] ASoC: tac5xx2-sdw: drop DSP algo re-enable from port post-prepare
Date: Thu, 26 Nov 2026 20:20:23 +0900 [thread overview]
Message-ID: <20261126112023.29054-5-niranjan.hy@ti.com> (raw)
In-Reply-To: <20261126112023.29054-1-niranjan.hy@ti.com>
The post port prepare callback was re-enabling the DSP algorithm by
writing TAC_DSP_ALGO_STATUS_RUNNING if the algo was found not running.
This is not needed as the algorithm state is managed independently of
the stream prepare sequence.
Remove tac_port_prep() and clear the .port_prep ops entry.
Signed-off-by: Niranjan H Y <niranjan.hy@ti.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
changes since v1:
* newly added patch
sound/soc/codecs/tac5xx2-sdw.c | 34 ----------------------------------
1 file changed, 34 deletions(-)
diff --git a/sound/soc/codecs/tac5xx2-sdw.c b/sound/soc/codecs/tac5xx2-sdw.c
index d679a4194..7140cc111 100644
--- a/sound/soc/codecs/tac5xx2-sdw.c
+++ b/sound/soc/codecs/tac5xx2-sdw.c
@@ -1984,44 +1984,10 @@ static int tac5xx2_sdw_read_prop(struct sdw_slave *peripheral)
return 0;
}
-static int tac_port_prep(struct sdw_slave *slave, struct sdw_prepare_ch *prep_ch,
- enum sdw_port_prep_ops pre_ops)
-{
- struct device *dev = &slave->dev;
- struct tac5xx2_prv *tac_dev = dev_get_drvdata(dev);
- unsigned int val;
- int ret;
-
- if (pre_ops != SDW_OPS_PORT_POST_PREP)
- return 0;
-
- if (!tac_dev->fw_dl_success)
- return 0;
-
- ret = regmap_read(tac_dev->regmap, TAC_DSP_ALGO_STATUS, &val);
- if (ret) {
- dev_err(dev, "Failed to read algo status: %d\n", ret);
- return ret;
- }
-
- if (val != TAC_DSP_ALGO_STATUS_RUNNING) {
- dev_dbg(dev, "Algo not running (0x%02x), re-enabling\n", val);
- ret = regmap_write(tac_dev->regmap, TAC_DSP_ALGO_STATUS,
- TAC_DSP_ALGO_STATUS_RUNNING);
- if (ret) {
- dev_err(dev, "Failed to re-enable algo: %d\n", ret);
- return ret;
- }
- }
-
- return 0;
-}
-
static const struct sdw_slave_ops tac_sdw_ops = {
.read_prop = tac5xx2_sdw_read_prop,
.update_status = tac_update_status,
.interrupt_callback = tac_interrupt_callback,
- .port_prep = tac_port_prep,
};
static s32 tac_sdw_probe(struct sdw_slave *peripheral,
--
2.34.1
prev parent reply other threads:[~2026-11-26 11:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 11:20 [PATCH v2 1/5] ASoC: tac5xx2-sdw: add tac5272 support Niranjan H Y
2026-11-26 11:20 ` [PATCH v2 2/5] ASoC: sdw_utils: " Niranjan H Y
2026-11-26 11:20 ` [PATCH v2 3/5] ASoC: tac5xx2-sdw: correct default volume registers Niranjan H Y
2026-11-26 11:20 ` [PATCH v2 4/5] ASoC: tac5xx2-sdw: initialize volume registers to 0 dBFS on first probe Niranjan H Y
2026-11-26 11:20 ` Niranjan H Y [this message]
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=20261126112023.29054-5-niranjan.hy@ti.com \
--to=niranjan.hy@ti.com \
--cc=baojun.xu@ti.com \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=ckeepax@opensource.cirrus.com \
--cc=kai.vehmanen@linux.intel.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=peter.ujfalusi@linux.intel.com \
--cc=pierre-louis.bossart@linux.dev \
--cc=sandeepk@ti.com \
--cc=shenghao-ding@ti.com \
--cc=tiwai@suse.com \
--cc=v-hampiholi@ti.com \
--cc=yung-chuan.liao@linux.intel.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®