Skip to content

Commit 0d7b596

Browse files
committed
ASoC: SOF: revise snd_sof_find_spcm_dai
snd_sof_find_spcm_dai() is looking for the spcm that matches the rtd->dai_link->id. And the FE DAI link id is pcm->pcm_id instead of pcm->dai_id. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent b3b2051 commit 0d7b596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/sof-audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ struct snd_sof_pcm *snd_sof_find_spcm_dai(struct snd_soc_component *scomp,
602602
struct snd_sof_pcm *spcm;
603603

604604
list_for_each_entry(spcm, &sdev->pcm_list, list) {
605-
if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id)
605+
if (le32_to_cpu(spcm->pcm.pcm_id) == rtd->dai_link->id)
606606
return spcm;
607607
}
608608

0 commit comments

Comments
 (0)