Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6106657iob; Tue, 10 May 2022 10:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx37AXVXVgk+c+xlRiomNS8EhtuHNhfN4Wb5ti7n+vvZv454ubGk2tLvFcm+sy1AdR9ivfX X-Received: by 2002:a17:907:1c98:b0:6f4:5001:6751 with SMTP id nb24-20020a1709071c9800b006f450016751mr20589776ejc.498.1652203575066; Tue, 10 May 2022 10:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652203575; cv=none; d=google.com; s=arc-20160816; b=IMip33s2tN57fpV/54Ja8s8D8x0xO1J40NDwJ7ISlQpaFzAVJAzrAH9cnmWDMd2gc2 r+BHgh1St258tBoeG1ddud4y4MJ676Rd3e5nNY6q90itDr2xHhkWe+1yDUAIPh5c931J Na2cHVdaDQqbRPhkyRsX2B8cAi4U5ivv+GO7HbwsreJsHO3wXrIPXbicYgZn5oIRT56y +taFP+Gbc94VgiLP+i+2YW7P28YyKTjb8WTByPWzw4kKNu9y1mu4HFhVZFEyCamSnNrm G9rYTgfD9xyUUQsPFABpGG7Uq3nI/E3XfAjDE9E0RdM9kIe88VivfLlBHK5nxB8krtZM yYHQ== 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=1J9/DMPJyTeHZ90c8iqsUqzb04nUmOQw6DtAtEqmG8w=; b=fKqpP9SXikA2oNuBoDSib+7xbLXVUBl/YRzhQpxJxsSgJ55+QgVlUWzCCgtuy+kUXp PX/LM0zwdn7nvydh00Jq3mjyxbSmvfLO4HyXi1oZrejKe161W+yf+FzXTtB6DdbGXB5D er75BqDaobFfvOq05Fip8WfL2paFGZIzywDzYEiLkqKc0hS0Th3wmgdr7/Xb4baw5ZAQ r5Zn9mtHBhZ/t8qioFtkGf0TmTLCowdM8zuHLTCl1jUQJxhtu2BASyyS7sfOgwGTBzSl qX8oW5vgL5iwDg88m0yqJcUg8fLVHuElehRSnAiSm3JYW0I/9AbxK6+pjM2B/LmTjoLx +QQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=laoFzC66; 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 n24-20020a170906379800b006f37bde5a2csi17378203ejc.693.2022.05.10.10.25.49; Tue, 10 May 2022 10:26:15 -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=laoFzC66; 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 S229643AbiEJNx2 (ORCPT + 99 others); Tue, 10 May 2022 09:53:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244070AbiEJNgs (ORCPT ); Tue, 10 May 2022 09:36:48 -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 E6B172D7EE5; Tue, 10 May 2022 06:25:21 -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 75BBF60B12; Tue, 10 May 2022 13:25:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 692B6C385C2; Tue, 10 May 2022 13:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189119; bh=/G7G98mOkb3wMCY7W2ZwgXvwNVhR/tDRGLVkEvO0kr0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=laoFzC6694BMLLcpm3e6TZEbHHIm8iHO4+swfcdcMFBh/KQYL69gzMX16g/gLcEkG JQUYXDnsP0GuUJwjWZzY7vkwWuip2gfbI4Yi6YyMpDxkIL9ln3h59lUROqIA9zATfG IrxAJJ4JpnT+fZ+IJJmE8F1Vwb0Ukbl6BGGP68jY= 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 19/70] ASoC: meson: Fix event generation for AUI ACODEC mux Date: Tue, 10 May 2022 15:07:38 +0200 Message-Id: <20220510130733.430864409@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 2e3a0d1bfa95b54333f7add3e50e288769373873 upstream. The AIU ACODEC 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-2-broonie@kernel.org Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/meson/aiu-acodec-ctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/meson/aiu-acodec-ctrl.c +++ b/sound/soc/meson/aiu-acodec-ctrl.c @@ -58,7 +58,7 @@ static int aiu_acodec_ctrl_mux_put_enum( snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); - return 0; + return 1; } static SOC_ENUM_SINGLE_DECL(aiu_acodec_ctrl_mux_enum, AIU_ACODEC_CTRL,