Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp590321iog; Mon, 13 Jun 2022 08:43:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlDejEAyEao96IDuv891GtI5cQRbJ8++cYgM2z0FXoi6Lz7b7CPPC12QCrMhr64r0+68oX X-Received: by 2002:a63:4a4d:0:b0:401:9f40:26a7 with SMTP id j13-20020a634a4d000000b004019f4026a7mr224322pgl.282.1655134989705; Mon, 13 Jun 2022 08:43:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655134989; cv=none; d=google.com; s=arc-20160816; b=XMiEz8k3RLUKVdoB8C4tO6Pkat7qTFmYZNoec14BfaIYpR27HKSRaZS+llOkC7+C4Q 2nV2vc/pMxNqrMsH5g5krJoCEk1a6ywrdYNsZ6TNIrIuBYskErolOL8CEbaXRXdGOeOQ nF+kNP8yrvNV4OzwOcpbLQXRdq1FovHLT63t/zoB8oGTL/jV7ALWriBTiX1Sr3HnLFYJ pvty14GD26yJSmYKi+tXasQXCWPHhHii4IwJwDWFVC5GqyymBZq+KQJHxW5585l8JyC0 ByDWAwxmslgWqYjioUyS1X+Mnyk7Yrgclw/hGCyPNJ4wA11TurLQ2Sx3KxZ8a7Ais411 kc0w== 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=Qw/puet7C4ugBRHg+eyQcMjLeuYufnHzvcEx83/LMdA=; b=bTyX1nU7k8OH5HKSFz4IOe4hq2rLmEGKPUdbtaB2KgRrs75+zyqATNnJfLryN6vAzX 0BHm1synac7w94JWz4Sg2Ug9SircEylMlSu0DE+aZlw3qhMQQ03Bm2/xtNbt2p+3WF53 z6bW9YKRHMub33Z90AOD6znpDV8FY20PIe4yZhxHkKc1R3rleQ4LrPQBrG/LaTHrpfIN L/lHEs6QjJRsCkXrGuHuHGg3yqE/RyBFW4s7KjhQJJ3DZSM4B5Nw2VFEKPKFp+p/Sr62 17N4eOdoWLhe9FmBTHwzyzuam7Ng3i3UFskhDKUC6LE0Y3QDSd7F9893O4fCS94zJxAb +0Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fJp70URJ; 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 a14-20020a170902b58e00b00153b2d165d8si8770029pls.480.2022.06.13.08.42.55; Mon, 13 Jun 2022 08:43:09 -0700 (PDT) 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=fJp70URJ; 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 S241426AbiFMKRa (ORCPT + 99 others); Mon, 13 Jun 2022 06:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241683AbiFMKOv (ORCPT ); Mon, 13 Jun 2022 06:14:51 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DAB35F49; Mon, 13 Jun 2022 03:14:39 -0700 (PDT) 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 7431B61499; Mon, 13 Jun 2022 10:14:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82D10C34114; Mon, 13 Jun 2022 10:14:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655115277; bh=8Ic3YfIspf4SZu0wJZZZYDsTRyDu74+FGba6hXMd06o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fJp70URJjVFQbFlBfP34w/mOt2CzMg+a5LA+PVJ2sVo1SVzUQang1qOICrumFQcXb /qVNVLt/inUoxkmibJ7/zSAy9k3YaP858DXL90diZ9t6jsKLA5dsE5UNKczU5dPyC8 YW4bfzsAEcpZZYz33Ey3PrAe3ZUTWGNbGJievAjY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Sasha Levin Subject: [PATCH 4.9 018/167] ASoC: dapm: Dont fold register value changes into notifications Date: Mon, 13 Jun 2022 12:08:12 +0200 Message-Id: <20220613094845.163516319@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094840.720778945@linuxfoundation.org> References: <20220613094840.720778945@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=-8.3 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: Mark Brown [ Upstream commit ad685980469b9f9b99d4d6ea05f4cb8f57cb2234 ] DAPM tracks and reports the value presented to the user from DAPM controls separately to the register value, these may diverge during initialisation or when an autodisable control is in use. When writing DAPM controls we currently report that a change has occurred if either the DAPM value or the value stored in the register has changed, meaning that if the two are out of sync we may appear to report a spurious event to userspace. Since we use this folded in value for nothing other than the value reported to userspace simply drop the folding in of the register change. Signed-off-by: Mark Brown Link: https://lore.kernel.org/r/20220428161833.3690050-1-broonie@kernel.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/soc-dapm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 878a4fc97f04..40bf50cd87bc 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3165,7 +3165,6 @@ int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, update.val = val; card->update = &update; } - change |= reg_change; ret = soc_dapm_mixer_update_power(card, kcontrol, connect); @@ -3270,7 +3269,6 @@ int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol, update.val = val; card->update = &update; } - change |= reg_change; ret = soc_dapm_mux_update_power(card, kcontrol, item[0], e); -- 2.35.1