audio policy: fix scanning of supported devices

Fix is a bug in checkOutputsForDevice() which makes that we can
try to reopen an output stream after a new device is connected because
we believe that no opened output is available for this device.

Bug 7369475.

Change-Id: I2290a9b5ba102657cda495fbb8a995e0003b883a
1 file changed