-
Notifications
You must be signed in to change notification settings - Fork 144
ASoC: SOF: Intel: hda: Fixes for ACE2+ HD-DMA stream constraints for PPLC_LLP corruption #5745
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
base: topic/sof-dev
Are you sure you want to change the base?
Changes from all commits
c15e0d7
3225a6f
da4a638
d0bfef8
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 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -625,8 +625,6 @@ static int hda_init_caps(struct snd_sof_dev *sdev) | |||||||||||||||||
| return ret; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| hda_bus_ml_init(bus); | ||||||||||||||||||
|
|
||||||||||||||||||
| /* Skip SoundWire if it is not supported */ | ||||||||||||||||||
| if (!(interface_mask & BIT(SOF_DAI_INTEL_ALH))) | ||||||||||||||||||
| goto skip_soundwire; | ||||||||||||||||||
|
|
@@ -670,8 +668,6 @@ static int hda_init_caps(struct snd_sof_dev *sdev) | |||||||||||||||||
| if (!HDA_IDISP_CODEC(bus->codec_mask)) | ||||||||||||||||||
| hda_codec_i915_display_power(sdev, false); | ||||||||||||||||||
|
|
||||||||||||||||||
|
||||||||||||||||||
| /* | |
| * Drop the initial non-alternate multi-link references once the | |
| * first-use initialization sequence is complete so links are not | |
| * kept logically in use for the lifetime of the driver. | |
| */ | |
| hda_bus_ml_put_all(bus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ujfalusi Just to double check, this does not keep the display codec powered up (if only SDW used), right? It shouldn't if only the link is powered. I'll do some local testing on this as well...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
!stream_dirto select the opposite direction relies onSNDRV_PCM_STREAM_PLAYBACK/CAPTUREbeing exactly 0/1. Consider usingstream_dir ^ 1or an explicit conditional to avoid coupling this logic to the exact numeric values of the ALSA constants.