Loading
audio: fix SAD and SAM inconsistent after audioserver crash
When restoring setting after audioserver crash 1. The setHdmiSystemAudioSupported doesn't setForceUse with SAM because the setting value is equal to mHdmiSystemAudioSupported. 2. The SAD is stored in the AudioDescriptor, but AudioDescriptor isn't pass to native layer. Adjust logic to ensure that SAM and AudioDescriptor can set to native layer when restoring setting after the crash. Flag: EXEMPT bugfix Bug: 412816152 Test: manual (cherry picked from https://android-review.googlesource.com/q/commit:c8c71a45626b84c079b877e656a228f12de491d7) Change-Id: Idb16a66f087d8558d7bd26048f1d7284acfb5dd8