From ca342e108227859112746bb262bb742e800b6973 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Tue, 6 Dec 2022 20:46:36 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70393 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Raul Rangel Reviewed-by: CoolStar --- src/include/nhlt.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') 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 { -- cgit v1.2.3