Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102970042
D45604.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
D45604.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
@@ -2134,8 +2134,8 @@
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->card_number = unit;
+ ai->port_number = unit;
ai->mixer_dev = (d->mixer_dev != NULL) ? unit : -1;
ai->legacy_device = unit;
snprintf(ai->devnode, sizeof(ai->devnode), "/dev/dsp%d", unit);
@@ -2371,20 +2371,20 @@
* should normally not use this field for any
* purpose."
*/
- ai->card_number = -1;
+ ai->card_number = unit;
/**
* @todo @c song_name - depends first on
* SNDCTL_[GS]ETSONG @todo @c label - depends
* on SNDCTL_[GS]ETLABEL
* @todo @c port_number - routing information?
*/
- ai->port_number = -1;
+ ai->port_number = unit;
ai->mixer_dev = (d->mixer_dev != NULL) ? unit : -1;
/**
* @note
* @c legacy_device - OSSv4 docs: "Obsolete."
*/
- ai->legacy_device = -1;
+ ai->legacy_device = unit;
snprintf(ai->devnode, sizeof(ai->devnode), "/dev/dsp%d", unit);
ai->enabled = device_is_attached(d->dev) ? 1 : 0;
/**
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 8:22 AM (21 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14733854
Default Alt Text
D45604.diff (1 KB)
Attached To
Mode
D45604: sound: Fix oss_audioinfo's card_number, port_number and legacy_device
Attached
Detach File
Event Timeline
Log In to Comment