Page MenuHomeFreeBSD

D45722.id.diff
No OneTemporary

D45722.id.diff

diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -2159,9 +2159,13 @@
/*
* Skip physical channels if we are servicing SNDCTL_AUDIOINFO,
* or VCHANs if we are servicing SNDCTL_AUDIOINFO_EX.
+ *
+ * For SNDCTL_AUDIOINFO do not skip the physical channels if
+ * there are no VCHANs.
*/
if ((ex && (ch->flags & CHN_F_VIRTUAL) != 0) ||
- (!ex && (ch->flags & CHN_F_VIRTUAL) == 0)) {
+ ((!ex && (ch->flags & CHN_F_VIRTUAL) == 0) &&
+ (d->pvchancount > 0 || d->rvchancount > 0))) {
CHN_UNLOCK(ch);
continue;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 17, 10:00 AM (2 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27681572
Default Alt Text
D45722.id.diff (630 B)

Event Timeline