]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Introduce macro to set the firmware state
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 6 Oct 2021 11:06:40 +0000 (14:06 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:36 +0000 (15:45 +0100)
commit5970a5f77e0694f4987716e5b8921c990a45b8aa
treec735652d60405449d9b559ad666e82d8f0392a36
parent10fdaa1f40171498d08d3c1a034cd3bb3b4710ff
ASoC: SOF: Introduce macro to set the firmware state

Add sof_set_fw_state() macro to wrap the sdev->fw_state management to allow
actions to be taken when certain state is set or when state is changing.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211006110645.26679-15-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c
sound/soc/sof/ipc.c
sound/soc/sof/loader.c
sound/soc/sof/pm.c
sound/soc/sof/sof-priv.h