Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7235cf3e authored by Alexy Joseph's avatar Alexy Joseph Committed by Matt Wagantall
Browse files

ASoC: msm: qdsp6v2: modify logging in DTS Eagle driver



Modify parameter cache dumping logs in DTS Eagle driver.

Change-Id: I3b97bbfab6f4c9dcfe509b9fea450f462921d95f
Signed-off-by: default avatarAlexy Joseph <alexyj@codeaurora.org>
parent 599f7965
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -464,11 +464,14 @@ static int _sendcache_pre(struct audio_client *ac)
		return -EINVAL;
	}

	if ((offset < (UINT_MAX - 124)) && ((offset + 124) < _depc_size))
		eagle_precache_dbg("%s: first 6 integers %i %i %i %i %i %i (30th %i)",
		  __func__,
		  *((int *)&_depc[offset]), *((int *)&_depc[offset+4]),
		  *((int *)&_depc[offset+8]), *((int *)&_depc[offset+12]),
		  *((int *)&_depc[offset+16]), *((int *)&_depc[offset+20]),
			__func__, *((int *)&_depc[offset]),
			*((int *)&_depc[offset+4]),
			*((int *)&_depc[offset+8]),
			*((int *)&_depc[offset+12]),
			*((int *)&_depc[offset+16]),
			*((int *)&_depc[offset+20]),
			*((int *)&_depc[offset+120]));
	eagle_precache_dbg("%s: sending full data block to port, with cache index = %d device mask 0x%X, param = 0x%X, offset = %u, and size = %u",
		  __func__, cidx, _c_bl[cidx][CBD_DEV_MASK], cmd, offset, size);
@@ -544,10 +547,14 @@ NT_MODE_GOTO:
		return -EINVAL;
	}

	eagle_postcache_dbg("%s: first 6 integers %i %i %i %i %i %i", __func__,
		  *((int *)&_depc[offset]), *((int *)&_depc[offset+4]),
		  *((int *)&_depc[offset+8]), *((int *)&_depc[offset+12]),
		  *((int *)&_depc[offset+16]), *((int *)&_depc[offset+20]));
	if ((offset < (UINT_MAX - 24)) && ((offset + 24) < _depc_size))
		eagle_postcache_dbg("%s: first 6 integers %i %i %i %i %i %i",
			__func__, *((int *)&_depc[offset]),
			*((int *)&_depc[offset+4]),
			*((int *)&_depc[offset+8]),
			*((int *)&_depc[offset+12]),
			*((int *)&_depc[offset+16]),
			*((int *)&_depc[offset+20]));
	eagle_postcache_dbg("%s: sending full data block to port, with cache index = %d device mask 0x%X, port_id = 0x%X, param = 0x%X, offset = %u, and size = %u",
		__func__, cidx, _c_bl[cidx][CBD_DEV_MASK], port_id, cmd,
		offset, size);