summaryrefslogtreecommitdiffstats
path: root/sound/drivers
diff options
context:
space:
mode:
authorZoltan Devai <zdevai@gmail.com>2008-11-03 00:30:28 +0100
committerTakashi Iwai <tiwai@suse.de>2008-11-03 08:57:25 +0100
commitb02555c3845f02924b8224ff1fd9a44f2c144dbb (patch)
treecc69e7bb4ba63f8a68ed4a5a87c354402d791e4b /sound/drivers
parent219df32faec97349516c29f33008fea59a46e99a (diff)
downloadop-kernel-dev-b02555c3845f02924b8224ff1fd9a44f2c144dbb.zip
op-kernel-dev-b02555c3845f02924b8224ff1fd9a44f2c144dbb.tar.gz
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>
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/pcsp/pcsp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/drivers/pcsp/pcsp_input.c b/sound/drivers/pcsp/pcsp_input.c
index cd9b83e..0444cde 100644
--- a/sound/drivers/pcsp/pcsp_input.c
+++ b/sound/drivers/pcsp/pcsp_input.c
@@ -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);
OpenPOWER on IntegriCloud