From patchwork Wed May 14 14:31:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 4187671 X-Patchwork-Delegate: tiwai@suse.de Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 95C70BFF02 for ; Fri, 16 May 2014 05:51:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CDFD020272 for ; Fri, 16 May 2014 05:51:20 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8866320263 for ; Fri, 16 May 2014 05:51:19 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9FACC264F09; Fri, 16 May 2014 07:51:18 +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 07A602608EA; Fri, 16 May 2014 07:50:54 +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 0FC062602F3; Wed, 14 May 2014 16:31:27 +0200 (CEST) Received: from mail-ee0-f65.google.com (mail-ee0-f65.google.com [74.125.83.65]) by alsa0.perex.cz (Postfix) with ESMTP id DFF4626007E for ; Wed, 14 May 2014 16:31:18 +0200 (CEST) Received: by mail-ee0-f65.google.com with SMTP id b57so950834eek.4 for ; Wed, 14 May 2014 07:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding:content-type; bh=HzxUQ43NVGFlxam6+QdbF85y+FF2MKBorgHiTE8fdYc=; b=gV1dxMfvyrSOg81ZdMtPBFs95PIspvB7u9bdsKnLfSqM8NMqyBQc0cCuMGPXtCfqrT sbGoM6cZDPBNjuhWDvzeiYtqcsqyw8qyeCLJ7oenTXm6hr8mxIXLk+WlimHlLZF01A2k LcVSJXeTdkLyhUaDuAvXX95YnS+itlrNZumD2cQAiCjQzVndg0EDqFUcKORXypZ+NVaB VOXT0zwR6VIEtUlvjxVt2Qfd4N2qYMUdGRxpw4ZgBSg3fgXFjSx+GjJXxAb4y0HTO6XE ealInSb1EisXpBeIhjEaUI2lADErAtM/J7t+JlvEp3zfdCY7Ma73H0zygSjhkpFImHX7 ev9g== X-Received: by 10.14.98.131 with SMTP id v3mr4730769eef.77.1400077878557; Wed, 14 May 2014 07:31:18 -0700 (PDT) Received: from xps13.localnet ([2a02:2c40:400::1:fafe]) by mx.google.com with ESMTPSA id z44sm5485730eep.39.2014.05.14.07.31.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 May 2014 07:31:15 -0700 (PDT) From: Gabriele Mazzotta To: alsa-devel@alsa-project.org Date: Wed, 14 May 2014 16:31:13 +0200 Message-ID: <1784940.JdFq8Pv96a@xps13> User-Agent: KMail/4.12.4 (Linux/3.14-1-amd64; KDE/4.12.4; x86_64; ; ) MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 16 May 2014 07:50:52 +0200 Subject: [alsa-devel] [PATCH] ALSA: hda - Disable AA-loopback on ALC668 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 Disable the AA-loopback path to get rid of the constant white noise that can be heard when headphones are used. This patch was tested only on a Dell XPS13 9333. Fix based on d2e92709e88d ("ALSA: hda - Disable AA-loopback on ALC283 Chromebook"). Signed-off-by: Gabriele Mazzotta --- sound/pci/hda/patch_realtek.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 5f7c765..21c94e4 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5690,6 +5690,13 @@ static int patch_alc662(struct hda_codec *codec) if (has_cdefine_beep(codec)) spec->gen.beep_nid = 0x01; + switch (codec->vendor_id) { + case 0x10ec0668: + /* Disable AA-loopback as it causes white noise */ + spec->gen.mixer_nid = 0; + break; + } + if ((alc_get_coef0(codec) & (1 << 14)) && codec->bus->pci && codec->bus->pci->subsystem_vendor == 0x1025 && spec->cdefine.platform_type == 1) {