Page MenuHomeFreeBSD

D55530.id172771.diff
No OneTemporary

D55530.id172771.diff

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

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)

Event Timeline