hal: fix output stream configuration checks
Make properties (sample rate, channel mask and format) check consistent
in adev_open_output_stream:
- each use case checks its range and applies its defaults
- make sure all properties are set in out struct before use
- make sure ALSA driver pcm config is consistent with config in out struct
- make sure returned config reflects actual config or preferred
config in case of error.
Test: make
Change-Id: I0d034fec559ee8bbb8b0a104431cd1fe7fba95de
1 file changed