Skip to content

Commit

Permalink
fixup! ASoC: SOF: Intel: hda-dai: add helpers to set dai config
Browse files Browse the repository at this point in the history
We should use hda_dai_hw_params_data() when the data is already
present.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
  • Loading branch information
bardliao committed Feb 21, 2024
1 parent fe385b6 commit 7ad86c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sof/intel/hda-dai.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ static int non_hda_dai_hw_params_data(struct snd_pcm_substream *substream,
}

/* use HDaudio stream handling */
ret = hda_dai_hw_params(substream, params, cpu_dai);
ret = hda_dai_hw_params_data(substream, params, cpu_dai, data, flags);
if (ret < 0) {
dev_err(cpu_dai->dev, "%s: hda_dai_hw_params failed: %d\n", __func__, ret);
dev_err(cpu_dai->dev, "%s: hda_dai_hw_params_data failed: %d\n", __func__, ret);
return ret;
}

Expand Down

0 comments on commit 7ad86c5

Please sign in to comment.