audioflinger: clean previously opened input selectedDeviceId if retrying

selectedDeviceId is not cleaned when retrying open input.
and will add this selectedDeviceId into input routing.
Which will cause getDeviceForInputSource() not doing
mEngine->getDeviceForInputSource() but only return
route->mDeviceDescriptor->type() and failed to route to
the correct device.
Test: self-test routing is corrected.

Bug:79332409
Test: routing is corrected.
Change-Id: Ia85c773f3549befb929178469116dc2d4e4945ad
1 file changed