audio: Do not delete PatchRecord before Peer is stopped

- PatchRecord is deleted before the Peer PatchTrack is completely
  stopped which is leading to a crash in getNextBuffer
- Fix is to delete PatchRecord and PatchTrack only after removing
  both of them from active tracks list

Change-Id: I8e982d9eece09c948ed448eb870d78830df1bfa8
nuplayer: Fix PCM offload turning on all the time

 * Remove the extra condition, since this will be set even if
   PCM offload was denied.

Change-Id: I8f33ef68562d8e057e7a86c5ae6187d0049bf3aa
Merge pull request #3 from CyanogenMod/cm-12.0

Merge branch 'cm-12.0' of https://github.com/CyanogenMod/android_frameworks_av into cm-12.0