dai-zephyr/dai-legacy: Use comp_dai_get_hw_params()

So that the correct op will be invoked when this function is invoked
with a copier device.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
This commit is contained in:
Ranjani Sridharan 2023-05-02 12:39:59 -07:00 committed by Kai Vehmanen
parent f6e2ee4520
commit dc41f39009
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ static int dai_verify_params(struct comp_dev *dev,
{
struct sof_ipc_stream_params hw_params;
dai_comp_get_hw_params(dev, &hw_params, params->direction);
comp_dai_get_hw_params(dev, &hw_params, params->direction);
/* checks whether pcm parameters match hardware DAI parameter set
* during dai_set_config(). If hardware parameter is equal to 0, it

View File

@ -426,7 +426,7 @@ static int dai_verify_params(struct comp_dev *dev, struct sof_ipc_stream_params
struct sof_ipc_stream_params hw_params;
int ret;
ret = dai_comp_get_hw_params(dev, &hw_params, params->direction);
ret = comp_dai_get_hw_params(dev, &hw_params, params->direction);
if (ret < 0) {
comp_err(dev, "dai_verify_params(): dai_verify_params failed ret %d", ret);
return ret;