pcm: add support for pcm_ioctl() api

Tinyalsa doesn't expose an api to call ioctls exposed by
the audio drivers. Add pcm_ioctl() api.

Change-Id: Ie519840671f858c23b0acea7155b365c0d9ca59a
(cherry picked from commit bf0ff7a28a8c85508c0bbd1de46e085632fa3579)
(cherry picked from commit 72deed2f35003610748f5d61863348219ddbdd85)
(cherry picked from commit 3a0912fa06d3d1383b9ef84914c8eb864fe11136)