]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: soc-acpi-intel-ptl-match: Sort ACPI link/machine tables
authorNaveen Manohar <naveen.m@intel.com>
Tue, 6 May 2025 01:49:30 +0000 (09:49 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 6 May 2025 13:48:23 +0000 (22:48 +0900)
commit08095e20995ad6e3648af7416c90163627fe7e44
treecac80c743acf3e206c314be81289e25cc8de99ea
parenta71b261c19a455f7f8e560b4ddfac44d3150ae39
ASoC: Intel: soc-acpi-intel-ptl-match: Sort ACPI link/machine tables

Check subset of link mask when matching the machine driver,
rule is superset match should be ordered before subset matches.

Priority: mockup > most links > most bit link-mask > alphabetical

Reorder acpi_link_adr & sdw_machine tables per defined criteria:
1.Mock Test 1st
2.Most links 1st
3.link_mask with more bit first
4.link_number number order
5.Alphabetical order

Signed-off-by: Naveen Manohar <naveen.m@intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20250506014930.5408-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/common/soc-acpi-intel-ptl-match.c