Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6281504iob; Tue, 10 May 2022 14:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfmuunh6U5i9Jl4z0BrDvT89JpKp1/O9FiWdEHFUTRpp4KnzHS811l9/Z5TK0SvBvcaqBq X-Received: by 2002:a17:906:7954:b0:6f4:dfbe:acd3 with SMTP id l20-20020a170906795400b006f4dfbeacd3mr21811153ejo.416.1652219338149; Tue, 10 May 2022 14:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652219338; cv=none; d=google.com; s=arc-20160816; b=xVf/zwrsJpulKhu4RpxlAkTHOEcTgkOWxZm+EL5MHhXLcvUBkKA2Rmx9UnVw4+Q66o 32R7ByhuXysqLtXI1J8xoPPEpexUoKLvN6eVOsstFYwVNzaxDj9aWt2RAoFrFwxTkKuG tzCQMMZigwNyfM3kkZ34KOdTyglUCFC3WPCididwf3Ca39mhVbmxGH6Rz8AF0fMOP32p BrI05DUasy3SyxIJNdi87EwPy9iYrJxJrqQW7FHyl9/4JeNE2TbfEOFpLmerI9yf7fuI gpA/ofVYfDHCZXmQTRPJQpWBBhef5ysXuEnxXA9QNirS0ige8jx9BFRyyBaSmHLFDift 64Lg== 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=/EecTnPIyhlrBqDMQ8oN4Aftgzh1R8o50pRiuY3JDuk=; b=FbzUJwkB4Ev9zg+EgYG7CG8DcTH8BFkCmT2VtZaE0w55PajCBdrAqUJ/htyjgux17C pPg0sa/CnBrLbVFIyCr7dKmTvODYDf0F/hxa+m2oP+LfyQQYycpRbie21sDuurI5PXkj Pq3eCgNDKBsXvQzYPAG2AsyVAb7L9uXQYDDbo57UOWYfBMWe5GPXL6vEwyT0by7+4SgL fEjBJFU0FF6MBOJwIhVSkVRcxXNFrL+fGpqknyRSCDzHnJc46HZ3v26fIIoeNqceli/V VdJArO77cEMEw3aaY8CDqzjVeCixwXHqwV8kxGL0ZW5GLVwTteLgV2A6Ev0L/Hds+xYj bRsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BINZVwLH; 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 c19-20020aa7d613000000b00428727e4425si211358edr.408.2022.05.10.14.48.33; Tue, 10 May 2022 14:48:58 -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=BINZVwLH; 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 S1344166AbiEJOZ4 (ORCPT + 99 others); Tue, 10 May 2022 10:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244881AbiEJNv2 (ORCPT ); Tue, 10 May 2022 09:51:28 -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 6DCDA2992DE; Tue, 10 May 2022 06:38:01 -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 AB388618AF; Tue, 10 May 2022 13:36:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92D58C385A6; Tue, 10 May 2022 13:36:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189818; bh=U3t5kK9OCHwvOySeFZuGHZJrRFzboJZwTeQJEzdZGVU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BINZVwLHcgqImZkBhxCKgXEvfOa8TUBOoIEMIqYIDdSzuEX48n5ymMpJxjDP2ZE9X OaTOTq1Jdrm7OlEWajn5HvDVUYI3fO9huE8Knk4eKz4yQQz/Tj4MusqGTfPluzTsBS lKp/FPFnPaJow8wMFPrBRfIbBZPsT434+hN+muec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Charles Keepax Subject: [PATCH 5.17 037/140] ASoC: wm8958: Fix change notifications for DSP controls Date: Tue, 10 May 2022 15:07:07 +0200 Message-Id: <20220510130742.677846165@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130741.600270947@linuxfoundation.org> References: <20220510130741.600270947@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.7 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,URIBL_BLOCKED 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 commit b4f5c6b2e52b27462c0599e64e96e53b58438de1 upstream. The WM8958 DSP controls all return 0 on successful write, not a boolean value indicating if the write changed the value of the control. Fix this by returning 1 after a change, there is already a check at the start of each put() that skips the function in the case that there is no change. Signed-off-by: Mark Brown Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20220416125408.197440-1-broonie@kernel.org Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/codecs/wm8958-dsp2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/sound/soc/codecs/wm8958-dsp2.c +++ b/sound/soc/codecs/wm8958-dsp2.c @@ -530,7 +530,7 @@ static int wm8958_mbc_put(struct snd_kco wm8958_dsp_apply(component, mbc, wm8994->mbc_ena[mbc]); - return 0; + return 1; } #define WM8958_MBC_SWITCH(xname, xval) {\ @@ -656,7 +656,7 @@ static int wm8958_vss_put(struct snd_kco wm8958_dsp_apply(component, vss, wm8994->vss_ena[vss]); - return 0; + return 1; } @@ -730,7 +730,7 @@ static int wm8958_hpf_put(struct snd_kco wm8958_dsp_apply(component, hpf % 3, ucontrol->value.integer.value[0]); - return 0; + return 1; } #define WM8958_HPF_SWITCH(xname, xval) {\ @@ -824,7 +824,7 @@ static int wm8958_enh_eq_put(struct snd_ wm8958_dsp_apply(component, eq, ucontrol->value.integer.value[0]); - return 0; + return 1; } #define WM8958_ENH_EQ_SWITCH(xname, xval) {\