Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1261005lfc; Wed, 1 Jun 2022 13:25:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyImB2Xz4z++C83HKVz371JNMMULegiHX5t1CX82gJaAvPzBbXXWXW4MikQn63pCx6/q1f5 X-Received: by 2002:a17:90b:2251:b0:1e6:76a8:44f3 with SMTP id hk17-20020a17090b225100b001e676a844f3mr2098911pjb.71.1654115106766; Wed, 01 Jun 2022 13:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654115106; cv=none; d=google.com; s=arc-20160816; b=Qqn+E8b38GjENahtIhJvlu5ublAXTE1cTVW7o28wqS+DgK8pNpuOo5D8kfxcYrZKKt 9eQCVRmyoTJgTTBqH3dK4+2bsA9+8uBH10DjmlAUfSZD0NcXvw7qtYviH41/U9DmLeCx jz/dZqr6l+BlRIjWPLOryUMeT8qQ4xQ5XY5on3Bvqf2GlL20YygaeW9kcCI/miRBVSyh hf/vTHpKU7xj9YJdyWLxUpLNm6aOwxdENj7YIlXYJyDhJFthnsHFG0BeEEeKT5R5orzM KxPyx/Nll7hciL64q/ux2HowFLSCSdN6E5AIHh13NXxi92KUzOTzXvoxkg1cRKIHBB/c 98/Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nIP8e/tkwG2gatacH6SGGXeYLEJDieyxGn9M3BUNHEQ=; b=S1YIJ7w6ClcuY8hiyd2MYKskG+CpPkz+Fyr6YR2njZAaOyzyER/SeY/hVt2eNuEn8a scziyfNapbDP7rusQ8OfiNhdhNsi3uw7ZT3Je/D/n1GH/yGDJNC7wXj+oKxHx2MxtPG+ Up06xfZaVQQadL43/aoPbB8yuPFyLxpMaRRxt/wj3gqAmivP9SQlOVQw2E9GMSOMaHP0 aIQpxooq7MPLAZk+4cu74Eo8BBM2Vmdyt7MF4KcoNrOsWnDSi07YWPQRi/NVefDcd5u2 BrAyhJgc39EcVjBJ5aDHMYb3JBlNZiMyAqjMnKhc1rCVo/i8+UrheXwcnOlIg+2FSJYB odZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tHU2/uTd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m3-20020a637103000000b003fc6bdc732fsi3507982pgc.131.2022.06.01.13.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:25:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="tHU2/uTd"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E504B1B186A; Wed, 1 Jun 2022 12:37:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241995AbiE3Ogj (ORCPT + 99 others); Mon, 30 May 2022 10:36:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241871AbiE3OSI (ORCPT ); Mon, 30 May 2022 10:18:08 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C92787CDF3; Mon, 30 May 2022 06:48:24 -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 BF8186102C; Mon, 30 May 2022 13:48:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 380C9C3411C; Mon, 30 May 2022 13:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653918498; bh=DmZCobw+15ODyPNSkluZj9y7/xr/Xa4MTTMVgFboyw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tHU2/uTdMlG1t4IcggjP3L8JHzC6wh/oqMLYzt+ioISpAy7mtXOwl2M9C6BPh/llQ iz226yKs3QXY506I+x8hKUTDw/L0gKTjylJuqkKeCJFGUryzYc2R10tQl/mi3M8qA3 V9tcfAEavKEz3he+Kc/THuUUQyH58usfuACJgIVVuyfPkJzRYzINdpYvzRjyrEpUZ1 ONnjsm0u8iVmyZlnZuxUEAu1zMHYv+sDBoHybvfLMCrDulT5IBnGnj3S1Sk2T9ADq6 uOPy/IwLuDUOES69aFczx+g+afIu50SI3xfuOEYM7D6NS/uLQxDGLAKtJGNSsG34xj QoCpnkhXORQ2A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mark Brown , Sasha Levin , lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 5.4 29/55] ASoC: dapm: Don't fold register value changes into notifications Date: Mon, 30 May 2022 09:46:35 -0400 Message-Id: <20220530134701.1935933-29-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220530134701.1935933-1-sashal@kernel.org> References: <20220530134701.1935933-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 1c09dfb0c0f0..56c9c4189f26 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3421,7 +3421,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, rconnect); @@ -3527,7 +3526,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