PAL: switch to default device first when disconnecting headset

When headset disconnected, the music playback paused and then
the audio policy manager sent "routing=0", but if the headset
connected back before the standby time, it could not switch to
headset anymore when resuming playback since current pal device
was same with new coming device.

Switch to default device first if receiving "routing = 0" when
disconnecting headset until APM updates new device to HAL.

Change-Id: I60f20b7e434d97e8ce2075e768ae8b4b4e5de281
(cherry picked from commit bf31c36ddcacb6a7aa48e393e88f25d440cf05a7)
3 files changed