Routing to usb was rejected due to incorrect card number

Fixes regression introduced by: f9f241e45e5a76458e5f5596bca495317981ca3a

The card number is updated by adev_set_parameters,
that is called after out_set_parameters.
As a result, out_set_parameters was using the wrong card number to check
for the card presence (in an attempt to ignore rerouting to an unplug
card).
Thus all routing to USB we denied.

Bug: 64532887
Test: Plug and unplug usb headset (skylab) during Photo playback,
      Youtube, Play music and voice call.
Change-Id: I148a0b35067703e6ba3ca3414d3afe9cf6718dc0
Signed-off-by: Kevin Rocard <krocard@google.com>
1 file changed
tree: 82150bc3ec62892d911603dede3f008683470714
  1. hal/
  2. legacy/
  3. post_proc/
  4. visualizer/
  5. voice_processing/
  6. Android.mk