* ALSA HDMI audio needs to be disabled when 3.5mm jack, DAC, or external
USB audio cards is used. Enable HDMI audio path based on system property
and the set the vc4 audio device name accordingly.
* For some reason underruns are often observed when using the default
parameters. Workaround this by increasing start threshold by 20 ms
(i.e. at 48000Hz there's 960 additional frames in the ring buffer before
the playback starts). Buffer size also needs to be increased to allow
larger start threshold. Balance between avoiding underruns and adding
latency.
* Add logging for the ALSA parameters.
* HDMI audio devices on Raspberry Pi use FORMAT_IEC958_SUBFRAME_LE which
is not supported by tinyalsa used on Android. Use ALSA library and its
virtual vc4 audio devices that use IEC958 plugin to manage the subframe
conversion.
* 48000Hz sample rate is set for output devices in audio policy
configuration. Set the same default sample rate for sanity though this
should not get used for valid profiles.
* Restructure to remove dependencies elsewhere in the AOSP tree, move APEX
definition from subdirectory, 'bpfmt -s -w Andoid.bp', etc.
* Remove package license definitions that are not visible in this context.