summaryrefslogtreecommitdiffstats
path: root/sound/pci/asihpi/hpicmn.h
diff options
context:
space:
mode:
authorEliot Blennerhassett <eblennerhassett@audioscience.com>2011-02-10 17:26:06 +1300
committerTakashi Iwai <tiwai@suse.de>2011-02-10 18:49:28 +0100
commit4704998e84b03e2d93ef8d4d03eeb7a84c0cb493 (patch)
treeacdbf55f5979fcddb39c112a10fa0e3f59edfc5a /sound/pci/asihpi/hpicmn.h
parent0a00044d26489c1907b9e8b3e633e6b9a6d2200e (diff)
downloadtalos-op-linux-4704998e84b03e2d93ef8d4d03eeb7a84c0cb493.tar.gz
talos-op-linux-4704998e84b03e2d93ef8d4d03eeb7a84c0cb493.zip
ALSA: asihpi - Code cleanup.
Remove unused function. Simplify hpi_alloc_control_cache. Remove useless assignment to struct subsequently freed. Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpicmn.h')
-rw-r--r--sound/pci/asihpi/hpicmn.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/sound/pci/asihpi/hpicmn.h b/sound/pci/asihpi/hpicmn.h
index 2708c4df2c70..6db1e0ba4728 100644
--- a/sound/pci/asihpi/hpicmn.h
+++ b/sound/pci/asihpi/hpicmn.h
@@ -33,15 +33,15 @@ struct hpi_adapter_obj {
};
struct hpi_control_cache {
- u16 init; /**< indicates whether the
- structures are initialized */
+ /** indicates whether the structures are initialized */
+ u16 init;
u16 adap_idx;
u32 control_count;
u32 cache_size_in_bytes;
- struct hpi_control_cache_info
- **p_info; /**< pointer to allocated memory of
- lookup pointers. */
- u8 *p_cache; /**< pointer to DSP's control cache. */
+ /** pointer to allocated memory of lookup pointers. */
+ struct hpi_control_cache_info **p_info;
+ /** pointer to DSP's control cache. */
+ u8 *p_cache;
};
struct hpi_adapter_obj *hpi_find_adapter(u16 adapter_index);
@@ -57,6 +57,5 @@ void hpi_free_control_cache(struct hpi_control_cache *p_cache);
void hpi_cmn_control_cache_sync_to_msg(struct hpi_control_cache *pC,
struct hpi_message *phm, struct hpi_response *phr);
+
u16 hpi_validate_response(struct hpi_message *phm, struct hpi_response *phr);
-short hpi_check_buffer_mapping(struct hpi_control_cache *p_cache,
- struct hpi_message *phm, void **p, unsigned int *pN);
OpenPOWER on IntegriCloud