agm: update config params if device is not in closed state

- If device is in stopped state, device_open/device_prepare updates just the
  ref_cnt and not device state. This is leading to no update of config params
  and consequently stale device params remain with the device. This is causing
  issues during A2DP to SCO transition as both use the same backend device and
  stale A2DP device params were not cleared.
- This change ensures config params are applied at all the time except when
  device is in closed state. This will also clear the cached config params.

Change-Id: I5c4d4c28b61b023d13aae90cd15cddf0e2e0ce2e
Signed-off-by: Anand Mohan <quic_anamoh@quicinc.com>
1 file changed
tree: 3f75386fd2b01714ced4effeddfab9d97da2208a
  1. ipc/
  2. plugins/
  3. service/
  4. snd_parser/
  5. Android.mk
  6. NOTICE
  7. README.md
README.md

agm

Audio Graph Manager