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