Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6012342iob; Tue, 10 May 2022 08:27:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpALPmDIjxcwmndMa4A2v9dlkKs20fIUoavBk43owDta2PmDUkHF+c1BmiAMWC+kz2kxzq X-Received: by 2002:a17:902:da8c:b0:15e:c90a:8a8d with SMTP id j12-20020a170902da8c00b0015ec90a8a8dmr21175803plx.165.1652196422569; Tue, 10 May 2022 08:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652196422; cv=none; d=google.com; s=arc-20160816; b=U9B/f84xGyqE47idRfi1LlSHDtAit168vxx2vrBcCBa4mgwCwEl7epTJauKLRTKDh4 OJ4e9GEIES98AHk23GmmYzvzXcBBV/7n4U9JbVmaD8hHJtlpEZPnnRns+D5xTi45RUh7 WCyFW03crtU/ofdwRblUgVAIRQ/hgTYz768XI5ivZe6OloOtXhv/7gN144GD50RzmC9z cqqGaleed0QTge//GvPXvoUq7hDFkRbQe+f2c4a6IcvFaaQW7227ly8UNyJsZuIRPVsb ZQAL9pUsyW3FYB6qyWG7zBdUDE+uP7jWAEre6cAqpVTFJvmvI2KXqGNzMVKIfhTnvEVl iwDg== 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=t6pLAuK8RgfDEHBUWg3tySsDX9+kUXJY7yQpbl1zkos=; b=D8e8vbkZcu/F2D/vRgIgbhPdD9YUWF6mxcprQ/BqxbncEz70px5tYrStqj5h0TYclY +T5k8+1PTqZeKN44RGn36LIS3r8gL14Cs+eXgyQ+db5sVMJthfoKSAuJQXMEkncjZl99 tgl/fFJWruvlKETMfzyXlxXW0/dOll0715zu2seKxcwEXLTsZbhUydY8frkz75CRzjjL OvrMeLmhRXMrORHwjrRlAr9vmCCaW0sRfZuJOOtl17frKS8+t8ogLPa0Xwuu8PJ69V4K x7zbJG0AxozEfr0u4/BMs1JJm6k1oNghOq7LKnid+FbwOH+PXn6YBvD27bJty7mnXm3X h+jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vwCt3G+v; 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 om5-20020a17090b3a8500b001dc8d30c8a8si3212751pjb.123.2022.05.10.08.26.45; Tue, 10 May 2022 08:27:02 -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=vwCt3G+v; 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 S243874AbiEJNyB (ORCPT + 99 others); Tue, 10 May 2022 09:54:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244259AbiEJNhO (ORCPT ); Tue, 10 May 2022 09:37:14 -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 3468762223; Tue, 10 May 2022 06:25:32 -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 717DA6170D; Tue, 10 May 2022 13:25:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F668C385C2; Tue, 10 May 2022 13:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189128; bh=XvdFnLpnH8rg/tJlNoJuTp1Us8A3o+r1OR7Q0sYWAhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vwCt3G+vTBGH1GYJANLF9op9d05WOYRa/zW/mq3/SXJcYT/n3WEf9aotiWy7dgw6I GSHqTDsc0gZ+MtxmB3g0QUEi/57VYCJ+tRJbm9SzxyTkIHkUK9AFa5sPdjQYUP5dya yNYMDeqyTTr5yktof1Ohf9cXKF/aOB87u9PWGI/I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mark Brown , Jerome Brunet Subject: [PATCH 5.10 21/70] ASoC: meson: Fix event generation for AUI CODEC mux Date: Tue, 10 May 2022 15:07:40 +0200 Message-Id: <20220510130733.487953451@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130732.861729621@linuxfoundation.org> References: <20220510130732.861729621@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 fce49921a22262736cdc3cc74fa67915b75e9363 upstream. The AIU CODEC has a custom put() operation which returns 0 when the value of the mux changes, meaning that events are not generated for userspace. Change to return 1 in this case, the function returns early in the case where there is no change. Signed-off-by: Mark Brown Reviewed-by: Jerome Brunet Link: https://lore.kernel.org/r/20220421123803.292063-3-broonie@kernel.org Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/meson/aiu-codec-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/meson/aiu-codec-ctrl.c +++ b/sound/soc/meson/aiu-codec-ctrl.c @@ -57,7 +57,7 @@ static int aiu_codec_ctrl_mux_put_enum(s snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); - return 0; + return 1; } static SOC_ENUM_SINGLE_DECL(aiu_hdmi_ctrl_mux_enum, AIU_HDMI_CLK_DATA_CTRL,