diff options
Diffstat (limited to 'sound/pci/asihpi/hpicmn.h')
-rw-r--r-- | sound/pci/asihpi/hpicmn.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/sound/pci/asihpi/hpicmn.h b/sound/pci/asihpi/hpicmn.h index 6229022f56cb..590f0b69e655 100644 --- a/sound/pci/asihpi/hpicmn.h +++ b/sound/pci/asihpi/hpicmn.h | |||
@@ -33,18 +33,19 @@ struct hpi_adapter_obj { | |||
33 | }; | 33 | }; |
34 | 34 | ||
35 | struct hpi_control_cache { | 35 | struct hpi_control_cache { |
36 | u32 init; /**< indicates whether the | 36 | /** indicates whether the structures are initialized */ |
37 | structures are initialized */ | 37 | u16 init; |
38 | u16 adap_idx; | ||
38 | u32 control_count; | 39 | u32 control_count; |
39 | u32 cache_size_in_bytes; | 40 | u32 cache_size_in_bytes; |
40 | struct hpi_control_cache_info | 41 | /** pointer to allocated memory of lookup pointers. */ |
41 | **p_info; /**< pointer to allocated memory of | 42 | struct hpi_control_cache_info **p_info; |
42 | lookup pointers. */ | 43 | /** pointer to DSP's control cache. */ |
43 | struct hpi_control_cache_single | 44 | u8 *p_cache; |
44 | *p_cache; /**< pointer to DSP's control cache. */ | ||
45 | }; | 45 | }; |
46 | 46 | ||
47 | struct hpi_adapter_obj *hpi_find_adapter(u16 adapter_index); | 47 | struct hpi_adapter_obj *hpi_find_adapter(u16 adapter_index); |
48 | |||
48 | u16 hpi_add_adapter(struct hpi_adapter_obj *pao); | 49 | u16 hpi_add_adapter(struct hpi_adapter_obj *pao); |
49 | 50 | ||
50 | void hpi_delete_adapter(struct hpi_adapter_obj *pao); | 51 | void hpi_delete_adapter(struct hpi_adapter_obj *pao); |
@@ -52,13 +53,10 @@ void hpi_delete_adapter(struct hpi_adapter_obj *pao); | |||
52 | short hpi_check_control_cache(struct hpi_control_cache *pC, | 53 | short hpi_check_control_cache(struct hpi_control_cache *pC, |
53 | struct hpi_message *phm, struct hpi_response *phr); | 54 | struct hpi_message *phm, struct hpi_response *phr); |
54 | struct hpi_control_cache *hpi_alloc_control_cache(const u32 | 55 | struct hpi_control_cache *hpi_alloc_control_cache(const u32 |
55 | number_of_controls, const u32 size_in_bytes, | 56 | number_of_controls, const u32 size_in_bytes, u8 *pDSP_control_buffer); |
56 | struct hpi_control_cache_info | ||
57 | *pDSP_control_buffer); | ||
58 | void hpi_free_control_cache(struct hpi_control_cache *p_cache); | 57 | void hpi_free_control_cache(struct hpi_control_cache *p_cache); |
59 | 58 | ||
60 | void hpi_sync_control_cache(struct hpi_control_cache *pC, | 59 | void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *pC, |
61 | struct hpi_message *phm, struct hpi_response *phr); | 60 | struct hpi_message *phm, struct hpi_response *phr); |
61 | |||
62 | u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr); | 62 | u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr); |
63 | short hpi_check_buffer_mapping(struct hpi_control_cache *p_cache, | ||
64 | struct hpi_message *phm, void **p, unsigned int *pN); | ||