Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146253523
D55530.id172771.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
588 B
Referenced Files
None
Subscribers
None
D55530.id172771.diff
View Options
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -81,6 +81,7 @@
sysctl_hw_snd_default_unit(SYSCTL_HANDLER_ARGS)
{
struct snddev_info *d;
+ char buf[32];
int error, unit;
unit = snd_unit;
@@ -95,6 +96,12 @@
snd_unit = unit;
snd_unit_auto = 0;
bus_topo_unlock();
+
+ snprintf(buf, sizeof(buf), "cdev=dsp%d", snd_unit);
+ if (d->reccount > 0)
+ devctl_notify("SND", "CONN", "IN", buf);
+ if (d->playcount > 0)
+ devctl_notify("SND", "CONN", "OUT", buf);
}
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 2, 3:41 AM (15 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29033320
Default Alt Text
D55530.id172771.diff (588 B)
Attached To
Mode
D55530: sound: Notify devd on hw.snd.default_unit change
Attached
Detach File
Event Timeline
Log In to Comment