Skip to content

Commit 17c6433

Browse files
tmlemanlrgirdwo
authored andcommitted
intel: dmic: set plat_data fifo depth for capture
This patch sets plat_data fifo depth for SOF_IPC_STREAM_CAPTURE instead of a SOF_IPC_STREAM_PLAYBACK. The value is later read with get_fifo_depth(). Without this patch the driver sets the value to fifo[0].depth and then reads from fifo[1].depth. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 6ee7bf4 commit 17c6433

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/drivers/intel/dmic/dmic_nhlt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ int dmic_set_config_nhlt(struct dai *dai, void *spec_config)
318318
* configuration
319319
*/
320320
bfth = OUTCONTROL0_BFTH_GET(val);
321-
dai->plat_data.fifo->depth = 1 << bfth;
321+
dai->plat_data.fifo[SOF_IPC_STREAM_CAPTURE].depth = 1 << bfth;
322322

323323
/* Get PDMx registers */
324324
pdm_ctrl_mask = ((struct nhlt_pdm_ctrl_mask *)p)->pdm_ctrl_mask;

0 commit comments

Comments
 (0)