From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 23:26:03 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 81989F48 for ; Wed, 10 Dec 2014 23:26:03 +0000 (UTC) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 038415EC for ; Wed, 10 Dec 2014 23:26:03 +0000 (UTC) Received: by mail-la0-f50.google.com with SMTP id pn19so3395539lab.9 for ; Wed, 10 Dec 2014 15:26:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2PRd/LxTPQ47RLHUscikP/cUXo4xWqDzRNu/2+6GZ4w=; b=cybXTVwwqh+7fmrQRQ8mgo9kTCQGX2TTflGdl1DBuZV5UsHNItVO6eU5oKB9S+N3jO A+3wcjNhom5Q/fNOlN6leUD/EdSscCExqVI9qwH5kjCRH5Pq/vD0WF2co43Tc7RO1Qnz bBdXJaqcFGdwQHXI9tlwMjvU42E1r8+cbxsnD4DMY0LeZudYn6AobaYlfOy3HaRuVTdr iWUoHl26TwhIDFQEFF9NtOIhnU+YqnqkCN6q51nq4iflI5yw4fpf8R1vWJ1ilWG3jmRp jNFGKwry/nSYp5BNXnkXuDPA5Jjq1qLDeNurEhzt/lmplr+PLovpCLEBrbQVwapxfjr6 jekQ== MIME-Version: 1.0 X-Received: by 10.112.14.69 with SMTP id n5mr6737718lbc.34.1418253961086; Wed, 10 Dec 2014 15:26:01 -0800 (PST) Received: by 10.25.168.136 with HTTP; Wed, 10 Dec 2014 15:26:01 -0800 (PST) Date: Wed, 10 Dec 2014 21:26:01 -0200 Message-ID: Subject: Setting up 4.1 audio in FreeBSD 10.1 From: Luciano Rottava da Silva To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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: Wed, 10 Dec 2014 23:26:03 -0000 Hello list, 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? Thanks, Luciano.