From patchwork Fri May 24 07:54:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Banajit Goswami X-Patchwork-Id: 10959243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4770F14B6 for ; Fri, 24 May 2019 07:55:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34D1E287CE for ; Fri, 24 May 2019 07:55:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 286B1287D4; Fri, 24 May 2019 07:55:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6212C287CE for ; Fri, 24 May 2019 07:55:29 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A02A116A1; Fri, 24 May 2019 09:54:37 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A02A116A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1558684527; bh=KV3SwI/XcOHyc1P5CeLn6u6eVqYIZ5oqHAKZZPROZuA=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=UBDEvUtM+tWgUMfAYYFL0E2C7IXEDOB5dDjpTNlQsjQA6dK62SKRXYRzfor9zFbGe /9F6BzkD3xE1+VbeNNBtPn9/CdrRo3pvogDrHu0y6JpV1CnHS3IhXukMtHV5UyEu1J hmvQmf6r92ckcr2NqE9ghWfJ5Hp14ea9TUfcr0Nk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2F0F6F8962F; Fri, 24 May 2019 09:54:37 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6CBB8F89630; Fri, 24 May 2019 09:54:35 +0200 (CEST) Received: from smtp.codeaurora.org (smtp.codeaurora.org [198.145.29.96]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8E30AF89625 for ; Fri, 24 May 2019 09:54:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8E30AF89625 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="LZcgOiK9"; dkim=pass (1024-bit key) header.d=codeaurora.org header.i=@codeaurora.org header.b="LZcgOiK9" Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8FE086087D; Fri, 24 May 2019 07:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558684469; bh=2RSSfdstUJ3AwUHcDKMGkqkK7AkhatckMh9jeufxkRU=; h=From:To:Cc:Subject:Date:From; b=LZcgOiK90T5oLjs+IXmW53CJ/NMt/NwKiuux1Y04x5b/v2qnzEaySkv5Qj1rwxkOr W842DT5EKjm4oa6PRsoRu3anxoRdLEEXST2g209Bx3LybF8f6LlR3gU8IDYgkUl3fE 1VvtQB0ifF1j1cWPmJvjckI4ueKLATvK3DESbaoA= Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: bgoswami@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 19CB3607B9; Fri, 24 May 2019 07:54:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1558684469; bh=2RSSfdstUJ3AwUHcDKMGkqkK7AkhatckMh9jeufxkRU=; h=From:To:Cc:Subject:Date:From; b=LZcgOiK90T5oLjs+IXmW53CJ/NMt/NwKiuux1Y04x5b/v2qnzEaySkv5Qj1rwxkOr W842DT5EKjm4oa6PRsoRu3anxoRdLEEXST2g209Bx3LybF8f6LlR3gU8IDYgkUl3fE 1VvtQB0ifF1j1cWPmJvjckI4ueKLATvK3DESbaoA= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 19CB3607B9 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=bgoswami@codeaurora.org From: bgoswami@codeaurora.org To: broonie@kernel.org Date: Fri, 24 May 2019 00:54:27 -0700 Message-Id: <1558684467-11333-1-git-send-email-bgoswami@codeaurora.org> X-Mailer: git-send-email 1.9.1 Cc: alsa-devel@alsa-project.org, Banajit Goswami , srinivas.kandagatla@linaro.org, plai@codeaurora.org Subject: [alsa-devel] [PATCH] ASoC: Add a debug log to track DAPM widget power up/down X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" X-Virus-Scanned: ClamAV using ClamSMTP From: Banajit Goswami Add a debug log to help track widgets being powered-up and powered-down by DAPM. Signed-off-by: Banajit Goswami --- sound/soc/soc-dapm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 29cdfbf4c888..9bab90410de5 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -1665,6 +1665,13 @@ static void dapm_seq_run(struct snd_soc_card *card, break; } + /* + * Add this debug log to keep track of widgets being + * powered-up and powered-down. + */ + dev_dbg(w->dapm->dev, "dapm: powering %s widget %s\n", + power_up ? "up" : "down", w->name); + if (ret < 0) dev_err(w->dapm->dev, "ASoC: Failed to apply widget power: %d\n", ret);