ACPI: NHLT: Introduce API for the table
authorCezary Rojewski <cezary.rojewski@intel.com>
Tue, 19 Mar 2024 08:30:16 +0000 (09:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Mar 2024 15:36:45 +0000 (16:36 +0100)
commit82b8acc06ea48b69c2482ac2ac994656c3740d08
tree5cb66c98bac3b329cfe3babfa8e6844519dd8c9f
parent2f7d7ea44adbe7497b225bbb7bfc29e3c792094d
ACPI: NHLT: Introduce API for the table

The table is composed of a range of endpoints with each describing
audio formats they support. Most of the operations involve iterating
over elements of the table and filtering them. Simplify the process by
implementing range of getters.

While the acpi_nhlt_endpoint_mic_count() stands out a bit, it is a
critical component for any AudioDSP driver to know how many digital
microphones it is dealing with.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/acpi/nhlt.c [new file with mode: 0644]
include/acpi/nhlt.h [new file with mode: 0644]