From patchwork Wed Nov 21 17:49:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Girija Kumar Kasinadhuni X-Patchwork-Id: 10693239 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 54F011709 for ; Wed, 21 Nov 2018 22:27:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42F2D2C892 for ; Wed, 21 Nov 2018 22:27:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 369532C8C9; Wed, 21 Nov 2018 22:27:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C1AC2C892 for ; Wed, 21 Nov 2018 22:27:07 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 78EDD267947; Wed, 21 Nov 2018 23:27:01 +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 DEFB6267A72; Wed, 21 Nov 2018 18:51:22 +0100 (CET) Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by alsa0.perex.cz (Postfix) with ESMTP id 644DA2679B1 for ; Wed, 21 Nov 2018 18:51:19 +0100 (CET) Received: by mail-qt1-f193.google.com with SMTP id z16so4748344qtq.4 for ; Wed, 21 Nov 2018 09:51:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neverware.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zq2xK1vOBKyrKJQwfoSi8LCW6yBVFneB4NbMK7yY1C0=; b=kdKAl6nh5KD6IFV6iUMpqtyN31lUZc3AbZQ95R3z01Lemtb80/kYfn+JPmFUWMnRoq HQXVrKG6piELCmxvdZheP1tYNmAVltelHaT5MgPDvtbyVKic4nHX4G/RGytIw4fKpAzT YIC0rXPeIzKW5926eHXxla4VPf1BsWtbq0RyA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Zq2xK1vOBKyrKJQwfoSi8LCW6yBVFneB4NbMK7yY1C0=; b=JONnF7vQAXgNAK3XC0VvWc2USWxYVxedgnjbstaOdOk+v81K4HPUpPs2JN9kZ7SNjH 7/GWCRXTOIAUQNyXoYKut3S04atVpyIE4XBmFohwCf/3c9ZUDTIrbZSXQ5r0gk+p3vz8 VW4j5H813SG3pbM5gXfrGlEi8chlbjRZnG4xh2meqZsqJkBpw4WLR2QfbEQ9a87S0Ai7 kcoSLG44v9vghc3arC3sLFW0HqhYHVpZ6EA3sFoLnmJg9wcYZitX3CH1FtU1X/q/zKEE 6OFZ1qiHzMedY6ia4BjnwlJc9dQk9pAMDkCwVM0o7YWHv8joi5l0xmF88h2HCfJ8Ket3 oFtg== X-Gm-Message-State: AGRZ1gIrPdFSP+JQAwvAu5fVbq+GDN4dC/57sEVCqUIK2DKVUrgJX6Th IB9hv8JClccPvd1bKCOYB4NemQ== X-Google-Smtp-Source: AJdET5emkIBdy3EXYmtk/2xkx3wrOQXSlNANileeCrfWA07hkxtg//xR+JPxuwDTwL6UlBaUK5Anxg== X-Received: by 2002:ac8:593:: with SMTP id a19mr6656774qth.111.1542822678428; Wed, 21 Nov 2018 09:51:18 -0800 (PST) Received: from Puget-178128.seaworld.local (rrcs-208-105-51-90.nyc.biz.rr.com. [208.105.51.90]) by smtp.googlemail.com with ESMTPSA id t40sm28970625qth.46.2018.11.21.09.51.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Nov 2018 09:51:17 -0800 (PST) From: Girija Kumar Kasinadhuni To: Jaroslav Kysela , Takashi Iwai , Kailang Yang , Hui Wang , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Date: Wed, 21 Nov 2018 12:49:11 -0500 Message-Id: <1542822552-110314-1-git-send-email-gkumar@neverware.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-Mailman-Approved-At: Wed, 21 Nov 2018 23:26:57 +0100 Cc: Girija Kumar Kasinadhuni Subject: [alsa-devel] [PATCH v2] ALSA: hda/realtek - Add auto-mute quirk for HP Spectre x360 laptop 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 This device makes a loud buzzing sound when a headphone is inserted while playing audio at full volume through the speaker. Signed-off-by: Girija Kumar Kasinadhuni --- Changes in v2: - changed commit message - removed "disable" from description sound/pci/hda/patch_realtek.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index fa61674..69bb005 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5495,6 +5495,7 @@ enum { ALC255_FIXUP_DELL_HEADSET_MIC, ALC295_FIXUP_HP_X360, ALC221_FIXUP_HP_HEADSET_MIC, + ALC295_FIXUP_HP_AUTO_MUTE, }; static const struct hda_fixup alc269_fixups[] = { @@ -6362,6 +6363,10 @@ static const struct hda_fixup alc269_fixups[] = { .chained = true, .chain_id = ALC269_FIXUP_HEADSET_MIC }, + [ALC295_FIXUP_HP_AUTO_MUTE] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_auto_mute_via_amp, + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6486,6 +6491,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { SND_PCI_QUIRK(0x103c, 0x82bf, "HP", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x82c0, "HP", ALC221_FIXUP_HP_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3), + SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre X360 ", ALC295_FIXUP_HP_AUTO_MUTE), SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST),