<p>harsha p would like HARSHAPRIYA N to <strong>review</strong> this change.</p><p><a href="https://review.coreboot.org/21340">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">intel/skylake: nhlt: Add capture format for IV feedback from max98927<br><br>This changelist adds the capture format to be set for max98927. The<br>nhlt blob is the same but the format params for capture are different<br>from the render.<br><br>BUG=b:36724448<br>TEST=IV feedback data is of good quality<br><br>Change-Id: I135cf4479e89cd2046ff46027f94c0f71aed650e<br>Signed-off-by: Harsha Priya <harshapriya.n@intel.com><br>---<br>M src/soc/intel/skylake/nhlt/max98927.c<br>1 file changed, 20 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/21340/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/soc/intel/skylake/nhlt/max98927.c b/src/soc/intel/skylake/nhlt/max98927.c<br>index 8b14df7..9a20cd8 100644<br>--- a/src/soc/intel/skylake/nhlt/max98927.c<br>+++ b/src/soc/intel/skylake/nhlt/max98927.c<br>@@ -36,6 +36,17 @@<br>      },<br> };<br> <br>+static const struct nhlt_format_config max98927_capture_formats[] = {<br>+   /* 48 KHz 16-bits per sample. */<br>+     {<br>+            .num_channels = 4,<br>+           .sample_freq_khz = 48,<br>+               .container_bits_per_sample = 32,<br>+             .valid_bits_per_sample = 16,<br>+         .speaker_mask = SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT,<br>+           .settings_file = "max98927-render-2ch-48khz-16b.bin",<br>+      },<br>+};<br> static const struct nhlt_endp_descriptor max98927_descriptors[] = {<br>         {<br>             .link = NHLT_LINK_SSP,<br>@@ -46,6 +57,15 @@<br>            .formats = max98927_render_formats,<br>           .num_formats = ARRAY_SIZE(max98927_render_formats),<br>   },<br>+   {<br>+            .link = NHLT_LINK_SSP,<br>+               .device = NHLT_SSP_DEV_I2S,<br>+          .direction = NHLT_DIR_CAPTURE,<br>+               .vid = NHLT_VID,<br>+             .did = NHLT_DID_SSP,<br>+         .formats = max98927_capture_formats,<br>+         .num_formats = ARRAY_SIZE(max98927_capture_formats),<br>+ },<br> };<br> <br> int nhlt_soc_add_max98927(struct nhlt *nhlt, int hwlink)<br></pre><p>To view, visit <a href="https://review.coreboot.org/21340">change 21340</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/21340"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I135cf4479e89cd2046ff46027f94c0f71aed650e </div>
<div style="display:none"> Gerrit-Change-Number: 21340 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: harsha p <harsha.p.n@intel.corp-partner.google.com> </div>
<div style="display:none"> Gerrit-Reviewer: HARSHAPRIYA N <harshapriya.n@intel.com> </div>