From 59790dded6d658b99031f73d788f250ecb2587b5 Mon Sep 17 00:00:00 2001 From: Sathyanarayana Nujella Date: Thu, 21 Jun 2018 16:53:56 -0700 Subject: intel/skylake: nhlt: Add capture config for echo ref stream for Max98373 Codec During Speaker playback, quad Channel I/V feedback data is captured from SSP0 Rx. Out of these 4-channels, Stereo V-Sense data needs to be given as echo ref stream. So, adding stereo capture config to max98373_capture_formats. BUG=b:110074225 TEST='Audio playback and Capture Stereo echo ref data' Change-Id: I6fe619ece94d5011caffe37ef10b48f956938db9 Signed-off-by: Sathyanarayana Nujella Reviewed-on: https://review.coreboot.org/27182 Reviewed-by: Aaron Durbin Reviewed-by: Furquan Shaikh Tested-by: build bot (Jenkins) --- src/soc/intel/skylake/nhlt/max98373.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/skylake/nhlt/max98373.c b/src/soc/intel/skylake/nhlt/max98373.c index 7d01b92816..beb455874f 100644 --- a/src/soc/intel/skylake/nhlt/max98373.c +++ b/src/soc/intel/skylake/nhlt/max98373.c @@ -37,7 +37,7 @@ static const struct nhlt_format_config max98373_render_formats[] = { }; static const struct nhlt_format_config max98373_capture_formats[] = { - /* 48 KHz 16-bits per sample. */ + /* 48 KHz 16-bits per sample - Quad Channel. */ { .num_channels = 4, .sample_freq_khz = 48, @@ -46,6 +46,15 @@ static const struct nhlt_format_config max98373_capture_formats[] = { .speaker_mask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT, .settings_file = "max98373-render-2ch-48khz-16b.bin", }, + /* 48 KHz 16-bits per sample - Stereo Channel */ + { + .num_channels = 2, + .sample_freq_khz = 48, + .container_bits_per_sample = 32, + .valid_bits_per_sample = 16, + .speaker_mask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT, + .settings_file = "max98373-render-2ch-48khz-16b.bin", + }, }; static const struct nhlt_endp_descriptor max98373_descriptors[] = { -- cgit v1.2.3