diff --git a/ChangeLog b/ChangeLog index be77b5e56f..dd38995afc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6020,3 +6020,8 @@ * drivers/audio/vs1053: VS1053 worker thread stack size is now configurable and assigned a name via pthread_setname_np(). From Ken Pettit (2013-11-10). + * libc/audio/lib_buffer.c: Moved audio/buffer/c to libc/audio/lib_buffer.c. + This file was moved because it contains buffer management functions + that must be available to audio applications. If it was left in the + audio/ directory then it would not be available to applications in the + NuttX Kernel build (2013-11-10). diff --git a/audio/Makefile b/audio/Makefile index 7b34de1ae0..b95e3900be 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -42,7 +42,7 @@ endif DEPPATH = --dep-path . ASRCS = -CSRCS = audio.c buffer.c +CSRCS = audio.c VPATH = . # Include support for various drivers. Each Make.defs file will add its diff --git a/audio/README.txt b/audio/README.txt index 80178865da..be86cacb01 100644 --- a/audio/README.txt +++ b/audio/README.txt @@ -21,13 +21,18 @@ layer for specific lower-half audio device drivers. drivers/audio subdirectory. For each attached audio device, there will be an instance of this upper-half driver bound to the instance of the lower half driver context. + pcm.c - Routines to manage PCM / WAV type data. Currently just a placeholder. + README - This file! + +Portions of the the audio system interface have application interfaces. Those +portions reside in the nuttx/libc/audio directory where the will be built for +access by both OS driver logic and user application logic. Those relevant +files in nuttx/libc/audio include: + buffer.c - Routines to manage creattion and destruction of audio pipeline buffers (apb) used in the audio subsystem. Audio pipeline buffers are passed between user applications and the audio drivers to deliver audio content for playback (or possibly recording in the future). - pcm.c - Routines to manage PCM / WAV type data. Currently just a placeholder. - README - This file! - Related Header Files ^^^^^^^^^^^^^^^^^^^^ diff --git a/libc/Makefile b/libc/Makefile index 2ced86e8c4..a303973e58 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -73,6 +73,7 @@ include spawn/Make.defs include queue/Make.defs include wqueue/Make.defs include misc/Make.defs +include audio/Make.defs BINDIR ?= bin diff --git a/libc/README.txt b/libc/README.txt index ed672d0388..8b1ef9941a 100644 --- a/libc/README.txt +++ b/libc/README.txt @@ -25,6 +25,7 @@ The files in the libc/ directory are organized (mostly) according which file in the include/ directory provides the prototype for library functions. So we have: + audio - This part of the audio system: nuttx/audio/audio.h libgen - libgen.h fixedmath - fixedmath.h math - math.h @@ -44,7 +45,7 @@ There is also a misc/ subdirectory that contains various internal functions and interfaces from header files that are too few to warrant their own sub- directory: - misc - Nonstandard "glue" logic, debug.h, crc32.h, dirent.h + misc - Nonstandard "glue" logic, debug.h, crc32.h, dirent.h Library Database ================ diff --git a/audio/buffer.c b/libc/audio/lib_buffer.c similarity index 99% rename from audio/buffer.c rename to libc/audio/lib_buffer.c index b0b5c6c364..0cd3bd9a0a 100644 --- a/audio/buffer.c +++ b/libc/audio/lib_buffer.c @@ -1,5 +1,5 @@ /**************************************************************************** - * audio/buffer.c + * libc/audio/lib_buffer.c * * Copyright (C) 2013 Ken Pettit. All rights reserved. * Author: Ken Pettit @@ -161,7 +161,6 @@ 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 */ - } /**************************************************************************** @@ -207,4 +206,3 @@ void apb_reference(FAR struct ap_buffer_s *apb) } #endif /* CONFIG_AUDIO */ -