Skip to content

Comments

ASoC: es8316: fix suspend/resume sync issue#3869

Merged
plbossart merged 2 commits intothesofproject:topic/sof-devfrom
plbossart:fix/es8336
Sep 22, 2022
Merged

ASoC: es8316: fix suspend/resume sync issue#3869
plbossart merged 2 commits intothesofproject:topic/sof-devfrom
plbossart:fix/es8336

Conversation

@plbossart
Copy link
Member

Error reported by the Intel CI during upstream merge in PR ##3859

@fredoh9 can you give this a try with the stable 2.2 firmware?

@ujfalusi @bardliao @yangxiaohua2009 comments welcome. I really have no idea if this is an acceptable fix.

This reverts commit 45964e4.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@bardliao
Copy link
Collaborator

single_read/single_write should be set if the codec doesn't support bulk read/write

@yangxiaohua2009
Copy link

Yes the fix should work. CS42l42 has the same issue.

I have no idea why some platforms use bulk write by default and others don't.

@plbossart
Copy link
Member Author

@yangxiaohua2009 the default is that bulk_read/write is used, unless explicitly disabled with the .use_single_read/write. So the question is whether this bulk_read/write is supported in hardware, and if no we do need to set those two flags. Can you check the hardware capabilities?

@yangxiaohua2009
Copy link

Yes these two flags are needed. ES8336 only supports I2C read/write one byte a time.

The SOF CI tests report failures with the following error thrown

kernel: es8316 i2c-ESSX8336:00: Unable to sync registers 0x0-0x1. -121

ES8336 only supports I2C read/write one byte a time, so we do need to
set the .use_single_read and .use_single_write flags to avoid this
sync issue.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart plbossart changed the title [TEST] ASoC: es8316: fix suspend/resume sync issue ASoC: es8316: fix suspend/resume sync issue Sep 20, 2022
@plbossart plbossart marked this pull request as ready for review September 20, 2022 08:18
@plbossart
Copy link
Member Author

Thanks @yangxiaohua2009, I updated the commit message. You should have an invite to join the SOF project, that will enable you to provide you approval directly in GitHub.

@fredoh9
Copy link
Collaborator

fredoh9 commented Sep 20, 2022

missed the notification. Will run the test with stable-v2.2.

@fredoh9
Copy link
Collaborator

fredoh9 commented Sep 21, 2022

just triggered internal test 15531 now. Had to wait as daily test uses same device pool. Will update the results.

Copy link
Collaborator

@fredoh9 fredoh9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test result on JSL_ES8336_HDA is GOOD!

@plbossart
Copy link
Member Author

thanks @fredoh9. Let's wait for @bardliao's review.

@plbossart plbossart merged commit 8049666 into thesofproject:topic/sof-dev Sep 22, 2022
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