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:
Marcin Rajwa 2021-04-26 17:41:57 +02:00 committed by Liam Girdwood
parent 758e7be0c9
commit 611f81e7a7
1 changed files with 0 additions and 6 deletions

View File

@ -301,12 +301,6 @@ int codec_apply_runtime_config(struct comp_dev *dev)
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);
if (ret) {
comp_err(dev, "codec_apply_config() error %d: codec process failed for codec_id %x",