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: =?UTF-8?Q?Fekete_Zolt=C3=A1n?= <fekete.zoltan%minux.hu@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/52912: hdafg: no sound from jack port on a laptop
Date: Mon, 08 Jan 2018 20:22:05 +0100

 2018-01-08 07:50 idÅ?pontban jake.slazenger%yandex.com@localhost ezt írta:
 >> Number:         52912
 >> Category:       kern
 >> Synopsis:       hdafg: no sound from jack port on a laptop
 >> Confidential:   no
 >> Severity:       non-critical
 >> Priority:       medium
 >> Responsible:    kern-bug-people
 >> State:          open
 >> Class:          sw-bug
 >> Submitter-Id:   net
 >> Arrival-Date:   Mon Jan 08 06:50:00 +0000 2018
 >> Originator:     Jake Slazenger
 >> Release:        CURRENT-8.0-171230
 >> Organization:
 >> Environment:
 > NetBSD localhost 8.0_BETA NetBSD 8.0_BETA (RUSTY) #0: Sun Jan  7
 > 16:30:08 MSK 2018
 > rusty@localhost:/usr/src/171230/src/sys/arch/amd64/compile/RUSTY amd64
 >> Description:
 > When I connect headphones to jack port on my laptop with Realtek
 > ALC268 sound chip, sound is not switching to the headphones and
 > continues to come out from built-in speakers.
 > 
 > For example, on Linux-based systems sound is automatically switches
 > when headphones is connected.
 > 
 > Is it a bug, or I do something wrong and it can be switched manually?
 >> How-To-Repeat:
 > Connect headphones to jack port on a laptop with Realtek ALC268 sound 
 > chip.
 >> Fix:
 
 
 Hi Jake,
 
 I had a similar problem, and finally I could figure out how to set jack 
 up. Probably your codec is not set up correctly, and it is not a bug. 
 There are several different codecs/setups, and kernel developers do not 
 have the capacity to program each one.
 
 So, you have to solve it yourself. It's not really obvious however.
 
 1. You have to read carefully the snd_hda man page. There you will 
 understand how the hda driver groups the different in/out parts
 
 2. Try to find a technical manual for your sound chip. Similar to mine 
 here (Analog Devices 1984A):
 http://www.analog.com/media/en/technical-documentation/obsolete-data-sheets/AD1984.pdf
 
 3. Use hdaudioctl get command to gain your current settings. You have to 
 read and decode hexadecimal numbers...
 
 4. Then modify the xml file you got in point 3, and use hdaudioctl set 
 command with the modified file apply changes. Then try jack. Repeat 3-4 
 until success.
 
 Another aproach: if you can program, you could modify the kernel, and 
 recompile. Here is my patch, but this is device-dependent:
 https://minux.hu/netbsd-hdaudio-jack-detection
 
 Good luck!
 
 I'm working on a script that translates that output file into human 
 readable form. Just time is always an issue.
 
 Rgds,
 
 FeZ
 


Home | Main Index | Thread Index | Old Index