From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 21:20:34 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 750F82FC; Sun, 28 Oct 2012 21:20:34 +0000 (UTC) (envelope-from init.py@gmail.com) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 608EC8FC16; Sun, 28 Oct 2012 21:20:33 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id e12so4287279lag.13 for ; Sun, 28 Oct 2012 14:20:32 -0700 (PDT) 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=F+OctP3KWpQZSRTiTkM2NsZGN9FS/Ry9FzHNusPbsew=; b=Zu869A+MZuw1fL+kGEhE8bG0m5mzHdTlXLK9rg7DJNh8R48bASTA4ovAR5jCi9/gaI mmb+itlcVIzYfpfpd6x9G/UMWk4+AtbfpRrscyujU6lg6q78e2vVedZ7m7Rl4QP7Ikp+ 13+l+CrCoAwFnYApaC1it4Rz8hVBu5YDYaV61Ed35czkBgYDxHnWmx4cmHRO9t2WFxGv JCG8istEoJeMsPwP6DUWSsvKoaLFsUvxE3XjewjB+gEeLMfr3J8OKATjoyMSPMsC11WW i+cr7yliHXs3YRDq6YYLoAG9EZsmQ7U1CzuJZxaJEfoFMH5PtBXXuiqDRIh4dqTghVGg 2qUg== MIME-Version: 1.0 Received: by 10.152.47.79 with SMTP id b15mr25342741lan.57.1351459232411; Sun, 28 Oct 2012 14:20:32 -0700 (PDT) Received: by 10.114.60.114 with HTTP; Sun, 28 Oct 2012 14:20:32 -0700 (PDT) In-Reply-To: References: <508D8755.1080501@FreeBSD.org> <508D98C9.30603@FreeBSD.org> Date: Sun, 28 Oct 2012 22:20:32 +0100 Message-ID: Subject: Re: No sound from speaker, using Realtek ALC269 and snd_hda From: Big Yuuta To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 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 21:20:34 -0000 Unfortunately, trying with the different combinations didn't work. I wrote this tiny script just to make sure I'm not forgetting a case: #!/bin/sh echo "testing with: $1 - $2"; kenv hint.hdaa.0.gpio_config="0=$1 1=$2"; kldunload snd_hda.ko; kldload snd_hda.ko; mplayer song.mp3; and I run it like this: ./test.sh set set ./test.sh set clear ./test.sh clear set ./test.sh clear clear And nothing came out of the speaker, alas :( What's strange is that the speaker actually works with OSS from ports, but when I use it (OSS) with mplayer it crashes the whole system whenever I try to skip in a video/audio file On Sun, Oct 28, 2012 at 9:58 PM, Big Yuuta wrote: > On Sun, Oct 28, 2012 at 9:42 PM, Alexander Motin wrote: >> On 28.10.2012 22:09, Big Yuuta wrote: >>>> >>>> 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. >>> >>> >>> You mean combinations like: >>> >>> hint.hdaa.0.gpio_config="0=set 1=set 2=set" >> >> >> As I've told, there are only two GPIO pins, so only "0=X 1=Y", plus ogain >> mixer control. > > So that would be: > > hint.hdaa.0.gpio_config="0=set 1=set" > hint.hdaa.0.gpio_config="0=set 1=clear" > hint.hdaa.0.gpio_config="0=clear 1=set" > hint.hdaa.0.gpio_config="0=clear 1=clear" > > which I try with: > > mixer ogain 0:0 > mixer ogain 100:100 > > I'm going to check once again, but I think that unfortunately that didn't work. > I hope that I forgot a combination! > > Thanks again, Alexander