Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Apr 2017 15:04:32 +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:  <20170428150432.3ffeb2aa@bsd64.grem.de>
In-Reply-To: <CAECmPwuYo9DVLribbDyA75qR9CSYtmdqj5fvKiLwDt00e7abKg@mail.gmail.com>
References:  <CAECmPwvAAUKo4qODrucLgyr7qWQGqbpEcd-9=AQO0_NA4CDVUg@mail.gmail.com> <dedaea11-9f21-3114-29d7-0d2184162afa@selasky.org> <CAECmPwuYo9DVLribbDyA75qR9CSYtmdqj5fvKiLwDt00e7abKg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 28 Apr 2017 14:59:22 +0200
Johannes Lundberg <johalun0@gmail.com> 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 <hps@selasky.org>


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 <<EOF
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 <<EOF
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170428150432.3ffeb2aa>