Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2422467rdh; Sun, 29 Oct 2023 15:56:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJLt6s0Brlv3QoXtoFhapT1i6kPcB3PMDXGYcs4dwop+TgplAdZ4lYVQ4XgFwbTjqbrTb1 X-Received: by 2002:a05:6602:2cd4:b0:798:3cb5:ad30 with SMTP id j20-20020a0566022cd400b007983cb5ad30mr12926291iow.7.1698620214977; Sun, 29 Oct 2023 15:56:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698620214; cv=none; d=google.com; s=arc-20160816; b=zuKum0Fai5fXnLZ15IufwiDjzk8pwUdAagNZhKajkHmM9bsmRNBcOzRBrHeocZG5aP JZZ6Ax6fTB83DRFZYW48tYH8k0N+7CjPbM1OR1TDomc0qIOlVL+5BSwLcalphyTnCw1f 3oe6V/v9yieldUF/ZidvUxfRc9ykFysmV7hpT3BjDI4PTl70plOS6pSzkwQfeMSjnc8U DB7uArD8YlCQ55a6GUA07BIpdxNVcozZaH1ok0mKc0QyB4oqFjjUCFcYOT9lPd0ya8sM B9tNVZsF2qB//aV3MitruyEwYQ9veigawf8LqM4JC7WxxC6ajgT27rtHyJi+o6XvXwpA w7GQ== 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=aPMDXD1mHKBoPiEAZipfCMhrrIf1yF9NYxiadPKWwkA=; fh=opdvz3Ato1L3tvLeQULFqT85T8/hYUARWhw86BoviZM=; b=PyHPERoXn3b09XhgBPMwWtYuMdRX5f1l4PhgrGYIhB5+2S2RAuH8j6HcmcPzldvDbI qU+dASVTUe1LC+o/7OUD02ViKO6luduwOKw4GiUMD/rtDbRtvbecVeG2zYIGSEhTXODM EExPl7CJI8Os8ucihH/k+j1QiRkTlUY6TcuC1uxX/zg78rp3KsUfsH3cnFkROF6+QJYg Up9grdAuDHXt1ixW82YHAn/IcSKALZU0C/GFvR+WzhB8KEKjHT64cLLlM65FF19DJmFN 1J2m4PjyXU/Pd2S0rAScFN9pWZd+2qQirX23eCrsZy2XuatF4ve99jCYcO6ye5gvZJb8 KrIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SKNnra53; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p19-20020a056a000b5300b006be30258e4asi4160642pfo.307.2023.10.29.15.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:56:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SKNnra53; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F1E70807756D; Sun, 29 Oct 2023 15:56:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231211AbjJ2W4B (ORCPT + 99 others); Sun, 29 Oct 2023 18:56:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231439AbjJ2Wzf (ORCPT ); Sun, 29 Oct 2023 18:55:35 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A0F810C7; Sun, 29 Oct 2023 15:55:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7918DC43395; Sun, 29 Oct 2023 22:55:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620110; bh=nPnEdg2P7HZ2zulvM+Lr9IKqD+Kha2HAZogg3tbnRd8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SKNnra53aJnH5LkjH7TnbN36G19SDOIsPmqPX/mzeHEr5Dlu7kCQTBiGPpcfjyYx5 zsnbdqCM5Gsxo15cdswUze3rMcvuvw+92DDcNZMBmG5NiZS6jML2N8moeouNaI5WTr eXO70JZKujC+niabRc9B+HKEp6LATY5PZyj1Vkkqgx4lDuDD790ag8o0kwcqN/Y1Qo 0xtGpPGEILPWrKVHbiQFvbCZUCIyqYenAtqvUntxJ6Jsp0S+mvwn5m3jYrZIFXLSGN 9pSaUnboqKI61o3P4Cv73iK6QoJBMzhJmvO44dwAYZhqAVLpOWPwFICXv54l7Yzdxt ReFFY4Hz2z97g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , Mark Brown , Sasha Levin , srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Subject: [PATCH AUTOSEL 6.5 19/52] ASoC: codecs: wsa-macro: handle component name prefix Date: Sun, 29 Oct 2023 18:53:06 -0400 Message-ID: <20231029225441.789781-19-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225441.789781-1-sashal@kernel.org> References: <20231029225441.789781-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.5.9 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:56:08 -0700 (PDT) From: Krzysztof Kozlowski [ Upstream commit c29e5263d32a6d0ec094d425ae7fef3fa8d4da1c ] When comparing widget names in wsa_macro_spk_boost_event(), consider also the component's name prefix. Otherwise the WSA codec won't have proper mixer setup resulting in no sound playback through speakers. Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20231003155710.821315-3-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/codecs/lpass-wsa-macro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/lpass-wsa-macro.c b/sound/soc/codecs/lpass-wsa-macro.c index 8ba7dc89daaaa..4b82ecbd92cd2 100644 --- a/sound/soc/codecs/lpass-wsa-macro.c +++ b/sound/soc/codecs/lpass-wsa-macro.c @@ -1675,12 +1675,12 @@ static int wsa_macro_spk_boost_event(struct snd_soc_dapm_widget *w, u16 boost_path_ctl, boost_path_cfg1; u16 reg, reg_mix; - if (!strcmp(w->name, "WSA_RX INT0 CHAIN")) { + if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT0 CHAIN")) { boost_path_ctl = CDC_WSA_BOOST0_BOOST_PATH_CTL; boost_path_cfg1 = CDC_WSA_RX0_RX_PATH_CFG1; reg = CDC_WSA_RX0_RX_PATH_CTL; reg_mix = CDC_WSA_RX0_RX_PATH_MIX_CTL; - } else if (!strcmp(w->name, "WSA_RX INT1 CHAIN")) { + } else if (!snd_soc_dapm_widget_name_cmp(w, "WSA_RX INT1 CHAIN")) { boost_path_ctl = CDC_WSA_BOOST1_BOOST_PATH_CTL; boost_path_cfg1 = CDC_WSA_RX1_RX_PATH_CFG1; reg = CDC_WSA_RX1_RX_PATH_CTL; -- 2.42.0