ALSA: hda/realtek - Apply PRE_PROBE fixup after ALC269 codec variant setups
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Jun 2018 09:55:02 +0000 (11:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 25 Jun 2018 08:04:27 +0000 (10:04 +0200)
commitefe557320ab6cea12205794fd4062e6e850b7e1c
treee19895a2c11479e394771517b134fbfcfd5b7b72
parentf8bfc628f73c95c242dd49efa16d59005d8558fc
ALSA: hda/realtek - Apply PRE_PROBE fixup after ALC269 codec variant setups

Currently patch_alc269() calls the fixup with HDA_FIXUP_ACT_PRE_PROBE
before setting up the codec model-specific setups (e.g. setting
codec_variant or mixer_nid setup).  This is rather confusing as others
do call the *_PRE_PROBE fixup after such a setup.  Due to this
disorder, we have to override spec->shutup not at the usual
HDA_FIXUP_ACT_PRE_PROBE but the unusual HDA_FIXUP_ACT_PROBE time.

This patch corrects the fixup call orders in patch_alc269(), and also
corrects the action to set up spec->shutup accordingly.

No functional changes but just refactoring.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c