mirror of https://github.com/thesofproject/sof.git
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:
parent
f6e2ee4520
commit
dc41f39009
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue