From f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 31 Jan 2024 01:04:47 +0000
Subject: [PATCH] add driver 5G
---
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