Skip to content
Commit fbaee6c0 authored by jiabin's avatar jiabin
Browse files

AS: only dispatch preferred mixer attributes change if the device is found.

When device is disconnected, only dispatch preferred mixer attributes
change if the device is found. When setting the device as connected, it
may not be cached by audio policy manager if there is any lower layer
issue happens while connecting the device. In that case, it may fail to
get AudioDeviceInfo for the disconnected device. To avoid crash,
AudioService should only notify preferred mixer attributes changed when
the disconnected device is found.

Bug: 273894204
Test: connect and disconnect USB devices
Change-Id: I4da7f7cc11336ea40f4f5dc0e042d781b1063733
parent 73ec965c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment