Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2029811rdf; Mon, 6 Nov 2023 02:37:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGGBODsTgw22/XQYHxR6nUGDcaTpTCcimAWRs81D6PxcgcZFcnNPT+hFQvfFHt+XYfXxdsh X-Received: by 2002:a05:6a00:18a0:b0:6be:3fbc:763f with SMTP id x32-20020a056a0018a000b006be3fbc763fmr26348645pfh.13.1699267057216; Mon, 06 Nov 2023 02:37:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699267057; cv=none; d=google.com; s=arc-20160816; b=Vh7YG92NiVpaJ8aEoCe+2bjOibn7n3ra5mP1FDOcuGXiuzKu2wjFPkXb3NnAX1JF5Q I/EOyRluO31tc/6zhqnDeiO4yH6zyuQ5yUUKrWJVJ/kLrauxpztjUFfUBN/Mqee9Gycb xiIbtPgP+09mV9dXZWRdWHcVPZk4y0KhUvEA9QyIlW2wU8oVlMleJOun7xK3NZQrP5v/ +3jwvTmuEs+cl/hlAd8KZrjkG7yTkONiTUcPXbtWrDoYElXf9oLm7jKLpwNOnlkbH4s7 R01+skUj1GQdJAmvg8p8SQdpKMjSXdvYgLrRTbVCfsf4shOF7oNg1kXycXwGcciw6VGJ amMw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9kyxum5YNhiGFDrnxvukFQjBtUh2qLRYWx5QnJK2YXc=; fh=2iCxWoL4OHRTYWxOu09ZXK1Hw9S9eoIvoOrUzdkRCpQ=; b=fXHCRHgzenP+h71om367lTmB1en3gV6sf09DVb5QMJ5nhfYw984601lO8l8GCvLCck opETusWfenCPIysiux0HVS3Fi6LvVhZqFItQDnjVydaBN9vYpnT5M/SFUhJPz0NGszvL Mu6vfvpwfaaIAvPqPfQEWQr1NAo2Bl6Xs6KeEnO22pVCP2oasng0zLolfXfTbfAJZRmS ofxbeCz2/qTyPTfLCirbCWjSSl+mPQl/qA5Fs8JMcPV+/I1LIivOrUmwmD20bfXrwfJk yh59NgH4tZxaDWCjPq8rxDumIGfH+jKOXaOf9Kqjz8mH+dcTszohHfOnkps9frNFpa1w RucA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Mmiq8J1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ct15-20020a056a000f8f00b006bf1f9bb8besi7934381pfb.365.2023.11.06.02.37.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:37:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Mmiq8J1j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 30AF680C111C; Mon, 6 Nov 2023 02:37:36 -0800 (PST) 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 S231186AbjKFKhd (ORCPT + 99 others); Mon, 6 Nov 2023 05:37:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbjKFKhc (ORCPT ); Mon, 6 Nov 2023 05:37:32 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50AD3A1 for ; Mon, 6 Nov 2023 02:37:29 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-32da7ac5c4fso2653998f8f.1 for ; Mon, 06 Nov 2023 02:37:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1699267048; x=1699871848; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9kyxum5YNhiGFDrnxvukFQjBtUh2qLRYWx5QnJK2YXc=; b=Mmiq8J1ju2rDb2Grq15UnYMcBaUg+kFgRkQo77crslkwFDZgIKhBTQSEMLsd3GP0Wd l/ZAPf5w8uIX9TseA+BACms3DOiJCxQv9vz4Ubu70FA83XLFyi1xCe9ks6kNdcI40dqj k1im5Chvc89SpJKQodAjt7qD1EtIjVx98uq9MOk2Lrr+xtb8wDk5/35UVnUxT4IGuiuA aIym29pLzN7JYHM+C+n+CFdwQWiAvPRaIB/fsKiGm0YDDRZ1xzQzwJc1BJsj6XL7Vk0u lR9tUwp2b6iNdt7infQvodb3Uegw90aoAYiJEkzVbf645CPWH3gKqnDgFfRN0C6WYC6c EM7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699267048; x=1699871848; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9kyxum5YNhiGFDrnxvukFQjBtUh2qLRYWx5QnJK2YXc=; b=gW1F6ptVU25nsPhdABnqOP7q0sgWKEed1GzpIxQzj1ZU9sBOIYZ7Y2aczgQOkO709t TOcs/hDhBbRkQelcroQOoHs7F8pSHtZoBZr83u8VLFjvD7yhUuSWDJ9oADdFNXBotsqc 8W9V1tE5+g9iZyryECF8GJ6NVK1uSGnHiDXp/c/Adh0tVVZNd3L+D790pYcQbAjYI9E8 iXGim+MVMkeX7NmxM+DceUALHyhVT4NdEMUag+HjlGNq4MKsqo2ztK7loYLs09D16VMg GfzTuSGxMNA5YtqoHRu+OdcO5ueRBMJBQ8s8I+Ccr+oemFe4ykU/qApz131g8kvYRFkl UiYw== X-Gm-Message-State: AOJu0YwxDaCcTxz/ab7ul/4QO1wXpdIgT6+FUgwa2h3IQDeq65oe3nU3 GThWvGpI6zn6adN6X0a1THI8Eg== X-Received: by 2002:adf:eb0a:0:b0:32d:884b:7403 with SMTP id s10-20020adfeb0a000000b0032d884b7403mr20244809wrn.66.1699267047784; Mon, 06 Nov 2023 02:37:27 -0800 (PST) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:fabf:ec8c:b644:5d3]) by smtp.googlemail.com with ESMTPSA id h3-20020a5d5043000000b0032dba85ea1bsm9106950wrt.75.2023.11.06.02.37.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:37:27 -0800 (PST) From: Jerome Brunet To: Mark Brown Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: dapm: fix clock get name Date: Mon, 6 Nov 2023 11:37:09 +0100 Message-ID: <20231106103712.703962-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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]); Mon, 06 Nov 2023 02:37:36 -0800 (PST) The name currently used to get the clock includes the dapm prefix. It should use the name as provided to the widget, without the prefix. Fixes: 3caac759681e ("ASoC: soc-dapm.c: fixup snd_soc_dapm_new_control_unlocked() error handling") Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 4e2beda6f9bf..3844f777c87b 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3670,7 +3670,7 @@ snd_soc_dapm_new_control_unlocked(struct snd_soc_dapm_context *dapm, dapm_pinctrl_event(w, NULL, SND_SOC_DAPM_POST_PMD); break; case snd_soc_dapm_clock_supply: - w->clk = devm_clk_get(dapm->dev, w->name); + w->clk = devm_clk_get(dapm->dev, widget->name); if (IS_ERR(w->clk)) { ret = PTR_ERR(w->clk); goto request_failed; -- 2.42.0