v4l2: move capture code to device object