Skip to content

Commit 4841dc6

Browse files
author
Jyri Sarha
committed
audio: module-adapter: Fix SRC regression when ext_init dp_data present
Fix SRC DP regression when dp_data is present in the ext_init payload. The only situation where we can assume that there is no module specific init after the ext_init payload is when it was offered as part of ext_init payload. Completes fix abf1aa9 ("audio: module-adapter: fix SRC DP regression") Fixes: d263649 ("module: Add support for module-specific init data") Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
1 parent 582fe69 commit 4841dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/audio/module_adapter/module_adapter_ipc4.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ int module_adapter_init_data(struct comp_dev *dev,
159159
}
160160
}
161161

162-
if (!config->ipc_extended_init ||
163-
(!dst->ext_data->dp_data && !dst->ext_data->module_data)) {
162+
/* Assume legacy API if module data was not found in ext_init payload */
163+
if (!dst->ext_data || !dst->ext_data->module_data) {
164164
dst->init_data = cfg; /* legacy API */
165165
dst->avail = true;
166166
}

0 commit comments

Comments
 (0)