summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/intel/skylake/nhlt/max98927.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/soc/intel/skylake/nhlt/max98927.c b/src/soc/intel/skylake/nhlt/max98927.c
index 8b14df7eef..bbaf15ded9 100644
--- a/src/soc/intel/skylake/nhlt/max98927.c
+++ b/src/soc/intel/skylake/nhlt/max98927.c
@@ -36,6 +36,18 @@ static const struct nhlt_format_config max98927_render_formats[] = {
},
};
+static const struct nhlt_format_config max98927_capture_formats[] = {
+ /* 48 KHz 16-bits per sample. */
+ {
+ .num_channels = 4,
+ .sample_freq_khz = 48,
+ .container_bits_per_sample = 32,
+ .valid_bits_per_sample = 16,
+ .speaker_mask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT |
+ SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT,
+ .settings_file = "max98927-render-2ch-48khz-16b.bin",
+ },
+};
static const struct nhlt_endp_descriptor max98927_descriptors[] = {
{
.link = NHLT_LINK_SSP,
@@ -46,6 +58,15 @@ static const struct nhlt_endp_descriptor max98927_descriptors[] = {
.formats = max98927_render_formats,
.num_formats = ARRAY_SIZE(max98927_render_formats),
},
+ {
+ .link = NHLT_LINK_SSP,
+ .device = NHLT_SSP_DEV_I2S,
+ .direction = NHLT_DIR_CAPTURE,
+ .vid = NHLT_VID,
+ .did = NHLT_DID_SSP,
+ .formats = max98927_capture_formats,
+ .num_formats = ARRAY_SIZE(max98927_capture_formats),
+ },
};
int nhlt_soc_add_max98927(struct nhlt *nhlt, int hwlink)