From 7df453b8824ac5fc9d78a53a0228b09f5f93a18d Mon Sep 17 00:00:00 2001 From: netchild Date: Thu, 29 Dec 2005 18:11:11 +0000 Subject: Fix some kind of "off by one"-error: the min or max sample rate the device is able to reproduce should be usable too instead of failing in such a case. PR: 89269 Submitted by: Don L. Belcher --- sys/dev/sound/usb/uaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 17c3b79..812e51c 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -3838,8 +3838,8 @@ uaudio_init_params(struct uaudio_softc *sc, struct chan *ch, int mode) if (a1d->bSamFreqType == UA_SAMP_CONTNUOUS) { DPRINTFN(2,("uaudio_set_params: cont %d-%d\n", UA_SAMP_LO(a1d), UA_SAMP_HI(a1d))); - if (UA_SAMP_LO(a1d) < ch->sample_rate && - ch->sample_rate < UA_SAMP_HI(a1d)) { + if (UA_SAMP_LO(a1d) <= ch->sample_rate && + ch->sample_rate <= UA_SAMP_HI(a1d)) { if (mode == AUMODE_PLAY) sc->sc_playchan.altidx = i; else -- cgit v1.1