From 2c6c1b4d4fb636ea78dfe1136737c4b6baf5b21c Mon Sep 17 00:00:00 2001 From: Ranjani Sridharan Date: Wed, 6 Sep 2023 12:35:42 -0700 Subject: [PATCH] audio: google_rtc: Remove set_large_config op for IPC4 The input and output audio formats are sent during module init already. So no need to overwrite it with topology data that could be incorrect. Signed-off-by: Ranjani Sridharan --- .../google/google_rtc_audio_processing.c | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/audio/google/google_rtc_audio_processing.c b/src/audio/google/google_rtc_audio_processing.c index 513f8dbb3334..29493cf9da0b 100644 --- a/src/audio/google/google_rtc_audio_processing.c +++ b/src/audio/google/google_rtc_audio_processing.c @@ -704,30 +704,6 @@ static int google_rtc_audio_processing_copy(struct comp_dev *dev) } #if CONFIG_IPC_MAJOR_4 -static int google_rtc_audio_processing_set_large_config(struct comp_dev *dev, - uint32_t param_id, - bool first_block, - bool last_block, - uint32_t data_offset, - const char *data) -{ - struct google_rtc_audio_processing_comp_data *cd = comp_get_drvdata(dev); - size_t bcfg_size, ext_size; - - switch (param_id) { - case IPC4_AEC_SET_EXT_FMT: - bcfg_size = sizeof(struct ipc4_base_module_cfg); - ext_size = sizeof(cd->config) - bcfg_size; - memcpy_s((void *)&cd->config + bcfg_size, ext_size, data, ext_size); - return 0; - default: - comp_err(dev, "Invalid param %d", param_id); - return -EINVAL; - } - - return 0; -} - static int google_rtc_audio_processing_get_attribute(struct comp_dev *dev, uint32_t type, void *value) { @@ -759,7 +735,6 @@ static const struct comp_driver google_rtc_audio_processing = { .reset = google_rtc_audio_processing_reset, #if CONFIG_IPC_MAJOR_4 .get_attribute = google_rtc_audio_processing_get_attribute, - .set_large_config = google_rtc_audio_processing_set_large_config, #endif }, };