[Deepin-Kernel-SIG] [linux 6.18-y] [Deepin] ALSA: hda: Add FTHD0001 match for Phytium#1565
Conversation
Some Phytium ALSA HDA devices declare their ID as FTHD0001 instead
of PHYT0006 (following Phytium's deprecated older ACPI specification).
Add the old ID to the ACPI match list so that the audio driver for
these devices can be loaded correctly.
Similar to ("ALSA: hda: Resolving the issue of the ALC662 sound card
failing to load.") in openKylin tree.
Link: https://gitee.com/openkylin/linux/commit/6ad24efc4daecb54c99e31862d3cc0220e5d8a72
Codeveloped-by: wangdicheng <wangdicheng@kylinos.cn>
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Signed-off-by: WangYuli <wangyuli@uniontech.com>
(cherry picked from commit 555481f)
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds support for an additional legacy ACPI ID (FTHD0001) for Phytium HDA controllers so the ALSA HDA driver correctly binds to devices using the older identifier. Sequence diagram for ACPI HDA device matching with legacy FTHD0001 IDsequenceDiagram
actor Firmware
participant ACPI
participant Kernel_PCI_subsystem
participant ACPI_bus
participant snd_hda_phytium_driver
Firmware->>ACPI: Expose HDA controller with HID PHYT0006 or FTHD0001
Kernel_PCI_subsystem->>ACPI_bus: Enumerate ACPI devices
ACPI_bus->>ACPI_bus: Compare HID against hda_ft_acpi_match
alt HID is PHYT0006 or FTHD0001
ACPI_bus->>snd_hda_phytium_driver: Bind and call probe
snd_hda_phytium_driver-->>ACPI_bus: Initialize HDA controller
else HID does not match
ACPI_bus-->>Firmware: HDA controller remains without driver
end
Flow diagram for Phytium HDA ACPI ID resolution including FTHD0001flowchart LR
A[ACPI firmware exposes Phytium HDA controller] --> B{ACPI HID value}
B -->|PHYT0006| C[Match entry PHYT0006 in hda_ft_acpi_match]
B -->|FTHD0001| D[Match new entry FTHD0001 in hda_ft_acpi_match]
B -->|Other ID| F[No match in hda_ft_acpi_match]
C --> E[Bind Phytium HDA driver]
D --> E
F --> G[HDA driver not loaded]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/approve |
There was a problem hiding this comment.
Pull request overview
This PR improves compatibility for Phytium HDA audio on ACPI-based systems by adding support for an older, deprecated ACPI hardware ID so the existing Phytium ALSA HDA controller driver can bind correctly.
Changes:
- Add
FTHD0001to the Phytium HDA ACPI match table alongside the existingPHYT0006entry.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Some Phytium ALSA HDA devices declare their ID as FTHD0001 instead of PHYT0006 (following Phytium's deprecated older ACPI specification).
Add the old ID to the ACPI match list so that the audio driver for these devices can be loaded correctly.
Similar to ("ALSA: hda: Resolving the issue of the ALC662 sound card failing to load.") in openKylin tree.
Link: https://gitee.com/openkylin/linux/commit/6ad24efc4daecb54c99e31862d3cc0220e5d8a72
Codeveloped-by: wangdicheng wangdicheng@kylinos.cn
(cherry picked from commit 555481f)
Summary by Sourcery
Bug Fixes: