AudioManager: fix device callbacks when native audio server restarts
Fix device comparison when creating the list of added or removed devices in broadcastDeviceListChange_sync(): compare only type and address as the port ID changes when the native audio server restarts. Also reload the device port cache when the native audio server death notification is received in the AudioPortEventHandler instead of doing it later n the OnAmPortUpdateListener callback. This avoids sending spurious audio device removed/added callbacks to clients. Bug: 378032953 Test: restart audioserver multiple times Flag: EXEMPT bug fix Change-Id: I8a36c240be0ab8d5e78e8ae4566412d850cf361e
Loading
Please register or sign in to comment