audiopolicy: use profile flags during opening an input

During the device connection and new module availability, when inputs
are opened, use port specific flags so, HAL can open related mix port
otherwise every request opens the primary input profile.

Flag: EXEMPT bugfix
Bug: 345692843
Test: connect an external device, check opened inputs, verify logs.
Change-Id: I1493ccdd61d33cd1b257afde4d083a73c6410361
Merged-In: I1493ccdd61d33cd1b257afde4d083a73c6410361
1 file changed