Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Nov 22, 2021
    • Hans de Goede's avatar
      ASoC: soc-acpi: Set mach->id field on comp_ids matches · 28c916ad
      Hans de Goede authored
      Commit dac7cbd5 ("ASoC: Intel: soc-acpi-byt: shrink tables using
      compatible IDs") and commit 959ae821 ("ASoC: Intel: soc-acpi-cht:
      shrink tables using compatible IDs") simplified the match tables in
      soc-acpi-intel-byt-match.c and soc-acpi-intel-cht-match.c by merging
      identical entries using the new .comp_ids snd_soc_acpi_mach field to
      point a single entry to multiple ACPI HIDs and clearing the previously
      unique per entry .id field.
      
      But various machine drivers from sound/soc/intel/boards rely on mach->id
      in one or more ways, e.g. some drivers contain the following snippets:
      
      	adev = acpi_dev_get_first_match_dev(mach->id, NULL, -1);
      
      	pkg_found = snd_soc_acpi_find_package_from_hid(mach->id, ...
      
      	if (!strncmp(snd_soc_cards[i].codec_id, mach->id, 8)) { ...
      
      All of which are broken by the match table shrinking.
      
      Make the snd_soc_acpi_mach.id field non const (the storage for the tables
      already is non const) and on a comps_ids match copy the matchi...
      28c916ad
  2. Nov 18, 2021
  3. Nov 17, 2021
  4. Nov 16, 2021
  5. Nov 15, 2021
  6. Nov 12, 2021
  7. Nov 05, 2021