Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171035226
D59199.id185155.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
793 B
Referenced Files
None
Subscribers
None
D59199.id185155.diff
View Options
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -112,6 +112,13 @@
#define UAUDIO_BUFFER_MS_MIN 1
#define UAUDIO_BUFFER_MS_MAX 8
+/*
+ * The default monitor level is high enough that headsets with a hardware
+ * sidetone may emit immediate feedback upon attach. We'll lower the default
+ * just for snd_uaudio(4) to avoid breaking others.
+ */
+#define UAUDIO_DEFAULT_MONITOR 10
+
static int
uaudio_buffer_ms_sysctl(SYSCTL_HANDLER_ARGS)
{
@@ -1199,6 +1206,8 @@
}
if (mixer_init(dev, mixer_class, sc))
goto detach;
+ mix_set(sc->sc_child[i].mixer_dev, SOUND_MIXER_MONITOR,
+ UAUDIO_DEFAULT_MONITOR, UAUDIO_DEFAULT_MONITOR);
sc->sc_child[i].mixer_init = 1;
mixer_hwvol_init(dev);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 9, 7:52 AM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37393732
Default Alt Text
D59199.id185155.diff (793 B)
Attached To
Mode
D59199: snd_uaudio: drop the default monitor level to 10%
Attached
Detach File
Event Timeline
Log In to Comment