Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2017 19:06:59 +0200
From:      Michael Gmelin <freebsd@grem.de>
To:        Johannes Lundberg <johalun0@gmail.com>
Cc:        Hans Petter Selasky <hps@selasky.org>, freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: 2013 Macbook Pro, sound OK in headphones but no sound in internal speakers
Message-ID:  <142CFEB0-7D55-4CBA-82AC-962C5F663B8B@grem.de>
In-Reply-To: <CAECmPwvi3tpOtCnamXhEOLZbF-rou3%2BYEMsmpt5Y9ZsRzu=BTg@mail.gmail.com>
References:  <CAECmPwvAAUKo4qODrucLgyr7qWQGqbpEcd-9=AQO0_NA4CDVUg@mail.gmail.com> <dedaea11-9f21-3114-29d7-0d2184162afa@selasky.org> <CAECmPwuYo9DVLribbDyA75qR9CSYtmdqj5fvKiLwDt00e7abKg@mail.gmail.com> <20170428150432.3ffeb2aa@bsd64.grem.de> <CAECmPwseLrAid%2BoQMbZKrQwTvjhUasDX%2B%2BUe6y0ab26=eewXJQ@mail.gmail.com> <89CB9DA3-B4A0-4F01-8E95-B238DC9E47ED@grem.de> <CAECmPwtY5fjUoZNs6Opx0GuVCPtJWv6CZQAig3fCxhURqFRAWA@mail.gmail.com> <20170428170500.0ba6212d@bsd64.grem.de> <CAECmPwvi3tpOtCnamXhEOLZbF-rou3%2BYEMsmpt5Y9ZsRzu=BTg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
A friend has a model A1398 (which is very similar I guess). He'd be willing t=
o give it to me for experiments.

-m

> On 28. Apr 2017, at 17:07, Johannes Lundberg <johalun0@gmail.com> wrote:
>=20
> Sorry I meant device.hints.
>=20
> Its a 2013 MBP 15" Retina. (11,2 I belive)
>=20
>=20
>=20
>> On Fri, Apr 28, 2017 at 5:05 PM, Michael Gmelin <freebsd@grem.de> wrote:
>>=20
>> device.conf or device.hints?
>>=20
>> Note that you can also set these using sysctl for experimentation.
>> Which exact model number of the macbook pro are you using?
>>=20
>> -m
>>=20
>> On Fri, 28 Apr 2017 16:48:30 +0200
>> Johannes Lundberg <johalun0@gmail.com> wrote:
>>=20
>>> Hmm nothing at all.. Only headset gives sound.
>>>=20
>>> Using this now in device.conf: (tried different combinations)
>>>=20
>>> # Headset out
>>> hint.hdaa.1.nid16.config=3D"as=3D1 seq=3D0"
>>>=20
>>> # Headset in
>>> hint.hdaa.1.nid24.config=3D"as=3D2 seq=3D0"
>>>=20
>>> # Internal Mic
>>> hint.hdaa.1.nid28.config=3D"as=3D3 seq=3D0"
>>>=20
>>> # Speakers
>>> hint.hdaa.1.nid18.config=3D"as=3D4 seq=3D0"
>>> hint.hdaa.1.nid19.config=3D"as=3D5 seq=3D0"
>>>=20
>>> hint.hdaa.1.gpio_config=3D"3=3Dset"
>>>=20
>>>=20
>>>=20
>>>=20
>>> On Fri, Apr 28, 2017 at 3:21 PM, Michael Gmelin <freebsd@grem.de>
>>> wrote:
>>>=20
>>>> Without looking through all of this myself, could you try the two
>>>> solutions at the end of this thread?
>>>>=20
>>>> https://forums.macrumors.com/threads/sound-settings-on-
>> freebsd.1658457/
>>>>=20
>>>>=20
>>>> On 28. Apr 2017, at 15:06, Johannes Lundberg <johalun0@gmail.com>
>>>> wrote:
>>>>=20
>>>> Hi Michael
>>>>=20
>>>> Thanks! Here's the output
>>>>=20
>>>> 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=3Dkeep 1=3Dkeep
>>>> dev.hdaa.1.gpo_state: 0=3D0 1=3D0
>>>> dev.hdaa.1.gpio_config: 0=3Dkeep 1=3Dkeep 2=3Dkeep 3=3Dkeep 4=3Dkeep 5=3D=
keep
>>>> dev.hdaa.1.gpio_state: 0=3Doutput(0) 1=3Ddisabled 2=3Ddisabled 3=3Ddisa=
bled
>>>> 4=3Ddisabled 5=3Ddisabled
>>>> 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=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid34_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid34: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid33_original: 0x004be030 as=3D3 seq=3D0 device=3DSPDIF-out=

>>>> conn=3DJack ctype=3DCombo loc=3D0x00 color=3DWhite misc=3D0
>>>> dev.hdaa.1.nid33_config: 0x004be030 as=3D3 seq=3D0 device=3DSPDIF-out
>>>> conn=3DJack ctype=3DCombo loc=3D0x00 color=3DWhite misc=3D0
>>>> dev.hdaa.1.nid33: pin: SPDIF-out (White Jack)
>>>> dev.hdaa.1.nid32_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid32_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid32: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid31_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid31_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid31: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid30_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid30_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid30: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid29_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid29_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid29: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid28_original: 0x90a60100 as=3D0 seq=3D0 device=3DMic
>>>> conn=3DFixed ctype=3DDigital loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid28_config: 0x90a60100 as=3D0 seq=3D0 device=3DMic conn=3D=
Fixed
>>>> ctype=3DDigital loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid28: pin: Mic (Fixed) [DISABLED]
>>>> dev.hdaa.1.nid27_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid27_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid27: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid26_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid26_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid26: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid25_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid25_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid25: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid24_original: 0x00ab9040 as=3D4 seq=3D0 device=3DMic
>>>> conn=3DJack ctype=3DCombo loc=3D0x00 color=3DPink misc=3D0
>>>> dev.hdaa.1.nid24_config: 0x00ab9040 as=3D4 seq=3D0 device=3DMic conn=3D=
Jack
>>>> ctype=3DCombo loc=3D0x00 color=3DPink misc=3D0
>>>> dev.hdaa.1.nid24: pin: Mic (Pink Jack)
>>>> dev.hdaa.1.nid23_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid23_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid23: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid22_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid22_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid22: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid21_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid21_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid21: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid20_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid20_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid20: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid19_original: 0x90100112 as=3D1 seq=3D2 device=3DSpeaker
>>>> conn=3DFixed ctype=3DUnknown loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid19_config: 0x90100112 as=3D1 seq=3D2 device=3DSpeaker
>>>> conn=3DFixed ctype=3DUnknown loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid19: pin: Speaker (Fixed)
>>>> dev.hdaa.1.nid18_original: 0x90100110 as=3D1 seq=3D0 device=3DSpeaker
>>>> conn=3DFixed ctype=3DUnknown loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid18_config: 0x90100110 as=3D1 seq=3D0 device=3DSpeaker
>>>> conn=3DFixed ctype=3DUnknown loc=3DInternal color=3DUnknown misc=3D1
>>>> dev.hdaa.1.nid18: pin: Speaker (Fixed)
>>>> dev.hdaa.1.nid17_original: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out=

>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid17_config: 0x400000f0 as=3D15 seq=3D0 device=3DLine-out
>>>> conn=3DNone ctype=3DUnknown loc=3D0x00 color=3DUnknown misc=3D0
>>>> dev.hdaa.1.nid17: pin: Line-out (None) [DISABLED]
>>>> dev.hdaa.1.nid16_original: 0x002b4020 as=3D2 seq=3D0 device=3DHeadphone=
s
>>>> conn=3DJack ctype=3DCombo loc=3D0x00 color=3DGreen misc=3D0
>>>> dev.hdaa.1.nid16_config: 0x002b4020 as=3D2 seq=3D0 device=3DHeadphones
>>>> conn=3DJack ctype=3DCombo loc=3D0x00 color=3DGreen misc=3D0
>>>> 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=3D0x01 subsystem=3D0x106b5e00
>>>> dev.hdaa.1.%location: nid=3D1
>>>> 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=3D1 seq=3D0 device=3DDigital-ou=
t
>>>> conn=3DJack ctype=3DDigital loc=3D0x18 color=3DUnknown misc=3D0
>>>> dev.hdaa.0.nid3_config: 0x18560010 as=3D1 seq=3D0 device=3DDigital-out
>>>> conn=3DJack ctype=3DDigital loc=3D0x18 color=3DUnknown misc=3D0
>>>> dev.hdaa.0.nid3: pin: Digital-out (Jack)
>>>> dev.hdaa.0.nid2: audio output
>>>> dev.hdaa.0.%parent: hdacc0
>>>> dev.hdaa.0.%pnpinfo: type=3D0x01 subsystem=3D0x80860101
>>>> dev.hdaa.0.%location: nid=3D1
>>>> dev.hdaa.0.%driver: hdaa
>>>> dev.hdaa.0.%desc: Intel Haswell Audio Function Group
>>>> dev.hdaa.%parent:
>>>>=20
>>>>=20
>>>>=20
>>>> On Fri, Apr 28, 2017 at 3:04 PM, Michael Gmelin <freebsd@grem.de>
>>>> wrote:
>>>>=20
>>>>=20
>>>> On Fri, 28 Apr 2017 14:59:22 +0200
>>>>=20
>>>> Johannes Lundberg <johalun0@gmail.com> wrote:
>>>>=20
>>>>=20
>>>> Hi Hans
>>>>=20
>>>>=20
>>>> Thanks for the tip.. However I'm not sure what to do with it.. My
>>>>=20
>>>> configuration seems different.
>>>>=20
>>>>=20
>>>> The hda code talks about model and codecs, how does that match to
>>>>=20
>>>> chip and card ids?
>>>>=20
>>>>=20
>>>> For example, we have:
>>>>=20
>>>> #define HDA_INTEL_MACBOOKPRO92    HDA_MODEL_CONSTRUCT(INTEL, 0x7270)
>>>>=20
>>>> and
>>>>=20
>>>> #define HDA_INTEL_HSW3        HDA_MODEL_CONSTRUCT(INTEL, 0x0d0c)
>>>>=20
>>>>=20
>>>> Both match depending if you look at card or chip..
>>>>=20
>>>>=20
>>>> hdac0@pci0:0:3:0:    class=3D0x040300 card=3D0x012e106b chip=3D0x0d0c80=
86
>>>>=20
>>>> rev=3D0x08 hdr=3D0x00
>>>>=20
>>>>   vendor     =3D 'Intel Corporation'
>>>>=20
>>>>   device     =3D 'Crystal Well HD Audio Controller'
>>>>=20
>>>>   class      =3D multimedia
>>>>=20
>>>>   subclass   =3D HDA
>>>>=20
>>>> hdac1@pci0:0:27:0:    class=3D0x040300 card=3D0x72708086 chip=3D0x8c208=
086
>>>>=20
>>>> rev=3D0x05 hdr=3D0x00
>>>>=20
>>>>   vendor     =3D 'Intel Corporation'
>>>>=20
>>>>   device     =3D '8 Series/C220 Series Chipset High Definition Audio
>>>>=20
>>>> Controller'
>>>>=20
>>>>   class      =3D multimedia
>>>>=20
>>>>   subclass   =3D HDA
>>>>=20
>>>>=20
>>>>=20
>>>> On Fri, Apr 28, 2017 at 1:35 PM, Hans Petter Selasky
>>>> <hps@selasky.org>
>>>>=20
>>>>=20
>>>>=20
>>>> You might have to change audio routing using sysctls or device
>>>> hints,
>>>>=20
>>>> see below for examples I use on my laptop (different model, so it's
>>>>=20
>>>> more about the general idea)
>>>>=20
>>>>=20
>>>> Keep speakers and headphone jack separate (two separate audio
>>>> devices):
>>>>=20
>>>> cat >>/boot/device.hints <<EOF
>>>>=20
>>>> hint.hdaa.1.nid26.config=3D"as=3D2"
>>>>=20
>>>> hint.hdaa.1.nid33.config=3D"as=3D3"
>>>>=20
>>>> EOF
>>>>=20
>>>>=20
>>>>=20
>>>> Use headphone jack like most people do (recommended):
>>>>=20
>>>> cat >>/boot/device.hints <<EOF
>>>>=20
>>>> hint.hdaa.1.nid20.config=3D"as=3D3 seq=3D0"
>>>>=20
>>>> hint.hdaa.1.nid26.config=3D"as=3D2 seq=3D14"
>>>>=20
>>>> hint.hdaa.1.nid25.config=3D"as=3D2 seq=3D15"
>>>>=20
>>>> hint.hdaa.1.nid33.config=3D"as=3D3 seq=3D15"
>>>>=20
>>>> EOF
>>>>=20
>>>>=20
>>>> Maybe you could send the the output of sysctl -a | grep hdaa?
>>>>=20
>>>>=20
>>>> -m
>>>>=20
>>>>=20
>>>>=20
>>>>=20
>>>> wrote:
>>>>=20
>>>>=20
>>>> On 04/28/17 13:30, Johannes Lundberg wrote:
>>>>=20
>>>>=20
>>>> Hi
>>>>=20
>>>>=20
>>>> As the subject says...
>>>>=20
>>>>=20
>>>> Anyone familiar with this?
>>>>=20
>>>>=20
>>>> # cat /dev/random > /dev/dsp*
>>>>=20
>>>> only generate noise in the headphones..
>>>>=20
>>>>=20
>>>>=20
>>>> MBP requires some patches for the speakers to work:
>>>>=20
>>>>=20
>>>> https://svnweb.freebsd.org/base?view=3Drevision&revision=3D261507
>>>>=20
>>>>=20
>>>> --HPS
>>>>=20
>>>>=20
>>>> _______________________________________________
>>>>=20
>>>> freebsd-current@freebsd.org mailing list
>>>>=20
>>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>>>>=20
>>>> To unsubscribe, send any mail to
>>>>=20
>>>> "freebsd-current-unsubscribe@freebsd.org"
>>>>=20
>>>>=20
>>>>=20
>>>>=20
>>>> --
>>>>=20
>>>> Michael Gmelin
>>>>=20
>>>>=20
>>>> _______________________________________________
>>>> 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"
>>>>=20
>>>>=20
>>> _______________________________________________
>>> 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"
>>=20
>>=20
>>=20
>>=20
>>=20
>> --
>> Michael Gmelin
>>=20
> _______________________________________________
> 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"=





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?142CFEB0-7D55-4CBA-82AC-962C5F663B8B>