HDMI: Avoid creating multiple local devices with the same type
Do not clear the local devices list when the address allocation starts, but replace the local devices in the network as they are allocated. After the allocation, local devices with types that weren't allocated are removed. E.g.: Step 1. Dynamic soundbar mode is enabled -> two local devices are allocated (playback + audio system). Step 2. Dynamic soundbar mode is disabled -> only one local device is allocated (playback), therefore the local device audio system can be removed. Test: atest HdmiControlServiceTest Bug: 297312959 Bug: 297349911 Change-Id: I2778b3f5e2581f79a4d899af8025f4b248fe8375
Loading
Please register or sign in to comment