From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Chew Subject: Re: 5.1 surround on 3 jacks (retasking) Date: Tue, 31 Aug 2010 07:45:09 +1200 Message-ID: References: <4C75A7D9.1030604@canonical.com> <4C76100C.3040205@canonical.com> <4C792365.6050308@canonical.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-gx0-f179.google.com (mail-gx0-f179.google.com [209.85.161.179]) by alsa0.perex.cz (Postfix) with ESMTP id DBF78244C1 for ; Mon, 30 Aug 2010 21:45:11 +0200 (CEST) Received: by gxk28 with SMTP id 28so2322911gxk.38 for ; Mon, 30 Aug 2010 12:45:11 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org, David Henningsson List-Id: alsa-devel@alsa-project.org Hi Takashi > This is nothing but the raw 32 bit values the codec chip will take. > Refer to "default pin configuration" in HD-audio specification. > Definitions can be found in hda_codec.h, too (AC_DEFCFG_*). > Thank you very much for this, I have managed to find it in both Intel doc, and the hda_codec.h you mentioned. Interestingly, when I configure all 3 jacks (via user_pin_configs) to be of type HP_OUT, only 1 of them will be configured as that, the other 2 will not. There must be something in the generic code that prevents more than 1 jack being configured as HP_OUT. Looking at patch_realtek.c it appears the norm is to set only 1 jack to be HP. So, I ended up using the hda-verb program and set the HP_OUT on startup, it works out well. PS: Now I am getting static interference on one of the ports, but I believe this is a hardware issue. In HP_OUT mode, the rear jack is picking up static noise from the power source close by (ie noise only comes in when keyboard is pressed repeatly or when CPU is in use). Solved one problem, out comes another. More hardware debugging to do, thanks again for all your help! Regards Keith