Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1005305ybv; Wed, 19 Feb 2020 13:54:39 -0800 (PST) X-Google-Smtp-Source: APXvYqw1eJHhw0eRODadQgZOhpM1yUtintdAL7PZek9vrgNSksbeuk9cVHijTfg8ropE6jrIq7+W X-Received: by 2002:a9d:6f11:: with SMTP id n17mr20900045otq.126.1582149279145; Wed, 19 Feb 2020 13:54:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582149279; cv=none; d=google.com; s=arc-20160816; b=rr2Qgzg0w9FNuCnmwBEuj8LxkJjJsyq5C+YlOLFp3CtZtlCcA9EBuekV4OZlV2SREQ 8ihGdgfY9ZZ/DRsZz2oPWJM4TT0mOGdr6vbb/XpfhviAG8rAo4U4tm7uq9bB2zV2oP2l zYJCUDTMOMKKZ+T8/DRaBJgY019K34pG6yHSYhVseCdrUSYZjO3KiLhaGTy7JeiBbHvT xomd+Z+1OlFaVtNZ+5ENQPStHbV/eOm20nye5VQ3HE1bvr/czgU8mjyhkb1bsxoMQOXY H9Dkb4ZL8ikHKMdKdsh4G3U9mPvz0OVexs0GBJcJc50WA2HNQrMrWVy4r86hrxmm73dS CkJw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=G7e+U82x70cJHa1NreXORE2pimQsWzwSKsqm82Br1Lw=; b=1KgRBpxQXkrCqz+/ermIamgZQY3JHznxyINk7LKBiaB68gAKK36t0uwnDlU7Tcegh9 AFSN/ChgXil8l1huuDZ51igcCMo2q3zgHAehvJc1kurGuRVkH8k2/0u+oEyKhd8sP2dn 4gE8ZRollMsa36hhshP1MFUhOevajW7E1WN523NG3ikTiGFilhE6dQK8TBhG1eDWg38B VQJF7Utr1i39zgUDjOt2xsIm5u8QroBOjO2naA/oXyFbgQuoKeOy+0oQvb5OFm28S5Iv gZ6DgpbxzqHkG6/mTQb+om+jlTBwUl8AntLCDGRG2uFEw+rS9/dIJdGiA351PT1gkw3d s+xg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si576177otk.62.2020.02.19.13.54.26; Wed, 19 Feb 2020 13:54:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727648AbgBSVxq (ORCPT + 99 others); Wed, 19 Feb 2020 16:53:46 -0500 Received: from mga03.intel.com ([134.134.136.65]:61579 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbgBSVxp (ORCPT ); Wed, 19 Feb 2020 16:53:45 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2020 13:53:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,462,1574150400"; d="scan'208";a="228724420" Received: from ssavage-mobl.amr.corp.intel.com (HELO [10.254.46.100]) ([10.254.46.100]) by fmsmga007.fm.intel.com with ESMTP; 19 Feb 2020 13:53:43 -0800 Subject: Re: [PATCH] ASoC: dpcm: remove confusing trace in dpcm_get_be() To: Jerome Brunet , Mark Brown , Liam Girdwood Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Kuninori Morimoto , Kai Vehmanen References: <20200219115048.934678-1-jbrunet@baylibre.com> From: Pierre-Louis Bossart Message-ID: <88391284-8125-1be6-f7c9-4509b1d89367@linux.intel.com> Date: Wed, 19 Feb 2020 15:53:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <20200219115048.934678-1-jbrunet@baylibre.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/19/20 5:50 AM, Jerome Brunet wrote: > 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 Good catch, this error log is indeed unnecessary, I see more than 30 lines of 'can't get capture/playback BE' for all the non-BE widgets in our topologies (PCM, buffers, PGA, EQ, etc). Tested-by: Pierre-Louis Bossart > --- > 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; > } > >