Commit ea15d602 authored by Amadeusz Sławiński's avatar Amadeusz Sławiński Committed by Takashi Iwai

ASoC: Intel: avs: Convert to PCI device IDs defines

Use PCI device IDs from pci_ids.h header. Adjust AVS_MACH_ENTRY() macro,
so device ID can be provided in short form.
Acked-by: default avatarMark Brown <broonie@kernel.org>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230717114511.484999-13-amadeuszx.slawinski@linux.intel.comSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8d9614b8
...@@ -263,14 +263,14 @@ struct avs_acpi_boards { ...@@ -263,14 +263,14 @@ struct avs_acpi_boards {
}; };
#define AVS_MACH_ENTRY(_id, _mach) \ #define AVS_MACH_ENTRY(_id, _mach) \
{ .id = (_id), .machs = (_mach), } { .id = PCI_DEVICE_ID_INTEL_##_id, .machs = (_mach), }
/* supported I2S boards per platform */ /* supported I2S boards per platform */
static const struct avs_acpi_boards i2s_boards[] = { static const struct avs_acpi_boards i2s_boards[] = {
AVS_MACH_ENTRY(0x9d70, avs_skl_i2s_machines), /* SKL */ AVS_MACH_ENTRY(HDA_SKL_LP, avs_skl_i2s_machines),
AVS_MACH_ENTRY(0x9d71, avs_kbl_i2s_machines), /* KBL */ AVS_MACH_ENTRY(HDA_KBL_LP, avs_kbl_i2s_machines),
AVS_MACH_ENTRY(0x5a98, avs_apl_i2s_machines), /* APL */ AVS_MACH_ENTRY(HDA_APL, avs_apl_i2s_machines),
AVS_MACH_ENTRY(0x3198, avs_gml_i2s_machines), /* GML */ AVS_MACH_ENTRY(HDA_GML, avs_gml_i2s_machines),
{}, {},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment