All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Read _SUB from ACPI to be able to identify firmware
@ 2022-06-28 10:44 ` Stefan Binding
  0 siblings, 0 replies; 8+ messages in thread
From: Stefan Binding @ 2022-06-28 10:44 UTC (permalink / raw)
  To: Rafael J . Wysocki, Len Brown, Mark Brown, Liam Girdwood
  Cc: linux-acpi, alsa-devel, linux-kernel, patches, Stefan Binding

CS35L41 has a DSP which is able to run firmware, as well as a tuning file.
Different systems may want to use different firmwares and tuning files, and
some firmwares/tunings may not be compatible with other systems.
To allow a system to select the correct fimware/tuning, we can read an _SUB
from the ACPI. This _SUB can then be used to uniquely identify the system
in the firmware/tuning file name.

Add a helper function which reads the _SUB, so this can be used by other
parts in the future.
Add support inside the CS35L41 ASoC driver to read this _SUB, and save it
appropriately.

Changes since v3:
- Fix 32 bit format string warning

Changes since v2:
- Fix error in function prototype

Changes since v1:
- Add length validation for SSID String
- Rename API
- Allocate memory inside API
- Use ACPI_HANDLE macro instead of ACPI_COMPANION
- Improve error handling


Stefan Binding (2):
  ACPI: utils: Add api to read _SUB from ACPI
  ASoC: cs35l41: Read System Name from ACPI _SUB to identify firmware

 drivers/acpi/utils.c       | 38 ++++++++++++++++++++++++++++++++++++++
 include/linux/acpi.h       |  6 ++++++
 sound/soc/codecs/cs35l41.c | 24 ++++++++++++++++++++++++
 3 files changed, 68 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-29 18:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28 10:44 [PATCH v4 0/2] Read _SUB from ACPI to be able to identify firmware Stefan Binding
2022-06-28 10:44 ` Stefan Binding
2022-06-28 10:44 ` [PATCH v4 1/2] ACPI: utils: Add api to read _SUB from ACPI Stefan Binding
2022-06-28 10:44   ` Stefan Binding
2022-06-28 10:44 ` [PATCH v4 2/2] ASoC: cs35l41: Read System Name from ACPI _SUB to identify firmware Stefan Binding
2022-06-28 10:44   ` Stefan Binding
2022-06-29 18:49   ` Rafael J. Wysocki
2022-06-29 18:49     ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.