ALSA: Fix PIT lockup on some chipsets when using the PC-Speaker

Fix PIT lockup on some chipsets when using the PC-Speaker.

Signed-off-by: Zoltan Devai <zdevai@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by Zoltan Devai and committed by Takashi Iwai b02555c3 219df32f

+2 -2
+2 -2
sound/drivers/pcsp/pcsp_input.c
··· 24 24 spin_lock_irqsave(&i8253_lock, flags); 25 25 26 26 if (count) { 27 - /* enable counter 2 */ 28 - outb_p(inb_p(0x61) | 3, 0x61); 29 27 /* set command for counter 2, 2 byte write */ 30 28 outb_p(0xB6, 0x43); 31 29 /* select desired HZ */ 32 30 outb_p(count & 0xff, 0x42); 33 31 outb((count >> 8) & 0xff, 0x42); 32 + /* enable counter 2 */ 33 + outb_p(inb_p(0x61) | 3, 0x61); 34 34 } else { 35 35 /* disable counter 2 */ 36 36 outb(inb_p(0x61) & 0xFC, 0x61);