From: "Holalu Yogendra, Niranjan" <niranjan.hy@ti.com>
To: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: "linux-sound@vger.kernel.org" <linux-sound@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"broonie@kernel.org" <broonie@kernel.org>,
"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"perex@perex.cz" <perex@perex.cz>,
"tiwai@suse.com" <tiwai@suse.com>,
"cezary.rojewski@intel.com" <cezary.rojewski@intel.com>,
"peter.ujfalusi@linux.intel.com" <peter.ujfalusi@linux.intel.com>,
"yung-chuan.liao@linux.intel.com"
<yung-chuan.liao@linux.intel.com>,
"ranjani.sridharan@linux.intel.com"
<ranjani.sridharan@linux.intel.com>,
"kai.vehmanen@linux.intel.com" <kai.vehmanen@linux.intel.com>,
"pierre-louis.bossart@linux.dev" <pierre-louis.bossart@linux.dev>,
"Xu, Baojun" <baojun.xu@ti.com>,
"Ding, Shenghao" <shenghao-ding@ti.com>,
"Kasargod, Sandeep" <sandeepk@ti.com>,
"Hampiholi, Vallabha" <v-hampiholi@ti.com>
Subject: RE: [EXTERNAL] Re: [PATCH v1 2/4] ASoC: tac5xx2-sdw: add soundwire based codec driver
Date: Tue, 24 Mar 2026 15:40:50 +0000 [thread overview]
Message-ID: <9864e705c75a4156be957df8d1aba449@ti.com> (raw)
In-Reply-To: <acJtGVN5nOTvFnxg@opensource.cirrus.com>
> On 16:23-20260324, Charles Keepax wrote:
> Subject: Re: [PATCH v1 2/4] ASoC: tac5xx2-sdw: add soundwire based codec driver
> On Mon, Mar 23, 2026 at 09:45:45AM +0530, Niranjan H Y wrote:
> > + return regmap_write(tac_dev->regmap,
> > + SDW_SDCA_CTL(function_number, fu_entity,
> > + TAC_SDCA_CHANNEL_MUTE,
> channel),
> > + mute);
>
> If all this does is write the register why not just pass the
> register to the DAPM widget and not both having a callback at
> all?
>
> Same for many of the other power callbacks.
Will fix it in next version for those which doesn't need explicit handling.
> > + dev_err(tac_dev->dev,
> > + "error: operation without hw initialization");
> > + return -EINVAL;
> > + }
>
> This is a bit weird should these not be handled by runtime
> resume? This happens in a couple other odd places too.
I am observing the following sequence during the playback resume from low power mode ( with .idle_bias_on = 0 )
Device gets detached first. Then tries to resume. Then hw_params is called. Then gets "attached".
So waiting for attached to get completed before proceeding with .hw_params.
> > +
> > + ret = regmap_write(tac_dev->regmap, SDW_SDCA_CTL(function_id,
> pde_entity,
> > +
> TAC_SDCA_REQUESTED_PS, 0),
> > + 0x03);
>
> Agree with Pierre its a bit weird to be handling PDEs outside of
> DAPM, at least a comment to explain why would make sense.
I will fix this in next patch.
Regards
Niranjan
prev parent reply other threads:[~2026-03-24 15:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-23 4:15 [PATCH v1 2/4] ASoC: tac5xx2-sdw: add soundwire based codec driver Niranjan H Y
2026-03-23 21:40 ` Pierre-Louis Bossart
2026-03-24 9:59 ` Charles Keepax
2026-03-24 14:22 ` Holalu Yogendra, Niranjan
2026-03-24 10:53 ` Charles Keepax
2026-03-24 15:40 ` Holalu Yogendra, Niranjan [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=9864e705c75a4156be957df8d1aba449@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=ranjani.sridharan@linux.intel.com \
--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