Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3834239pxb; Mon, 21 Feb 2022 06:39:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiWVCbeTtYxqumtxfm3OmsFsPzoOT2kwUz32RTPoE+cAb7lRsv9CTANuL+iXUrp6nZ2LsO X-Received: by 2002:a05:6a00:2341:b0:4e1:5aa4:9aff with SMTP id j1-20020a056a00234100b004e15aa49affmr20626375pfj.8.1645454357158; Mon, 21 Feb 2022 06:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645454357; cv=none; d=google.com; s=arc-20160816; b=iychYWZ0Tt0Rmmc3EIJVTPY7G6i/Yjqb+eToGearQuK4BJsD2HpNSZSVcdWHgGiRMs y1NcXOT6yoRhyVF5Ptiwl9cqsCJJCrgsXeq9l08S0+rGjfAYrHUnw+0uBkEGzeFpT8ya y7ZKlOlo10wiUK/OkcT5yl5LWvUUAHNQ/oMX412hJXtUgenWd6RTTvIHk/MobhksgQ7q t2abiZjgzxD/+sl8J2nlOssBFAKQHzGBv+J7GHkzmF9Os5xVP+7Ctg2Fhs/nY/NYgLv/ r56JzpieKjJtBqHt3vp6GjJorMajoH8ZVkkTSRHRNySQR6M1I6c4LPHsGpujmzBaYfbp 1B1Q== 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=B8xlpVWjYJbZf60qYLPqm52eYd+ZdS7sVXrSCpJpBaY=; b=tH0xNHp7Xg9z/PpDIjJP+tWMHzKcxilQkHgpTmprp7xFV42+J+R8/XBLA1P6iRxl6d bY4hV32asvj4O+1/x2IFaZiYmICPtYMmvvgWvkCflBsmmMZF/FOhijfEupklNep0rAvi JWdGuD7VGHkFe4LOTsr6o0NyJuX5rqOqscRitgSTyVo0f4Lmw37/2Pdy9Ne1p0UIWGJW McW7rd9YYcArC1cGsKGINThRWFc/NSkl5VnP6iDLUWXSpF8xYYYM1gvmSFgupxT0vzdN LOg76CNnoUuQxWZWNZAXpLHVTpClQG5IruDVh+RMk61N1oo7qWSYDdqyg/MspAMtnzf5 243g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=p7zeJ2WF; 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 m4si6421296pjh.167.2022.02.21.06.39.00; Mon, 21 Feb 2022 06:39:17 -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=p7zeJ2WF; 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 S1352322AbiBUKAq (ORCPT + 99 others); Mon, 21 Feb 2022 05:00:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:55806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351783AbiBUJwb (ORCPT ); Mon, 21 Feb 2022 04:52:31 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF3436156; Mon, 21 Feb 2022 01:23:00 -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 sin.source.kernel.org (Postfix) with ESMTPS id 06539CE0EAA; Mon, 21 Feb 2022 09:22:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E101FC340E9; Mon, 21 Feb 2022 09:22:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1645435377; bh=JYWDbU6bgdel2TqJfbkLMIvMsCB9bZCENyJtEUYeeMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p7zeJ2WFEEhtyJ//OvsEDhAqPI4RJqLkmIouP/Dx76GrZmiRJ7dgen0h7kk9TlCOJ slsAVTJehBC/X8SpzCYdSuCMKndTsHt+dGaJ3GeL0q61WjeiAtuMs9ooah7eloiyWv GIFeRgc2IS59pv35VqSZRGdOKTyOO/3G9VYmrftU= 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.16 141/227] ALSA: hda: Fix regression on forced probe mask option Date: Mon, 21 Feb 2022 09:49:20 +0100 Message-Id: <20220221084939.527424025@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220221084934.836145070@linuxfoundation.org> References: <20220221084934.836145070@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 @@ -1794,8 +1794,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 */ @@ -1821,6 +1819,8 @@ static int azx_create(struct snd_card *c chip->bus.core.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");