diff options
Diffstat (limited to 'sys/dev/speaker/spkr.c')
-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 f2f4989..f21732b 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 */ |