linux_dsm_epyc7002/sound/soc/intel
Rander Wang 0235bc0462
ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case
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.

Fixes: 94d2d08974 ('ASoC: Intel: Boards: tgl_max98373: add dai_trigger function')
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200821195603.215535-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-08-24 20:15:14 +01:00
..
atom ASoC: intel: atom: Add period size constraint 2020-08-21 15:04:28 +01:00
baytrail ASoC: intel: use asoc_substream_to_rtd() 2020-07-27 14:00:23 +01:00
boards ASoC: Intel: tgl_max98373: fix a runtime pm issue in multi-thread case 2020-08-24 20:15:14 +01:00
common Merge series "ASoC: Intel: machine driver updates for 5.9" from Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>: 2020-07-20 15:34:31 +01:00
haswell ASoC: intel: use asoc_substream_to_rtd() 2020-07-27 14:00:23 +01:00
keembay ASoC: Intel: KMB: Rework disable channel function 2020-07-30 20:13:41 +01:00
skylake ASoC: Intel: drop unnecessary list_empty 2020-07-30 22:38:39 +01:00
Kconfig ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00
Makefile ASoC: Intel: Add makefiles and kconfig changes for KeemBay 2020-06-15 19:45:35 +01:00