aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2022-12-06 20:46:36 -0600
committerFelix Held <felix-coreboot@felixheld.de>2022-12-21 13:57:48 +0000
commitca342e108227859112746bb262bb742e800b6973 (patch)
tree1c09bf6bcaa5d2359abd8114b6b469ef356d557a /src/include
parent343644006f89d201b42e9f340f9907b2eea56b5b (diff)
lib/nhlt, soc/intel/skl: Update NHLT to program feedback config
Adapted from WIP (and abandoned) patch CB:25334, this patch: 1. Ensures SSP endpoint InstanceId is 0 2. Adds capability_size parameter at the end of the nhlt 3. Adsd more config_type enum values to accommodate feedback stream 4. Programs virtual_slot values for max98373, max98927, and rt5514 nhlt files 5. Adds NHLT feedback_config parameters Default feedback configs are added here to the max98373, max98927, and rt5514 codecs; in a follow-on patch, these will be overridden at the board level. TEST=tested with subsequent patch Change-Id: I59285e332de09bb448b0d67ad56c72a208588d47 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70393 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: CoolStar <coolstarorganization@gmail.com>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/nhlt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/nhlt.h b/src/include/nhlt.h
index 167be520dc..5d7564bd76 100644
--- a/src/include/nhlt.h
+++ b/src/include/nhlt.h
@@ -299,6 +299,17 @@ struct nhlt_tdm_config {
enum {
NHLT_TDM_BASIC,
NHLT_TDM_MIC_ARRAY,
+ NHLT_TDM_RENDER_WITH_LOOPBACK,
+ NHLT_TDM_RENDER_FEEDBACK,
+ NHLT_TDM_MULTI_MODE,
+ NHLT_TDM_MULTI_MODE_MIC_ARRAY = NHLT_TDM_MULTI_MODE | NHLT_TDM_MIC_ARRAY
+};
+
+struct nhlt_feedback_config {
+ struct nhlt_tdm_config tdm_config;
+ uint8_t feedback_virtual_slot;
+ uint16_t feedback_channels;
+ uint16_t feedback_valid_bits_per_sample;
};
struct nhlt_dmic_array_config {