aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorAriff Abdullah <ariff@FreeBSD.org>2007-07-05 10:22:37 +0000
committerAriff Abdullah <ariff@FreeBSD.org>2007-07-05 10:22:37 +0000
commit36bc8661bf0259fddd87709863b3d94f26fef3a1 (patch)
tree32b064e864c6785aa5f3ab013b9a73ca57a56a5e /sys/dev/sound
parentc425727e9765a3c843591b0e40bba452c582f13c (diff)
Notes
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pci/es137x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c
index 5c0ae1625a89..984aac9e4ee3 100644
--- a/sys/dev/sound/pci/es137x.c
+++ b/sys/dev/sound/pci/es137x.c
@@ -543,8 +543,10 @@ eschan1370_setspeed(kobj_t obj, void *data, uint32_t speed)
ES_LOCK(es);
/* Fixed rate , do nothing. */
- if (ch->caps.minspeed == ch->caps.maxspeed)
+ if (ch->caps.minspeed == ch->caps.maxspeed) {
+ ES_UNLOCK(es);
return (ch->caps.maxspeed);
+ }
if (speed < ch->caps.minspeed)
speed = ch->caps.minspeed;
if (speed > ch->caps.maxspeed)