From patchwork Mon Mar 19 08:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 132022 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp2435273ljb; Mon, 19 Mar 2018 01:09:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELsENY9Ase0HX186SQVeN2crrrPqj3YbwmYZc2KIpLbBVp4Ixqt88juIpoBOusBEWgVWQVKW X-Received: by 10.223.174.227 with SMTP id y90mr8264434wrc.76.1521446957350; Mon, 19 Mar 2018 01:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521446957; cv=none; d=google.com; s=arc-20160816; b=YNSzzAcy8iXw4tN+d2kkIAkzlCzDUdpXsYusA7rvU5P7BqjB7/EP5g7pytmlPyTIz2 t2sH6kMRJisR/DhKbhGBIKB0dru3QAvpq5+lKp+xEmagwls+Wqu7ASp4c2iXG406Laab BUbt5bziw1dvs+0M+1TKwPsg1k8rxAFsXShYwXGTZ3/qRL7glQUgXQEbTMbYg6bqeHKA +DuQCYeVcpJmSMtamAxCqSYPNLy9m2hCksbr13noth+/zDLOlY654ulBjkz7juc1vUt+ w0iOyMm1OCVbYuMmZG8KNpuMyGTijCTgdPHV2HsuMHJI5ujQ4+1nfZClV3I1k6Mu1mCK yUnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=1RbFvhf0kaSpPuAMCcvhBrG+DaHZl9IMvYmrTLB0aWo=; b=EB470e7+Tn/IugFsUHCIY5mSoSP7UlX7zWN2d+f0mbwp/k7R4cTesRILzRmaTx/uwL v6vabkgDQso0Vfk9t5jF6r2oHaaniuSgpKukXpM9J+1ZJGpiXKsnq3v0eiiebr3bWrs0 Lx2uTuilaKEi4fSvFVFHej4DqJvW8OiqveYy0Xtdb2iZv374VqIpU5ZClD8YqKmj3e4g d+n9Wz1tr4n9ylmzUTtXW5u6MYI1hrAkb/wt/395KtgmJdgIkPrRZ1YHdqxVLNZtb1qv XN/OOpl9QYYfhJTDR68O1QxXHPOYeF+n6AZMR2XrDnRj3dgzxbuILRNSOnS6aFA0RB8F lEfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=cKCFMItu; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id c54si10501800wra.352.2018.03.19.01.09.17; Mon, 19 Mar 2018 01:09:17 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=cKCFMItu; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AA6E42674D1; Mon, 19 Mar 2018 09:09:11 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id B22712673C4; Mon, 19 Mar 2018 09:09:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id D21B32672C0 for ; Mon, 19 Mar 2018 09:09:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=kPaYYPXiSz1qWPb8l+oTCebw/H1NqbtuaVU3QKIzooQ=; b=cKCFMItuTkJa JJ34nq0JLXfSb1EXKAg0KpTCjs9/PhIeRZT9U2UvapSmfkejTAAHvA/HIgNTBn6jAifQb76K8VQeP VkPW1HbspJuD9yOVFKqoF/rPcu3ZCa2DCWxBFWqWlfvDtJQcucFyo/laS7j/pmvlEtgycLNTOpam0 AHXN4=; Received: from [218.255.99.6] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1expqr-0006M6-Cz; Mon, 19 Mar 2018 08:09:05 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id C0C2F44007A; Mon, 19 Mar 2018 08:09:02 +0000 (GMT) From: Mark Brown To: Liam Girdwood In-Reply-To: <20180314204351.13973-1-liam.r.girdwood@linux.intel.com> Message-Id: <20180319080902.C0C2F44007A@finisterre.ee.mobilebroadband> Date: Mon, 19 Mar 2018 08:09:02 +0000 (GMT) Cc: alsa-devel@alsa-project.org, Mark Brown Subject: [alsa-devel] Applied "ASoC: pcm: improve debug output for DPCM BE searching." to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: pcm: improve debug output for DPCM BE searching. has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 3c1464658ec642309453db33364e82291d98acc2 Mon Sep 17 00:00:00 2001 From: Liam Girdwood Date: Wed, 14 Mar 2018 20:43:51 +0000 Subject: [PATCH] ASoC: pcm: improve debug output for DPCM BE searching. Improve the DPCM BE search debug output to make it easier to debug issues in topologies. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- sound/soc/soc-pcm.c | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 084125463d10..68d9dc930096 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1392,12 +1392,18 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card, struct snd_soc_pcm_runtime *be; int i; + dev_dbg(card->dev, "ASoC: find BE for widget %s\n", widget->name); + if (stream == SNDRV_PCM_STREAM_PLAYBACK) { list_for_each_entry(be, &card->rtd_list, list) { if (!be->dai_link->no_pcm) continue; + dev_dbg(card->dev, "ASoC: try BE : %s\n", + be->cpu_dai->playback_widget ? + be->cpu_dai->playback_widget->name : "(not set)"); + if (be->cpu_dai->playback_widget == widget) return be; @@ -1414,6 +1420,10 @@ static struct snd_soc_pcm_runtime *dpcm_get_be(struct snd_soc_card *card, if (!be->dai_link->no_pcm) continue; + dev_dbg(card->dev, "ASoC: try BE %s\n", + be->cpu_dai->capture_widget ? + be->cpu_dai->capture_widget->name : "(not set)"); + if (be->cpu_dai->capture_widget == widget) return be; @@ -1425,6 +1435,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); return NULL;