ASoC: SOF: Intel: hda: make sure DAI widget is set up before IPC
With the implementation of the dynamic pipeline feature, widgets will only be setup when a PCM is opened during the hw_params ioctl. The BE hw_params callback is responsible for sending the DAI_CONFIG for the DAI widgets in the DSP. With dynamic pipelines, the DAI widgets will need to set up first before sending the DAI_CONFIG IPC in the BE hw_params. Update the BE hw_params/hw_free callbacks for all ALH, HDA and SSP DAIs to set up/free the DAI widget before/after DAI_CONFIG IPC. Signed-off-by:Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by:
Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by:
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by:
Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by:
Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by:
Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/20210927120517.20505-11-peter.ujfalusi@linux.intel.com Signed-off-by:
Mark Brown <broonie@kernel.org>
Showing
- sound/soc/sof/intel/hda-dai.c 106 additions, 68 deletionssound/soc/sof/intel/hda-dai.c
- sound/soc/sof/intel/hda.c 130 additions, 47 deletionssound/soc/sof/intel/hda.c
- sound/soc/sof/intel/hda.h 5 additions, 0 deletionssound/soc/sof/intel/hda.h
- sound/soc/sof/sof-audio.c 1 addition, 0 deletionssound/soc/sof/sof-audio.c
- sound/soc/sof/sof-audio.h 1 addition, 1 deletionsound/soc/sof/sof-audio.h
- sound/soc/sof/topology.c 0 additions, 3 deletionssound/soc/sof/topology.c
Please register or sign in to comment