[Bug 251727] [sound] [snd_hda] After update to r368166 no sound recording with internal microphone
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Dec 17 12:26:56 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251727
--- Comment #10 from Matthias Apitz <guru at unixarea.de> ---
here is a proposal to fix this issue with values in device.hints(5) as:
# grep init_clear /boot/device.hints
hint.hdaa.0.init_clear=1
hint.hdaa.1.init_clear=1
# svn diff sys/dev/sound/pci/hda/hdaa.c
Index: sys/dev/sound/pci/hda/hdaa.c
===================================================================
--- sys/dev/sound/pci/hda/hdaa.c (revisión: 368166)
+++ sys/dev/sound/pci/hda/hdaa.c (copia de trabajo)
@@ -5031,6 +5031,11 @@
pincap = w->wclass.pin.cap;
+ /* default is "disable everything" */
+ devinfo->init_clear = 1;
+ resource_int_value(device_get_name(devinfo->dev),
+ device_get_unit(devinfo->dev), "init_clear",
+ &(devinfo->init_clear));
/* Disable everything. */
if (devinfo->init_clear) {
w->wclass.pin.ctrl &= ~(
@@ -6671,10 +6676,6 @@
SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO,
"reconfig", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT,
dev, 0, hdaa_sysctl_reconfig, "I", "Reprocess configuration");
- SYSCTL_ADD_INT(device_get_sysctl_ctx(dev),
- SYSCTL_CHILDREN(device_get_sysctl_tree(dev)), OID_AUTO,
- "init_clear", CTLFLAG_RW,
- &devinfo->init_clear, 1,"Clear initial pin widget configuration");
bus_generic_attach(dev);
return (0);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list