From patchwork Wed Dec 21 11:17:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 635651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6DEE1C4332F for ; Wed, 21 Dec 2022 11:18:46 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id D44B016D3; Wed, 21 Dec 2022 12:17:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz D44B016D3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1671621523; bh=Y8nl3bPZho6VnWkSTaobln2om5vlm3qNMUCK0O0EdW4=; h=From:To:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Cc:From; b=d58fVKbmg1H8WW40L4JmQ9PqObJN2/tffSv/TjjCwFA4LhcnYVTIM+cdX1u494gg2 B2aYJqtzi+UGiQ/lkcmsNvL39pWNXaiOGDMsS6/WfQqOfoGALbBBl46f61BqSGRb2X ysZW/JvSTViDlWuYU8I6Ua6o5rqIx1eR4pA6PF68= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 7DE2CF8047B; Wed, 21 Dec 2022 12:17:53 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1A5A1F8047B; Wed, 21 Dec 2022 12:17:52 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 030D2F801C1 for ; Wed, 21 Dec 2022 12:17:48 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 030D2F801C1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OV5oblMm DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671621471; x=1703157471; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Y8nl3bPZho6VnWkSTaobln2om5vlm3qNMUCK0O0EdW4=; b=OV5oblMmKj3JtYnD4d6bgdlOxfqJVn3LIaAGHfI1q4AbtKs2KyGjxV4P a8cJZb0MQONeaxyhSpKHEKOT5yNJoOYk5CxqnIpLA7mxlVbtxEO9oH/aM 3YBjaQDNQXO76lGkOb8rOeO661ksowGQjoncheVfmes1bO+0r5dKWVOsJ yPPE7V8Bqp2n8ucNpDvIRfHV6f0L/DAXXsEW33cXJkmWn1xclhO8zXsdJ cfObhGhmNXQb1hitthEj4B7OAkvqUaZkSBx99DOna0IUqF7gyznMgbLhK dARRrumG3AeoolD3VCjPMj07STqtKNT0Olz2YcoIx52VVMWEkCUBRroIr A==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="321759275" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="321759275" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 03:17:44 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="644801753" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="644801753" Received: from cofearra-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.20.202]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2022 03:17:42 -0800 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH] ASoC: SOF: core: Print out the value of sof_debug if it is set Date: Wed, 21 Dec 2022 13:17:50 +0200 Message-Id: <20221221111750.20283-1-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.29 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: , Cc: alsa-devel@alsa-project.org, daniel.baluta@nxp.com, pierre-louis.bossart@linux.intel.com, kai.vehmanen@linux.intel.com, ranjani.sridharan@linux.intel.com Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The sof_debug value is set by the user, developer intentionally. To save time on figuring out what value has been passed to the kernel by the user, developer, print it out if it is not 0. Signed-off-by: Peter Ujfalusi Reviewed-by: Pierre-Louis Bossart Reviewed-by: Kai Vehmanen Reviewed-by: Daniel Baluta --- sound/soc/sof/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/sof/core.c b/sound/soc/sof/core.c index 625977a29d8a..26a3f7c8c914 100644 --- a/sound/soc/sof/core.c +++ b/sound/soc/sof/core.c @@ -362,6 +362,9 @@ int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data) sdev->first_boot = true; dev_set_drvdata(dev, sdev); + if (sof_core_debug) + dev_info(dev, "sof_debug value: %#x\n", sof_core_debug); + /* check IPC support */ if (!(BIT(plat_data->ipc_type) & plat_data->desc->ipc_supported_mask)) { dev_err(dev, "ipc_type %d is not supported on this platform, mask is %#x\n",