From f81df8494bfc78d3a1143b1bfb1997b6776824ac Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 11 Nov 2013 08:14:56 -0600 Subject: Remove unused apb_prepare function --- nuttx/ChangeLog | 2 ++ nuttx/include/nuttx/audio/audio.h | 26 +------------------------- nuttx/libc/audio/lib_buffer.c | 13 ------------- 3 files changed, 3 insertions(+), 38 deletions(-) diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 7052bbfc2..0399198be 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -6032,4 +6032,6 @@ audio buffer queuing (2013-11-10). * arch/arm/src/sam34 and arch/arm/include/sam34: Basic support for the Atmal SAM4E family. From Mitko (2013-11-11). + * libc/audio/lib_buffer.c: Remove unused apb_prepare() function + (2013-11-11). diff --git a/nuttx/include/nuttx/audio/audio.h b/nuttx/include/nuttx/audio/audio.h index 6f1afc7f8..280ad3e4d 100644 --- a/nuttx/include/nuttx/audio/audio.h +++ b/nuttx/include/nuttx/audio/audio.h @@ -670,9 +670,7 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev); * * Description: * Allocated an AP Buffer and prepares it for use. This allocates a dynamically - * allocated buffer that has no special DMA capabilities. If a static buffer - * or a buffer with DMA ability is needed, then it must be allocated manually - * and then call apb_prepare, passing it the allocated memory. + * allocated buffer that has no special DMA capabilities. * * Input parameters: * bufdesc: Pointer to a buffer descriptor @@ -684,28 +682,6 @@ int audio_register(FAR const char *name, FAR struct audio_lowerhalf_s *dev); int apb_alloc(FAR struct audio_buf_desc_s *bufdesc); -/**************************************************************************** - * Name: abp_prepare - * - * Description: - * Prepare a pre-allocated AP Buffer for use in the Audio Pipeline. - * - * Input parameters: - * apb - The pre-allocated AP Buffer - * size - The size of the pre-allocated buffer (for verification) - * allocmode - Indicates if the buffer is static or dynamic memory - * format - The format of samples to be used in the buffer - * subformat - The sub-format of samples - * maxsamples - The size, in samples, of the buffer - * - * Returned Value: - * None - * - ****************************************************************************/ - -void apb_prepare(struct ap_buffer_s *apb, int8_t allocmode, uint8_t format, - uint8_t subformat, apb_samp_t maxsamples); - /**************************************************************************** * Name: apb_free * diff --git a/nuttx/libc/audio/lib_buffer.c b/nuttx/libc/audio/lib_buffer.c index 036fb0e63..83fda877e 100644 --- a/nuttx/libc/audio/lib_buffer.c +++ b/nuttx/libc/audio/lib_buffer.c @@ -153,19 +153,6 @@ int apb_alloc(FAR struct audio_buf_desc_s *bufdesc) return ret; } -/**************************************************************************** - * Name: apb_prepare - * - * Prepare an AP Buffer for use in the Audio Pipeline. - * - ****************************************************************************/ - -void apb_prepare(FAR struct ap_buffer_s *apb, int8_t allocmode, uint8_t format, - uint8_t subformat, apb_samp_t maxsamples) -{ - /* Perform a reference count decrement and possibly release the memory */ -} - /**************************************************************************** * Name: apb_free * -- cgit v1.2.3