diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2006-09-09 14:43:03 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2006-09-09 14:43:03 +0000 |
commit | f3ed5ebbcfb21ee4b0f008250a3301522317f26a (patch) | |
tree | 0a5955e9c188ac99f56a5f5ab837bee434320b69 /sys/dev/sound | |
parent | c19ddeda0746b21f66728123a34458175de2deb4 (diff) | |
download | src-f3ed5ebbcfb21ee4b0f008250a3301522317f26a.tar.gz src-f3ed5ebbcfb21ee4b0f008250a3301522317f26a.zip |
Fix the check where we want to use the end of the supported range if the
value is out of the supported range.
Noticed by: Ed Schouten <ed@fxq.nl>
Reviewed by: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
Notes
Notes:
svn path=/head/; revision=162180
Diffstat (limited to 'sys/dev/sound')
-rw-r--r-- | sys/dev/sound/usb/uaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 9661da44ba9c..9e4b7f17a9df 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -4114,7 +4114,7 @@ uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir) bestspeed = UA_SAMP_LO(asf1d); hiscore = score; } - } else if (speed < UA_SAMP_HI(asf1d)) { + } else if (speed > UA_SAMP_HI(asf1d)) { score = 0xfff * UA_SAMP_HI(asf1d) / speed; if (score > hiscore) { bestspeed = UA_SAMP_HI(asf1d); |