Take notes by yourself. The level is limited for your reference only.
# Audio policy configuration for generic device builds (goldfish audio Hal-emulator) # This is the audio policy configuration of the simulator # global configuration section: lists input and output devices always present on the device # as well as the output device selected by default. # devices are designated by a string that corresponds to the enum in audio. h # global configuration: lists the input and output devices that always exist on the device. It is also the default output device. # The input and output devices must be audio. the enumerated type global listed in H _ Configuration {attached_output_devices audio_device_out_speaker default_output_device audio_device_out_speaker extends | strong} # audio hardware module section: Contains descriptors for all audio HW modules present on the device. each HW module node is named after the corresponding HW module library base name. # For instance, "prima Ry "corresponds to audio. primary. <device>. so. # The "primary" module is mandatory and must include at least one output with # audio_output_flag_primary flag. # Each module descriptor contains one or more output profile descriptors and zero or more # input profile descriptors. each profile lists all the parameters supported by a given output # Or input stream category. # The "channel_masks", "Formats "," Devices "and" Flags "are specified using strings corresponding # To enums in audio. H and audio_policy.h. they are concatenated by use of "|" without space or "\ n ". # audio hardware module: Contains descriptors for all audio HW modules on the device. The name of each HW module node # Corresponds to the corresponding so library name. For example: "primary" corresponds to audio. primary. <device>. so. Where "primary" module is # required, and it must contain an output containing the audio_output_flag_primary flag, each module's descriptor must contain at least # One output configuration Descriptor and one input configuration descriptor greater than or equal to 0. Each configuration describes the parameters supported by the input/output stream type, the "channel_masks", "Formats", "devices", and "Flags" must be audio. h. The # values defined in audio_policy.h can be connected through |, but cannot contain spaces or "\ n ". Principal {primary {outputs {primary {sampling_rates 44100 channel_masks incluformats includevices %flags %}} inputs {primary {%8000 | 16000 channel_masks %formats %devices %}} r_submix {outputs {submix {sampling_rates 48000 channel_masks audio_channel_out_stereo formats firmware devices }} inputs {submix {sampling_rates 48000 channel_masks required formats required devices required }}}}
Description of audio_policy.conf)