From 9ce6b74cc2bc96a8003057bdde37b7d66a8678c3 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Mon, 8 Jul 2024 14:50:27 -0700 Subject: [PATCH] ipc3: fix type usage bug This is effectively a no-op, but does not look good. It runs the risk of a type divergence when a major ABI update comes. So lets just use the right type in the right place. --- src/ipc/ipc3/helper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ipc/ipc3/helper.c b/src/ipc/ipc3/helper.c index 8646d80f0319..b76ab72c0ced 100644 --- a/src/ipc/ipc3/helper.c +++ b/src/ipc/ipc3/helper.c @@ -260,8 +260,8 @@ static int comp_specific_builder(struct sof_ipc_comp *comp, config->tone.sample_rate = tone->sample_rate; break; case SOF_COMP_ASRC: - config->asrc.source_rate = src->source_rate; - config->asrc.sink_rate = src->sink_rate; + config->asrc.source_rate = asrc->source_rate; + config->asrc.sink_rate = asrc->sink_rate; config->asrc.asynchronous_mode = asrc->asynchronous_mode; config->asrc.operation_mode = asrc->operation_mode; break;