ipc4: copier: only update pipeline reg for playback

We don't do it for capture.

Signed-off-by: Rander Wang <rander.wang@intel.com>
This commit is contained in:
Rander Wang 2021-11-16 15:25:20 +08:00 committed by Liam Girdwood
parent 87fd87abb9
commit 38ed99ffd4
1 changed files with 4 additions and 4 deletions

View File

@ -269,12 +269,12 @@ static struct comp_dev *copier_new(const struct comp_driver *drv,
goto error_cd;
}
if (cd->direction == SOF_IPC_STREAM_PLAYBACK)
if (cd->direction == SOF_IPC_STREAM_PLAYBACK) {
ipc_pipe->pipeline->source_comp = dev;
else
init_pipeline_reg(cd);
} else {
ipc_pipe->pipeline->sink_comp = dev;
init_pipeline_reg(cd);
}
break;
case ipc4_hda_link_output_class: