Skip to content

Commit

Permalink
ALSA: Fix PIT lockup on some chipsets when using the PC-Speaker
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Zoltan Devai authored and Takashi Iwai committed Nov 3, 2008
1 parent 219df32 commit b02555c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/drivers/pcsp/pcsp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ static void pcspkr_do_sound(unsigned int count)
spin_lock_irqsave(&i8253_lock, flags);

if (count) {
/* enable counter 2 */
outb_p(inb_p(0x61) | 3, 0x61);
/* set command for counter 2, 2 byte write */
outb_p(0xB6, 0x43);
/* select desired HZ */
outb_p(count & 0xff, 0x42);
outb((count >> 8) & 0xff, 0x42);
/* enable counter 2 */
outb_p(inb_p(0x61) | 3, 0x61);
} else {
/* disable counter 2 */
outb(inb_p(0x61) & 0xFC, 0x61);
Expand Down

0 comments on commit b02555c

Please sign in to comment.