Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: fix devm use in pcm512x and wm8994
@ 2026-12-01 19:25 Arina Kharlamova via B4 Relay
  2026-12-01 19:25 ` [PATCH 1/2] ASoC: pcm512x: Keep the no-PLL constraint in the private data Arina Kharlamova via B4 Relay
  2026-12-01 19:25 ` [PATCH 2/2] ASoC: wm8994: Put the MCLK clocks when the codec is unbound Arina Kharlamova via B4 Relay
  0 siblings, 2 replies; 8+ messages in thread
From: Arina Kharlamova via B4 Relay @ 2026-12-01 19:25 UTC (permalink / raw)
  To: Kevin Lu, Baojun Xu, Sen Wang, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Peter Rosin, Krzysztof Kozlowski,
	Sylwester Nawrocki, Charles Keepax, Shenghao Ding
  Cc: linux-sound, patches, Arina Kharlamova

pcm512x allocates with devm on every stream open. wm8994 gets its
MCLK clocks with devm on the parent MFD device but keeps them in its
own private data, which is freed first on unbind.

I found this with spec2patch. I model-checked the probe and remove paths
of the driver with CBMC against formal specifications of the kernel APIs
it calls. The specifications are checked against the kernel source, and
some of them are proved in Rocq against a transcription of the kernel
code. I also checked lock usage separately. With the help of an AI
coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

To: Shenghao Ding <shenghao-ding@ti.com>

---
Arina Kharlamova (2):
      ASoC: pcm512x: Keep the no-PLL constraint in the private data
      ASoC: wm8994: Put the MCLK clocks when the codec is unbound

 sound/soc/codecs/pcm512x.c | 13 +++++--------
 sound/soc/codecs/wm8994.c  | 15 +++++++++++++--
 2 files changed, 18 insertions(+), 10 deletions(-)
---
base-commit: 20ee6031645dbed8ddf8f4833edf415f3760607f
change-id: 20261201-s2p-lpr-asoc-d83e231bc4a1

Best regards,
--  
Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>



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

end of thread, other threads:[~2026-12-02 17:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:25 [PATCH 0/2] ASoC: fix devm use in pcm512x and wm8994 Arina Kharlamova via B4 Relay
2026-12-01 19:25 ` [PATCH 1/2] ASoC: pcm512x: Keep the no-PLL constraint in the private data Arina Kharlamova via B4 Relay
2026-12-01 19:25 ` [PATCH 2/2] ASoC: wm8994: Put the MCLK clocks when the codec is unbound Arina Kharlamova via B4 Relay
2026-12-02 11:24   ` Krzysztof Kozlowski
2026-12-02 11:58     ` Charles Keepax
2026-12-02 13:10       ` Krzysztof Kozlowski
2026-12-02 13:11   ` Krzysztof Kozlowski
2026-12-02 17:45   ` Charles Keepax

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