ASoC: SOF: core: Print out the value of sof_debug if it is set
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 <peter.ujfalusi@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Link: https://lore.kernel.org/r/20221216115435.28427-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3bc351aa97
commit
b2f7b93205
|
@ -362,6 +362,9 @@ int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data)
|
||||||
sdev->first_boot = true;
|
sdev->first_boot = true;
|
||||||
dev_set_drvdata(dev, sdev);
|
dev_set_drvdata(dev, sdev);
|
||||||
|
|
||||||
|
if (sof_core_debug)
|
||||||
|
dev_info(dev, "sof_debug value: %#x\n", sof_core_debug);
|
||||||
|
|
||||||
/* check IPC support */
|
/* check IPC support */
|
||||||
if (!(BIT(plat_data->ipc_type) & plat_data->desc->ipc_supported_mask)) {
|
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",
|
dev_err(dev, "ipc_type %d is not supported on this platform, mask is %#x\n",
|
||||||
|
|
Loading…
Reference in New Issue