ASoC: Intel: soc-acpi-intel-ptl-match: Sort ACPI link/machine tables#5352
Conversation
|
why the reorder ? Is this to make it easier to access ? |
We check subset of link mask when matching the machine driver. IOW, if a subset match is in front of a superset match, the subset match will be selected. |
d49fdfc to
190936e
Compare
Do we spell this out in a BIG comment at the top of the file ? |
Did comment on this, please let me know if anything more to be added. |
| } | ||
| }; | ||
|
|
||
| static const struct snd_soc_acpi_adr_device cs42l43_3_adr[] = { |
There was a problem hiding this comment.
Reordering snd_soc_acpi_intel_ptl_sdw_machines[] is enough. Let's leave other stuff as it is and help people focus on the required change.
190936e to
fe79e8a
Compare
Ok, this is good - but it needs to be at the top of the file so that patch authors and maintainers can easily see the rule and apply. No one will check the git commit log before making changes to a file. |
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>
fe79e8a to
5e4358d
Compare
Agreed, have updated. |
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.
Reorder acpi_link_adr & sdw_machine tables per defined criteria:
Per above criteria sorted entries in snd_soc_acpi_link_adr & snd_soc_acpi_intel_ptl_sdw_machines table:
sdw_mockup_headset_2amps_mic
sdw_mockup_headset_1amp_mic
sdw_mockup_mic_headset_1amp
sdw_mockup_multi_func
ptl_sdw_rt713_vb_l2_rt1320_l13
ptl_sdw_rt713_vb_l3_rt1320_l12
ptl_cs42l43_l2_cs35l56x6_l13
ptl_sdw_rt712_vb_l2_rt1320_l1
ptl_sdw_rt712_vb_l3_rt1320_l2
ptl_rvp
ptl_rt722_only
ptl_rt722_l1
ptl_cs42l43_l3
ptl_rt721_l3
ptl_rt722_l3