From owner-freebsd-current@freebsd.org Sat Apr 29 08:28:55 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94386D548C0 for ; Sat, 29 Apr 2017 08:28:55 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.grem.de (outcast.grem.de [213.239.217.27]) by mx1.freebsd.org (Postfix) with SMTP id 3FD9FB6C for ; Sat, 29 Apr 2017 08:28:53 +0000 (UTC) (envelope-from freebsd@grem.de) Received: (qmail 94836 invoked by uid 89); 29 Apr 2017 08:28:45 -0000 Received: from unknown (HELO bsd64.grem.de) (mg@grem.de@93.104.93.105) by mail.grem.de with ESMTPA; 29 Apr 2017 08:28:45 -0000 Date: Sat, 29 Apr 2017 10:28:42 +0200 From: Michael Gmelin To: Johannes Lundberg Cc: Hans Petter Selasky , freebsd-current Subject: Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers Message-ID: <20170429102842.4810aa33@bsd64.grem.de> In-Reply-To: References: <20170428150432.3ffeb2aa@bsd64.grem.de> <89CB9DA3-B4A0-4F01-8E95-B238DC9E47ED@grem.de> <20170428170500.0ba6212d@bsd64.grem.de> <142CFEB0-7D55-4CBA-82AC-962C5F663B8B@grem.de> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.2) X-Face: $wrgCtfdVw_H9WAY?S&9+/F"!41z'L$uo*WzT8miX?kZ~W~Lr5W7v?j0Sde\mwB&/ypo^}> +a'4xMc^^KroE~+v^&^#[B">soBo1y6(TW6#UZiC]o>C6`ej+i Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWJBwe5BQDl LASZU0/LTEWEfHbyj0Txi32+sKrp1Mv944X8/fm1rS+cAAAACXBIWXMAAAsTAAAL EwEAmpwYAAAAB3RJTUUH3wESCxwC7OBhbgAAACFpVFh0Q29tbWVudAAAAAAAQ3Jl YXRlZCB3aXRoIFRoZSBHSU1QbbCXAAAAAghJREFUOMu11DFvEzEUAGCfEhBVFzuq AKkLd0O6VrIQsLXVSZXoWE5N1K3DobBBA9fQpRWc8OkWouaIjedWKiyREOKs+3PY fvalCNjgLVHeF7/3bMtBzV8C/VsQ8tecEgCcDgrzjekwKZ7TwsJZd/ywEKwwP+ZM 8P3drTsAwWn2mpWuDDuYiK1bFs6De0KUUFw0tWxm+D4AIhuuvZqtyWYeO7jQ4Aea 7jUqI+ixhQoHex4WshEvSXdood7stlv4oSuFOC4tqGcr0NjEqXgV4mMJO38nld4+ xKNxRDon7khyKVqY7YR4d+Cg0OMrkWXZOM7YDkEfKiilCn1qYv4mighZiynuHHOA Wq9QJq+BIES7lMFUtcikMnkDGHUoncA+uHgrP0ctIEqfwLHzeSo+eUA66AqzwN6n 2ZHJhw6Qh/PoyC/QENyEyC/AyNjq74Bs+3UH0xYwzDUC4B97HgLocg1QLYgDDO1v f3UX9Y307Ew4AHh67YAFFsxEpkXwpXY3eIgMhAAE3R19L919nNnuD2wlPcDE3UeT L2ytEICQib9BXgS2fU8PrD82ToYO1OEmMSnYTjSqSv9wdC0tPYC+rQRQD9ESnldF CyqfmiYW+tlALt8gH2xrMdC/youbjzPXEun+/ReXsMCDyve3dZc09fn2Oas8oXGc Jj6/fOeK5UmSMPmf/jL+GD8BEj0k/Fn6IO4AAAAASUVORK5CYII= Importance: high X-Priority: 1 (Highest) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/y+HsxNkLNXvldPBT80iYGPh" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Apr 2017 08:28:55 -0000 --MP_/y+HsxNkLNXvldPBT80iYGPh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I tried on this model and things basically worked out of the box once I changed the default output: root@sound:~ # uname -a FreeBSD sound 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r313561: Fri Feb 10 20:18:01 UTC 2017 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 root@sound:~ # cat /dev/sndstat Installed devices: pcm0: (play) default pcm1: (play) pcm2: (play) pcm3: (play) pcm4: (play) pcm5: (play) No devices installed from userspace. root@sound:~ # sysctl hw.snd.default_unit=3 hw.snd.default_unit: 0 -> 3 root@sound:~ # pkg install curl xmp ... root@sound:~ # fetch https://blog.grem.de/spacedeb.mod.gz root@sound:~ # xmp spacedeb.mod.gz ... plays music ... Setting the default unit to 4 changes to headphones. You don't seem to have NVIDIA graphics, so for you changing to speakers probably is: sysctl hw.snd.default_unit=1 I didn't look closely in your first request, the word "default" next to the output device is key. To change settings to switch output automatically when plugging in/removing headphones I issued the following commands: sysctl dev.hdaa.1.nid9_config="as=1 seq=15" sysctl dev.hdaa.1.reconfig=1 Now devices show up as: cat /dev/sndstat Installed devices: pcm0: (play) default pcm1: (play) pcm2: (play) pcm3: (play) pcm4: (play) No devices installed from userspace. Changing the default device to pcm3: sysctl hw.snd.default_unit=3 cat /dev/sndstat Installed devices: pcm0: (play) pcm1: (play) pcm2: (play) pcm3: (play) default pcm4: (play) No devices installed from userspace. Unfortunately, even though this should work (and sysctl dev.hdac.1.pindump=1 shows the correct connection status for the headphones), this fails to mute the speakers, so it plays on headphones and speakers at the same time. It experimented quite a lot, so this might be a driver issue (googling shows others have similar problems), so not touching the config and switching manually by setting the output device explicitly might be the only option right now. See below for my unaltered hdaa settings after boot: root@sound:~ # sysctl -a dev.hdaa.1 dev.hdaa.1.reconfig: 0 dev.hdaa.1.gpo_config: dev.hdaa.1.gpo_state: dev.hdaa.1.gpio_config: 0=keep 1=set 2=keep 3=set dev.hdaa.1.gpio_state: 0=disabled 1=output(1) 2=disabled 3=output(1) dev.hdaa.1.gpi_state: dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref dev.hdaa.1.nid21_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid21_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid21: pin: Line-out (None) [DISABLED] Widget cap: 0x00410301 DIGITAL STEREO Pin cap: 0x00000010 OUT Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 Pin control: 0x00000000 Connections: 1 + <- nid=20 [audio output] [DISABLED] dev.hdaa.1.nid20: audio output [DISABLED] Widget cap: 0x00040611 PWR DIGITAL STEREO Stream cap: 0x00000007 AC3 FLOAT32 PCM PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz dev.hdaa.1.nid19: beep widget Widget cap: 0x00700000 Association: -2 (0x0000) OSS: speaker (speaker) dev.hdaa.1.nid18_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid18_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid18: pin: Line-out (None) [DISABLED] Widget cap: 0x0041000b STEREO Pin cap: 0x00000020 IN Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 Pin control: 0x00000000 Input amp: 0x00270200 mute=0 step=2 size=39 offset=0 (0/20dB) dev.hdaa.1.nid17: vendor widget [DISABLED] Widget cap: 0x00f00040 PROC dev.hdaa.1.nid16_original: 0x004be030 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Combo loc=0x00 color=White misc=0 dev.hdaa.1.nid16_config: 0x004be030 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Combo loc=0x00 color=White misc=0 dev.hdaa.1.nid16: pin: SPDIF-out (White Jack) Widget cap: 0x00410301 DIGITAL STEREO Association: 2 (0x0001) Pin cap: 0x00000010 OUT Pin config: 0x004be030 as=3 seq=0 device=SPDIF-out conn=Jack ctype=Combo loc=0x00 color=White misc=0 Pin control: 0x00000040 OUT Connections: 1 + <- nid=8 [audio output] dev.hdaa.1.nid15_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid15_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid15: pin: Line-out (None) [DISABLED] Widget cap: 0x00410681 PWR DIGITAL UNSOL STEREO Pin cap: 0x00000024 PDC IN Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 Pin control: 0x00000000 dev.hdaa.1.nid14_original: 0x90a60100 as=0 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1 dev.hdaa.1.nid14_config: 0x90a60100 as=0 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1 dev.hdaa.1.nid14: pin: Mic (Fixed) [DISABLED] Widget cap: 0x0041000b STEREO Pin cap: 0x00000020 IN Pin config: 0x90a60100 as=0 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1 Pin control: 0x00000000 Input amp: 0x00270200 mute=0 step=2 size=39 offset=0 (0/20dB) dev.hdaa.1.nid13_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid13_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid13: pin: Line-out (None) [DISABLED] Widget cap: 0x0041048b PWR UNSOL STEREO Pin cap: 0x00001764 PDC IN BAL VREF[ 50 80 GROUND HIZ ] Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 Pin control: 0x00000000 Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB) dev.hdaa.1.nid12_original: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid12_config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 dev.hdaa.1.nid12: pin: Line-out (None) [DISABLED] Widget cap: 0x0041048b PWR UNSOL STEREO Pin cap: 0x00000024 PDC IN Pin config: 0x400000f0 as=15 seq=0 device=Line-out conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 Pin control: 0x00000000 Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB) dev.hdaa.1.nid11_original: 0x90100110 as=1 seq=0 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 dev.hdaa.1.nid11_config: 0x90100110 as=1 seq=0 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 dev.hdaa.1.nid11: pin: Speaker (Fixed) Widget cap: 0x00410101 STEREO Association: 0 (0x0001) Pin cap: 0x00000050 OUT BAL Pin config: 0x90100110 as=1 seq=0 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 Pin control: 0x00000040 OUT Connections: 1 + <- nid=4 [audio output] dev.hdaa.1.nid10_original: 0x90100112 as=1 seq=2 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 dev.hdaa.1.nid10_config: 0x90100112 as=1 seq=2 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 dev.hdaa.1.nid10: pin: Speaker (Fixed) Widget cap: 0x00410581 PWR UNSOL STEREO Association: 0 (0x0004) Pin cap: 0x00000054 PDC OUT BAL Pin config: 0x90100112 as=1 seq=2 device=Speaker conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 Pin control: 0x00000040 OUT Connections: 1 + <- nid=3 [audio output] dev.hdaa.1.nid9_original: 0x002b4020 as=2 seq=0 device=Headphones conn=Jack ctype=Combo loc=0x00 color=Green misc=0 dev.hdaa.1.nid9_config: 0x002b4020 as=2 seq=0 device=Headphones conn=Jack ctype=Combo loc=0x00 color=Green misc=0 dev.hdaa.1.nid9: pin: Headphones (Green Jack) Widget cap: 0x00410581 PWR UNSOL STEREO Association: 1 (0x0001) Pin cap: 0x0000001c PDC HP OUT Pin config: 0x002b4020 as=2 seq=0 device=Headphones conn=Jack ctype=Combo loc=0x00 color=Green misc=0 Pin control: 0x000000c0 HP OUT Connections: 1 + <- nid=2 [audio output] dev.hdaa.1.nid8: audio output Widget cap: 0x00040611 PWR DIGITAL STEREO Association: 2 (0x0001) OSS: pcm (pcm) Stream cap: 0x00000007 AC3 FLOAT32 PCM PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz dev.hdaa.1.nid7: audio input [DISABLED] Widget cap: 0x00180791 PWR DIGITAL UNSOL STEREO Stream cap: 0x00000007 AC3 FLOAT32 PCM PCM cap: 0x001e0570 16 20 24 32 bits, 32 44 48 96 192 KHz Connections: 1 + [DISABLED] <- nid=15 [pin: Line-out (None)] [DISABLED] dev.hdaa.1.nid6: audio input [DISABLED] Widget cap: 0x0018051b PWR STEREO Stream cap: 0x00000003 FLOAT32 PCM PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz Input amp: 0x80033f33 mute=1 step=63 size=3 offset=51 (-51/12dB) Connections: 2 + [DISABLED] <- nid=13 [pin: Line-out (None)] [DISABLED] (selected) + [DISABLED] <- nid=14 [pin: Mic (Fixed)] [DISABLED] dev.hdaa.1.nid5: audio input [DISABLED] Widget cap: 0x0018051b PWR STEREO Stream cap: 0x00000003 FLOAT32 PCM PCM cap: 0x001e01f5 16 20 24 32 bits, 8 16 32 44 48 88 96 KHz Input amp: 0x80033f33 mute=1 step=63 size=3 offset=51 (-51/12dB) Connections: 2 + [DISABLED] <- nid=12 [pin: Line-out (None)] [DISABLED] (selected) + [DISABLED] <- nid=18 [pin: Line-out (None)] [DISABLED] dev.hdaa.1.nid4: audio output Widget cap: 0x000d041d PWR STEREO Association: 0 (0x0001) OSS: pcm (pcm) Stream cap: 0x00000003 FLOAT32 PCM PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB) dev.hdaa.1.nid3: audio output Widget cap: 0x000d041d PWR STEREO Association: 0 (0x0004) OSS: pcm (pcm) Stream cap: 0x00000003 FLOAT32 PCM PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB) dev.hdaa.1.nid2: audio output Widget cap: 0x000d041d PWR STEREO Association: 1 (0x0001) OSS: pcm (pcm) Stream cap: 0x00000003 FLOAT32 PCM PCM cap: 0x001e07f0 16 20 24 32 bits, 32 44 48 88 96 176 192 KHz Output amp: 0x80017f73 mute=1 step=127 size=1 offset=115 (-57/6dB) dev.hdaa.1.%parent: hdacc1 dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x106b2800 dev.hdaa.1.%location: nid=1 dev.hdaa.1.%driver: hdaa dev.hdaa.1.%desc: Cirrus Logic CS4206 Audio Function Group > On 28. Apr 2017, at 19:10, Johannes Lundberg wrote: > > That would be awesome! Yes, my model is also A1398. > > After patching the asmc driver (has been committed) freebsd runs great on > it. > All that's missing is sound :) > > >> On Fri, Apr 28, 2017 at 7:06 PM, Michael Gmelin wrote: >> >> A friend has a model A1398 (which is very similar I guess). He'd be >> willing to give it to me for experiments. >> >> -m >> >>> On 28. Apr 2017, at 17:07, Johannes Lundberg wrote: >>> >>> Sorry I meant device.hints. >>> >>> Its a 2013 MBP 15" Retina. (11,2 I belive) >>> >>> >>> >>>> On Fri, Apr 28, 2017 at 5:05 PM, Michael Gmelin >> wrote: >>>> >>>> device.conf or device.hints? >>>> >>>> Note that you can also set these using sysctl for experimentation. >>>> Which exact model number of the macbook pro are you using? >>>> >>>> -m >>>> >>>> On Fri, 28 Apr 2017 16:48:30 +0200 >>>> Johannes Lundberg wrote: >>>> >>>>> Hmm nothing at all.. Only headset gives sound. >>>>> >>>>> Using this now in device.conf: (tried different combinations) >>>>> >>>>> # Headset out >>>>> hint.hdaa.1.nid16.config="as=1 seq=0" >>>>> >>>>> # Headset in >>>>> hint.hdaa.1.nid24.config="as=2 seq=0" >>>>> >>>>> # Internal Mic >>>>> hint.hdaa.1.nid28.config="as=3 seq=0" >>>>> >>>>> # Speakers >>>>> hint.hdaa.1.nid18.config="as=4 seq=0" >>>>> hint.hdaa.1.nid19.config="as=5 seq=0" >>>>> >>>>> hint.hdaa.1.gpio_config="3=set" >>>>> >>>>> >>>>> >>>>> >>>>> On Fri, Apr 28, 2017 at 3:21 PM, Michael Gmelin >>>>> wrote: >>>>> >>>>>> Without looking through all of this myself, could you try the two >>>>>> solutions at the end of this thread? >>>>>> >>>>>> https://forums.macrumors.com/threads/sound-settings-on- >>>> freebsd.1658457/ >>>>>> >>>>>> >>>>>> On 28. Apr 2017, at 15:06, Johannes Lundberg >>>>>> wrote: >>>>>> >>>>>> Hi Michael >>>>>> >>>>>> Thanks! Here's the output >>>>>> >>>>>> dev.pcm.3.%parent: hdaa1 >>>>>> dev.pcm.2.%parent: hdaa1 >>>>>> dev.pcm.1.%parent: hdaa1 >>>>>> dev.pcm.0.%parent: hdaa0 >>>>>> dev.hdaa.1.reconfig: 0 >>>>>> dev.hdaa.1.gpo_config: 0=keep 1=keep >>>>>> dev.hdaa.1.gpo_state: 0=0 1=0 >>>>>> dev.hdaa.1.gpio_config: 0=keep 1=keep 2=keep 3=keep 4=keep 5=keep >>>>>> dev.hdaa.1.gpio_state: 0=output(0) 1=disabled 2=disabled 3=disabled >>>>>> 4=disabled 5=disabled >>>>>> dev.hdaa.1.gpi_state: >>>>>> dev.hdaa.1.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref >>>>>> dev.hdaa.1.nid36: vendor widget [DISABLED] >>>>>> dev.hdaa.1.nid35: beep widget >>>>>> dev.hdaa.1.nid34_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid34_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid34: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid33_original: 0x004be030 as=3 seq=0 device=SPDIF-out >>>>>> conn=Jack ctype=Combo loc=0x00 color=White misc=0 >>>>>> dev.hdaa.1.nid33_config: 0x004be030 as=3 seq=0 device=SPDIF-out >>>>>> conn=Jack ctype=Combo loc=0x00 color=White misc=0 >>>>>> dev.hdaa.1.nid33: pin: SPDIF-out (White Jack) >>>>>> dev.hdaa.1.nid32_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid32_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid32: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid31_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid31_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid31: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid30_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid30_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid30: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid29_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid29_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid29: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid28_original: 0x90a60100 as=0 seq=0 device=Mic >>>>>> conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid28_config: 0x90a60100 as=0 seq=0 device=Mic conn=Fixed >>>>>> ctype=Digital loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid28: pin: Mic (Fixed) [DISABLED] >>>>>> dev.hdaa.1.nid27_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid27_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid27: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid26_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid26_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid26: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid25_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid25_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid25: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid24_original: 0x00ab9040 as=4 seq=0 device=Mic >>>>>> conn=Jack ctype=Combo loc=0x00 color=Pink misc=0 >>>>>> dev.hdaa.1.nid24_config: 0x00ab9040 as=4 seq=0 device=Mic conn=Jack >>>>>> ctype=Combo loc=0x00 color=Pink misc=0 >>>>>> dev.hdaa.1.nid24: pin: Mic (Pink Jack) >>>>>> dev.hdaa.1.nid23_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid23_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid23: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid22_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid22_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid22: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid21_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid21_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid21: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid20_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid20_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid20: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid19_original: 0x90100112 as=1 seq=2 device=Speaker >>>>>> conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid19_config: 0x90100112 as=1 seq=2 device=Speaker >>>>>> conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid19: pin: Speaker (Fixed) >>>>>> dev.hdaa.1.nid18_original: 0x90100110 as=1 seq=0 device=Speaker >>>>>> conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid18_config: 0x90100110 as=1 seq=0 device=Speaker >>>>>> conn=Fixed ctype=Unknown loc=Internal color=Unknown misc=1 >>>>>> dev.hdaa.1.nid18: pin: Speaker (Fixed) >>>>>> dev.hdaa.1.nid17_original: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid17_config: 0x400000f0 as=15 seq=0 device=Line-out >>>>>> conn=None ctype=Unknown loc=0x00 color=Unknown misc=0 >>>>>> dev.hdaa.1.nid17: pin: Line-out (None) [DISABLED] >>>>>> dev.hdaa.1.nid16_original: 0x002b4020 as=2 seq=0 device=Headphones >>>>>> conn=Jack ctype=Combo loc=0x00 color=Green misc=0 >>>>>> dev.hdaa.1.nid16_config: 0x002b4020 as=2 seq=0 device=Headphones >>>>>> conn=Jack ctype=Combo loc=0x00 color=Green misc=0 >>>>>> dev.hdaa.1.nid16: pin: Headphones (Green Jack) >>>>>> dev.hdaa.1.nid15: audio input [DISABLED] >>>>>> dev.hdaa.1.nid14: audio output >>>>>> dev.hdaa.1.nid13: audio input [DISABLED] >>>>>> dev.hdaa.1.nid12: audio input [DISABLED] >>>>>> dev.hdaa.1.nid11: audio output [DISABLED] >>>>>> dev.hdaa.1.nid10: audio output [DISABLED] >>>>>> dev.hdaa.1.nid9: audio input [DISABLED] >>>>>> dev.hdaa.1.nid8: audio input [DISABLED] >>>>>> dev.hdaa.1.nid7: audio input >>>>>> dev.hdaa.1.nid6: audio input [DISABLED] >>>>>> dev.hdaa.1.nid5: audio output [DISABLED] >>>>>> dev.hdaa.1.nid4: audio output >>>>>> dev.hdaa.1.nid3: audio output >>>>>> dev.hdaa.1.nid2: audio output >>>>>> dev.hdaa.1.%parent: hdacc1 >>>>>> dev.hdaa.1.%pnpinfo: type=0x01 subsystem=0x106b5e00 >>>>>> dev.hdaa.1.%location: nid=1 >>>>>> dev.hdaa.1.%driver: hdaa >>>>>> dev.hdaa.1.%desc: Cirrus Logic (0x4208) Audio Function Group >>>>>> dev.hdaa.0.reconfig: 0 >>>>>> dev.hdaa.0.gpo_config: >>>>>> dev.hdaa.0.gpo_state: >>>>>> dev.hdaa.0.gpio_config: >>>>>> dev.hdaa.0.gpio_state: >>>>>> dev.hdaa.0.gpi_state: >>>>>> dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref >>>>>> dev.hdaa.0.nid3_original: 0x18560010 as=1 seq=0 device=Digital-out >>>>>> conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0 >>>>>> dev.hdaa.0.nid3_config: 0x18560010 as=1 seq=0 device=Digital-out >>>>>> conn=Jack ctype=Digital loc=0x18 color=Unknown misc=0 >>>>>> dev.hdaa.0.nid3: pin: Digital-out (Jack) >>>>>> dev.hdaa.0.nid2: audio output >>>>>> dev.hdaa.0.%parent: hdacc0 >>>>>> dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x80860101 >>>>>> dev.hdaa.0.%location: nid=1 >>>>>> dev.hdaa.0.%driver: hdaa >>>>>> dev.hdaa.0.%desc: Intel Haswell Audio Function Group >>>>>> dev.hdaa.%parent: >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Apr 28, 2017 at 3:04 PM, Michael Gmelin >>>>>> wrote: >>>>>> >>>>>> >>>>>> On Fri, 28 Apr 2017 14:59:22 +0200 >>>>>> >>>>>> Johannes Lundberg wrote: >>>>>> >>>>>> >>>>>> Hi Hans >>>>>> >>>>>> >>>>>> Thanks for the tip.. However I'm not sure what to do with it.. My >>>>>> >>>>>> configuration seems different. >>>>>> >>>>>> >>>>>> The hda code talks about model and codecs, how does that match to >>>>>> >>>>>> chip and card ids? >>>>>> >>>>>> >>>>>> For example, we have: >>>>>> >>>>>> #define HDA_INTEL_MACBOOKPRO92 HDA_MODEL_CONSTRUCT(INTEL, 0x7270) >>>>>> >>>>>> and >>>>>> >>>>>> #define HDA_INTEL_HSW3 HDA_MODEL_CONSTRUCT(INTEL, 0x0d0c) >>>>>> >>>>>> >>>>>> Both match depending if you look at card or chip.. >>>>>> >>>>>> >>>>>> hdac0@pci0:0:3:0: class=0x040300 card=0x012e106b chip=0x0d0c8086 >>>>>> >>>>>> rev=0x08 hdr=0x00 >>>>>> >>>>>> vendor = 'Intel Corporation' >>>>>> >>>>>> device = 'Crystal Well HD Audio Controller' >>>>>> >>>>>> class = multimedia >>>>>> >>>>>> subclass = HDA >>>>>> >>>>>> hdac1@pci0:0:27:0: class=0x040300 card=0x72708086 chip=0x8c208086 >>>>>> >>>>>> rev=0x05 hdr=0x00 >>>>>> >>>>>> vendor = 'Intel Corporation' >>>>>> >>>>>> device = '8 Series/C220 Series Chipset High Definition Audio >>>>>> >>>>>> Controller' >>>>>> >>>>>> class = multimedia >>>>>> >>>>>> subclass = HDA >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Apr 28, 2017 at 1:35 PM, Hans Petter Selasky >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> You might have to change audio routing using sysctls or device >>>>>> hints, >>>>>> >>>>>> see below for examples I use on my laptop (different model, so it's >>>>>> >>>>>> more about the general idea) >>>>>> >>>>>> >>>>>> Keep speakers and headphone jack separate (two separate audio >>>>>> devices): >>>>>> >>>>>> cat >>/boot/device.hints <>>>>> >>>>>> hint.hdaa.1.nid26.config="as=2" >>>>>> >>>>>> hint.hdaa.1.nid33.config="as=3" >>>>>> >>>>>> EOF >>>>>> >>>>>> >>>>>> >>>>>> Use headphone jack like most people do (recommended): >>>>>> >>>>>> cat >>/boot/device.hints <>>>>> >>>>>> hint.hdaa.1.nid20.config="as=3 seq=0" >>>>>> >>>>>> hint.hdaa.1.nid26.config="as=2 seq=14" >>>>>> >>>>>> hint.hdaa.1.nid25.config="as=2 seq=15" >>>>>> >>>>>> hint.hdaa.1.nid33.config="as=3 seq=15" >>>>>> >>>>>> EOF >>>>>> >>>>>> >>>>>> Maybe you could send the the output of sysctl -a | grep hdaa? >>>>>> >>>>>> >>>>>> -m >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> wrote: >>>>>> >>>>>> >>>>>> On 04/28/17 13:30, Johannes Lundberg wrote: >>>>>> >>>>>> >>>>>> Hi >>>>>> >>>>>> >>>>>> As the subject says... >>>>>> >>>>>> >>>>>> Anyone familiar with this? >>>>>> >>>>>> >>>>>> # cat /dev/random > /dev/dsp* >>>>>> >>>>>> only generate noise in the headphones.. >>>>>> >>>>>> >>>>>> >>>>>> MBP requires some patches for the speakers to work: >>>>>> >>>>>> >>>>>> https://svnweb.freebsd.org/base?view=revision&revision=261507 >>>>>> >>>>>> >>>>>> --HPS >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> >>>>>> freebsd-current@freebsd.org mailing list >>>>>> >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>>> >>>>>> To unsubscribe, send any mail to >>>>>> >>>>>> "freebsd-current-unsubscribe@freebsd.org" >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> Michael Gmelin >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> freebsd-current@freebsd.org mailing list >>>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>>> To unsubscribe, send any mail to >>>>>> "freebsd-current-unsubscribe@freebsd.org" >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> freebsd-current@freebsd.org mailing list >>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>>>> To unsubscribe, send any mail to >>>>> "freebsd-current-unsubscribe@freebsd.org" >>>> >>>> >>>> >>>> >>>> >>>> -- >>>> Michael Gmelin >>>> >>> _______________________________________________ >>> freebsd-current@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-current >>> To unsubscribe, send any mail to "freebsd-current-unsubscribe@ >> freebsd.org" >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" --MP_/y+HsxNkLNXvldPBT80iYGPh Content-Disposition: attachment; filename="Original html part" MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" --MP_/y+HsxNkLNXvldPBT80iYGPh--