Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102727697
D46177.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D46177.diff
View Options
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c
--- a/sys/dev/sound/pcm/sndstat.c
+++ b/sys/dev/sound/pcm/sndstat.c
@@ -517,8 +517,13 @@
nvlist_add_number(cdi, SNDST_DSPS_SOUND4_CHAN_SWBUF_READY,
sndbuf_getready(c->bufsoft));
- sbuf_printf(&sb, "[%s",
- (c->direction == PCMDIR_REC) ? "hardware" : "userland");
+ if (c->parentchannel != NULL) {
+ sbuf_printf(&sb, "[%s", (c->direction == PCMDIR_REC) ?
+ c->parentchannel->name : "userland");
+ } else {
+ sbuf_printf(&sb, "[%s", (c->direction == PCMDIR_REC) ?
+ "hardware" : "userland");
+ }
sbuf_printf(&sb, " -> ");
f = c->feeder;
while (f->source != NULL)
@@ -550,8 +555,13 @@
sbuf_printf(&sb, " -> ");
f = f->parent;
}
- sbuf_printf(&sb, "%s]",
- (c->direction == PCMDIR_REC) ? "userland" : "hardware");
+ if (c->parentchannel != NULL) {
+ sbuf_printf(&sb, "%s]", (c->direction == PCMDIR_REC) ?
+ "userland" : c->parentchannel->name);
+ } else {
+ sbuf_printf(&sb, "%s]", (c->direction == PCMDIR_REC) ?
+ "userland" : "hardware");
+ }
CHN_UNLOCK(c);
@@ -1306,8 +1316,13 @@
sbuf_printf(s, "channel flags=0x%b", c->flags, CHN_F_BITS);
sbuf_printf(s, "\n\t");
- sbuf_printf(s, "{%s}",
- (c->direction == PCMDIR_REC) ? "hardware" : "userland");
+ if (c->parentchannel != NULL) {
+ sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
+ c->parentchannel->name : "userland");
+ } else {
+ sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
+ "hardware" : "userland");
+ }
sbuf_printf(s, " -> ");
f = c->feeder;
while (f->source != NULL)
@@ -1339,8 +1354,13 @@
sbuf_printf(s, " -> ");
f = f->parent;
}
- sbuf_printf(s, "{%s}",
- (c->direction == PCMDIR_REC) ? "userland" : "hardware");
+ if (c->parentchannel != NULL) {
+ sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
+ "userland" : c->parentchannel->name);
+ } else {
+ sbuf_printf(s, "{%s}", (c->direction == PCMDIR_REC) ?
+ "userland" : "hardware");
+ }
CHN_UNLOCK(c);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:47 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14674950
Default Alt Text
D46177.diff (2 KB)
Attached To
Mode
D46177: sound: Fix VCHANs' starting and ending points in feeder chain
Attached
Detach File
Event Timeline
Log In to Comment