Skip to contentSkip to conversation

ASoC: Intel: Add debug to set DX state

PATCH Applied Jie Yang 2 participants 2 messages Jul 30, 2014

Subsystems (3)
lore
Share & tools
lore

Jie Yang

author
#0 lore raw

PATCH 1/1 ASoC: Intel: Add debug to set DX state

From: Liam Girdwood <[email protected]>

Add some debugging info to help with Dx state debug.

---
 sound/soc/intel/sst-haswell-ipc.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
sound/soc/intel/sst-haswell-ipc.c +8 -1
index 436c2fa..9825d19 100644
@@ -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);
 
Signature · 1 line
1.8.3.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Jie Yang

From: Liam Girdwood <[email protected]>

Add some debugging info to help with Dx state debug.

Applied, thanks.