[PATCH 06/14] ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case

Mark Brown broonie at kernel.org
Fri Aug 21 23:55:50 CEST 2020


On Fri, Aug 21, 2020 at 02:55:53PM -0500, Pierre-Louis Bossart wrote:
> From: Rander Wang <rander.wang at intel.com>
> 
> When the playback & capture streams are stopped simultaneously, the
> SOF PCI device will remain pm_runtime active. The root-cause is a race
> condition with two threads reaching the trigger function at the same
> time. They see another stream is active so the dapm pin is not
> disabled, so the codec remains active as well as the parent PCI
> device.
> 
> For max98373, the capture stream provides feedback when playback is
> working and it is unused when playback is stopped. So the dapm pin
> should be set only when playback is active.

Should this be sent as a fix?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20200821/02530b29/attachment.sig>


More information about the Alsa-devel mailing list