From patchwork Thu Feb 20 03:47:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 3684131 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 48A869F35F for ; Thu, 20 Feb 2014 03:48:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3ECEC20251 for ; Thu, 20 Feb 2014 03:48:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id AFE0D2025A for ; Thu, 20 Feb 2014 03:48:09 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id AA7922656D2; Thu, 20 Feb 2014 04:48:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5F325265677; Thu, 20 Feb 2014 04:47:57 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A478626567C; Thu, 20 Feb 2014 04:47:56 +0100 (CET) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by alsa0.perex.cz (Postfix) with ESMTP id DDDDF265677 for ; Thu, 20 Feb 2014 04:47:49 +0100 (CET) Received: by mail-pb0-f44.google.com with SMTP id rq2so1321164pbb.17 for ; Wed, 19 Feb 2014 19:47:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4xIjXRvz3wN+XbTjCesmRoTtY91UsZhjP+SaeZFsG30=; b=NAwGalJz0Ow9JYlHBTU7YoXzkAnIlkDmaSuEgPHGo6hjPatYPtTSM5Lzw6uczyfPjl jHkIuz80edVRqrT+p/zSnGiba2C36G1sOxJnVVLzwmzflyhUBaoBpwqZoctOF414U3ok 1620jA/xgnMMeqXK4bfrQNZIdPwJb7WZbrTUBLtqREj0LgtzSWqRTjmqVJoioYQ70n8t KsU+RLvsmlh/nc4vFyZGAw1XN0m0X8gWu+64v3FvwX1udVP7POLl6JTLQprTBB/lqpHb RKszIUlsaIPS8JRfO0XImDLaWBvvj/pXgfYumlHsFdlhSzriW00cWTd07kKIm/KU80My gMxA== X-Gm-Message-State: ALoCoQmvPIM8B0nbOqAn7YSfjUcWszTXRL2ojQRu3fLI+uoGjn6R/yFZGLbEg3JAGuMzsioA9K8g X-Received: by 10.66.27.13 with SMTP id p13mr6333109pag.76.1392868068000; Wed, 19 Feb 2014 19:47:48 -0800 (PST) Received: from localhost.localdomain ([116.213.97.190]) by mx.google.com with ESMTPSA id yh4sm5778849pbb.19.2014.02.19.19.47.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Feb 2014 19:47:47 -0800 (PST) From: Hui Wang To: tiwai@suse.de, alsa-devel@alsa-project.org Date: Thu, 20 Feb 2014 11:47:21 +0800 Message-Id: <1392868041-21319-1-git-send-email-hui.wang@canonical.com> X-Mailer: git-send-email 1.8.1.2 Cc: hui.wang@canonical.com, gerald.yang@canonical.com, stable@vger.kernel.org, david.henningsson@canonical.com Subject: [alsa-devel] [PATCH] ALSA: hda - Enable front audio jacks on one HP desktop model X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP The front headphone and mic jackes on a HP desktop model (Vendor Id: 0x111d76c7 Subsystem Id: 0x103c2b17) can not work, the codec on this machine has 8 physical ports, 6 of them are routed to rear jackes and all of them work very well, while the remaining 2 ports are routed to front headphone and mic jackes, but the corresponding pin complex node are not defined correctly. After apply this fix, the front audio jackes can work very well. BugLink: https://bugs.launchpad.net/bugs/1282369 Cc: David Henningsson Tested-by: Gerald Yang Cc: stable@vger.kernel.org Signed-off-by: Hui Wang --- sound/pci/hda/patch_sigmatel.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index 7311bad..d75f90a 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c @@ -83,7 +83,8 @@ enum { STAC_DELL_M6_BOTH, STAC_DELL_EQ, STAC_ALIENWARE_M17X, - STAC_92HD73XX_MODELS + STAC_92HD73XX_MODELS, + STAC_92HD89XX_HP_FRONT_JACK }; enum { @@ -1795,6 +1796,12 @@ static const struct hda_pintbl intel_dg45id_pin_configs[] = { {} }; +static const struct hda_pintbl stac92hd89xx_hp_front_jack_pin_configs[] = { + { 0x0a, 0x02214030 }, + { 0x0b, 0x02A19010 }, + {} +}; + static void stac92hd73xx_fixup_ref(struct hda_codec *codec, const struct hda_fixup *fix, int action) { @@ -1913,6 +1920,10 @@ static const struct hda_fixup stac92hd73xx_fixups[] = { [STAC_92HD73XX_NO_JD] = { .type = HDA_FIXUP_FUNC, .v.func = stac92hd73xx_fixup_no_jd, + }, + [STAC_92HD89XX_HP_FRONT_JACK] = { + .type = HDA_FIXUP_PINS, + .v.pins = stac92hd89xx_hp_front_jack_pin_configs, } }; @@ -1973,6 +1984,8 @@ static const struct snd_pci_quirk stac92hd73xx_fixup_tbl[] = { "Alienware M17x", STAC_ALIENWARE_M17X), SND_PCI_QUIRK(PCI_VENDOR_ID_DELL, 0x0490, "Alienware M17x R3", STAC_DELL_EQ), + SND_PCI_QUIRK(PCI_VENDOR_ID_HP, 0x2b17, + "unknown HP", STAC_92HD89XX_HP_FRONT_JACK), {} /* terminator */ };