CRAS: Modify dev_running callback

Modify the logic of dev_running() to:
Return 1 when device is still running (playback or
capture), return 0 if not.
Also modify audio_thread who calls dev_running and
interprets the return code.

BUG=None
TEST=None

Change-Id: I642e5e51d90e0b394c6fb25f77d92ed031e296ff
Reviewed-on: https://gerrit.chromium.org/gerrit/63601
Reviewed-by: Chih-Chung Chang <chihchung@chromium.org>
Commit-Queue: Hsinyu Chao <hychao@chromium.org>
Tested-by: Hsinyu Chao <hychao@chromium.org>
5 files changed