]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: Intel: Skylake: Print module type instead of id
authorAmadeusz Sławiński <amadeuszx.slawinski@intel.com>
Tue, 27 Aug 2019 14:17:10 +0000 (16:17 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 27 Aug 2019 18:26:06 +0000 (19:26 +0100)
When we are printing module params, we were actually printing module id
instead of type, but debug message was saying that number we get is type.
So print module type, as it is useful when debugging paths, but also
keep printing module id, as it is used in all other logs.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@intel.com>
Link: https://lore.kernel.org/r/20190827141712.21015-5-amadeuszx.slawinski@linux.intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-messages.c

index d43496c5f29effc8e9b30e5ee803c3e99092edb3..476ef1897961deffca1efe852ab6ca00eff61b2f 100644 (file)
@@ -867,8 +867,9 @@ static int skl_set_module_format(struct skl_dev *skl,
 
        }
 
-       dev_dbg(skl->dev, "Module type=%d config size: %d bytes\n",
-                       module_config->id.module_id, param_size);
+       dev_dbg(skl->dev, "Module type=%d id=%d config size: %d bytes\n",
+                       module_config->m_type, module_config->id.module_id,
+                       param_size);
        print_hex_dump_debug("Module params:", DUMP_PREFIX_OFFSET, 8, 4,
                        *param_data, param_size, false);
        return 0;