Skip to content
Commit 2c9add72 authored by Ramjee Singh's avatar Ramjee Singh Committed by Gerrit - the friendly Code Review server
Browse files

audiopolicy: Check open outputs count before closing.

- In compress offload session subsystem restart triggers
  invalidaton. For direct or compress session NuPlayer
  is notified as track cant be restored and it restarts
  session with direct attributes which fails again as sound
  card is offline and output descriptor is closed on this
  failed attempt. While closing the output descriptor its
  open count is checked and if its less than 1 its logged
  as fatal.

- Fix is to avoid closing of output descriptor if its
  not opened successfully.

Change-Id: I0456edcbdea483a5620a33aca5d4da2b93b04589
parent 177e6ea9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment