mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:45:41 +01:00
f9e6010d5e
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>
28 lines
780 B
Bash
Executable file
28 lines
780 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if test -d ../alsa-lib/utils && ! test -r `aclocal --print-ac-dir`/alsa.m4; then
|
|
alsa_m4_flags="-I ../alsa-lib/utils"
|
|
fi
|
|
aclocal $alsa_m4_flags $ACLOCAL_FLAGS
|
|
# save original files to avoid stupid modifications by gettextize
|
|
cp Makefile.am Makefile.am.ok
|
|
cp configure.ac configure.ac.ok
|
|
gettextize -c -f --no-changelog
|
|
echo "EXTRA_DIST = gettext.m4" > m4/Makefile.am
|
|
cp Makefile.am.ok Makefile.am
|
|
cp configure.ac.ok configure.ac
|
|
touch ltconfig
|
|
libtoolize --force --copy --automake
|
|
aclocal $ACLOCAL_FLAGS
|
|
autoheader
|
|
automake --foreign --copy --add-missing
|
|
touch depcomp # for older automake
|
|
autoconf
|
|
export CFLAGS='-O2 -Wall -pipe -g'
|
|
echo "CFLAGS=$CFLAGS"
|
|
echo "./configure $@"
|
|
./configure $@ || exit 1
|
|
unset CFLAGS
|
|
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
|
|
make
|
|
fi
|