All of lore.kernel.org
 help / color / mirror / Atom feed
From: linux@audioscience.com
To: patch@alsa-project.org
Cc: tiwai@suse.de,
	Eliot Blennerhassett <eblennerhassett@audioscience.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH 07/15] Remove unused structures, macros and functions
Date: Fri, 22 Jul 2011 15:52:49 +1200	[thread overview]
Message-ID: <1311306785-23116-15-git-send-email-linux@audioscience.com> (raw)
In-Reply-To: <1311306785-23116-1-git-send-email-linux@audioscience.com>

From: Eliot Blennerhassett <eblennerhassett@audioscience.com>

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
---
 sound/pci/asihpi/hpi6205.c      |    6 ------
 sound/pci/asihpi/hpi_internal.h |   13 -------------
 sound/pci/asihpi/hpidspcd.c     |    1 -
 sound/pci/asihpi/hpimsgx.c      |    2 --
 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 3e31a3f..3c75df8 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,
 			hr.u.ax.info.num_outstreams +
 			hr.u.ax.info.num_instreams;
 
-		hpios_locked_mem_prepare((max_streams * 6) / 10, max_streams,
-			65536, pao->pci.pci_dev);
-
 		HPI_DEBUG_LOG(VERBOSE,
 			"got adapter info type %x index %d serial %d\n",
 			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)
 				[i]);
 			phw->outstream_host_buffer_size[i] = 0;
 		}
-
-	hpios_locked_mem_unprepare(pao->pci.pci_dev);
-
 	kfree(phw);
 }
 
diff --git a/sound/pci/asihpi/hpi_internal.h b/sound/pci/asihpi/hpi_internal.h
index 848fb75..332fb59 100644
--- a/sound/pci/asihpi/hpi_internal.h
+++ b/sound/pci/asihpi/hpi_internal.h
@@ -32,12 +32,6 @@ HPI internal definitions
 #include "hpios.h"
 
 /* physical memory allocation */
-void hpios_locked_mem_init(void
-	);
-void hpios_locked_mem_free_all(void
-	);
-#define hpios_locked_mem_prepare(a, b, c, d);
-#define hpios_locked_mem_unprepare(a)
 
 /** Allocate and map an area of locked memory for bus master DMA operations.
 
@@ -1431,12 +1425,6 @@ struct hpi_control_cache_microphone {
 	char temp_padding[6];
 };
 
-struct hpi_control_cache_generic {
-	struct hpi_control_cache_info i;
-	u32 dw1;
-	u32 dw2;
-};
-
 struct hpi_control_cache_single {
 	union {
 		struct hpi_control_cache_info i;
@@ -1452,7 +1440,6 @@ struct hpi_control_cache_single {
 		struct hpi_control_cache_silencedetector silence;
 		struct hpi_control_cache_sampleclock clk;
 		struct hpi_control_cache_microphone microphone;
-		struct hpi_control_cache_generic generic;
 	} u;
 };
 
diff --git a/sound/pci/asihpi/hpidspcd.c b/sound/pci/asihpi/hpidspcd.c
index a03eb86..c5c6531 100644
--- a/sound/pci/asihpi/hpidspcd.c
+++ b/sound/pci/asihpi/hpidspcd.c
@@ -36,7 +36,6 @@ struct dsp_code_private {
 #define HPI_VER_DECIMAL ((int)(HPI_VER_MAJOR(HPI_VER) * 10000 + \
 	    HPI_VER_MINOR(HPI_VER) * 100 + HPI_VER_RELEASE(HPI_VER)))
 
-#include <linux/pci.h>
 /*-------------------------------------------------------------------*/
 short hpi_dsp_code_open(u32 adapter, void *os_data, struct dsp_code *dsp_code,
 	u32 *os_error_code)
diff --git a/sound/pci/asihpi/hpimsgx.c b/sound/pci/asihpi/hpimsgx.c
index 111f774..83b7e73 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,
 		/* Initialize this module's internal state */
 		hpios_msgxlock_init(&msgx_lock);
 		memset(&hpi_entry_points, 0, sizeof(hpi_entry_points));
-		hpios_locked_mem_init();
 		/* Init subsys_findadapters response to no-adapters */
 		HPIMSGX__reset(HPIMSGX_ALLADAPTERS);
 		hpi_init_response(phr, HPI_OBJ_SUBSYSTEM,
@@ -197,7 +196,6 @@ static void subsys_message(struct hpi_message *phm, struct hpi_response *phr,
 	case HPI_SUBSYS_DRIVER_UNLOAD:
 		HPI_COMMON(phm, phr);
 		HPIMSGX__cleanup(HPIMSGX_ALLADAPTERS, h_owner);
-		hpios_locked_mem_free_all();
 		hpi_init_response(phr, HPI_OBJ_SUBSYSTEM,
 			HPI_SUBSYS_DRIVER_UNLOAD, 0);
 		return;
diff --git a/sound/pci/asihpi/hpios.c b/sound/pci/asihpi/hpios.c
index 742ee12..ff2a19b 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)
 
 }
 
-void hpios_locked_mem_init(void)
-{
-}
-
 /** Allocated an area of locked memory for bus master DMA operations.
 
 On error, return -ENOMEM, and *pMemArea.size = 0
@@ -85,7 +81,3 @@ u16 hpios_locked_mem_free(struct consistent_dma_area *p_mem_area)
 		return 1;
 	}
 }
-
-void hpios_locked_mem_free_all(void)
-{
-}
-- 
1.7.0.4

  parent reply	other threads:[~2011-07-22  3:52 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-22  3:52 [PATCH 00/15] ALSA: asihpi - update from HPI 4.06 to 4.08 linux
2011-07-22  3:52 ` [PATCH 01/15] ALSA: asihpi - Give more meaningful name to hpi request message type linux
2011-07-22  3:52 ` [PATCH 01/15] " linux
2011-07-22  3:52 ` [PATCH 02/15] ALSA: asihpi - Increase request and response buffer sizes linux
2011-07-22  3:52 ` [PATCH 02/15] " linux
2011-07-22  3:52 ` [PATCH 03/15] ALSA: asihpi - Remove controlex structs and associated special data transfer code linux
2011-07-22  3:52 ` [PATCH 03/15] " linux
2011-07-22  3:52 ` [PATCH 04/15] ALSA: asihpi - DSP code loader API now independent of OS linux
2011-07-22  5:56   ` Takashi Iwai
2011-07-22  3:52 ` [PATCH 04/15] " linux
2011-07-22  3:52 ` [PATCH 05/15] ALSA: asihpi - Revise snd_pcm_debug_name, get rid of DEBUG_NAME macro linux
2011-07-22  3:52 ` [PATCH 05/15] " linux
2011-07-22  3:52 ` [PATCH 06/15] ALSA: asihpi - Remove spurious adapter index check linux
2011-07-22  3:52 ` [PATCH 06/15] " linux
2011-07-22  3:52 ` [PATCH 07/15] ALSA: asihpi - Remove unused structures, macros and functions linux
2011-07-22  3:52 ` linux [this message]
2011-07-22  3:52 ` [PATCH 08/15] ALSA: asihpi - Fix minor typos and spelling linux
2011-07-22  3:52 ` [PATCH 08/15] " linux
2011-07-22  3:52 ` [PATCH 09/15] ALSA: asihpi - Make local function static linux
2011-07-22  3:52 ` [PATCH 09/15] " linux
2011-07-22  3:52 ` [PATCH 10/15] Add new node and message defines linux
2011-07-22  3:52 ` [PATCH 10/15] ALSA: asihpi - " linux
2011-07-22  3:52 ` [PATCH 11/15] ALSA: asihpi - Explicitly include mutex.h linux
2011-07-22  3:52 ` [PATCH 11/15] " linux
2011-07-22  3:52 ` [PATCH 12/15] ALSA: asihpi - Use size_t for sizeof result linux
2011-07-22  3:52 ` [PATCH 12/15] " linux
2011-07-22  3:53 ` [PATCH 13/15] ALSA: asihpi - Control name updates linux
2011-07-22  3:53 ` [PATCH 13/15] " linux
2011-07-22  3:53 ` [PATCH 14/15] Add volume mute controls linux
2011-07-22  3:53 ` [PATCH 14/15] ALSA: asihpi - " linux
2011-07-22  6:01   ` Takashi Iwai
2011-07-22  3:53 ` [PATCH 15/15] ALSA: asihpi - HPI version 4.08 linux
2011-07-22  3:53 ` [PATCH 15/15] " linux
2011-07-22  4:04 ` Please ignore duplicates Eliot Blennerhassett
2011-07-22  6:03 ` [PATCH 00/15] ALSA: asihpi - update from HPI 4.06 to 4.08 Takashi Iwai
     [not found] ` <4E28F717.90204@audioscience.com>
2011-07-22  6:06   ` asihpi - update from HPI 4.06 to 4.08 - Firmware Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1311306785-23116-15-git-send-email-linux@audioscience.com \
    --to=linux@audioscience.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=eblennerhassett@audioscience.com \
    --cc=patch@alsa-project.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.