From owner-freebsd-questions@FreeBSD.ORG Sun Oct 28 21:34:12 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 38115E39 for ; Sun, 28 Oct 2012 21:34:12 +0000 (UTC) (envelope-from mavbsd@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 778C38FC08 for ; Sun, 28 Oct 2012 21:34:11 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id e12so4291902lag.13 for ; Sun, 28 Oct 2012 14:34:10 -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=X/gx9aVRSEogAWWcRwKxBT3vAS+aKjr0+4ggc6hAUcY=; b=XBJq2EY+2l67W/enogwT7GmjF6giJgKfExcmknEiCDnoqw3ykMlDMvK2fJfCw9OS1k yyfx/66xLX+jcBzCKpTe8C2+ZISCeSwXqPTTgcEWI0683JPHFtcPIw4sM4qn4hGqeEoT Qed73JZk95WIilGLdEPNXuD0wyKSrg5WnpSoU5BrgoqS7q/aECFf3NhocdAuzLqIHmUk +w7rfSR4Is695s7vX1flpHhunbnnl2vtlf79jZmJEYfDr769g9+ZWt0g97ZIrFsHEn5M 31EE0PbH1DEe+evXYDBYqdwn52YKvrDcQpZOdZj0mijfVdWLvW8ksAUPhfbPA6l0ETvM sdGw== Received: by 10.112.14.107 with SMTP id o11mr11055225lbc.98.1351460050296; Sun, 28 Oct 2012 14:34:10 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPS id sy1sm2439908lab.16.2012.10.28.14.34.09 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 14:34:09 -0700 (PDT) Sender: Alexander Motin Message-ID: <508DA4D0.8040604@FreeBSD.org> Date: Sun, 28 Oct 2012 23:34:08 +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: <508D8755.1080501@FreeBSD.org> <508D98C9.30603@FreeBSD.org> 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 21:34:12 -0000 On 28.10.2012 23:20, Big Yuuta wrote: > 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 :( Alas. I'll just remind one more time about `mixer ogain`. Also check that pin sensing is working. Try to plug in/out headphones. With verbose messages enabled, you should see messages about that on console and in logs. > 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 -- Alexander Motin