media: vivid: move the detection part out of vivid_create_instance