From patchwork Sat Dec 24 18:50:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gabriele Mazzotta X-Patchwork-Id: 9488107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A66862AAE for ; Sat, 24 Dec 2016 18:52:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B8331FF2F for ; Sat, 24 Dec 2016 18:52:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1DCD1201BC; Sat, 24 Dec 2016 18:52:42 +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=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no 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 300971FF2F for ; Sat, 24 Dec 2016 18:52:40 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id DBB38266664; Sat, 24 Dec 2016 19:52:38 +0100 (CET) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 69B30265A82; Sat, 24 Dec 2016 19:50:17 +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 F29F32664FB; Sat, 24 Dec 2016 19:50:07 +0100 (CET) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by alsa0.perex.cz (Postfix) with ESMTP id 377F2265A82 for ; Sat, 24 Dec 2016 19:50:05 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id u144so47321870wmu.0 for ; Sat, 24 Dec 2016 10:50:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=klT045mDgy0OslM+Ede705GpRyestL0X3ilcqAqmxuc=; b=cTBR9kXAQm7nj3hmL1tH6e5vMojwzfwGesJFy/f6kz/BWtrZAjitpTNFKvWA8n8IZv ZVdw61iSe15q71pBFxK3oxpeWAnZsjn6SdTiZ3r+1w/sR6M27iJviGrHDqHuicHj+xTr PWTwkPplHWa/hBa388lB72u8pyEeUVB+TlSm0w7VYtga3RAtdf7vgY1cce/SwXAihirf J/AD9Yxpw8eb6Y/0qex1JZyy09oHfLhO1gcsAExsBIWdAOF/+NMXAwjU8YLeHOk7ie6l 8mbFqZQAn7uYx3C+lYp0UtJXVqD0ak8RWTeCltJFHfsQ6XmmGJ1jq9tPqmYXgF3NxgfT H7qw== 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; bh=klT045mDgy0OslM+Ede705GpRyestL0X3ilcqAqmxuc=; b=AZApCP3BUIVO9dKsxVxWed/NYbFFUBegy61I+gAGPvkimgIBevDgfRZMDV2zAaElHn PGmIG3WUnJIsz67b/YpxZXsDwB8WA6zkAXGCZ5S5pawjD+sJfGp2nTQ4464P2tkpKsSS TCKZsSNcELoKQLWNY+w3EdL9IvKV9hAd7fmDKAECuls7JabLEY7CjBdmm9DHI/5wm8Pd FUFOV1oqfo0c194/AV2sprQFIg5eWB3hIJILWfOdVMobChNiDBvYzUIXihD95mnZ2tN+ 01Sk0kCMd2klj89S/HfggOrTAM+1h0eE3nT0r+PR9hrVpojOpQxSti8l3ruG58we58ZY cmPw== X-Gm-Message-State: AIkVDXIlNvAI53BuA6QvpprSU0ZueSvQGrGW+BrYXOK21mQyV9E8g/UuB+6HD2Xg3RYH4Q== X-Received: by 10.28.178.205 with SMTP id b196mr19065176wmf.8.1482605405395; Sat, 24 Dec 2016 10:50:05 -0800 (PST) Received: from xps13.homenet (2-230-197-194.ip203.fastwebnet.it. [2.230.197.194]) by smtp.gmail.com with ESMTPSA id e188sm43288374wma.21.2016.12.24.10.50.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 24 Dec 2016 10:50:04 -0800 (PST) From: Gabriele Mazzotta To: perex@perex.cz, tiwai@suse.com Date: Sat, 24 Dec 2016 19:50:00 +0100 Message-Id: <20161224185001.26824-1-gabriele.mzt@gmail.com> X-Mailer: git-send-email 2.11.0 Cc: alsa-devel@alsa-project.org, Gabriele Mazzotta , linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 1/2] ALSA: hda - Apply ALC269_FIXUP_NO_SHUTUP on HDA_FIXUP_ACT_PROBE 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 Setting shutup when the action is HDA_FIXUP_ACT_PRE_PROBE might not have the desired effect since it could be overridden by another more generic shutup function. Prevent this by setting the more specific shutup function on HDA_FIXUP_ACT_PROBE. 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 ea81c08ddc7a..d30cc49512e4 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -4400,7 +4400,7 @@ static void alc_no_shutup(struct hda_codec *codec) static void alc_fixup_no_shutup(struct hda_codec *codec, const struct hda_fixup *fix, int action) { - if (action == HDA_FIXUP_ACT_PRE_PROBE) { + if (action == HDA_FIXUP_ACT_PROBE) { struct alc_spec *spec = codec->spec; spec->shutup = alc_no_shutup; }