ASoC: SOF: Intel: hda: add new flags for DAI_CONFIG
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 4 Oct 2021 17:14:28 +0000 (12:14 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 5 Oct 2021 12:08:12 +0000 (13:08 +0100)
commitb30b60a26a2369d6cbb63d63245f3b13f0403449
tree327947419291a45b58eb802a58f8b27e53af2dc2
parent21c51692fcdf9ceb36eeda48849e0ac155ff84f8
ASoC: SOF: Intel: hda: add new flags for DAI_CONFIG

The DAI_CONFIG is used for both hw_params and hw_free. Use flags to
specify what stage the configuration applies to.

the DAI_CONFIG IPC may be sent also during the widget setup so each
flag is cleared after the IPC to restore the state.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: Brent Lu <brent.lu@intel.com>
Link: https://lore.kernel.org/r/20211004171430.103674-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/sof-audio.c