ASoC: Intel: Add debug to set DX state
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Wed, 30 Jul 2014 12:11:26 +0000 (20:11 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 30 Jul 2014 12:16:58 +0000 (13:16 +0100)
Add some debugging info to help with Dx state debug.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-ipc.c

index 436c2fa23c80331c9bae9d91030e730f6d070346..9825d195b8c93673920d6c98a96234d77aad5f31 100644 (file)
@@ -1646,7 +1646,7 @@ int sst_hsw_dx_set_state(struct sst_hsw *hsw,
        enum sst_hsw_dx_state state, struct sst_hsw_ipc_dx_reply *dx)
 {
        u32 header, state_;
-       int ret;
+       int ret, item;
 
        header = IPC_GLB_TYPE(IPC_GLB_ENTER_DX_STATE);
        state_ = state;
@@ -1660,6 +1660,13 @@ int sst_hsw_dx_set_state(struct sst_hsw *hsw,
                return ret;
        }
 
+       for (item = 0; item < dx->entries_no; item++) {
+               dev_dbg(hsw->dev,
+                       "Item[%d] offset[%x] - size[%x] - source[%x]\n",
+                       item, dx->mem_info[item].offset,
+                       dx->mem_info[item].size,
+                       dx->mem_info[item].source);
+       }
        dev_dbg(hsw->dev, "ipc: got %d entry numbers for state %d\n",
                dx->entries_no, state);