Skip to content

Commit 4d5ae87

Browse files
fix compilation errors
Signed-off-by: Serhiy Katsyuba <serhiy.katsyuba@intel.com>
1 parent ce7dbbf commit 4d5ae87

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/audio/dai-zephyr.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,12 @@ static void dai_dma_release_channel(struct dai_data *dd)
597597
dd->chan_index = -EINVAL;
598598
}
599599

600+
#if CONFIG_UAOL_INTEL_ADSP
600601
if (dd->uaol.fb_chan_idx >= 0) {
601602
sof_dma_release_channel(dd->dma, dd->uaol.fb_chan_idx);
602603
dd->uaol.fb_chan_idx = -EINVAL;
603604
}
605+
#endif
604606
}
605607

606608
static int dai_dma_config(struct dai_data *dd)
@@ -609,8 +611,10 @@ static int dai_dma_config(struct dai_data *dd)
609611
if (ret < 0)
610612
return ret;
611613

614+
#if CONFIG_UAOL_INTEL_ADSP
612615
if (dd->uaol.fb_chan_idx >= 0)
613616
ret = sof_dma_config(dd->dma, dd->uaol.fb_chan_idx, dd->uaol.fb_z_config);
617+
#endif
614618

615619
return ret;
616620
}
@@ -621,8 +625,10 @@ static int dai_dma_start(struct dai_data *dd)
621625
if (ret < 0)
622626
return ret;
623627

628+
#if CONFIG_UAOL_INTEL_ADSP
624629
if (dd->uaol.fb_chan_idx >= 0)
625630
ret = sof_dma_start(dd->dma, dd->uaol.fb_chan_idx);
631+
#endif
626632

627633
return ret;
628634
}
@@ -631,9 +637,11 @@ static int dai_dma_stop(struct dai_data *dd)
631637
{
632638
int ret = sof_dma_stop(dd->dma, dd->chan_index);
633639

640+
#if CONFIG_UAOL_INTEL_ADSP
634641
/* seems it's better to stop feedback even when the above fails */
635642
if (dd->uaol.fb_chan_idx >= 0)
636643
sof_dma_stop(dd->dma, dd->uaol.fb_chan_idx);
644+
#endif
637645

638646
return ret;
639647
}
@@ -642,9 +650,11 @@ static int dai_dma_suspend(struct dai_data *dd)
642650
{
643651
int ret = sof_dma_suspend(dd->dma, dd->chan_index);
644652

653+
#if CONFIG_UAOL_INTEL_ADSP
645654
/* seems it's better to suspend feedback even when the above fails */
646655
if (dd->uaol.fb_chan_idx >= 0)
647656
sof_dma_suspend(dd->dma, dd->uaol.fb_chan_idx);
657+
#endif
648658

649659
return ret;
650660
}
@@ -711,7 +721,9 @@ __cold void dai_common_free(struct dai_data *dd)
711721

712722
rfree(dd->dai_spec_config);
713723

724+
#if CONFIG_UAOL_INTEL_ADSP
714725
uaol_free(dd);
726+
#endif
715727
}
716728

717729
__cold static void dai_free(struct comp_dev *dev)

0 commit comments

Comments
 (0)