diff --git a/app/boards/intel_adsp_ace30_ptl.conf b/app/boards/intel_adsp_ace30_ptl.conf index a90abefa38e5..999b9d1e9407 100644 --- a/app/boards/intel_adsp_ace30_ptl.conf +++ b/app/boards/intel_adsp_ace30_ptl.conf @@ -14,6 +14,12 @@ CONFIG_COMP_UP_DOWN_MIXER=y CONFIG_COMP_VOLUME_WINDOWS_FADE=y CONFIG_FORMAT_CONVERT_HIFI3=n +# SOF / audio modules / mocks +# This mock is part of official sof-bin releases because the CI that +# tests it can't use extra CONFIGs. See #9410, #8722 and #9386 +CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING=m +CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK=y + # SOF / infrastructure CONFIG_KCPS_DYNAMIC_CLOCK_CONTROL=n CONFIG_PROBE=y diff --git a/src/audio/host-legacy.c b/src/audio/host-legacy.c index 192686da3fdd..c6a1c1d4cdda 100644 --- a/src/audio/host-legacy.c +++ b/src/audio/host-legacy.c @@ -716,6 +716,11 @@ int host_common_params(struct host_data *hd, struct comp_dev *dev, else hd->local_buffer = comp_dev_get_first_data_producer(dev); + if (!hd->local_buffer) { + comp_err(dev, "no local buffer found"); + return -EINVAL; + } + period_bytes = dev->frames * audio_stream_frame_bytes(&hd->local_buffer->stream); diff --git a/src/audio/host-zephyr.c b/src/audio/host-zephyr.c index 5aec7ff1a4d4..8dcc8dbea562 100644 --- a/src/audio/host-zephyr.c +++ b/src/audio/host-zephyr.c @@ -903,6 +903,11 @@ int host_common_params(struct host_data *hd, struct comp_dev *dev, else hd->local_buffer = comp_dev_get_first_data_producer(dev); + if (!hd->local_buffer) { + comp_err(dev, "no local buffer found"); + return -EINVAL; + } + period_bytes = dev->frames * get_frame_bytes(params->frame_fmt, params->channels); if (!period_bytes) {