Revert "Revert "pcm: add support for pcm_ioctl() api""

 * At least one thing still wants this.

This reverts commit 0faa063518b2e15e4447fc6b932a8a6925e3c8b4.

Change-Id: I656940cb0bd6dd1f354f6a104a2d89c9922340a0