hal: Fix SSR issue for compress offload playback

- Do not close compress sessions when sound card is
  offline.

Change-Id: Ia894fef132ef92390aa732e88ff27c51cb63c9b1
This commit is contained in:
Mingming Yin 2015-12-15 21:00:08 -08:00 committed by Gerrit - the friendly Code Review server
parent 54ae37c972
commit c6e151114d
1 changed files with 0 additions and 2 deletions

View File

@ -3410,8 +3410,6 @@ static int adev_set_parameters(struct audio_hw_device *dev, const char *kvpairs)
struct audio_usecase *usecase;
ALOGD("Received sound card OFFLINE status");
set_snd_card_state(adev,SND_CARD_STATE_OFFLINE);
//close compress sessions on OFFLINE status
close_compress_sessions(adev);
} else if (strstr(snd_card_status, "ONLINE")) {
ALOGD("Received sound card ONLINE status");
set_snd_card_state(adev,SND_CARD_STATE_ONLINE);