diff options
| author | toshii <toshii@NetBSD.org> | 2001-01-22 08:37:54 +0000 |
|---|---|---|
| committer | toshii <toshii@NetBSD.org> | 2001-01-22 08:37:54 +0000 |
| commit | 577ac6e31cc462ddab1d73a097c98a276fae652d (patch) | |
| tree | d436b2ae1a460b4291f9c1113048cc048e211b14 /sys/dev | |
| parent | 9b4793fd1b480fb5dfc34a384a293c2d49825228 (diff) | |
Remove the line in audio_open which zeroes sc_[pr]r.blksize.
Because zeroing them causes zero division panic with devices which don't
support 8kHz mulaw, and the effect of this line was to force calling
audio_calcwater even when unnecessary.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/audio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/audio.c b/sys/dev/audio.c index 32280ee1a08..6a75d6afa35 100644 --- a/sys/dev/audio.c +++ b/sys/dev/audio.c @@ -1,4 +1,4 @@ -/* $NetBSD: audio.c,v 1.133 2000/12/29 10:00:08 augustss Exp $ */ +/* $NetBSD: audio.c,v 1.134 2001/01/22 08:37:54 toshii Exp $ */ /* * Copyright (c) 1991-1993 Regents of the University of California. @@ -1003,7 +1003,6 @@ audio_open(dev, sc, flags, ifmt, p) ai.play.channels = sc->sc_pparams.channels; ai.play.precision = sc->sc_pparams.precision; ai.mode = mode; - sc->sc_pr.blksize = sc->sc_rr.blksize = 0; /* force recalculation */ error = audiosetinfo(sc, &ai); if (error) goto bad; |
