Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142479083
D47268.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
791 B
Referenced Files
None
Subscribers
None
D47268.diff
View Options
diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c
--- a/sys/dev/sound/pcm/vchan.c
+++ b/sys/dev/sound/pcm/vchan.c
@@ -928,7 +928,6 @@
CHN_LOCK(c);
if (c->direction == direction &&
((c->flags & CHN_F_HAS_VCHAN) || (vcnt == 0 &&
- c->refcount < 1 &&
!(c->flags & (CHN_F_BUSY | CHN_F_VIRTUAL))))) {
/*
* Reuse hw channel with vchans already
@@ -987,12 +986,11 @@
}
CHN_FOREACH_SAFE(ch, c, nch, children) {
CHN_LOCK(ch);
- if (vcnt == 1 && c->refcount > 0) {
+ if (vcnt == 1 && ch->flags & CHN_F_BUSY) {
CHN_UNLOCK(ch);
break;
}
- if (!(ch->flags & CHN_F_BUSY) &&
- ch->refcount < 1) {
+ if (!(ch->flags & CHN_F_BUSY)) {
err = vchan_destroy(ch);
if (err == 0)
vcnt--;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jan 21, 7:03 AM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27760128
Default Alt Text
D47268.diff (791 B)
Attached To
Mode
D47268: sound: Remove redundant refcount checks in vchan_setnew()
Attached
Detach File
Event Timeline
Log In to Comment