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