Skip to content

codec_adapter: cadence: Reset init_done at init time - #4394

Merged
dbaluta merged 1 commit into
thesofproject:mainfrom
dbaluta:fix_reset
Jun 23, 2021
Merged

dbaluta merged 1 commit into
thesofproject:mainfrom
dbaluta:fix_reset

Conversation

@dbaluta

@dbaluta dbaluta commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator

After first compress play run init_done is initialized with 1 and it
keeps this value as no one resets it.

This causes subsequent compress play to miss codec process init phase
and this causes decoding to fail.

With this change multiple cplay runs work fine!

Notice that cadence_codec_reset calls cadence_codec_init and thus resets
init_done flag.

Signed-off-by: Daniel Baluta daniel.baluta@nxp.com

After first compress play run init_done is initialized with 1 and it
keeps this value as no one resets it.

This causes subsequent compress play to miss codec process init phase
and this causes decoding to fail.

With this change multiple cplay runs work fine!

Notice that cadence_codec_reset calls cadence_codec_init and thus resets
init_done flag.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
@mrajwa

mrajwa commented Jun 23, 2021

Copy link
Copy Markdown
Contributor

@dbaluta I assume with this change we could also merge #4263 right?

@dbaluta

dbaluta commented Jun 23, 2021

Copy link
Copy Markdown
Collaborator Author

@mrajwa I will test it tomorrow. We could merge #4263 but without the last patch. Does this help solving the bugs you see on Intel platforms?

@dbaluta
dbaluta merged commit 7cc9a80 into thesofproject:main Jun 23, 2021
@keyonjie

Copy link
Copy Markdown
Contributor

is the cadence_codec_reset() symmetric with cadence_codec_init() here? can we reset the init_done in _reset()?

@dbaluta

dbaluta commented Jun 24, 2021

Copy link
Copy Markdown
Collaborator Author

@mrajwa for the reasons we discussed in the email with cadence we cannot merge #4263 (eventually, we can merge it if you remove the last patch in the series).

With the last patch in the series, is wrongly set to 1 before the actual process initialization and next futher decoding will fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants