[Feature] add capture device support

Add support for audio capture. Patch authored by edudev in support of a fix to SL #800.