Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3725145pxb; Mon, 21 Feb 2022 04:38:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJybNnLujgVsjLIusxOgNu5NtGq8T1NuK1e6s7M/YCui6ARGR/f61F03VBK52ZQpMNK/EYq8 X-Received: by 2002:a17:90b:1e02:b0:1b8:ce21:b2ac with SMTP id pg2-20020a17090b1e0200b001b8ce21b2acmr21448353pjb.246.1645447094047; Mon, 21 Feb 2022 04:38:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645447094; cv=none; d=google.com; s=arc-20160816; b=qjlQW9Ubo9ZmEsymL9d5rren5GbYhCaAbV1x00w+i6w25UsQRNzQsZeR9yRTQCpigY Musi5CXcJHfUMrmXlyBJla0qfEwd3AVbP77cA+uHCf76YjC+ReGHwdtzGQmQUblYjet7 IlkwSf4b6oH3eh1B8LGtzRyTESLwQXl4YYz3Iha6pFpK2yHSwrSgRlpBk1hCbblkxwF7 envchSxlXDeKde1UPsbDHAGAQ2MSJX85co3hCifXlN/t5Mc+Db6KxdQL6o4SIkFvESPG kdTY8i0h9/3D5Z16m5ryodb+LnaMlIYfm4+ZKP3slSxuN59oG0LfVYXlYXBg8Hllykmy Q0xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=LjCSWUahkQpoX42Y7jVpIDwQHyDLfaoiiQtSGqqnpa8=; b=z/4iPPPyjPwKmBVIVOLvnm4DYBaW9dH+qnSZt//mazT2U38ZRshLuHNF0O+1y2Bbgn SUMSFENohUojuWeIzq9gk9190CPG6Whkjz4yE201KJs/s1/TTepDJ3g8I1TPbEewCecC eH0a0qLST79nVlsHwtcgefp29qLQspUxKCediSfAOP+k8P9yJOp3dhhO56zTWWgRXJ1C pzyJcOqzAGk4NIvWQhKacae/oYeHUu4uQgVryLLTrUebr5VEBL7YDOTU/EqkGkxJ2lJ7 ttFWUuae5smPvk6f4JIENycuvJxjGEPK8UlrkuoMO/LDW10VL7o476ulLwo3Ywg8sQPW YVNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F6ZQxZj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14si10692936pgi.443.2022.02.21.04.37.58; Mon, 21 Feb 2022 04:38:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=F6ZQxZj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347971AbiBUJKh (ORCPT + 99 others); Mon, 21 Feb 2022 04:10:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347669AbiBUJGA (ORCPT ); Mon, 21 Feb 2022 04:06:00 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2322625EBE; Mon, 21 Feb 2022 00:59:31 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B05E261132; Mon, 21 Feb 2022 08:59:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80CA6C340E9; Mon, 21 Feb 2022 08:59:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645433970; bh=fRYzu8oNYmmRxDyftiE1S8iNc/Oub5p27g99oVY1Hx8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F6ZQxZj1d5OG0vYc+HXRL2/3IK8Yhi3TvCzSzDgWNLZBwbD/3lv6nYhwKAnzHUhxu Uyes3ppdEBdYRWcjBSTvaF3mMR0mSPkRbeMtryfT5HXejN0nuTTANcvAnxsYj0uk2v jNQE9dItsj8E8pLrVP05kP2AVWf4WtHbfrEUHXDE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, dmummenschanz@web.de, Takashi Iwai Subject: [PATCH 5.4 46/80] ALSA: hda: Fix regression on forced probe mask option Date: Mon, 21 Feb 2022 09:49:26 +0100 Message-Id: <20220221084917.081214114@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084915.554151737@linuxfoundation.org> References: <20220221084915.554151737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Takashi Iwai commit 6317f7449348a897483a2b4841f7a9190745c81b upstream. The forced probe mask via probe_mask 0x100 bit doesn't work any longer as expected since the bus init code was moved and it's clearing the codec_mask value that was set beforehand. This patch fixes the long-time regression by moving the check_probe_mask() call. Fixes: a41d122449be ("ALSA: hda - Embed bus into controller object") Reported-by: dmummenschanz@web.de Cc: Link: https://lore.kernel.org/r/trinity-f018660b-95c9-442b-a2a8-c92a56eb07ed-1644345967148@3c-app-webde-bap22 Link: https://lore.kernel.org/r/20220214100020.8870-1-tiwai@suse.de Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/hda_intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -1793,8 +1793,6 @@ static int azx_create(struct snd_card *c assign_position_fix(chip, check_position_fix(chip, position_fix[dev])); - check_probe_mask(chip, dev); - if (single_cmd < 0) /* allow fallback to single_cmd at errors */ chip->fallback_to_single_cmd = 1; else /* explicitly set to single_cmd or not */ @@ -1826,6 +1824,8 @@ static int azx_create(struct snd_card *c chip->bus.needs_damn_long_delay = 1; } + check_probe_mask(chip, dev); + err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops); if (err < 0) { dev_err(card->dev, "Error creating device [card]!\n");