From patchwork Fri Aug 8 17:34:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 4697321 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 858249F373 for ; Fri, 8 Aug 2014 17:36:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D054B20179 for ; Fri, 8 Aug 2014 17:36:40 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 9682B20173 for ; Fri, 8 Aug 2014 17:36:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id BD0392655BE; Fri, 8 Aug 2014 19:36:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org 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 9F019265584; Fri, 8 Aug 2014 19:35:26 +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 38F29265585; Fri, 8 Aug 2014 19:35:25 +0200 (CEST) Received: from mail-we0-f175.google.com (mail-we0-f175.google.com [74.125.82.175]) by alsa0.perex.cz (Postfix) with ESMTP id 3AD6926555C for ; Fri, 8 Aug 2014 19:35:18 +0200 (CEST) Received: by mail-we0-f175.google.com with SMTP id t60so5808639wes.6 for ; Fri, 08 Aug 2014 10:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=5gS4qlkZqJuCJEOAJcAHZGrjlHjiTSgRRABkrRUX4Yw=; b=Z5KYs8LX+XWX2vGn9OksmK9vT3E6ob46jS55JFPfIXyOm8XU06whDWAEw28Z0HCboz VksyEbfEjMSAjYCPXVXC7HqGw4Yw5mQwIzfxBl28yYLYZbh2+7eoaYF0dWt1I4U1AaAb /gNtfzCMF83yJYAkDdwHFrqUhU+O2XWpRTeJW7jLJSV3x27Uhc1EuCT71ExcJvQKDho/ rtnKK2eKhd9B9UohPgFspjrI/Hc7m84muco3pDmgyQSRxrm8kN1Smo8MjPSLJXaY2Dnf l2TalvY1YFETJYuaJSwfKzI5pk6MWd9EGVXA9dXJVofVsZsiKtU95jsYhBAoSu8+OxM2 /tLQ== X-Received: by 10.195.13.102 with SMTP id ex6mr32730896wjd.48.1407519317911; Fri, 08 Aug 2014 10:35:17 -0700 (PDT) Received: from xps13.homenet (2-235-140-64.ip228.fastwebnet.it. [2.235.140.64]) by mx.google.com with ESMTPSA id fb12sm18752936wjc.43.2014.08.08.10.35.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Aug 2014 10:35:17 -0700 (PDT) From: Gabriele Mazzotta To: alsa-devel@alsa-project.org Date: Fri, 8 Aug 2014 19:34:41 +0200 Message-Id: <34179b6c336cb5837c0dc239a3b0daf6ac6384c3.1407518135.git.gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.1.0.rc1 In-Reply-To: References: In-Reply-To: References: Cc: tiwai@suse.de, superquad.vortex2@gmail.com, Gabriele Mazzotta Subject: [alsa-devel] [PATCH 2/2] ALSA: hda - Fix pop noises on reboot for Dell XPS 13 9333 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 If nid 0x15 (Headphone Playback Switch) is in D3 and headphones are plugged in when the laptop reboots, a pop noise is generated. Prevent this by keeping nid 0x15 in D0 when headphones are plugged in. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=76611 Signed-off-by: Gabriele Mazzotta --- sound/pci/hda/patch_realtek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 85cd80c..12fc3e9a 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4008,7 +4008,7 @@ static unsigned int alc_power_filter_xps13(struct hda_codec *codec, /* Avoid pop noises when headphones are plugged in */ if (spec->gen.hp_jack_present) - if (nid == codec->afg || nid == 0x02) + if (nid == codec->afg || nid == 0x02 || nid == 0x15) return AC_PWRST_D0; return power_state; }