Page MenuHomeFreeBSD

D45137.id138274.diff
No OneTemporary

D45137.id138274.diff

diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c
--- a/sys/dev/sound/pcm/mixer.c
+++ b/sys/dev/sound/pcm/mixer.c
@@ -1516,6 +1516,7 @@
* Mixer extensions currently aren't supported, so
* leave @sa oss_mixerinfo::nrext blank for now.
*/
+
/**
* @todo Fill in @sa oss_mixerinfo::priority (requires
* touching drivers?)
@@ -1529,13 +1530,11 @@
* default mixer. Other devices use values 1 to 9
* depending on the estimated probability of being the
* default device.
- *
- * XXX Described by Hannu@4Front, but not found in
- * soundcard.h.
- strlcpy(mi->devnode, devtoname(d->mixer_dev),
- sizeof(mi->devnode));
- mi->legacy_device = i;
*/
+
+ snprintf(mi->devnode, sizeof(mi->devnode), "/dev/mixer%d", i);
+ mi->real_device = i;
+
mtx_unlock(m->lock);
}
diff --git a/sys/sys/soundcard.h b/sys/sys/soundcard.h
--- a/sys/sys/soundcard.h
+++ b/sys/sys/soundcard.h
@@ -1925,6 +1925,8 @@
* as the default mixer.
*/
int priority;
+ oss_devnode_t devnode;
+ int real_device;
int filler[254]; /* Reserved */
} oss_mixerinfo;

File Metadata

Mime Type
text/plain
Expires
Sat, Jun 6, 5:37 AM (8 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33774659
Default Alt Text
D45137.id138274.diff (1 KB)

Event Timeline