]> git.alsa-project.org Git - alsa-utils.git/commit
topology: plugins - add Intel nhlt encoder plugin
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Tue, 14 Dec 2021 15:20:50 +0000 (17:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 3 May 2022 11:24:03 +0000 (13:24 +0200)
commitf9e6010d5ec74dfdc7dc228219194a4f6e132ce4
treebef4fe66f8ed353b9ca38179e3857aebbb3026fc
parent44d3e8aa44fc12f95bfeef0e3a1051e8f77047b5
topology: plugins - add Intel nhlt encoder plugin

Add Intel nhlt acpi table encoder plugin into topology2.0 processing.
Nhlt internal structure is defined in:
https://01.org/sites/default/files/595976_intel_sst_nhlt.pdf
Nhlt acpi table contain vendor specific binary data blobs that are used
in some Intel dsp platforms for configuring the dmic and ssp hardware.

The function of this code is mainly to generate the vendor specific
binary blobs, but as there is existing nhlt parser code and header in
kernel there's no point of re-inventing the container: just use the
existing nhlt acpi table format. Basically this code is creating similar
nhlt acpi table that you would get from: cat
/sys/firmware/acpi/tables/NHLT

This code will have implementation for dmic and ssp endpoints. Thus the
code will translate the topology dai tokens into vendor specific binary
blobs and pack them into nhlt acpi table. Ssp and dmic code is lifted
from Sound Open Firmware (sof) code base, thus it will have BSD-3
license.

This plugin can be enabled from command line with:

alsatplg -DPREPROCESS_PLUGINS="nhlt" -c foo.conf -p -o bar.tplg

You can also dump the nhlt binary into a file with additional define:

-DNHLT_BIN="nhlt.bin"

Link: https://github.com/alsa-project/alsa-utils/pull/129
Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
26 files changed:
.gitignore
configure.ac
gitcompile
topology/Makefile.am
topology/nhlt/Makefile.am [new file with mode: 0644]
topology/nhlt/intel/dmic-nhlt.c [new file with mode: 0644]
topology/nhlt/intel/dmic-nhlt.h [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-debug.c [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-debug.h [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-intel.h [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-internal.h [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-process.c [new file with mode: 0644]
topology/nhlt/intel/dmic/dmic-process.h [new file with mode: 0644]
topology/nhlt/intel/dmic/pdm-decim-fir.h [new file with mode: 0644]
topology/nhlt/intel/intel-nhlt.c [new file with mode: 0644]
topology/nhlt/intel/intel-nhlt.h [new file with mode: 0644]
topology/nhlt/intel/ssp-nhlt.c [new file with mode: 0644]
topology/nhlt/intel/ssp-nhlt.h [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-debug.c [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-debug.h [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-intel.h [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-internal.h [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-process.c [new file with mode: 0644]
topology/nhlt/intel/ssp/ssp-process.h [new file with mode: 0644]
topology/nhlt/nhlt-processor.c [new file with mode: 0644]
topology/nhlt/nhlt.h [new file with mode: 0644]