mirror of https://github.com/thesofproject/sof.git
codec_adapter: Remove redundant state verification
The state has already been verified on the codec_adapter level. Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
parent
758e7be0c9
commit
611f81e7a7
|
@ -301,12 +301,6 @@ int codec_apply_runtime_config(struct comp_dev *dev)
|
||||||
|
|
||||||
comp_dbg(dev, "codec_apply_config() start");
|
comp_dbg(dev, "codec_apply_config() start");
|
||||||
|
|
||||||
if (cd->codec.state < CODEC_PREPARED) {
|
|
||||||
comp_err(dev, "codec_prepare() wrong state of codec %x, state %d",
|
|
||||||
cd->ca_config.codec_id, codec->state);
|
|
||||||
return -EPERM;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = codec->ops->apply_config(dev);
|
ret = codec->ops->apply_config(dev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
comp_err(dev, "codec_apply_config() error %d: codec process failed for codec_id %x",
|
comp_err(dev, "codec_apply_config() error %d: codec process failed for codec_id %x",
|
||||||
|
|
Loading…
Reference in New Issue