Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6186339iob; Tue, 10 May 2022 12:17:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlBM55dFS3eCi/UKN2hvOAscnWjDz7YgQn5o5qLXc9e7qeKsZC30KB1RpDQQwT/X3EOZW6 X-Received: by 2002:a17:90b:4d07:b0:1dc:e9bc:9a96 with SMTP id mw7-20020a17090b4d0700b001dce9bc9a96mr1341614pjb.163.1652210278360; Tue, 10 May 2022 12:17:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652210278; cv=none; d=google.com; s=arc-20160816; b=Iqmiq1Xm5g9XRYfwJydet0BoHq8xHhEX6ZcC1RjO9a6S1HjOZKlYuJrq/Ny5ZjxoAp 6W11j+y6pTL4TDTQC0oB9s/fnRyIeC9tyWcPomp/2ZmmjBclS9gjPN2NDvAvJKg0fRcE vVmha25Ro9qLfpjRiXNvJ7xYK7ak+4iaDw2YVpRFoJtt+wzE3OVcugzmmd1mFxQ6o95m U/IFgqQkADFRODtGqbdX6tSHgAhYXcenMHyATBMPd4DanscAO3MKRL7pEYoy6tDjVZG1 iqLkNfcTqZIsrWm2v4LPe9r21TMEDolHj88KPxHbJ1m1YpxOG7OuvLb8nauqfDcMJeBI 7dlw== 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=be0SdEQxaIpWSMV1ZBRmLUpvlCdPGB5/QlGlUyX5Vvc=; b=aF4RZBxXs+jcmLfSSVmLlEtZ46Eln22m/OXs54nK7UgtPUvCTnmCZBv9QdPbZfDG0Q n1J3MTjjUx4x5heLsmXTGbtF7f+PcSfCWFJKtOwDbvImGkKAb+K1+/+0F7VT4FVGAjUX ryBHnPKq0xlIt7nqBS2TyLmhTPX+s8S81gUq3ZnaGvJc1jVAWWP31Q7kl5+HbywtMlov oxt8V+zYHYFN0n7iFWsJC/es/yT37rOorH5pNLdop9ZAeG6qQEG9MZmw2aLQ1eCbLSPz DVADPAtD4U1cFLxC9FB9g87YBYDS8KoO1YqkYcVm/N8B1cWjQ7Yem4YZhgxn9G9PwAll 0QOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zYKRvNXL; 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 i75-20020a636d4e000000b003c6b63ed4adsi233862pgc.331.2022.05.10.12.17.41; Tue, 10 May 2022 12:17: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=zYKRvNXL; 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 S241753AbiEJNsx (ORCPT + 99 others); Tue, 10 May 2022 09:48:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243829AbiEJNcR (ORCPT ); Tue, 10 May 2022 09:32:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C792D2E19; Tue, 10 May 2022 06:22:28 -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 ams.source.kernel.org (Postfix) with ESMTPS id BBBC3B81CF8; Tue, 10 May 2022 13:22:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37F57C385CB; Tue, 10 May 2022 13:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652188945; bh=ebxO7ea5uZ2L1ow0f2EsBUE2+tEllM6tW5beIpHMgIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zYKRvNXLfgRoGoKZjKN2ebP+VjZWvb0K6l5ADwlwJkx+c6L7OgJYBuscxLzjvTkyd 4ndyWJqJzosyyHEbjPANgvddybXu+CkgUWP/n6PBKDXZqrYP3qbbjoR6IL5n8acVPO fvEXyD2iGvUH6WdXGWsa5fwDafS1ZH/Tdi7lHUqQ= 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.4 13/52] ASoC: meson: Fix event generation for G12A tohdmi mux Date: Tue, 10 May 2022 15:07:42 +0200 Message-Id: <20220510130730.246649329@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130729.852544477@linuxfoundation.org> References: <20220510130729.852544477@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 12131008fc13ff7f7690d170b7a8f72d24fd7d1e upstream. The G12A tohdmi 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-4-broonie@kernel.org Signed-off-by: Mark Brown Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- sound/soc/meson/g12a-tohdmitx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/sound/soc/meson/g12a-tohdmitx.c +++ b/sound/soc/meson/g12a-tohdmitx.c @@ -127,7 +127,7 @@ static int g12a_tohdmitx_i2s_mux_put_enu snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL); - return 0; + return 1; } static const struct snd_kcontrol_new g12a_tohdmitx_i2s_mux =