Date: Thu, 11 Dec 2014 13:52:38 +0100 From: Bernt Hansson <bah@bananmonarki.se> To: Luciano Rottava da Silva <rottava@gmail.com>, FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Setting up 4.1 audio in FreeBSD 10.1 Message-ID: <54899396.9070909@bananmonarki.se> In-Reply-To: <CAGROAxVMEtfXFnOimMCWigBtmqVaoJr14U%2BvZwqHPFs4Zo%2BuQg@mail.gmail.com> References: <CAGROAxVMEtfXFnOimMCWigBtmqVaoJr14U%2BvZwqHPFs4Zo%2BuQg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-12-11 00:26, Luciano Rottava da Silva wrote: > Hello list, Hello. > My desktop has a 4.1 speaker system, connect to an Asus motherboard with a > built-in ALC887 sound card. > > $ dmesg | grep ALC > hdacc0: <Realtek ALC887 HDA CODEC> at cad 0 on hdac0 > hdaa0: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc0 > pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> at nid 20,26 and 24 on hdaa0 > pcm1: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa0 > pcm2: <Realtek ALC887 (Onboard Digital)> at nid 17 on hdaa0 > > I am able to listen to the front but not to the rear speakers. I would like > to adjust my audio system to 4.0/4.1, i.e., same audio in the rear and in > the front speaker. Don`t care too much about real surround sound. > > All relevant sound modules are there, so I think problem is related to the > configuration of the sound chipset. > > Searching in the Internet I figured out I could redefine a line-in jack > (blue, where my rear speakers are connected) to line-out. So I did it: > > $ cat /boot/device.hints > hint.hdac.0.cad0.nid20.config="as=1 seq=0" > #hint.hdac.0.cad0.nid24.config="as=1 seq=1 device=Line-out" > #hint.hdac.0.cad0.nid26.config="as=1 seq=2 device=Line-out" > hint.hdac.0.cad0.nid26.config="as=1 seq=1 device=Line-out" > > > $ cat /dev/sndstat > Installed devices: > pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> (play/rec) default > pcm1: <Realtek ALC887 (Front Analog)> (play/rec) > pcm2: <Realtek ALC887 (Onboard Digital)> (play) > pcm3: <USB audio> (rec) > > > After boot in verbose mode I got: > > hdaa0: Pin sense: nid=20 sense=0x80000000 (connected) > hdaa0: Pin sense: nid=26 sense=0x80000000 (connected) > hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref > pcm0: <Realtek ALC887 (Rear Analog 3.1/2.0)> at nid 20,26 and 24 on hdaa0 > pcm0: Playback: > pcm0: Stream cap: 0x00000001 PCM > pcm0: PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz > pcm0: DAC: 2 3 > pcm0: > pcm0: nid=20 [pin: Line-out (Green Jack)] > pcm0: + <- nid=12 [audio mixer] [src: pcm, mix] > pcm0: + <- nid=2 [audio output] [src: pcm] > pcm0: + <- nid=11 [audio mixer] [src: mix] > pcm0: > pcm0: nid=26 [pin: Line-out (Blue Jack)] > pcm0: + <- nid=13 [audio mixer] [src: pcm, mix] > pcm0: + <- nid=3 [audio output] [src: pcm] > pcm0: + <- nid=11 [audio mixer] [src: mix] > pcm0: > > > This means that both jacks in the motherboard are set to line-out and shoud > work, right? > > Is there anything else I should set, maybe mixer in order to have a 4.0/4.1 > audio system? > > Any ideas? You can always fiddle with sysctl hw.snd.default_unit 0-3 And see what happens.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54899396.9070909>