audio: correct setting sequence

Persist audio calibration delta data should be set
before sending audio calibration.

Bug: 127239681
Test: two scenarios
  - LR swap real time, LR swap offline
  - preset change real time, preset change offline
scenario#1
  1. playback and set preset with low volume
  2. reboot or kill audioserver
  3. playback again and current preset is loud setting
scenario#2
  1. playback and set loud or low volume preset
  2. pause and standby thread
  3. change volume to different preset setting (ex. low -> loud or loud -> low)
  4. resume playback and current preset is incorrect.

Change-Id: Idca3c617d03056b770dbfe8f4b9ab3080e200113
Signed-off-by: Jasmine Cha <chajasmine@google.com>
1 file changed
tree: 1015433960a392ad22806efb8f381ce480534e12
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk
  7. OWNERS