summaryrefslogtreecommitdiff
path: root/nuttx/audio/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-27 07:44:53 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-27 07:44:53 -0600
commit66bc3094e689ff4a96c9ac2755335d45b8765aa1 (patch)
treea25e3cf4f1a61bcd727587fefc2725316c82ee05 /nuttx/audio/Kconfig
parent6dc974b4b0d8423cc9073e425a2e3a4370160df6 (diff)
downloadnuttx-66bc3094e689ff4a96c9ac2755335d45b8765aa1.tar.gz
nuttx-66bc3094e689ff4a96c9ac2755335d45b8765aa1.tar.bz2
nuttx-66bc3094e689ff4a96c9ac2755335d45b8765aa1.zip
Updated audio subsystem from Ken Pettit
Diffstat (limited to 'nuttx/audio/Kconfig')
-rw-r--r--nuttx/audio/Kconfig150
1 files changed, 120 insertions, 30 deletions
diff --git a/nuttx/audio/Kconfig b/nuttx/audio/Kconfig
index 7ce503aaf..ef4bfe779 100644
--- a/nuttx/audio/Kconfig
+++ b/nuttx/audio/Kconfig
@@ -11,53 +11,64 @@ config AUDIO
if AUDIO
-config AUDIO_NCHANNELS
- int "Number of Audio Channels"
- default 2
+config AUDIO_MULTI_SESSION
+ bool "Support multiple sessions"
+ default n
---help---
- Stereo channel support is standard, but some systems may support 5 or 7
- channel capability.
+ Some audio devices, such as USB attached sound cards, may support more
+ than one streaming session at a time (each with one or more audio channels).
+ Selecting this feature adds support for tracking multiple concurrent
+ sessions with the lower-level audio devices.
config AUDIO_LARGE_BUFFERS
bool "Support Audio Buffers with greater than 65K samples"
default n
---help---
- By default, the Audio Pipeline Buffer uses a 16-bit max sample count, limiting
+ By default, the Audio Pipeline Buffers use a 16-bit max sample count, limiting
the number of samples per buffer to 65K. Enable this option to specify a
32-bit max sample count for increased samples / buffer capability.
channel capability.
-config AUDIO_CUSTOM_DEV_PATH
- bool "Use custom device path"
- default n
+config AUDIO_NUM_BUFFERS
+ int "Number of buffers for audio processing"
+ default 2
---help---
- By default, all audio devices on the target are are registered in the
- /dev/audio directory. Select this option to change the default location
- for the device registration.
-
-if AUDIO_CUSTOM_DEV_PATH
+ Specifies the number of buffers to allocate for audio processing.
+ If Driver Specified buffer sizes is enabled (below), then the
+ low-level drivers will have the opportunity to override this
+ value.
+
+config AUDIO_BUFFER_NUMBYTES
+ int "Size of each audio buffer for audio processing"
+ default 8192
+ ---help---
+ Specifies the allocation size for each audio buffer
+ If Driver Specified buffer sizes is enabled (below), then the
+ low-level drivers will have the opportunity to override this
+ value.
-config AUDIO_DEV_ROOT
- bool "Place audio devices in /dev"
+config AUDIO_DRIVER_SPECIFIC_BUFFERS
+ bool "Support for Driver specified buffer sizes"
default n
---help---
- This option causes all device entries to appear in /dev with all the
- other device entries. This option generates the smallest code and
- RAM footprint.
+ By default, the Audio system uses the same size and number of buffers
+ regardless of the specific audio device in use. Specifying 'y' here
+ adds extra code which allows the lower-level audio device to specify
+ a partucular size and number of buffers.
-if !AUDIO_DEV_ROOT
+menu "Supported Audio Formats"
-config AUDIO_DEV_PATH
- string "Base path for Audio devices"
- default "/dev/audio"
+config AUDIO_FORMAT_AC3
+ bool "AC3 Format"
+ default n
---help---
- The path on the target where audio devices are registered. The default
- is to place all audio devices in the /dev/audio/ directory.
+ Build in support for AC3 (Dolby Digital) Audio format.
-endif
-endif
-
-menu "Supported Audio Formats"
+config AUDIO_FORMAT_DTS
+ bool "DTS Format"
+ default n
+ ---help---
+ Add in support for DTS format.
config AUDIO_FORMAT_PCM
bool "PCM Audio"
@@ -67,10 +78,16 @@ config AUDIO_FORMAT_PCM
config AUDIO_FORMAT_MP3
bool "MPEG 3 Layer 1"
- default n
+ default y
---help---
Build in support for MP3 Audio format.
+config AUDIO_FORMAT_MIDI
+ bool "Midi Format"
+ default n
+ ---help---
+ Add in support for MIDI format.
+
config AUDIO_FORMAT_WMA
bool "WMA Format (see copyright notice)"
default n
@@ -85,6 +102,79 @@ config AUDIO_FORMAT_OGG_VORBIS
endmenu
+menu "Exclude Specific Audio Features"
+
+config AUDIO_EXCLUDE_VOLUME
+ bool "Exclude volume controls"
+ default n
+ ---help---
+ Exclude building support for changing the playback volume.
+
+config AUDIO_EXCLUDE_BALANCE
+ bool "Exclude balance controls"
+ default n
+ ---help---
+ Exclude building support for changing the balance.
+
+config AUDIO_EXCLUDE_TONE
+ bool "Exclude tone (bass and treble) controls"
+ default n
+ ---help---
+ Exclude building support for changing the bass and treble.
+
+config AUDIO_EXCLUDE_PAUSE_RESUME
+ bool "Exclude pause and resume controls"
+ default n
+ ---help---
+ Exclude building support for pausing and resuming audio files
+ once they are submitted. If the sound system is being used to play
+ short system notification or error type sounds that typicaly only
+ last a second or two, then there is no need (or chance) to pause or
+ resume sound playback once it has started.
+
+config AUDIO_EXCLUDE_STOP
+ bool "Exclude stop playback controls"
+ default n
+ ---help---
+ Exclude building support for stopping audio files once they are
+ submitted. If the sound system is being used to play short ssytem
+ notification or error type sounds that typicaly only last a second
+ or two, then there is no need (or chance) to stop the sound
+ playback once it has started.
+
+endmenu
+
+config AUDIO_CUSTOM_DEV_PATH
+ bool "Use custom device path"
+ default n
+ ---help---
+ By default, all audio devices on the target are are registered in the
+ /dev/audio directory. Select this option to change the default location
+ for the device registration.
+
+if AUDIO_CUSTOM_DEV_PATH
+
+config AUDIO_DEV_ROOT
+ bool "Place audio devices in /dev"
+ default n
+ ---help---
+ This option causes all device entries to appear in /dev with all the
+ other device entries. This option generates the smallest code and
+ RAM footprint.
+
+if !AUDIO_DEV_ROOT
+
+config AUDIO_DEV_PATH
+ string "Base path for Audio devices"
+ default "/dev/audio"
+ ---help---
+ The path on the target where audio devices are registered. The default
+ is to place all audio devices in the /dev/audio/ directory.
+
+endif
+endif
+
+
# These are here as placeholders of what could be added
if CONFIG_AUDIO_PLANNED