v4l2 wrapper for yami

duplicate logical, better use one function