pal: skip a2dp reconfiguration if a2dp is in suspended state

Reconfig process involves suspending of a2dp streams and then resuming
it on a2dp. In scenarios where there is a delay in setting SCO mode
after a2dp is suspended, APM will send routing to A2dp for some streams.
Start of stream over A2dp is handled during suspend by switching to
Speaker/Handset in stream start. If reconfigA2dp setparam is received
when stream is in open state and not started, reconfig will proceed as
after stream open stream is considered as active. Reconfiguration will
try to switch previously suspended streams to A2dp during resume part
which is not correct as A2dp is suspended.

Fixed this by checking a2dpSuspended state is false before starting
reconfiguration.

Change-Id: Iab6ec08ec09effa248cac7e8c7e4778d23bc1f28
1 file changed