summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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 5c0ae16..984aac9 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)
OpenPOWER on IntegriCloud