Version of the interface the hal implements.
There should be one section per audio HW module present on the platform.
Each contains two mandatory tags: “halVersion” and “name”.
The module "name" is the same as in previous .conf file.
Each module must contain the following sections:
- : a list of device descriptors for all
input and output devices accessible via this module.
This contains both permanently attached devices and removable devices.
- : listing all output and input streams exposed by the audio HAL
- : list of possible connections between input
and output devices or between stream and devices.
A is defined by a set of 3 attributes:
-"type": mux|mix means all sources are mutual exclusive (mux) or can be mixed (mix)
-"sink": the sink involved in this route
-"sources": all the sources than can be connected to the sink via this route
- : permanently attached devices.
The attachedDevices section is a list of devices names.
Their names correspond to device names defined in "devicePorts" section.
- is the device to be used when no policy rule applies
"|" separated list of audio_output_flags_t or audio_input_flags_t.
When choosing the mixPort of an audio track, the audioPolicy
first considers the mixPorts with a preferredUsage including
the track AudioUsage preferred .
If non support the track format, the other mixPorts are considered.
Eg: a will receive
the audio of all apps playing with a MEDIA usage.
It may receive audio from ALARM if there are no audio compatible
.
Comma (",") separated list of channel flags
from audio_channel_mask_t.
The default device will be used if multiple have the same type
and no explicit route request exists for a specific device of
that type.
List all available sources for a given sink.
Comma separated pair of number.
The fist one is the framework level (between 0 and 100).
The second one is the volume to send to the HAL.
The framework will interpolate volumes not specified.
Their MUST be at least 2 points specified.
Volume section defines a volume curve for a given use case and device category.
It contains a list of points of this curve expressing the attenuation in Millibels
for a given volume index from 0 to 100.
0,-9600
100,0
It may also reference a reference/@name to avoid duplicating curves.
0,-9600
100,0