Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102981718
D45603.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45603.diff
View Options
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
@@ -2047,6 +2047,7 @@
ai->dev = unit;
snprintf(ai->name, sizeof(ai->name), "pcm%d (unavailable)", unit);
ai->pid = -1;
+ strlcpy(ai->cmd, CHN_COMM_UNUSED, sizeof(ai->cmd));
ai->card_number = unit;
ai->port_number = unit;
ai->mixer_dev = -1;
@@ -2132,6 +2133,7 @@
ai->dev = unit;
strlcpy(ai->name, device_get_desc(d->dev), sizeof(ai->name));
ai->pid = -1;
+ strlcpy(ai->cmd, CHN_COMM_UNKNOWN, sizeof(ai->cmd));
ai->card_number = -1;
ai->port_number = -1;
ai->mixer_dev = (d->mixer_dev != NULL) ? unit : -1;
@@ -2317,14 +2319,8 @@
else
ai->busy = (ch->direction == PCMDIR_PLAY) ? OPEN_WRITE : OPEN_READ;
- /**
- * @note
- * @c cmd - OSSv4 docs: "Only supported under Linux at
- * this moment." Cop-out, I know, but I'll save
- * running around in the process table for later.
- * Is there a risk of leaking information?
- */
ai->pid = ch->pid;
+ strlcpy(ai->cmd, ch->comm, sizeof(ai->cmd));
/*
* These flags stolen from SNDCTL_DSP_GETCAPS handler.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 11:09 AM (21 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14736823
Default Alt Text
D45603.diff (1 KB)
Attached To
Mode
D45603: sound: Support oss_audioinfo->cmd
Attached
Detach File
Event Timeline
Log In to Comment