From owner-freebsd-questions@FreeBSD.ORG Thu Dec 11 12:52:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42E36B52 for ; Thu, 11 Dec 2014 12:52:53 +0000 (UTC) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 990C5E5B for ; Thu, 11 Dec 2014 12:52:49 +0000 (UTC) Received: from kw.news4all.se (localhost [127.0.0.1]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id sBBCqc2F040080; Thu, 11 Dec 2014 13:52:39 +0100 (CET) (envelope-from bah@bananmonarki.se) Message-ID: <54899396.9070909@bananmonarki.se> Date: Thu, 11 Dec 2014 13:52:38 +0100 From: Bernt Hansson User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: Luciano Rottava da Silva , FreeBSD Questions Subject: Re: Setting up 4.1 audio in FreeBSD 10.1 References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2014 12:52:53 -0000 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: at cad 0 on hdac0 > hdaa0: at nid 1 on hdacc0 > pcm0: at nid 20,26 and 24 on hdaa0 > pcm1: at nid 27 and 25 on hdaa0 > pcm2: 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: (play/rec) default > pcm1: (play/rec) > pcm2: (play) > pcm3: (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: 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.