Skip to content

Commit

Permalink
ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio
Browse files Browse the repository at this point in the history
Severity: Important

Add the new PCI ID 0x1d94 0x14a9 for Hygon family 18h model 5h
HDA controller.

Signed-off-by: fuhao <[email protected]>
Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
fuhao87 authored and Avenger-285714 committed May 11, 2024
1 parent 57df8d3 commit db7d498
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -2596,6 +2596,7 @@
#define PCI_VENDOR_ID_ZHAOXIN 0x1d17

#define PCI_VENDOR_ID_HYGON 0x1d94
#define PCI_DEVICE_ID_HYGON_18H_M05H_HDA 0x14a9
#define PCI_DEVICE_ID_HYGON_18H_M05H_DF_F3 0x14b3

#define PCI_VENDOR_ID_FUNGIBLE 0x1dad
Expand Down
5 changes: 5 additions & 0 deletions sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ enum {
AZX_DRIVER_CMEDIA,
AZX_DRIVER_ZHAOXIN,
AZX_DRIVER_LOONGSON,
AZX_DRIVER_HYGON,
AZX_DRIVER_GENERIC,
AZX_NUM_DRIVERS, /* keep this as last entry */
};
Expand Down Expand Up @@ -350,6 +351,7 @@ static const char * const driver_short_names[] = {
[AZX_DRIVER_CMEDIA] = "HDA C-Media",
[AZX_DRIVER_ZHAOXIN] = "HDA Zhaoxin",
[AZX_DRIVER_LOONGSON] = "HDA Loongson",
[AZX_DRIVER_HYGON] = "HDA Hygon",
[AZX_DRIVER_GENERIC] = "HD-Audio Generic",
};

Expand Down Expand Up @@ -2753,6 +2755,9 @@ static const struct pci_device_id azx_ids[] = {
.driver_data = AZX_DRIVER_LOONGSON },
{ PCI_VDEVICE(LOONGSON, PCI_DEVICE_ID_LOONGSON_HDMI),
.driver_data = AZX_DRIVER_LOONGSON },
/* Hygon HDAudio */
{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_HYGON_18H_M05H_HDA),
.driver_data = AZX_DRIVER_HYGON | AZX_DCAPS_POSFIX_LPIB | AZX_DCAPS_NO_MSI },
{ 0, }
};
MODULE_DEVICE_TABLE(pci, azx_ids);
Expand Down

0 comments on commit db7d498

Please sign in to comment.