intel/skylake: nhlt: Add capture configuration format for IV feedback from max98927

This changelist adds the capture format to be set for max98927. The
nhlt blob is the same but the format params for capture are different
from the render.

BUG=b:36724448
TEST=IV feedback data is of good quality

Change-Id: I135cf4479e89cd2046ff46027f94c0f71aed650e
Signed-off-by: Harsha Priya <harshapriya.n@intel.com>
Reviewed-on: https://review.coreboot.org/21340
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
Harsha Priya 2017-09-01 21:16:37 -07:00 committed by Furquan Shaikh
parent cdc9af9ebd
commit 768843e9e3
1 changed files with 21 additions and 0 deletions

View File

@ -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)