service: graph: Fix state handling in graph_stop

When graph_stop() is called in prepared state, it does
not close device SG during session_disconnect_aif and
returns failure. Due to this, session does not connect
to new device and device switch fails.
Handle graph_stop() in prepared/stopped state called from
session_disconnect_aif to avoid failures.

Change-Id: Ib0ae45f97feec249de10327a626ae7478a342ea0
1 file changed
tree: faa86992d51214a7262fd1d1943abe2e44fd838f
  1. ipc/
  2. plugins/
  3. service/
  4. snd_parser/
  5. Android.mk
  6. NOTICE
  7. README.md
README.md

agm

Audio Graph Manager