ASoC: SOF: Intel: Disable SPIB in non ICCMAX stream #5836
Open
bardliao wants to merge 2 commits into
Open
Conversation
This reverts commit fcdd87e. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
The existing code disable SPIB in the playback direction only because previously the hda data stream is only used for SOF firmware download and we prepare capture stream for ICCMAX and prepare playback stream for non ICCMAX case. But now the hda data stream is also used for SoundWire BPT which will use both directions. The SPIB is enabled in non ICCMAX cases and we should disable in clean up. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
There was a problem hiding this comment.
Pull request overview
This PR updates the SOF Intel HDA stream teardown path to only disable SPIB for non-ICCMAX streams, aligning cleanup behavior with how SPIB is configured during stream prepare and addressing upstream review feedback about unnecessary/incorrect cleanup.
Changes:
- Extend
hda_data_stream_cleanup()andhda_cl_cleanup()APIs to accept anis_iccmaxflag. - Gate SPIB disable in
hda_data_stream_cleanup()behind!is_iccmaxto avoid touching SPIB for ICCMAX streams. - Update all in-tree callers of the modified cleanup APIs to pass the correct
is_iccmaxvalue.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| sound/soc/sof/intel/hda.h | Updates function prototypes to add is_iccmax to cleanup APIs. |
| sound/soc/sof/intel/hda-stream.c | Disables SPIB only for non-ICCMAX streams during cleanup. |
| sound/soc/sof/intel/hda-sdw-bpt.c | Updates the cleanup call to pass the new is_iccmax argument. |
| sound/soc/sof/intel/hda-loader.c | Threads is_iccmax through hda_cl_cleanup() into hda_data_stream_cleanup() and updates call sites. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To address the upstream review command as below.