diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-12-07 18:37:43 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-12-14 18:15:46 +0100 |
commit | b2ae80663008a7662febe7d13f14ea1b2eb0cd51 (patch) | |
tree | d92cb896969d3041cc02ac73a6287cbf86cd3498 /include/sound/soc-dpcm.h | |
parent | ASoC: soc-pcm: Fix and cleanup DPCM locking (diff) | |
download | linux-b2ae80663008a7662febe7d13f14ea1b2eb0cd51.tar.xz linux-b2ae80663008a7662febe7d13f14ea1b2eb0cd51.zip |
ASoC: soc-pcm: serialize BE triggers
When more than one FE is connected to a BE, e.g. in a mixing use case,
the BE can be triggered multiple times when the FE are opened/started
concurrently. This race condition is problematic in the case of
SoundWire BE dailinks, and this is not desirable in a general
case.
This patch relies on the existing BE PCM lock, which takes atomicity into
account. The locking model assumes that all interactions start with
the FE, so that there is no deadlock between FE and BE locks.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[test, checkpatch fix and clarification of commit message by plbossart]
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20211207173745.15850-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/soc-dpcm.h')
0 files changed, 0 insertions, 0 deletions