-
Notifications
You must be signed in to change notification settings - Fork 140
SOF idle callback and HDA codec ordering #1003
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -400,6 +400,19 @@ int hda_dsp_runtime_resume(struct snd_sof_dev *sdev) | |
| return hda_resume(sdev, true); | ||
| } | ||
|
|
||
| int hda_dsp_runtime_idle(struct snd_sof_dev *sdev) | ||
| { | ||
| struct hdac_bus *hbus = sof_to_bus(sdev); | ||
|
|
||
| if (hbus->codec_powered) { | ||
plbossart marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| dev_dbg(sdev->dev, "some codecs still powered (%08X), not idle\n", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here please change %08X to %lX for I got warning with your patch
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @RanderWang Thanks! The cast should avoid the warning, but agreed better to solve this without any cast. I'll upload an updated version. |
||
| (unsigned int)hbus->codec_powered); | ||
| return -EBUSY; | ||
| } | ||
|
|
||
| return 0; | ||
| } | ||
|
|
||
| int hda_dsp_runtime_suspend(struct snd_sof_dev *sdev) | ||
| { | ||
| /* stop hda controller and power dsp off */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.