Moved audio/buffer.c to libc/audio/lib_buffer.c so that it can be shared betweent he OS and applications in a kernel build
This commit is contained in:
parent
926e91555d
commit
8b73558ad7
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
================
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* audio/buffer.c
|
||||
* libc/audio/lib_buffer.c
|
||||
*
|
||||
* Copyright (C) 2013 Ken Pettit. All rights reserved.
|
||||
* Author: Ken Pettit <pettitkd@gmail.com>
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue