summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl-topology.c
diff options
context:
space:
mode:
authorVinod Koul2017-06-30 05:36:06 +0200
committerMark Brown2017-06-30 14:27:55 +0200
commitd14700a01f9101c2bc75c24fc859c8d85ba7e623 (patch)
tree20ea10f182e16b80b4a6b265115dd5c614f7f6ff /sound/soc/intel/skylake/skl-topology.c
parentASoC: Intel: Skylake: Add debugfs support (diff)
downloadkernel-qcow2-linux-d14700a01f9101c2bc75c24fc859c8d85ba7e623.tar.gz
kernel-qcow2-linux-d14700a01f9101c2bc75c24fc859c8d85ba7e623.tar.xz
kernel-qcow2-linux-d14700a01f9101c2bc75c24fc859c8d85ba7e623.zip
ASoC: Intel: Skylake: Debugfs facility to dump module config
Driver modules have lot of information represented in struct skl_module_cfg. Knowing this is useful for debug, so enable debugfs for this structure. Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Vunny Sodhi <vunnyx.sodhi@intel.com> Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-topology.c')
-rw-r--r--sound/soc/intel/skylake/skl-topology.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index 9569f118e97e..c02da16fdfd6 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -2472,6 +2472,9 @@ static int skl_tplg_widget_load(struct snd_soc_component *cmpnt,
ret = skl_tplg_get_pvt_data(tplg_w, skl, bus->dev, mconfig);
if (ret < 0)
return ret;
+
+ skl_debug_init_module(skl->debugfs, w, mconfig);
+
bind_event:
if (tplg_w->event_type == 0) {
dev_dbg(bus->dev, "ASoC: No event handler required\n");