Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp500004ybv; Wed, 19 Feb 2020 03:53:05 -0800 (PST) X-Google-Smtp-Source: APXvYqzJ0PN9SnfS9JIjwb7UoCHKhlhfrkCww5/J2G2/ZPesnXHUHGauZrawh0tEgsW5UPaDhiWZ X-Received: by 2002:a05:6830:1e86:: with SMTP id n6mr19532823otr.321.1582113185595; Wed, 19 Feb 2020 03:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582113185; cv=none; d=google.com; s=arc-20160816; b=JwCsZSXylprxv69I2FnFeAXs30voacOHv2V00gaGW7XFIWlfnklgQ1FMr8SF5rNTqs s2RCaH2nHCL/EPTUEbAM0D1CGhPeTNYC8kxc/HLAD7rK8agOwtZurltJ6oTnXOUAYm5m 4uDDqcNO70O/rIENlgStUY+MLEcDoVOGtFiVoO6HYURQMbr4Wd1h1olrij5oEy8/e6GP VGnnG1LB4xF3LHJIcd9G/4mRTjx/bJIVDRbt0qfvuO0vxiiDBl5/tiNYnVY5RETwlIhQ B8HUwAQKKL1gLttUb3OYtQm/D5oS4oTexhBgjvu4dDCicquCvE9s9tkLmh9TesDHbhRp U0qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=13koyGRfSI36B094w+YJ/HafK6KqgQmhuR18/pfh9NY=; b=0DIy7Za2XYjMomDGY59DJtPLD5aWNSrN53UNc5mQsfZ2MoUuEPOXCx3XRuOAVrKxob ap9bBzJmg08xY8v4zF3zIeavHTZInjkkR3TK9b/kDrFxP7ZGiywIpN9bCBNtqdXVt78n INUPBiBch+SGzum1yln9ceby7xcHZQiGH0s6Z0fI/L3C6eIr2ikqiMNzDOBTTzxKrdQ5 8TsKvFKyH5QnMLN91hXUeXIG4Gr6aqmvgiNbOASVf6H4J/9ySKJB9mcTU67U9LhW2sBE B1D3+bIjNOFaRoxogfgVr3LntsCtCvQkbjJZp3HBtQslH9paNTK7JctkG6g4UoNCk/gN cnbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="QlJeS/Ww"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a11si972003otq.223.2020.02.19.03.52.53; Wed, 19 Feb 2020 03:53:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="QlJeS/Ww"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726622AbgBSLu7 (ORCPT + 99 others); Wed, 19 Feb 2020 06:50:59 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55721 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726491AbgBSLu6 (ORCPT ); Wed, 19 Feb 2020 06:50:58 -0500 Received: by mail-wm1-f65.google.com with SMTP id q9so288799wmj.5 for ; Wed, 19 Feb 2020 03:50:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=13koyGRfSI36B094w+YJ/HafK6KqgQmhuR18/pfh9NY=; b=QlJeS/WwAZ1oyQx8kTcmP7FFIOZmvhu6bpQ73FDD+kRCkIqNiJoQWbCB1lILOHaNdX ccRBFDlCOD4z6eUkgQPmhe4ShjrQSjlX1OaoICSfj2gEuySpV1cyuxEPx9SVXpmJoCu6 K7b5s7pQAW9gEQTl5I6OH9RDtlv8q0M6Iw7AM+H0PsYr1yCvVUIkcGWEw+l6BaiAp99A w8JaRcOjStRwOSkvHv/CYTuoO5fNxKGLAi3MKbZv7+ZzH/amgBY14OdfFcKtX3qKttH8 Bb62rS9cUFOStgbqNjeuQKnZ0M2mbQhcVwUVm4jpomvXs+RakwNcdWz3+vq7yu/keYvQ cj8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=13koyGRfSI36B094w+YJ/HafK6KqgQmhuR18/pfh9NY=; b=fm4ceu6nxRmCCVE2aegZfImonW4CQ4kuRub7yrnVmKpe+U4NBLtAIkQ9yeqi5AZ+/N IoUZNfGjdI7lESOwfc5udFD2ZvmqurAC6TwlxT9BuH5P5Rrjl0TN2mdnX/+OntfFPrW5 NKBM8tnVgh8XBYyMmCKexaBMnASLOw+JaeEgNycWQmZFJVBEGnADxSj9msQuhB/PLRqi 8sEJMMA7WG3wJry7SMaoQUQ7Yd+3KGqfd3I9l9KTnuWfdglNyuksKy0mh8+m7lcRp41a 8EXzztPtnKHcWSHqHVjhzsQrvbvcU7J5rAvln7ksxjUru26DgO680nc6/hPXVmx38ZXy hmTg== X-Gm-Message-State: APjAAAVnp6tN1J0IxSpiPGBkAKkchxbKc8ds8ALuWAmKy5BwmHdapOgw 2FETL2WmKMsr4y0v3+q4FPOHFA== X-Received: by 2002:a1c:5f06:: with SMTP id t6mr9808280wmb.32.1582113056786; Wed, 19 Feb 2020 03:50:56 -0800 (PST) Received: from localhost.localdomain (cag06-3-82-243-161-21.fbx.proxad.net. [82.243.161.21]) by smtp.googlemail.com with ESMTPSA id b10sm2628851wrw.61.2020.02.19.03.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 03:50:56 -0800 (PST) From: Jerome Brunet To: Mark Brown , Liam Girdwood Cc: Jerome Brunet , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Kuninori Morimoto Subject: [PATCH] ASoC: dpcm: remove confusing trace in dpcm_get_be() Date: Wed, 19 Feb 2020 12:50:48 +0100 Message-Id: <20200219115048.934678-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that dpcm_get_be() is used in dpcm_end_walk_at_be(), it is not a error if this function does not find a BE for the provided widget. Remove the related dev_err() trace which is confusing since things might be working as expected. When called from dpcm_add_paths(), it is an error if dpcm_get_be() fails to find a BE for the provided widget. The necessary error trace is already done in this case. Fixes: 027a48387183 ("ASoC: soc-pcm: use dpcm_get_be() at dpcm_end_walk_at_be()") Cc: Kuninori Morimoto Signed-off-by: Jerome Brunet --- sound/soc/soc-pcm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 63f67eb7c077..aff27c8599ef 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1270,9 +1270,7 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card, } } - /* dai link name and stream name set correctly ? */ - dev_err(card->dev, "ASoC: can't get %s BE for %s\n", - stream ? "capture" : "playback", widget->name); + /* Widget provided is not a BE */ return NULL; } -- 2.24.1