Date: Thu, 17 Dec 2020 12:26:56 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 251727] [sound] [snd_hda] After update to r368166 no sound recording with internal microphone Message-ID: <bug-251727-227-Grcuaviy9s@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-251727-227@https.bugs.freebsd.org/bugzilla/> References: <bug-251727-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251727 --- Comment #10 from Matthias Apitz <guru@unixarea.de> --- here is a proposal to fix this issue with values in device.hints(5) as: # grep init_clear /boot/device.hints=20 hint.hdaa.0.init_clear=3D1 hint.hdaa.1.init_clear=3D1 # svn diff sys/dev/sound/pci/hda/hdaa.c Index: sys/dev/sound/pci/hda/hdaa.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/dev/sound/pci/hda/hdaa.c (revisi=C3=B3n: 368166) +++ sys/dev/sound/pci/hda/hdaa.c (copia de trabajo) @@ -5031,6 +5031,11 @@ pincap =3D w->wclass.pin.cap; + /* default is "disable everything" */ + devinfo->init_clear =3D 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 &=3D ~( @@ -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); } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251727-227-Grcuaviy9s>