OSDN Git Service

ASoC: Intel: sof_sdw: tag SoundWire BEs as non-atomic
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 Sep 2021 18:44:36 +0000 (13:44 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 9 Sep 2021 13:16:24 +0000 (14:16 +0100)
commit58eafe1ff52ee1ce255759fc15729519af180cbb
tree1be539c077e86f35aa18d1e2f0ea4ba107e41d8b
parentfcb958ee8e832e9cdf43408535207e15f14af755
ASoC: Intel: sof_sdw: tag SoundWire BEs as non-atomic

The SoundWire BEs make use of 'stream' functions for .prepare and
.trigger. These functions will in turn force a Bank Switch, which
implies a wait operation.

Mark SoundWire BEs as nonatomic for consistency, but keep all other
types of BEs as is. The initialization of .nonatomic is done outside
of the create_sdw_dailink helper to avoid adding more parameters to
deal with a single exception to the rule that BEs are atomic.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Link: https://lore.kernel.org/r/20210907184436.33152-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c