diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-07-21 23:52:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-07-22 01:50:57 -0400 |
commit | 4bf8cff05a4461d24b36d9942a077504a3461732 (patch) | |
tree | 8e5b8ebb045b1072d10e32fe74f746581def9eaa /sound | |
parent | 1c073b6797969dfc808d077cf28f9e0205070edd (diff) |
ALSA: asihpi - Remove unused structures, macros and functions
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/asihpi/hpi6205.c | 6 | ||||
-rw-r--r-- | sound/pci/asihpi/hpi_internal.h | 13 | ||||
-rw-r--r-- | sound/pci/asihpi/hpidspcd.c | 1 | ||||
-rw-r--r-- | sound/pci/asihpi/hpimsgx.c | 2 | ||||
-rw-r--r-- | sound/pci/asihpi/hpios.c | 8 |
5 files changed, 0 insertions, 30 deletions
diff --git a/sound/pci/asihpi/hpi6205.c b/sound/pci/asihpi/hpi6205.c index 3e31a3f3708e..3c75df8df84f 100644 --- a/sound/pci/asihpi/hpi6205.c +++ b/sound/pci/asihpi/hpi6205.c | |||
@@ -658,9 +658,6 @@ static u16 create_adapter_obj(struct hpi_adapter_obj *pao, | |||
658 | hr.u.ax.info.num_outstreams + | 658 | hr.u.ax.info.num_outstreams + |
659 | hr.u.ax.info.num_instreams; | 659 | hr.u.ax.info.num_instreams; |
660 | 660 | ||
661 | hpios_locked_mem_prepare((max_streams * 6) / 10, max_streams, | ||
662 | 65536, pao->pci.pci_dev); | ||
663 | |||
664 | HPI_DEBUG_LOG(VERBOSE, | 661 | HPI_DEBUG_LOG(VERBOSE, |
665 | "got adapter info type %x index %d serial %d\n", | 662 | "got adapter info type %x index %d serial %d\n", |
666 | hr.u.ax.info.adapter_type, hr.u.ax.info.adapter_index, | 663 | hr.u.ax.info.adapter_type, hr.u.ax.info.adapter_index, |
@@ -709,9 +706,6 @@ static void delete_adapter_obj(struct hpi_adapter_obj *pao) | |||
709 | [i]); | 706 | [i]); |
710 | phw->outstream_host_buffer_size[i] = 0; | 707 | phw->outstream_host_buffer_size[i] = 0; |
711 | } | 708 | } |
712 | |||
713 | hpios_locked_mem_unprepare(pao->pci.pci_dev); | ||
714 | |||
715 | kfree(phw); | 709 | kfree(phw); |
716 | } | 710 | } |
717 | 711 | ||
diff --git a/sound/pci/asihpi/hpi_internal.h b/sound/pci/asihpi/hpi_internal.h index 848fb7596ae4..332fb59ac789 100644 --- a/sound/pci/asihpi/hpi_internal.h +++ b/sound/pci/asihpi/hpi_internal.h | |||
@@ -32,12 +32,6 @@ HPI internal definitions | |||
32 | #include "hpios.h" | 32 | #include "hpios.h" |
33 | 33 | ||
34 | /* physical memory allocation */ | 34 | /* physical memory allocation */ |
35 | void hpios_locked_mem_init(void | ||
36 | ); | ||
37 | void hpios_locked_mem_free_all(void | ||
38 | ); | ||
39 | #define hpios_locked_mem_prepare(a, b, c, d); | ||
40 | #define hpios_locked_mem_unprepare(a) | ||
41 | 35 | ||
42 | /** Allocate and map an area of locked memory for bus master DMA operations. | 36 | /** Allocate and map an area of locked memory for bus master DMA operations. |
43 | 37 | ||
@@ -1431,12 +1425,6 @@ struct hpi_control_cache_microphone { | |||
1431 | char temp_padding[6]; | 1425 | char temp_padding[6]; |
1432 | }; | 1426 | }; |
1433 | 1427 | ||
1434 | struct hpi_control_cache_generic { | ||
1435 | struct hpi_control_cache_info i; | ||
1436 | u32 dw1; | ||
1437 | u32 dw2; | ||
1438 | }; | ||
1439 | |||
1440 | struct hpi_control_cache_single { | 1428 | struct hpi_control_cache_single { |
1441 | union { | 1429 | union { |
1442 | struct hpi_control_cache_info i; | 1430 | struct hpi_control_cache_info i; |
@@ -1452,7 +1440,6 @@ struct hpi_control_cache_single { | |||
1452 | struct hpi_control_cache_silencedetector silence; | 1440 | struct hpi_control_cache_silencedetector silence; |
1453 | struct hpi_control_cache_sampleclock clk; | 1441 | struct hpi_control_cache_sampleclock clk; |
1454 | struct hpi_control_cache_microphone microphone; | 1442 | struct hpi_control_cache_microphone microphone; |
1455 | struct hpi_control_cache_generic generic; | ||
1456 | } u; | 1443 | } u; |
1457 | }; | 1444 | }; |
1458 | 1445 | ||
diff --git a/sound/pci/asihpi/hpidspcd.c b/sound/pci/asihpi/hpidspcd.c index 987538819b24..3a7afa31c1d8 100644 --- a/sound/pci/asihpi/hpidspcd.c +++ b/sound/pci/asihpi/hpidspcd.c | |||
@@ -35,7 +35,6 @@ struct dsp_code_private { | |||
35 | #define HPI_VER_DECIMAL ((int)(HPI_VER_MAJOR(HPI_VER) * 10000 + \ | 35 | #define HPI_VER_DECIMAL ((int)(HPI_VER_MAJOR(HPI_VER) * 10000 + \ |
36 | HPI_VER_MINOR(HPI_VER) * 100 + HPI_VER_RELEASE(HPI_VER))) | 36 | HPI_VER_MINOR(HPI_VER) * 100 + HPI_VER_RELEASE(HPI_VER))) |
37 | 37 | ||
38 | #include <linux/pci.h> | ||
39 | /*-------------------------------------------------------------------*/ | 38 | /*-------------------------------------------------------------------*/ |
40 | short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code, | 39 | short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code, |
41 | u32 *os_error_code) | 40 | u32 *os_error_code) |
diff --git a/sound/pci/asihpi/hpimsgx.c b/sound/pci/asihpi/hpimsgx.c index 111f774f5f20..83b7e7337933 100644 --- a/sound/pci/asihpi/hpimsgx.c +++ b/sound/pci/asihpi/hpimsgx.c | |||
@@ -186,7 +186,6 @@ static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, | |||
186 | /* Initialize this module's internal state */ | 186 | /* Initialize this module's internal state */ |
187 | hpios_msgxlock_init(&msgx_lock); | 187 | hpios_msgxlock_init(&msgx_lock); |
188 | memset(&hpi_entry_points, 0, sizeof(hpi_entry_points)); | 188 | memset(&hpi_entry_points, 0, sizeof(hpi_entry_points)); |
189 | hpios_locked_mem_init(); | ||
190 | /* Init subsys_findadapters response to no-adapters */ | 189 | /* Init subsys_findadapters response to no-adapters */ |
191 | HPIMSGX__reset(HPIMSGX_ALLADAPTERS); | 190 | HPIMSGX__reset(HPIMSGX_ALLADAPTERS); |
192 | hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, | 191 | hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, |
@@ -197,7 +196,6 @@ static void subsys_message(struct hpi_message *phm, struct hpi_response *phr, | |||
197 | case HPI_SUBSYS_DRIVER_UNLOAD: | 196 | case HPI_SUBSYS_DRIVER_UNLOAD: |
198 | HPI_COMMON(phm, phr); | 197 | HPI_COMMON(phm, phr); |
199 | HPIMSGX__cleanup(HPIMSGX_ALLADAPTERS, h_owner); | 198 | HPIMSGX__cleanup(HPIMSGX_ALLADAPTERS, h_owner); |
200 | hpios_locked_mem_free_all(); | ||
201 | hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, | 199 | hpi_init_response(phr, HPI_OBJ_SUBSYSTEM, |
202 | HPI_SUBSYS_DRIVER_UNLOAD, 0); | 200 | HPI_SUBSYS_DRIVER_UNLOAD, 0); |
203 | return; | 201 | return; |
diff --git a/sound/pci/asihpi/hpios.c b/sound/pci/asihpi/hpios.c index 742ee12a9e17..ff2a19b544fa 100644 --- a/sound/pci/asihpi/hpios.c +++ b/sound/pci/asihpi/hpios.c | |||
@@ -39,10 +39,6 @@ void hpios_delay_micro_seconds(u32 num_micro_sec) | |||
39 | 39 | ||
40 | } | 40 | } |
41 | 41 | ||
42 | void hpios_locked_mem_init(void) | ||
43 | { | ||
44 | } | ||
45 | |||
46 | /** Allocated an area of locked memory for bus master DMA operations. | 42 | /** Allocated an area of locked memory for bus master DMA operations. |
47 | 43 | ||
48 | On error, return -ENOMEM, and *pMemArea.size = 0 | 44 | On error, return -ENOMEM, and *pMemArea.size = 0 |
@@ -85,7 +81,3 @@ u16 hpios_locked_mem_free(struct consistent_dma_area *p_mem_area) | |||
85 | return 1; | 81 | return 1; |
86 | } | 82 | } |
87 | } | 83 | } |
88 | |||
89 | void hpios_locked_mem_free_all(void) | ||
90 | { | ||
91 | } | ||