Skip to content

Commit 6317f74

Browse files
committed
ALSA: hda: Fix regression on forced probe mask option
The forced probe mask via probe_mask 0x100 bit doesn't work any longer as expected since the bus init code was moved and it's clearing the codec_mask value that was set beforehand. This patch fixes the long-time regression by moving the check_probe_mask() call. Fixes: a41d122 ("ALSA: hda - Embed bus into controller object") Reported-by: dmummenschanz@web.de Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/trinity-f018660b-95c9-442b-a2a8-c92a56eb07ed-1644345967148@3c-app-webde-bap22 Link: https://lore.kernel.org/r/20220214100020.8870-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent c07f2c7 commit 6317f74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/pci/hda/hda_intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,8 +1798,6 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci,
17981798

17991799
assign_position_fix(chip, check_position_fix(chip, position_fix[dev]));
18001800

1801-
check_probe_mask(chip, dev);
1802-
18031801
if (single_cmd < 0) /* allow fallback to single_cmd at errors */
18041802
chip->fallback_to_single_cmd = 1;
18051803
else /* explicitly set to single_cmd or not */
@@ -1825,6 +1823,8 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci,
18251823
chip->bus.core.needs_damn_long_delay = 1;
18261824
}
18271825

1826+
check_probe_mask(chip, dev);
1827+
18281828
err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
18291829
if (err < 0) {
18301830
dev_err(card->dev, "Error creating device [card]!\n");

0 commit comments

Comments
 (0)