Skip to content

Commit 24d1e49

Browse files
committed
ALSA: intel8x0: Fix breakage at ac97 clock measurement
The recent workaround for the wild interrupts in commit c1f0616 ("ALSA: intel8x0: Don't update period unless prepared") leaded to a regression, causing the interrupt storm during ac97 clock measurement at the driver probe. We need to handle the interrupt while the clock measurement as well as the proper PCM streams. Fixes: c1f0616 ("ALSA: intel8x0: Don't update period unless prepared") Reported-and-tested-by: Max Filippov <jcmvbkbc@gmail.com> Tested-by: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/CAMo8BfKKMQkcsbOQaeEjq_FsJhdK=fn598dvh7YOcZshUSOH=g@mail.gmail.com Link: https://lore.kernel.org/r/20210708090738.1569-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 307cc9b commit 24d1e49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/pci/intel8x0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ static inline void snd_intel8x0_update(struct intel8x0 *chip, struct ichdev *ich
694694
int status, civ, i, step;
695695
int ack = 0;
696696

697-
if (!ichdev->prepared || ichdev->suspended)
697+
if (!(ichdev->prepared || chip->in_measurement) || ichdev->suspended)
698698
return;
699699

700700
spin_lock_irqsave(&chip->reg_lock, flags);

0 commit comments

Comments
 (0)