Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126844
b: refs/heads/master
c: 59bdb43
h: refs/heads/master
v: v3
  • Loading branch information
Zoltan Devai authored and Dmitry Torokhov committed Nov 19, 2008
1 parent 29e6633 commit e8535f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ec6f246c33a0b830a6ad3171161e9d880e2251e
refs/heads/master: 59bdb43769f2c3995badcd930d799451f5a39f76
4 changes: 2 additions & 2 deletions trunk/drivers/input/misc/pcspkr.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int c
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 e8535f4

Please sign in to comment.