diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-11-11 08:14:56 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-11-11 08:14:56 -0600 |
commit | f81df8494bfc78d3a1143b1bfb1997b6776824ac (patch) | |
tree | e10ee35850397e9311250a5c443819647ab03a63 | |
parent | cfaceab9314f9d7dd694b251462e08863bbfc0d6 (diff) | |
download | px4-nuttx-f81df8494bfc78d3a1143b1bfb1997b6776824ac.tar.gz px4-nuttx-f81df8494bfc78d3a1143b1bfb1997b6776824ac.tar.bz2 px4-nuttx-f81df8494bfc78d3a1143b1bfb1997b6776824ac.zip |
Remove unused apb_prepare function
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/audio/audio.h | 26 | ||||
-rw-r--r-- | 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 @@ -685,28 +683,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 * * Free's a previously allocated or referenced Audio Pipeline Buffer 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 @@ -154,19 +154,6 @@ int apb_alloc(FAR struct audio_buf_desc_s *bufdesc) } /**************************************************************************** - * 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 * * Free's a previously allocated or referenced Audio Pipeline Buffer |