From 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Tue, 22 Oct 2024 10:36:11 +0000 Subject: [PATCH] 修改4g拨号为QMI,需要在系统里后台执行quectel-CM --- kernel/sound/pci/ac97/ac97_codec.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernel/sound/pci/ac97/ac97_codec.c b/kernel/sound/pci/ac97/ac97_codec.c index cd66632..d894dcd 100644 --- a/kernel/sound/pci/ac97/ac97_codec.c +++ b/kernel/sound/pci/ac97/ac97_codec.c @@ -2007,10 +2007,9 @@ .dev_disconnect = snd_ac97_dev_disconnect, }; - if (rac97) - *rac97 = NULL; - if (snd_BUG_ON(!bus || !template)) + if (snd_BUG_ON(!bus || !template || !rac97)) return -EINVAL; + *rac97 = NULL; if (snd_BUG_ON(template->num >= 4)) return -EINVAL; if (bus->codec[template->num]) -- Gitblit v1.6.2