2013-05-19 23:12:28 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2013-05-19 23:12:28 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
config AUDIO
|
|
|
|
bool "Audio Support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables overall support for Audio library.
|
|
|
|
|
|
|
|
if AUDIO
|
|
|
|
|
2018-08-27 17:03:09 +02:00
|
|
|
config AUDIO_COMP
|
|
|
|
bool "Support audio composition"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Composite several lower level audio devices into big one.
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_MULTI_SESSION
|
|
|
|
bool "Support multiple sessions"
|
|
|
|
default n
|
2013-05-19 23:12:28 +02:00
|
|
|
---help---
|
2013-10-27 14:44:53 +01:00
|
|
|
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.
|
2013-05-19 23:12:28 +02:00
|
|
|
|
2014-07-24 16:28:10 +02:00
|
|
|
menu "Audio Buffer Configuration"
|
|
|
|
|
2013-05-19 23:12:28 +02:00
|
|
|
config AUDIO_LARGE_BUFFERS
|
|
|
|
bool "Support Audio Buffers with greater than 65K samples"
|
|
|
|
default n
|
|
|
|
---help---
|
2013-10-27 14:44:53 +01:00
|
|
|
By default, the Audio Pipeline Buffers use a 16-bit max sample count, limiting
|
2013-05-19 23:12:28 +02:00
|
|
|
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.
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_NUM_BUFFERS
|
|
|
|
int "Number of buffers for audio processing"
|
|
|
|
default 2
|
2013-05-21 21:13:05 +02:00
|
|
|
---help---
|
2013-10-27 14:44:53 +01:00
|
|
|
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.
|
2013-05-21 21:13:05 +02:00
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_DRIVER_SPECIFIC_BUFFERS
|
|
|
|
bool "Support for Driver specified buffer sizes"
|
2013-05-21 21:13:05 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2013-10-27 14:44:53 +01:00
|
|
|
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
|
2018-07-09 02:24:45 +02:00
|
|
|
a particular size and number of buffers.
|
2013-05-21 21:13:05 +02:00
|
|
|
|
2014-07-24 16:28:10 +02:00
|
|
|
endmenu # Audio Buffer Configuration
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
menu "Supported Audio Formats"
|
2013-05-21 21:13:05 +02:00
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_FORMAT_AC3
|
|
|
|
bool "AC3 Format"
|
|
|
|
default n
|
2013-05-21 21:13:05 +02:00
|
|
|
---help---
|
2013-10-27 14:44:53 +01:00
|
|
|
Build in support for AC3 (Dolby Digital) Audio format.
|
2013-05-21 21:13:05 +02:00
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_FORMAT_DTS
|
|
|
|
bool "DTS Format"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Add in support for DTS format.
|
2013-05-19 23:12:28 +02:00
|
|
|
|
|
|
|
config AUDIO_FORMAT_PCM
|
|
|
|
bool "PCM Audio"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Build in support for PCM Audio format.
|
|
|
|
|
2020-10-07 10:12:55 +02:00
|
|
|
if AUDIO_FORMAT_PCM
|
|
|
|
|
|
|
|
config AUDIO_FORMAT_RAW
|
|
|
|
bool "Raw mode"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Raw mode makes the PCM decoder skip trying to parse received
|
|
|
|
data for a PCM header. All data is sent to the audio driver
|
|
|
|
directly.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2013-05-19 23:12:28 +02:00
|
|
|
config AUDIO_FORMAT_MP3
|
|
|
|
bool "MPEG 3 Layer 1"
|
2013-10-27 14:44:53 +01:00
|
|
|
default y
|
2013-05-19 23:12:28 +02:00
|
|
|
---help---
|
|
|
|
Build in support for MP3 Audio format.
|
|
|
|
|
2023-08-07 13:26:40 +02:00
|
|
|
config AUDIO_FORMAT_SBC
|
2023-08-07 19:54:24 +02:00
|
|
|
bool "Bluetooth SubBand Coding"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Build in support for SBC Audio format.
|
2023-08-07 13:26:40 +02:00
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_FORMAT_MIDI
|
|
|
|
bool "Midi Format"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Add in support for MIDI format.
|
|
|
|
|
2013-05-19 23:12:28 +02:00
|
|
|
config AUDIO_FORMAT_WMA
|
|
|
|
bool "WMA Format (see copyright notice)"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Add in support for Microsoft Windows Media format.
|
|
|
|
|
|
|
|
config AUDIO_FORMAT_OGG_VORBIS
|
|
|
|
bool "Ogg Vorbis format"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Build in support for the Open Source Ogg Vorbis format.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
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.
|
|
|
|
|
2014-07-24 16:28:10 +02:00
|
|
|
config AUDIO_EXCLUDE_EQUALIZER
|
|
|
|
bool "Exclude equalizer controls"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Exclude building support for setting equalization.
|
|
|
|
|
|
|
|
config AUDIO_EQUALIZER_NBANDS
|
|
|
|
int "Number of equalizer bands"
|
|
|
|
default 8
|
|
|
|
depends on !AUDIO_EXCLUDE_EQUALIZER
|
|
|
|
---help---
|
|
|
|
If equalizer support is not excluded, then it will be necessary to
|
|
|
|
provide the (maximum) number of equalization bands to be supported.
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
config AUDIO_EXCLUDE_TONE
|
|
|
|
bool "Exclude tone (bass and treble) controls"
|
2023-07-15 19:04:21 +02:00
|
|
|
default !AUDIO_EXCLUDE_EQUALIZER
|
2013-10-27 14:44:53 +01:00
|
|
|
---help---
|
2014-07-24 16:28:10 +02:00
|
|
|
Exclude building support for changing the bass and treble. Normally
|
|
|
|
you would not select both tone controls and equalizer support unless
|
|
|
|
your underlying hardware supports both options.
|
2013-10-27 14:44:53 +01:00
|
|
|
|
|
|
|
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
|
2018-07-09 02:24:45 +02:00
|
|
|
short system notification or error type sounds that typically only
|
2013-10-27 14:44:53 +01:00
|
|
|
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
|
2018-07-09 02:24:45 +02:00
|
|
|
submitted. If the sound system is being used to play short system
|
2014-07-24 16:28:10 +02:00
|
|
|
notification or error type sounds that typically only last a second
|
2013-10-27 14:44:53 +01:00
|
|
|
or two, then there is no need (or chance) to stop the sound
|
|
|
|
playback once it has started.
|
|
|
|
|
2014-07-24 16:28:10 +02:00
|
|
|
config AUDIO_EXCLUDE_FFORWARD
|
|
|
|
bool "Exclude fast forward controls"
|
2023-07-15 19:04:21 +02:00
|
|
|
default AUDIO_EXCLUDE_STOP
|
2014-07-24 16:28:10 +02:00
|
|
|
---help---
|
|
|
|
Exclude building support for fast forwarding through audio files
|
|
|
|
once they are submitted. Selecting this option would only make
|
|
|
|
if the underlying audio decoding logic is capable of sub-sampling
|
|
|
|
in the stream of audio data.
|
|
|
|
|
|
|
|
config AUDIO_EXCLUDE_REWIND
|
|
|
|
bool "Exclude rewind controls"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Rewind may be supported by some audio devices, but not the typical
|
|
|
|
device that receives a non-seekable, stream of audio buffers.
|
|
|
|
|
2013-10-27 14:44:53 +01:00
|
|
|
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
|
|
|
|
|
2013-05-21 21:13:05 +02:00
|
|
|
# These are here as placeholders of what could be added
|
2013-05-19 23:12:28 +02:00
|
|
|
|
2015-02-27 23:20:28 +01:00
|
|
|
if AUDIO_PLANNED
|
2013-05-19 23:12:28 +02:00
|
|
|
|
|
|
|
config AUDIO_MIXER
|
|
|
|
bool "Planned - Enable support for the software based Audio Mixer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The Audio mixer is a software-only based component that can be used
|
|
|
|
to perform audio channel or device mixing.
|
|
|
|
|
|
|
|
config AUDIO_MIDI_SYNTH
|
2018-07-09 02:24:45 +02:00
|
|
|
bool "Planned - Enable support for the software-based MIDI synthesizer"
|
2013-05-19 23:12:28 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2018-07-09 02:24:45 +02:00
|
|
|
Builds a simple MIDI synthesizer.
|
2013-05-19 23:12:28 +02:00
|
|
|
|
|
|
|
config AUDIO_OUTPUT_JACK_CONTROL
|
|
|
|
bool "Planned - Enable support for output jack control"
|
|
|
|
default n
|
|
|
|
---help---
|
2018-07-09 02:24:45 +02:00
|
|
|
Builds a simple MIDI synthesizer.
|
2013-05-19 23:12:28 +02:00
|
|
|
|
|
|
|
config AUDIO_FONT
|
|
|
|
bool "Planned - Enable support for the Audio Font"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
The Audio font provides common audio symbols.
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|