hardware/alsa_sound: Fix LPA and gtalk voip call concurrency issue.
- During LPA Playback,launching gtalk and making a voip call
results in continuous pcm_write errors.
- When gtalk voip call is launched, LPAPlayer pauses and calls
HAL close. This Close call is resetting the Voip Stream count
and resulting in wrong handle being passed in the pcm_write.
- Fix pcm write and read recovery code for voip which is
trigger wrong sequence.
- Fix concurrency issue by resetting the count only with valid Voip
useCase.
Change-Id: Ic18269c2d56d61bea63a3d923f457ed7d16ec8ad
CRs-fixed: 338398
3 files changed