Lines Matching defs:vi
1088 struct video_input *vi)
1090 vi->index = input->index;
1091 strlcpy(vi->name, input->name, sizeof(vi->name));
1094 vi->type = VIDEO_INPUT_TYPE_TUNER;
1097 vi->type = VIDEO_INPUT_TYPE_CAMERA;
1100 vi->audiomask = input->audioset;
1101 vi->tuner_index = input->tuner;
1102 vi->standards = input->std; /* ... values are the same */
1103 vi->status = 0;
1105 vi->status |= VIDEO_STATUS_NO_POWER;
1107 vi->status |= VIDEO_STATUS_NO_SIGNAL;
1109 vi->status |= VIDEO_STATUS_NO_COLOR;
1111 vi->status |= VIDEO_STATUS_NO_HLOCK;
1113 vi->status |= VIDEO_STATUS_MACROVISION;
1117 video_input_to_v4l2_input(const struct video_input *vi,
1120 input->index = vi->index;
1121 strlcpy(input->name, vi->name, sizeof(input->name));
1122 switch (vi->type) {
1130 input->audioset = vi->audiomask;
1131 input->tuner = vi->tuner_index;
1132 input->std = vi->standards; /* ... values are the same */
1134 if (vi->status & VIDEO_STATUS_NO_POWER)
1136 if (vi->status & VIDEO_STATUS_NO_SIGNAL)
1138 if (vi->status & VIDEO_STATUS_NO_COLOR)
1140 if (vi->status & VIDEO_STATUS_NO_HLOCK)
1142 if (vi->status & VIDEO_STATUS_MACROVISION)
1150 struct video_input vi;
1164 v4l2_input_to_video_input(input, &vi);
1166 err = hw->enum_input(sc->hw_softc, input->index, &vi);
1170 video_input_to_v4l2_input(&vi, input);
1179 struct video_input vi;
1190 v4l2_input_to_video_input(&input, &vi);
1192 err = hw->get_input(sc->hw_softc, &vi);
1196 video_input_to_v4l2_input(&vi, &input);
1206 struct video_input vi;
1217 v4l2_input_to_video_input(&input, &vi);
1219 return hw->set_input(sc->hw_softc, &vi);