From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 19:28:25 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E1D2D33 for ; Sun, 28 Oct 2012 19:28:25 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0068D8FC0A for ; Sun, 28 Oct 2012 19:28:24 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id b5so3344859lbd.13 for ; Sun, 28 Oct 2012 12:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=n+jZ2HigukBi14RrBJNHZxRseFrXtyHhVG/mn3EoHAI=; b=bj3CLKsbZZ40nIdfZO99fhnnsrSJi8QSnFaH5ojGYSC8T4xl07ARGQfj95QtCNUO6h TPNQEt92sYbVL2psCa2QdPalYvfiwH1FkV1Y9KPuWQqsr+oiak04fZ7J+KA8Zq8ZY7Gd PlBUd29hKJKHeZQAWynHW/wDMnGmQLmUArgRqBs55PzgpOwiu/GJ+a1UoaOl8KX5e3m5 lk5ne4fUHDZwTG1dC9Va9S92DEu3yKdpxsgSrOQRoAkMzUfUnnLTqaYp9VIPPbrts5V9 COqDCO/r7pYhqRILGXikabOpAbBqN5TaUFV7XIVjidIrAoYfzu9XrK0nFMRCJ7tPi8WX fRJQ== Received: by 10.152.105.135 with SMTP id gm7mr25382377lab.22.1351452503681; Sun, 28 Oct 2012 12:28:23 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPS id sj3sm2365780lab.2.2012.10.28.12.28.22 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 12:28:22 -0700 (PDT) Sender: Alexander Motin Message-ID: <508D8755.1080501@FreeBSD.org> Date: Sun, 28 Oct 2012 21:28:21 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120628 Thunderbird/13.0.1 MIME-Version: 1.0 To: Big Yuuta Subject: Re: No sound from speaker, using Realtek ALC269 and snd_hda References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 19:28:25 -0000 On 28.10.2012 17:12, Big Yuuta wrote: > I have an asus eeepc 1001px, on which I installed 9-stable. > I, since day one, never had any sound coming out of the speaker, > but when I plug a headphone in the jack, I have the sound -in the > headphones. > > The chipset is a Realtek ALC269 which some people said is supported. Now driver support most of CODECs. I don't know cases when specific CODEC would be a problem, and Realtek CODECs from functional side are better then many others. But many systems have custom wiring and laptops are usually more problematic there. > I read, and re-read the man page for snd_hda so many times, > but I just can't make it work. > > Here's what I have right now in my device.hints > > Code: > > hint.hdaa.0.nid20.config="as=1 seq=0 device=Speaker" > hint.hdaa.0.nid26.config="as=1 seq=15 device=Headphones" > hint.hdaa.0.nid18.config="as=2 seq=0" As I see, these three hints are replicating existing configuration and effectively useless. > #hint.hdaa.0.gpio_config="0=set" > hint.hdaa.0.config="forcestereo,ivref50,ivref80,ivref100,ivref,vref" > hint.pcm.0.config="gpio0,gpio1,gpio2,gpio3,gpio4,gpio5,gpio6,gpio7" > hint.pcm.0.vol="100" > > This is my n'th attempt, I pretty tried everything I could imagine. > > Here's my verbose dmesg http://dpaste.com/818967/plain/ > > Am I missing something? Is my understanding of pinouts correct? CODEC configuration looks good and I see no problems in driver output. I think most likely problem is in CODEC wiring and power amplifier. Your CODEC has two GPIO lines and EAPD line. That gives 8 possible combinations. I would recommend you to try them all. GPIOs, as you tried could be set with hint.hdaa.0.gpio_config tunable. EAPD line can be controlled (0 or 100) by the ogain mixer control. Unluckily with this output I can't completely identify your system to check what Linux does for it. Could you send me `devinfo -vr` output. -- Alexander Motin