]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/conexant: Fix missing beep setup
authorTakashi Iwai <tiwai@suse.de>
Mon, 20 Jun 2022 10:40:07 +0000 (12:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 20 Jun 2022 10:40:41 +0000 (12:40 +0200)
commit81faf8b91e9d74ad9c264980e0867bf4ba3de66e
tree6acbea00c54db9c6bd0f9755932f538fd196a426
parent8de03c870fdd62ce39012cb38b3ff730e49661d8
ALSA: hda/conexant: Fix missing beep setup

Currently the Conexant codec driver sets up the beep NID after calling
snd_hda_gen_parse_auto_config().  It turned out that this results in
the insufficient setup for the beep control, as the generic parser
handles the fake path in snd_hda_gen_parse_auto_config() only if the
beep_nid is set up beforehand.

For dealing with the beep widget properly, call cx_auto_parse_beep()
before snd_hda_gen_parse_auto_config() call.

Fixes: cffe139e6460 ("ALSA: hda/conexant - Clean up beep code")
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216152
Link: https://lore.kernel.org/r/20220620104008.1994-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_conexant.c