Revert "Revert "some DSP fixes""

This reverts commit 9b6aa5a838abf49ddd42995938cbae0d3365ca4d.

Revert "some DSP fixes"

This reverts commit
8cd74fbb49b3cefda465b8332ef8e75369fcdc8a.

some DSP fixes