Skip to content

Commit 4d76ead

Browse files
committed
Audio: Pipeline: No dai_get_init_delay_ms() with testbench
The file module does not provide a dai_get_init_delay_ms() operation so it is skipped for CONFIG_LIBRARY build. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent a6e9b27 commit 4d76ead

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/audio/pipeline/pipeline-stream.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ static int pipeline_comp_trigger(struct comp_dev *current,
371371
* Initialization delay is only used with SSP, where we
372372
* don't use more than one DAI per copier
373373
*/
374+
#if !CONFIG_LIBRARY
374375
struct dai_data *dd;
375376
#if CONFIG_IPC_MAJOR_3
376377
dd = comp_get_drvdata(current);
@@ -383,6 +384,7 @@ static int pipeline_comp_trigger(struct comp_dev *current,
383384
#error Unknown IPC major version
384385
#endif
385386
ppl_data->delay_ms = dai_get_init_delay_ms(dd->dai);
387+
#endif
386388
}
387389
break;
388390
default:

0 commit comments

Comments
 (0)