CM_OPEN_CAPTURE
err = open_device_check(cm, CM_OPEN_CAPTURE, substream);
close_device_check(cm, CM_OPEN_CAPTURE);