From owner-freebsd-questions@FreeBSD.ORG Thu Dec 11 14:48:18 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 A8D4ECB7 for ; Thu, 11 Dec 2014 14:48:18 +0000 (UTC) Received: from mail-lb0-x231.google.com (mail-lb0-x231.google.com [IPv6:2a00:1450:4010:c04::231]) (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 12631D9C for ; Thu, 11 Dec 2014 14:48:18 +0000 (UTC) Received: by mail-lb0-f177.google.com with SMTP id b6so4237739lbj.36 for ; Thu, 11 Dec 2014 06:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ufAuUg6nCOLcmOL9GrHxJQfxwRv+kXEy7x3HWJHG43U=; b=dQL/W6Hk42I2UnnZWKzyEYY3qj1IXc/hSfXXvHWsbXp/ikLkJQpMUmm63UPxgoQLck u0a2Z0s4X1D8M6ymViWZn5VaAEECEg0xfUftSqp1F5o/ZQe6fw7TeYHGp5VarAwN75BB p8VhBkE5ujeKkYVkWBYdh1xIb4hWHz+7izT1iLX5UVZfmcvXmCG0Yqh2keKRaMR/J6Rg bwvvcwS76pjTkz7lWuBPl4d47O1aHNIi3+vDmQEJpreJAAe/KLaSsbpjvQEuXcFxhN2k Hr7vu42HXl1TQh0XRe97uhgzj2+r1IiJa+r/aQ373RDvZv+qla13xOfeWRUB4RGuyhRt PtYg== MIME-Version: 1.0 X-Received: by 10.152.43.12 with SMTP id s12mr10028594lal.67.1418309296066; Thu, 11 Dec 2014 06:48:16 -0800 (PST) Received: by 10.25.168.136 with HTTP; Thu, 11 Dec 2014 06:48:16 -0800 (PST) In-Reply-To: <54899396.9070909@bananmonarki.se> References: <54899396.9070909@bananmonarki.se> Date: Thu, 11 Dec 2014 12:48:16 -0200 Message-ID: Subject: Re: Setting up 4.1 audio in FreeBSD 10.1 From: Luciano Rottava da Silva To: Bernt Hansson Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Questions 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 14:48:18 -0000 Hi Bernt, Sound is coming out from front speakers, so pcm0 is the right default unit. Problem is that rear speakers are mute. That=C2=B4s why I am playing with p= in configuration of the sound card. Besides, during some of these tests with "nid", mouse stopped working in X! Anyone experienced this as well? Cheers. On 11 December 2014 at 10:52, Bernt Hansson wrote: > 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 hdaa= 0 >> 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 i= n >> 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 t= he >> 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=3D"as=3D1 seq=3D0" >> #hint.hdac.0.cad0.nid24.config=3D"as=3D1 seq=3D1 device=3DLine-out" >> #hint.hdac.0.cad0.nid26.config=3D"as=3D1 seq=3D2 device=3DLine-out" >> hint.hdac.0.cad0.nid26.config=3D"as=3D1 seq=3D1 device=3DLine-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=3D20 sense=3D0x80000000 (connected) >> hdaa0: Pin sense: nid=3D26 sense=3D0x80000000 (connected) >> hdaa0: FG config/quirks: forcestereo ivref50 ivref80 ivref100 ivref >> pcm0: at nid 20,26 and 24 on hdaa= 0 >> 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=3D20 [pin: Line-out (Green Jack)] >> pcm0: + <- nid=3D12 [audio mixer] [src: pcm, mix] >> pcm0: + <- nid=3D2 [audio output] [src: pcm] >> pcm0: + <- nid=3D11 [audio mixer] [src: mix] >> pcm0: >> pcm0: nid=3D26 [pin: Line-out (Blue Jack)] >> pcm0: + <- nid=3D13 [audio mixer] [src: pcm, mix] >> pcm0: + <- nid=3D3 [audio output] [src: pcm] >> pcm0: + <- nid=3D11 [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. >