mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
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.
This commit is contained in:
commit
497f134a91
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user