Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v3] ASoC: cs43130: Power the playback path down when the stream closes
@ 2026-11-06 21:42 Olivier Louvignes
  2026-11-09  9:58 ` Charles Keepax
  2026-11-09 12:11 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Olivier Louvignes @ 2026-11-06 21:42 UTC (permalink / raw)
  To: Mark Brown
  Cc: Liam Girdwood, David Rhodes, Richard Fitzgerald, Charles Keepax,
	linux-sound, patches

With use_pmdown_time set, DAPM keeps the playback path powered and
unmuted for pmdown_time after a stream closes, and the DAC plays
whatever its serial port carries meanwhile: on a HiBy R1 (CS43131 on an
Ingenic X1600 I2S controller), white noise once a stream stops. Drop it
from both component drivers, so that the path powers down as the stream
closes.

Suggested-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Olivier Louvignes <olivier@mgcrea.io>
---
Changes in v3, now a single patch since 1/2 was applied:
- Drop use_pmdown_time instead of adding a mute_stream() op (Charles).
  Tested on the R1: the codec's bias level is back to standby within
  0.5 s of the stream closing, a stream restarts in 0.08 s, and the
  noise after a stop is gone. A faint pop as the path powers down
  remains, fainter and rarer than with v2's mute.

v2: https://lore.kernel.org/r/20261023202941.87999-1-olivier@mgcrea.io

 sound/soc/codecs/cs43130.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
index 7fb23522f081..4db57758f897 100644
--- a/sound/soc/codecs/cs43130.c
+++ b/sound/soc/codecs/cs43130.c
@@ -2428,7 +2428,6 @@ static const struct snd_soc_component_driver soc_component_dev_cs43130_digital =
 	.set_sysclk		= cs43130_component_set_sysclk,
 	.set_pll		= cs43130_set_pll,
 	.idle_bias_on		= 1,
-	.use_pmdown_time	= 1,
 	.endianness		= 1,
 	/* Don't take into account the ending analog widgets and routes */
 	.dapm_widgets		= hp_widgets,
@@ -2444,7 +2443,6 @@ static const struct snd_soc_component_driver soc_component_dev_cs43130_analog =
 	.set_sysclk		= cs43130_component_set_sysclk,
 	.set_pll		= cs43130_set_pll,
 	.idle_bias_on		= 1,
-	.use_pmdown_time	= 1,
 	.endianness		= 1,
 	.dapm_widgets		= hp_widgets,
 	.num_dapm_widgets	= ARRAY_SIZE(hp_widgets),

base-commit: b72f6bb43dec5e89c26adf049056e24e85e5e65e
-- 
2.39.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-09 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-06 21:42 [PATCH v3] ASoC: cs43130: Power the playback path down when the stream closes Olivier Louvignes
2026-11-09  9:58 ` Charles Keepax
2026-11-09 12:11 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox