Move PCM debug logs to proper place
Depending on the compiler optimizations and the order of operations, evaluating pcm_update(pcm) in this condition could end up printing PCM debug lines even when pcm%run_pcm was set to false.
Edited  by Meisam Tabriz