Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver/audio: low level reset must always succeed #9846

Merged
merged 1 commit into from Jul 18, 2023

Conversation

mks2183
Copy link
Contributor

@mks2183 mks2183 commented Jul 17, 2023

Summary

  • considering simplicity and design assumption, the reset function must work without flaw. If it fails, there is no
    way to recover but to reset again so checking return status does not bring additional benefit.

  • There is unnecessary switch inside switch which is making code not too readable

Impact

  • There is no impact as it is mostly code style issue

Testing

  • There is no testing done as it was not required for this minor fix.

- considering simplicity and design assumption, the reset function must work without flaw.
  If it fails, there is no way to recover but to reset again. so checking return status does not
  bring additional benefit

- There is unnecessary switch inside switch which is making code not too readable

Signed-off-by: mks2183 <manishsharma3134@gmail.com>
@mks2183
Copy link
Contributor Author

mks2183 commented Jul 17, 2023

Hi @xiaoxiang781216 Sir,

Could you please review it again ?

Regards,
Manish

@mks2183
Copy link
Contributor Author

mks2183 commented Jul 18, 2023

Hi Sir @acassis / @xiaoxiang781216 ,

My build is failed due to macOS. If this is unrelated then Could you please merge this?

Regards,
Manish

@mks2183
Copy link
Contributor Author

mks2183 commented Jul 18, 2023

Thanks Sir @jerpelea for the review.

@acassis acassis merged commit f938628 into apache:master Jul 18, 2023
23 of 26 checks passed
@mks2183 mks2183 deleted the mks_es8311_audio_dev branch July 18, 2023 15:37
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to drivers in Release Notes - 12.3.0 Sep 27, 2023
@jerpelea jerpelea moved this from drivers to done in Release Notes - 12.3.0 Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants