From 748e4f3d702def1a4bff191e0cf93b6a05340f01 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 07:41:34 +0000 Subject: [PATCH] add gpio led uart --- kernel/sound/soc/sof/intel/hda-dai.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/sound/soc/sof/intel/hda-dai.c b/kernel/sound/soc/sof/intel/hda-dai.c index ef31631..ba5cb48 100644 --- a/kernel/sound/soc/sof/intel/hda-dai.c +++ b/kernel/sound/soc/sof/intel/hda-dai.c @@ -212,6 +212,10 @@ int stream_tag; int ret; + link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); + if (!link) + return -EINVAL; + /* get stored dma data if resuming from system suspend */ link_dev = snd_soc_dai_get_dma_data(dai, substream); if (!link_dev) { @@ -231,10 +235,6 @@ substream->stream); if (ret < 0) return ret; - - link = snd_hdac_ext_bus_get_link(bus, codec_dai->component->name); - if (!link) - return -EINVAL; /* set the stream tag in the codec dai dma params */ if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) -- Gitblit v1.6.2