aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>2014-07-30 08:11:26 -0400
committerMark Brown <broonie@linaro.org>2014-07-30 08:16:58 -0400
commit543ec637e00a9000772c315a8c98fa6ede563c5b (patch)
tree220d1bb28cb71589f4d82d87ba66b68b1bc576a1 /sound/soc/intel
parent81552612501f436f3824f056f95fdc04b8a60e1f (diff)
ASoC: Intel: Add debug to set DX state
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>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r--sound/soc/intel/sst-haswell-ipc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index 436c2fa23c80..9825d195b8c9 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -1646,7 +1646,7 @@ int sst_hsw_dx_set_state(struct sst_hsw *hsw,
1646 enum sst_hsw_dx_state state, struct sst_hsw_ipc_dx_reply *dx) 1646 enum sst_hsw_dx_state state, struct sst_hsw_ipc_dx_reply *dx)
1647{ 1647{
1648 u32 header, state_; 1648 u32 header, state_;
1649 int ret; 1649 int ret, item;
1650 1650
1651 header = IPC_GLB_TYPE(IPC_GLB_ENTER_DX_STATE); 1651 header = IPC_GLB_TYPE(IPC_GLB_ENTER_DX_STATE);
1652 state_ = state; 1652 state_ = state;
@@ -1660,6 +1660,13 @@ int sst_hsw_dx_set_state(struct sst_hsw *hsw,
1660 return ret; 1660 return ret;
1661 } 1661 }
1662 1662
1663 for (item = 0; item < dx->entries_no; item++) {
1664 dev_dbg(hsw->dev,
1665 "Item[%d] offset[%x] - size[%x] - source[%x]\n",
1666 item, dx->mem_info[item].offset,
1667 dx->mem_info[item].size,
1668 dx->mem_info[item].source);
1669 }
1663 dev_dbg(hsw->dev, "ipc: got %d entry numbers for state %d\n", 1670 dev_dbg(hsw->dev, "ipc: got %d entry numbers for state %d\n",
1664 dx->entries_no, state); 1671 dx->entries_no, state);
1665 1672