]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: catpt: Wake up device before configuring SSP port
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 12 Oct 2020 10:32:20 +0000 (12:32 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 14 Oct 2020 19:29:55 +0000 (20:29 +0100)
commit8e6543efa39410996c4be496f577da3157d86368
treed5e4b547191860cad1ea691262bf8824ba886ac6
parent9ee7cdbeeaa9da70c747c2a4482b0299f4952036
ASoC: Intel: catpt: Wake up device before configuring SSP port

catpt_dai_pcm_new() invoked during new PCM runtime creation configures
SSP by sending IPC to DSP firmware. For that to succeed device needs to
be up and running. While components default probing behavior -
snd_soc_catpt causing machine board module to load just after it - needs
no changes, machine board's module may be unloaded and re-loaded at a
different time e.g.: when catpt is already asleep.

Wake device explicitly in catpt_dai_pcm_new() to ensure communication is
established before sending any IPCs, enabling those advanced scenarios
in the process.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20201012103221.30759-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/catpt/pcm.c