diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-12-21 19:38:49 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-12-22 02:13:10 -0500 |
commit | 8637bc94f6a36c138229ac1ea09faca343f48bd7 (patch) | |
tree | 7950cf148ac907e79b7f98a4ad75ae9a7a42515f /sound/pci/asihpi | |
parent | f50efa2d9b10e32bf9ccd1a4692df3096512dcfc (diff) |
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 <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r-- | sound/pci/asihpi/hpicmn.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c index c54a49f0e6d1..7ed5c26c3737 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, | |||
324 | } | 324 | } |
325 | 325 | ||
326 | phr->error = 0; | 326 | phr->error = 0; |
327 | phr->specific_error = 0; | ||
328 | phr->version = 0; | ||
327 | 329 | ||
328 | /* set the default response size */ | 330 | /* set the default response size */ |
329 | response_size = | 331 | response_size = |
@@ -531,8 +533,12 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, | |||
531 | found ? "Cached" : "Uncached", phm->adapter_index, | 533 | found ? "Cached" : "Uncached", phm->adapter_index, |
532 | pI->control_index, pI->control_type, phm->u.c.attribute); | 534 | pI->control_index, pI->control_type, phm->u.c.attribute); |
533 | 535 | ||
534 | if (found) | 536 | if (found) { |
535 | phr->size = (u16)response_size; | 537 | phr->size = (u16)response_size; |
538 | phr->type = HPI_TYPE_RESPONSE; | ||
539 | phr->object = phm->object; | ||
540 | phr->function = phm->function; | ||
541 | } | ||
536 | 542 | ||
537 | return found; | 543 | return found; |
538 | } | 544 | } |