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-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/52912: hdafg: no sound from jack port on a laptop
Date: Fri, 16 Feb 2018 00:44:28 +0300

 ...Oh... Patch is broken by Claws-mail auto-wrapping...
 Em... Sorry...
 
 --- src/sys/dev/pci/hdaudio/hdafg.c.orig	2018-02-15 15:23:24.000000000 +0300
 +++ src/sys/dev/pci/hdaudio/hdafg.c	2018-02-15 23:37:49.000000000 +0300
 @@ -657,6 +657,21 @@
  	}
  #endif
  
 +        /* XXX ALC268 */
 +        if (sc->sc_vendor == HDA_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