* [PATCH v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue
@ 2026-11-30 0:09 Baojun Xu
2026-11-30 10:39 ` Pierre-Louis Bossart
0 siblings, 1 reply; 2+ messages in thread
From: Baojun Xu @ 2026-11-30 0:09 UTC (permalink / raw)
To: broonie
Cc: tiwai, andriy.shevchenko, 13916275206, alsa-devel, shenghao-ding,
baojun.xu, linux-sound, linux-kernel, k-yi, henry.lo, robinchen,
niranjan.hy, pin-hao.huang, Syed.SabaKareem
Fix an issue where sound output fails after multiple reboots.
The driver now explicitly ensures the device is in PM runtime active state
during initialization/resume to prevent the codec from remaining in a
low-power state..
Signed-off-by: Baojun Xu <baojun.xu@ti.com>
---
sound/soc/codecs/tas2783-sdw.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c
index 08b37e7b3a9e..86c1fb153abd 100644
--- a/sound/soc/codecs/tas2783-sdw.c
+++ b/sound/soc/codecs/tas2783-sdw.c
@@ -1105,7 +1105,7 @@ static s32 tas_init(struct tas2783_prv *tas_dev)
pm_runtime_set_autosuspend_delay(tas_dev->dev, 3000);
pm_runtime_use_autosuspend(tas_dev->dev);
/* make sure the device does not suspend immediately */
- pm_runtime_mark_last_busy(tas_dev->dev);
+ pm_runtime_set_active(tas_dev->dev);
pm_runtime_enable(tas_dev->dev);
return ret;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue
2026-11-30 0:09 [PATCH v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue Baojun Xu
@ 2026-11-30 10:39 ` Pierre-Louis Bossart
0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Louis Bossart @ 2026-11-30 10:39 UTC (permalink / raw)
To: Baojun Xu, broonie
Cc: tiwai, andriy.shevchenko, 13916275206, alsa-devel, shenghao-ding,
linux-sound, linux-kernel, k-yi, henry.lo, robinchen, niranjan.hy,
pin-hao.huang, Syed.SabaKareem
On 11/30/26 01:09, Baojun Xu wrote:
> Fix an issue where sound output fails after multiple reboots.
> The driver now explicitly ensures the device is in PM runtime active state
> during initialization/resume to prevent the codec from remaining in a
> low-power state..
>
> Signed-off-by: Baojun Xu <baojun.xu@ti.com>
> ---
> sound/soc/codecs/tas2783-sdw.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/tas2783-sdw.c b/sound/soc/codecs/tas2783-sdw.c
> index 08b37e7b3a9e..86c1fb153abd 100644
> --- a/sound/soc/codecs/tas2783-sdw.c
> +++ b/sound/soc/codecs/tas2783-sdw.c
> @@ -1105,7 +1105,7 @@ static s32 tas_init(struct tas2783_prv *tas_dev)
> pm_runtime_set_autosuspend_delay(tas_dev->dev, 3000);
> pm_runtime_use_autosuspend(tas_dev->dev);
> /* make sure the device does not suspend immediately */
> - pm_runtime_mark_last_busy(tas_dev->dev);
> + pm_runtime_set_active(tas_dev->dev);
> pm_runtime_enable(tas_dev->dev);
There are two issues with this change I am afraid:
- first why would you keep a comment related to mark_last_busy() but
remove that call?
- and then the set_active() is typically done when the device becomes
attached, not when the driver/component is probed. See other drivers for
reference, e.g. rt711
/*
* PM runtime status is marked as 'active' only when a Slave reports as
Attached
*/
if (!rt711->first_hw_init)
/* update count of parent 'active' children */
pm_runtime_set_active(&slave->dev);
It does look like your driver is indeed missing the set_active() call,
but you added it in the wrong location.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-30 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 0:09 [PATCH v1] ASoC: tas2783-sdw: ensure PM runtime active to fix no sound issue Baojun Xu
2026-11-30 10:39 ` Pierre-Louis Bossart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox