Skip to content

Commit c7807b2

Browse files
committed
ALSA: hda/via: Fix missing beep setup
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: 0e8f986 ("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>
1 parent 5faa0bc commit c7807b2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/pci/hda/patch_via.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,11 @@ static int via_parse_auto_config(struct hda_codec *codec)
518518
if (err < 0)
519519
return err;
520520

521-
err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
521+
err = auto_parse_beep(codec);
522522
if (err < 0)
523523
return err;
524524

525-
err = auto_parse_beep(codec);
525+
err = snd_hda_gen_parse_auto_config(codec, &spec->gen.autocfg);
526526
if (err < 0)
527527
return err;
528528

0 commit comments

Comments
 (0)