[linux-6.6.y] ALSA: hda: Add support of Zhaoxin SB HDAC#1707
Conversation
zhaoxin inclusion category: feature ------------------- Add some special initialization for Zhaoxin SB HDAC. Signed-off-by: LeoLiu-oc <leoliu-oc@zhaoxin.com>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideExtends the existing VIA-specific handling in the HDA Intel driver to also apply to Zhaoxin southbridge HD audio controllers by reusing the same position-fix logic and snoop behavior checks. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Hi @leoliu-oc. Thanks for your PR. I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Now that Zhaoxin is treated equivalently to VIA in multiple places, consider introducing a small helper (e.g.,
is_via_like_controller(chip)) to avoid repeating the compositedriver_typechecks and make future updates less error-prone. - The debug message
"Using VIACOMBO position fix"may be confusing when the driver type is ZHAOXIN; consider updating the string to reflect both VIA and Zhaoxin or using a more generic description.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Now that Zhaoxin is treated equivalently to VIA in multiple places, consider introducing a small helper (e.g., `is_via_like_controller(chip)`) to avoid repeating the composite `driver_type` checks and make future updates less error-prone.
- The debug message `"Using VIACOMBO position fix"` may be confusing when the driver type is ZHAOXIN; consider updating the string to reflect both VIA and Zhaoxin or using a more generic description.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Pull request overview
Adds Zhaoxin SB HDAC support to the Intel HDA driver by handling AZX_DRIVER_ZHAOXIN controllers alongside VIA controllers in two driver-type checks (position-fix selection and snoop availability).
Changes:
- Use VIACOMBO position fix for
AZX_DRIVER_ZHAOXINincheck_position_fix(). - Force non-snoop mode for
AZX_DRIVER_ZHAOXINinazx_check_snoop_available()when BIOS configures it.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: opsiff The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
zhaoxin inclusion
category: feature
Add some special initialization for Zhaoxin SB HDAC.
Summary by Sourcery
New Features: