Commit 8637bc94 authored by Eliot Blennerhassett's avatar Eliot Blennerhassett Committed by Takashi Iwai

ALSA: asihpi - Correct headers in cached control responses.

Previously, only payload and size were correct, sufficient for reading,
but other fields produced spurious debug output.
Signed-off-by: default avatarEliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f50efa2d
...@@ -324,6 +324,8 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, ...@@ -324,6 +324,8 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache,
} }
phr->error = 0; phr->error = 0;
phr->specific_error = 0;
phr->version = 0;
/* set the default response size */ /* set the default response size */
response_size = response_size =
...@@ -531,8 +533,12 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, ...@@ -531,8 +533,12 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache,
found ? "Cached" : "Uncached", phm->adapter_index, found ? "Cached" : "Uncached", phm->adapter_index,
pI->control_index, pI->control_type, phm->u.c.attribute); pI->control_index, pI->control_type, phm->u.c.attribute);
if (found) if (found) {
phr->size = (u16)response_size; phr->size = (u16)response_size;
phr->type = HPI_TYPE_RESPONSE;
phr->object = phm->object;
phr->function = phm->function;
}
return found; return found;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment