From patchwork Tue Jul 22 09:58:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Drake X-Patchwork-Id: 4600531 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 A37EE9F375 for ; Tue, 22 Jul 2014 09:59:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9B8920125 for ; Tue, 22 Jul 2014 09:59:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 58AAB2014A for ; Tue, 22 Jul 2014 09:59:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5FBB9265530; Tue, 22 Jul 2014 11:58:59 +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.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 646F42654EE; Tue, 22 Jul 2014 11:58:52 +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 980D4265511; Tue, 22 Jul 2014 11:58:51 +0200 (CEST) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by alsa0.perex.cz (Postfix) with ESMTP id A97AC2654E4 for ; Tue, 22 Jul 2014 11:58:44 +0200 (CEST) Received: by mail-we0-f173.google.com with SMTP id q58so8856280wes.18 for ; Tue, 22 Jul 2014 02:58:39 -0700 (PDT) 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=DdbKC1cyQGnWoJJZuF149iu/JCvUiPwBDFK0ES+amq0=; b=HhMOTblknMm9aXzkaOHHVMrc0a/VNN3TFHBXON0nwNaOapRQm+mKOBr22+2FIDJjAA +eBODJtNLUhUDq/hNpJycWYPX5ekBGIomuLzRh5aPUobqslgLDTCP9dcyCzzhjc8F24c rNco4uS9Kq5g8Gp88KWGKb9f+gS3cPcMHSpq+zwlzw+ZR3Kk9hBfIDZYGWNYm/rxDlqs YlJ5+LvCRHRYShjuSxZhRRijM2I4/MCheY9m+Hz6piMm6egKQWY/RtIWDCz1iplRY808 RmKjv2y6b9pMu2/U71dff7McsRB0DXwPLz5Vf164MHoX8vX6Wk+44NpkMZd9M/kQIUU6 30Tw== X-Gm-Message-State: ALoCoQmRRI1OLI6D8x/eUl6Tfas9DDC3Zxdf8GjtAMq0YVI0TYNGCTz4egl+EugZqrvuX5T9unVa X-Received: by 10.180.186.3 with SMTP id fg3mr13014045wic.78.1406023119284; Tue, 22 Jul 2014 02:58:39 -0700 (PDT) Received: from dsd-ubuntu.endlessm-sf.com (host-92-21-121-43.as13285.net. [92.21.121.43]) by mx.google.com with ESMTPSA id di7sm44356299wjb.34.2014.07.22.02.58.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Jul 2014 02:58:38 -0700 (PDT) From: Daniel Drake To: perex@perex.cz, tiwai@suse.de Date: Tue, 22 Jul 2014 10:58:29 +0100 Message-Id: <1406023109-30864-1-git-send-email-drake@endlessm.com> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ALSA: hda - Add mic fixup for Gigabyte BXBT-2807 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 Gigabyte BRIX BXBT-2707 is a mini-PC with Realtek ALC283 HDA, exposing a single headset jack. However, the default pin config information only suggests that one pin is connected: a HP out jack (pin 0x21, default config 0x04211010). The microphone input is behind pin 0x19, which has default config 0x411111f0 (i.e. unused), so it does not show up in userspace, and no microphone input is possible via the headset. Override the pin config so that the headset mic can be used. Signed-off-by: Daniel Drake --- sound/pci/hda/patch_realtek.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 512582b..10f1848 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4358,6 +4358,7 @@ enum { ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC, ALC293_FIXUP_DELL1_MIC_NO_PRESENCE, ALC292_FIXUP_TPT440_DOCK, + ALC283_FIXUP_BXBT2807_MIC, }; static const struct hda_fixup alc269_fixups[] = { @@ -4792,6 +4793,13 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_LIMIT_INT_MIC_BOOST }, + [ALC283_FIXUP_BXBT2807_MIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x04a110f0 }, + { }, + }, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -5013,6 +5021,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD), SND_PCI_QUIRK_VENDOR(0x17aa, "Thinkpad", ALC269_FIXUP_THINKPAD_ACPI), SND_PCI_QUIRK(0x1b7d, 0xa831, "Ordissimo EVE2 ", ALC269VB_FIXUP_ORDISSIMO_EVE2), /* Also known as Malata PC-B1303 */ + SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC), #if 0 /* Below is a quirk table taken from the old code.