diff options
author | Sathyanarayana Nujella <sathyanarayana.nujella@intel.com> | 2018-06-21 16:53:56 -0700 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-06-25 08:17:03 +0000 |
commit | 59790dded6d658b99031f73d788f250ecb2587b5 (patch) | |
tree | 2662e7053abbfe1084fc719d58169e063b5f404e | |
parent | 1bf411c743c0bbea849a36862a6cc9b62f411bc0 (diff) |
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 <sathyanarayana.nujella@intel.com>
Reviewed-on: https://review.coreboot.org/27182
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/soc/intel/skylake/nhlt/max98373.c | 11 |
1 files changed, 10 insertions, 1 deletions
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[] = { |