From: Eliot Blennerhassett Date: Thu, 22 Dec 2011 00:38:49 +0000 (+1300) Subject: ALSA: asihpi - Correct headers in cached control responses. X-Git-Tag: accepted/tizen/common/20141203.182822~4454^2~117^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8637bc94f6a36c138229ac1ea09faca343f48bd7;p=platform%2Fkernel%2Flinux-arm64.git 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: Eliot Blennerhassett Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c index c54a49f..7ed5c26 100644 --- a/sound/pci/asihpi/hpicmn.c +++ b/sound/pci/asihpi/hpicmn.c @@ -324,6 +324,8 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, } phr->error = 0; + phr->specific_error = 0; + phr->version = 0; /* set the default response size */ response_size = @@ -531,8 +533,12 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, found ? "Cached" : "Uncached", phm->adapter_index, pI->control_index, pI->control_type, phm->u.c.attribute); - if (found) + if (found) { phr->size = (u16)response_size; + phr->type = HPI_TYPE_RESPONSE; + phr->object = phm->object; + phr->function = phm->function; + } return found; }