Re: [RFC PATCH 6/8] ASoC: Intel: avs: Update PCI ID list

From: Andy Shevchenko
Date: Wed Jun 28 2023 - 10:53:32 EST


On Wed, Jun 28, 2023 at 10:51:33PM +0200, Amadeusz Sławiński wrote:
> Use PCI device IDs from pci_ids.h header. Adjust AVS_MACH_ENTRY macro,

AVS_MACH_ENTRY()

> so device id can be provided in short form.

ID

...

> #define AVS_MACH_ENTRY(_id, _mach) \
> - { .id = (_id), .machs = (_mach), }
> + { .id = PCI_DEVICE_ID_INTEL_HDA_##_id, .machs = (_mach), }

I would duplicate HDA in all entries below in order to be compatible with
PCI_DEVICE_DATA() (logically, so if I grep for one, I grep exactly for
everything after PCI_DEVICE_ID_INTEL_ prefix and these won't show up.

--
With Best Regards,
Andy Shevchenko