projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5faa0bc
)
ALSA: hda/via: Fix missing beep setup
author
Takashi Iwai
<tiwai@suse.de>
Mon, 20 Jun 2022 10:40:08 +0000
(12:40 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 20 Jun 2022 10:40:42 +0000
(12:40 +0200)
Like the previous fix for Conexant codec, the beep_nid has to be set
up before calling snd_hda_gen_parse_auto_config(); otherwise it'd miss
the path setup.
Fix the call order for addressing the missing beep setup.
Fixes: 0e8f9862493a ("ALSA: hda/via - Simplify control management")
Cc: <stable@vger.kernel.org>
Link:
https://bugzilla.kernel.org/show_bug.cgi?id=216152
Link:
https://lore.kernel.org/r/20220620104008.1994-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_via.c
b/sound/pci/hda/patch_via.c
index a05304f340df564bbacf8a9bd5126fb178e562eb..aea7fae2ca4b2b9dd594a24eca935bda569fd0f9 100644
(file)
--- a/
sound/pci/hda/patch_via.c
+++ b/
sound/pci/hda/patch_via.c
@@
-518,11
+518,11
@@
static int via_parse_auto_config(struct hda_codec *codec)
if (err < 0)
return err;
- err =
snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg
);
+ err =
auto_parse_beep(codec
);
if (err < 0)
return err;
- err =
auto_parse_beep(codec
);
+ err =
snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg
);
if (err < 0)
return err;