OSDN Git Service

ASoC: SOF: Intel: HDA: add hw params callback for SSP DAIs
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Fri, 26 Mar 2021 16:51:49 +0000 (18:51 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 29 Mar 2021 16:28:18 +0000 (17:28 +0100)
commite12be9fbfb91173b3aa358466ce0474823be2695
tree26eb56e3bf48123e0093f684315c7634dbe873a5
parentc1c03888f1e89e669aa6da0c9a491f02fd6a999e
ASoC: SOF: Intel: HDA: add hw params callback for SSP DAIs

Currently SSP DAIs don't have hw params callback function as there
wasn't anything to setup after initial topology loading. After enabling
multiple DAI configs the current config can be sent in the callback.

This patch changes the way SSP config ipc is sent to the dsp. Before it
was only sent once in topology loading, but now it will be additionally
sent always when stream is opened. Mechanism is similar as with HDA
DAIs.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20210326165150.255533-2-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c