* [PATCH v2 6/8] ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio [not found] <cover.1775548724.git.fuhao@open-hieco.net> @ 2026-04-07 8:24 ` Fu Hao 2026-04-10 22:47 ` Bjorn Helgaas 0 siblings, 1 reply; 3+ messages in thread From: Fu Hao @ 2026-04-07 8:24 UTC (permalink / raw) To: bhelgaas, perex, tiwai; +Cc: linux-kernel, linux-sound, linux-pci, Fu Hao Add the new PCI ID 0x1d94 0x14a9 for Hygon family 18h model 5h HDA controller. Signed-off-by: Fu Hao <fuhao@open-hieco.net> --- include/linux/pci_ids.h | 1 + sound/hda/controllers/intel.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 406abf629..19d968017 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -2613,6 +2613,7 @@ #define PCI_VENDOR_ID_ROCKCHIP 0x1d87 #define PCI_VENDOR_ID_HYGON 0x1d94 +#define PCI_DEVICE_ID_HYGON_18H_M05H_HDA 0x14a9 #define PCI_VENDOR_ID_META 0x1d9b diff --git a/sound/hda/controllers/intel.c b/sound/hda/controllers/intel.c index 3f434994c..eb5d48d90 100644 --- a/sound/hda/controllers/intel.c +++ b/sound/hda/controllers/intel.c @@ -241,6 +241,7 @@ enum { AZX_DRIVER_ZHAOXIN, AZX_DRIVER_ZHAOXINHDMI, AZX_DRIVER_LOONGSON, + AZX_DRIVER_HYGON, AZX_DRIVER_GENERIC, AZX_NUM_DRIVERS, /* keep this as last entry */ }; @@ -357,6 +358,7 @@ static const char * const driver_short_names[] = { [AZX_DRIVER_ZHAOXIN] = "HDA Zhaoxin", [AZX_DRIVER_ZHAOXINHDMI] = "HDA Zhaoxin HDMI", [AZX_DRIVER_LOONGSON] = "HDA Loongson", + [AZX_DRIVER_HYGON] = "HDA Hygon", [AZX_DRIVER_GENERIC] = "HD-Audio Generic", }; @@ -2818,6 +2820,9 @@ static const struct pci_device_id azx_ids[] = { .driver_data = AZX_DRIVER_LOONGSON | AZX_DCAPS_NO_TCSEL }, { PCI_VDEVICE(LOONGSON, PCI_DEVICE_ID_LOONGSON_HDMI), .driver_data = AZX_DRIVER_LOONGSON | AZX_DCAPS_NO_TCSEL }, + /* 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); -- 2.34.1 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 6/8] ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio 2026-04-07 8:24 ` [PATCH v2 6/8] ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio Fu Hao @ 2026-04-10 22:47 ` Bjorn Helgaas 2026-04-24 3:44 ` Fu Hao 0 siblings, 1 reply; 3+ messages in thread From: Bjorn Helgaas @ 2026-04-10 22:47 UTC (permalink / raw) To: Fu Hao; +Cc: bhelgaas, perex, tiwai, linux-kernel, linux-sound, linux-pci On Tue, Apr 07, 2026 at 04:24:56PM +0800, Fu Hao wrote: > Add the new PCI ID 0x1d94 0x14a9 for Hygon family 18h model 5h > HDA controller. > > Signed-off-by: Fu Hao <fuhao@open-hieco.net> > --- > include/linux/pci_ids.h | 1 + > sound/hda/controllers/intel.c | 5 +++++ > 2 files changed, 6 insertions(+) > > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index 406abf629..19d968017 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -2613,6 +2613,7 @@ > #define PCI_VENDOR_ID_ROCKCHIP 0x1d87 > > #define PCI_VENDOR_ID_HYGON 0x1d94 > +#define PCI_DEVICE_ID_HYGON_18H_M05H_HDA 0x14a9 It looks like PCI_DEVICE_ID_HYGON_18H_M05H_HDA is only used in sound/hda/controllers/intel.c, so it should probably be defined there so you don't need to modify include/linux/pci_ids.h: * Do not add new entries to this file unless the definitions * are shared between multiple drivers. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2 6/8] ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio 2026-04-10 22:47 ` Bjorn Helgaas @ 2026-04-24 3:44 ` Fu Hao 0 siblings, 0 replies; 3+ messages in thread From: Fu Hao @ 2026-04-24 3:44 UTC (permalink / raw) To: Bjorn Helgaas Cc: bhelgaas, perex, tiwai, linux-kernel, linux-sound, linux-pci On 2026/4/11 6:47, Bjorn Helgaas wrote: > On Tue, Apr 07, 2026 at 04:24:56PM +0800, Fu Hao wrote: >> Add the new PCI ID 0x1d94 0x14a9 for Hygon family 18h model 5h >> HDA controller. >> >> Signed-off-by: Fu Hao <fuhao@open-hieco.net> >> --- >> include/linux/pci_ids.h | 1 + >> sound/hda/controllers/intel.c | 5 +++++ >> 2 files changed, 6 insertions(+) >> >> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h >> index 406abf629..19d968017 100644 >> --- a/include/linux/pci_ids.h >> +++ b/include/linux/pci_ids.h >> @@ -2613,6 +2613,7 @@ >> #define PCI_VENDOR_ID_ROCKCHIP 0x1d87 >> >> #define PCI_VENDOR_ID_HYGON 0x1d94 >> +#define PCI_DEVICE_ID_HYGON_18H_M05H_HDA 0x14a9 > > It looks like PCI_DEVICE_ID_HYGON_18H_M05H_HDA is only used in > sound/hda/controllers/intel.c, so it should probably be defined there > so you don't need to modify include/linux/pci_ids.h: > > * Do not add new entries to this file unless the definitions > * are shared between multiple drivers. > Thank you for the clear guidance.I will modify it in v3 patch. -- Regards, Fu Hao ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-24 3:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1775548724.git.fuhao@open-hieco.net>
2026-04-07 8:24 ` [PATCH v2 6/8] ALSA: hda: Add support for Hygon family 18h model 5h HD-Audio Fu Hao
2026-04-10 22:47 ` Bjorn Helgaas
2026-04-24 3:44 ` Fu Hao
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox