From patchwork Sat Jul 4 05:56:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Yau X-Patchwork-Id: 6717361 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 60C849F38C for ; Sat, 4 Jul 2015 05:56:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B7272082B for ; Sat, 4 Jul 2015 05:56:38 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9EAD320827 for ; Sat, 4 Jul 2015 05:56:36 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D5F8626510F; Sat, 4 Jul 2015 07:56:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 71A4526510F; Sat, 4 Jul 2015 07:56:27 +0200 (CEST) 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 67D9E265119; Sat, 4 Jul 2015 07:56:25 +0200 (CEST) Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by alsa0.perex.cz (Postfix) with ESMTP id 47A2D26510B for ; Sat, 4 Jul 2015 07:56:18 +0200 (CEST) Received: by oigx81 with SMTP id x81so89076809oig.1 for ; Fri, 03 Jul 2015 22:56:17 -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=Z2APpq3HWiILTxbohm8nUR83xyVxIpThhnWlgxxlHH0=; b=IAcQV5ATG/iwhPni8y8EQGVBim9Sdv1e9hD7FXMyyqEf66u+VRPdgGXE6saR5KfQjZ MVEoXY7v7MhHZwuaLxMAq08jQDpvHIEysa01iH24bnxZw9vI5McFIPfIN8I/eIFwkXZs F4GkaOs/aj7EsyUxdg8EVaCuDYq4qBF+DtNCtVtv2qTq1ebBypsnnJVxUAWKUJX/veyz sf2Q8E5Xmrt0UNPGPQLT7lx78V1EJoxrD9y0StoD5apctDqhhpIUuMciMtJ1XhAUo/a5 PnWqileQ0BwPiDWH8Nrl3C64oKJZpC8iJ5GJQqi4+jebYkPXsbUlXWUQbzUVQTlaTwyh fiwQ== MIME-Version: 1.0 X-Received: by 10.60.177.73 with SMTP id co9mr16862796oec.5.1435989377121; Fri, 03 Jul 2015 22:56:17 -0700 (PDT) Received: by 10.202.197.15 with HTTP; Fri, 3 Jul 2015 22:56:17 -0700 (PDT) In-Reply-To: References: Date: Sat, 4 Jul 2015 13:56:17 +0800 Message-ID: From: Raymond Yau To: Arthur Borsboom X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: ALSA Development Mailing List Subject: Re: [alsa-devel] [ALC668]: Asus N751JK - Incorrect default pin assignment for external base speaker and external microphone not working 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 2015-7-4 ??5:03? "Arthur Borsboom" ??? > > The jack test gives > > Without external speaker plugged in: > > Pin 0x12 (Internal Mic): present = No > Pin 0x14 (Internal Speaker): present = No > Pin 0x15 (Black Headphone, Left side): present = No > Pin 0x16 (Not connected): present = No > Pin 0x18 (Not connected): present = No > Pin 0x19 (Not connected): present = No > Pin 0x1a (Not connected): present = No > Pin 0x1b (Not connected): present = No > Pin 0x1d (Not connected): present = No > Pin 0x1e (Not connected): present = No > Pin 0x1f (Not connected): present = No > > With external speaker plugged in: > > Pin 0x12 (Internal Mic): present = No > Pin 0x14 (Internal Speaker): present = No > Pin 0x15 (Black Headphone, Left side): present = No > Pin 0x16 (Not connected): present = No > Pin 0x18 (Not connected): present = No > Pin 0x19 (Not connected): present = No > Pin 0x1a (Not connected): present = Yes > Pin 0x1b (Not connected): present = No > Pin 0x1d (Not connected): present = No > Pin 0x1e (Not connected): present = No > Pin 0x1f (Not connected): present = No }; static const struct snd_pci_quirk alc662_fixup_tbl[] = { @@ -6441,6 +6460,7 @@ static const struct snd_pci_quirk alc662_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x1632, "HP RP5800", ALC662_FIXUP_HP_RP5800), SND_PCI_QUIRK(0x1043, 0x11cd, "Asus N550", ALC662_FIXUP_BASS_1A), SND_PCI_QUIRK(0x1043, 0x1477, "ASUS N56VZ", ALC662_FIXUP_BASS_MODE4_CHMAP), + SND_PCI_QUIRK(0x1043, 0x17bd, "Asus N751JK", ALC668_FIXUP_ASUS_N751JK), SND_PCI_QUIRK(0x1043, 0x15a7, "ASUS UX51VZH", ALC662_FIXUP_BASS_16), SND_PCI_QUIRK(0x1043, 0x1b73, "ASUS N55SF", ALC662_FIXUP_BASS_16), SND_PCI_QUIRK(0x1043, 0x1bf3, "ASUS N76VZ", ALC662_FIXUP_BASS_MODE4_CHMAP), diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 8e02cdf..174c5e5 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6179,6 +6179,8 @@ enum { ALC668_FIXUP_AUTO_MUTE, ALC668_FIXUP_DELL_DISABLE_AAMIX, ALC668_FIXUP_DELL_XPS13, + ALC668_FIXUP_BASS_CHMAP, + ALC668_FIXUP_ASUS_N751JK, }; static const struct hda_fixup alc662_fixups[] = { @@ -6419,6 +6421,23 @@ static const struct hda_fixup alc662_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_bass_chmap, }, + [ALC668_FIXUP_BASS_CHMAP] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_bass_chmap, + .chained = true, + .chain_id = ALC668_FIXUP_HEADSET_MODE + }, + [ALC668_FIXUP_ASUS_N751JK] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */ + { 0x1a, 0x04110011 }, /* bass speaker at Ext Right with jack detect */ + { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */ + {} + }, + .chained = true, + .chain_id = ALC668_FIXUP_BASS_CHMAP, + },