NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/52912: hdafg: no sound from jack port on a laptop
The following reply was made to PR kern/52912; it has been noted by GNATS.
From: Jake Slazenger <jake.slazenger%yandex.com@localhost>
To: gnats-admin%netbsd.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost
Subject: Re: kern/52912: hdafg: no sound from jack port on a laptop
Date: Fri, 4 May 2018 11:04:18 +0300
For NetBSD-8.0_RC1, name of the 'HDA_VENDOR_REALTEK' constant should be
changed to 'HDAUDIO_VENDOR_REALTEK'. And the code, in total, should
look like the patch below:
--- sys/dev/hdaudio/hdafg.c.old 2017-08-20 04:50:38.000000000 +0000
+++ sys/dev/hdaudio/hdafg.c
@@ -664,6 +664,22 @@ hdafg_widget_pin_parse(struct hdaudio_wi
}
#endif
+ /* XXX ALC268 */
+ if (sc->sc_vendor == HDAUDIO_VENDOR_REALTEK && sc->sc_product == 0x0268) {
+ if (COP_CFG_PORT_CONNECTIVITY(w->w_pin.config) == COP_PORT_JACK) {
+ /* nid 20 */
+ if (w->w_nid == 0x14) {
+ /* set assoc=1 */
+ w->w_pin.config &= ~0xf0;
+ w->w_pin.config |= 0x10;
+ /* set seq=15 */
+ w->w_pin.config &= ~0x0f;
+ w->w_pin.config |= 0x0f;
+ }
+ }
+ }
+
+
conn = COP_CFG_PORT_CONNECTIVITY(w->w_pin.config);
color = COP_CFG_COLOR(w->w_pin.config);
defdev = COP_CFG_DEFAULT_DEVICE(w->w_pin.config);
Home |
Main Index |
Thread Index |
Old Index