diff options
| author | Ariff Abdullah <ariff@FreeBSD.org> | 2007-07-05 10:22:37 +0000 |
|---|---|---|
| committer | Ariff Abdullah <ariff@FreeBSD.org> | 2007-07-05 10:22:37 +0000 |
| commit | 36bc8661bf0259fddd87709863b3d94f26fef3a1 (patch) | |
| tree | 32b064e864c6785aa5f3ab013b9a73ca57a56a5e /sys/dev/sound | |
| parent | c425727e9765a3c843591b0e40bba452c582f13c (diff) | |
Notes
Diffstat (limited to 'sys/dev/sound')
| -rw-r--r-- | sys/dev/sound/pci/es137x.c | 4 |
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) |
