ASoC: soc-acpi: add comp_ids field for machine driver matching
authorBrent Lu <brent.lu@intel.com>
Fri, 29 Oct 2021 17:14:04 +0000 (01:14 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 Oct 2021 17:55:16 +0000 (18:55 +0100)
commitcafa39b650ec3ba8e9efa0825f1c08e029b5a1ed
treeb00009f43edb1521d026a2cd86492cb470c4a566
parent6c8552ebba7742e7128134859846e17edbfdf222
ASoC: soc-acpi: add comp_ids field for machine driver matching

A machine driver needs to be enumerated by more than one ACPI HID if
it supports second headphone driver (i.e. rt5682 and rt5682s).
However, the id field in snd_soc_acpi_mach structure could contain
only one HID. By adding a 'comp_ids' field which can contain several
HIDs, we can enumerate a machine driver by multiple ACPI HIDs.

Signed-off-by: Brent Lu <brent.lu@intel.com>
Link: https://lore.kernel.org/r/20211029171409.611600-2-brent.lu@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-acpi.h
sound/soc/soc-acpi.c