diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-03-26 20:09:21 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2008-03-26 20:09:21 +0000 |
| commit | e46598588587b4897f6604489364f83fffd4d033 (patch) | |
| tree | e91c04a22676482787a397cde06c51737c92138e /sys/dev/speaker | |
| parent | f794f567e973adcbce58955f646a53fe4c0f08c8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/speaker')
| -rw-r--r-- | sys/dev/speaker/spkr.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index f2f4989ef177..f21732bcaf3d 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -74,14 +74,11 @@ static void tone(thz, centisecs) unsigned int thz, centisecs; { - unsigned int divisor; int sps, timo; if (thz <= 0) return; - divisor = i8254_freq / thz; - #ifdef DEBUG (void) printf("tone: thz=%d centisecs=%d\n", thz, centisecs); #endif /* DEBUG */ @@ -96,7 +93,7 @@ tone(thz, centisecs) } splx(sps); disable_intr(); - spkr_set_pitch(divisor); + timer_spkr_setfreq(thz); enable_intr(); /* turn the speaker on */ |
