Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4dcc109a authored by Jasmine Cha's avatar Jasmine Cha Committed by Aniket Kumar Lata
Browse files

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: default avatarJasmine Cha <chajasmine@google.com>
(cherry picked from commit fb2ea2c3d7e61ab4a66d3fdbf0fbdc8d099a0618)
parent 94c75974
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1069,6 +1069,8 @@ int enable_audio_route(struct audio_device *adev,
    audio_extn_sound_trigger_update_stream_status(usecase, ST_EVENT_STREAM_BUSY);
    audio_extn_listen_update_stream_status(usecase, LISTEN_EVENT_STREAM_BUSY);
    audio_extn_utils_send_app_type_cfg(adev, usecase);
    if (audio_extn_is_maxx_audio_enabled())
        audio_extn_ma_set_device(usecase);
    audio_extn_utils_send_audio_calibration(adev, usecase);
    if ((usecase->type == PCM_PLAYBACK) && is_offload_usecase(usecase->id)) {
        out = usecase->stream.out;