Skip to content

Commit

Permalink
fixup! ASoC: SOF: IPC4: extend dai_data with node_id
Browse files Browse the repository at this point in the history
Commit da53ad5 ("ASoC: SOF: IPC4: extend dai_data with node_id")
uses the node_id value specifically for ALH but the code is also used by
HDA. Now reserve the old logic for HDA case.

Signed-off-by: Rander Wang <rander.wang@intel.com>
  • Loading branch information
RanderWang authored and ranj063 committed Feb 22, 2024
1 parent 7ad86c5 commit 59c5a8d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sound/soc/sof/ipc4-topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2838,7 +2838,11 @@ static int sof_ipc4_dai_config(struct snd_sof_dev *sdev, struct snd_sof_widget *
case SOF_DAI_INTEL_HDA:
gtw_attr = ipc4_copier->gtw_attr;
gtw_attr->lp_buffer_alloc = pipeline->lp_mode;
fallthrough;
if (flags & SOF_DAI_CONFIG_FLAGS_HW_PARAMS) {
copier_data->gtw_cfg.node_id &= ~SOF_IPC4_NODE_INDEX_MASK;
copier_data->gtw_cfg.node_id |= SOF_IPC4_NODE_INDEX(data->dai_data);
}
break;
case SOF_DAI_INTEL_ALH:
/*
* Do not clear the node ID when this op is invoked with
Expand Down

0 comments on commit 59c5a8d

Please sign in to comment.