codec_adapter: generic: Fail if init_process callback is not provided

In this way we avoid crashing the SOF FW and warn the user that
the callback is missing from the implementation.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2021-03-30 10:26:42 +03:00 committed by Liam Girdwood
parent a5899812b7
commit 7f975e9c27
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ int codec_init(struct comp_dev *dev)
codec_id);
ret = -EIO;
goto out;
} else if (!interface->init || !interface->prepare ||
} else if (!interface->init || !interface->prepare || !interface->init_process ||
!interface->process || !interface->apply_config ||
!interface->reset || !interface->free) {
comp_err(dev, "codec_init(): codec %x is missing mandatory interfaces",