Unverified Commit 497f134a authored by Mark Brown's avatar Mark Brown
Browse files

Fixes for avs driver

Merge series from Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>:

First patch fixes problems reported when performing shutdown. Second one
is for a problem reported by LKP. Last one fixes problem reported by
checkpatch.
parents 8f28299f 4a1b1b65
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1633,7 +1633,7 @@ avs_control_load(struct snd_soc_component *comp, int index, struct snd_kcontrol_
	size_t block_size;
	int ret;

	switch (hdr->type) {
	switch (le32_to_cpu(hdr->type)) {
	case SND_SOC_TPLG_TYPE_MIXER:
		tmc = container_of(hdr, typeof(*tmc), hdr);
		tuples = tmc->priv.array;
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ void trace_avs_msg_payload(const void *data, size_t size)
	while (remaining > 0) {
		u32 chunk;

		chunk = min(remaining, (size_t)MAX_CHUNK_SIZE);
		chunk = min_t(size_t, remaining, MAX_CHUNK_SIZE);
		trace_avs_ipc_msg_payload(data, chunk, offset, size);

		remaining -= chunk;