)]}'
{
  "commit": "d11442b6e4521d825779dd55494509e046f2c9f8",
  "tree": "e0aab3cd028428ddb9266ef55d98486cfd4fc59a",
  "parents": [
    "8debb9f333ed410669e3acbd0fb5cb7d694a2bad"
  ],
  "author": {
    "name": "Francois Gaffie",
    "email": "francois.gaffie@renault.com",
    "time": "Mon Apr 27 11:51:09 2020 +0200"
  },
  "committer": {
    "name": "Francois Gaffie",
    "email": "francois.gaffie@renault.com",
    "time": "Thu Aug 13 13:04:39 2020 +0200"
  },
  "message": "AudioPolicy: manager: force gain on startSource when using HW Gain\n\nWhen a setVolume is called for a given volume source on a SwOutput,\nand if the SwOutput is connected to a device using HW Gain, the sync\nof the gain on AudioHAL is guarded by the activity of this volume source.\n\nWhen a new index is applied on a given volume source, if this source is\nnot active, the new index is cached but is not synced on AudioHAL.\n\nHence, once a client (aka a source) starts on a SwOutput,\nSwAudioOutputDescriptor::setVolume is called, but as index has not changed,\nsetVolume will bail out before applying the gain to the AudioHAL.\n\nThis CL forces to sync the volume upon startSource event if the SwOutput\ninvolved is connected to a device with HW Gain enabled.\n\nTest: build \u0026 basic audio tests.\n\nSigned-off-by: Francois Gaffie \u003cfrancois.gaffie@renault.com\u003e\nChange-Id: Ief1d5314b7970de78298750550320e329283ee1a\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "55f5b9a0b72bbe55fa1325cf0116d6f96567083b",
      "old_mode": 33188,
      "old_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp",
      "new_id": "13757608277c284539cd22dd8f5a7af646c7129f",
      "new_mode": 33188,
      "new_path": "services/audiopolicy/managerdefault/AudioPolicyManager.cpp"
    }
  ]
}
