Lines Matching defs:std

482 	}, {	/* Activates video std autodetection for all standards */
683 v4l2_std_id std = decoder->norm;
687 if (std == V4L2_STD_ALL) {
690 } else if (std & V4L2_STD_625_50) {
726 v4l2_std_id std = decoder->norm;
731 if (std == V4L2_STD_ALL) {
734 } else if (std & V4L2_STD_625_50) {
759 static int tvp5150_set_std(struct v4l2_subdev *sd, v4l2_std_id std)
764 /* First tests should be against specific std */
766 if (std == V4L2_STD_NTSC_443) {
768 } else if (std == V4L2_STD_PAL_M) {
770 } else if (std == V4L2_STD_PAL_N || std == V4L2_STD_PAL_Nc) {
774 if (std & V4L2_STD_NTSC)
776 else if (std & V4L2_STD_PAL)
778 else if (std & V4L2_STD_SECAM)
782 dev_dbg_lvl(sd->dev, 1, debug, "Set video std register to %d.\n", fmt);
787 static int tvp5150_g_std(struct v4l2_subdev *sd, v4l2_std_id *std)
791 *std = decoder->norm;
796 static int tvp5150_s_std(struct v4l2_subdev *sd, v4l2_std_id std)
802 if (decoder->norm == std)
812 * Check if requested std or group of std's is/are supported by the
815 if ((supported_stds & std) == 0)
819 if (std & V4L2_STD_525_60)
824 /* Set only the specific supported std in case of group of std's. */
825 decoder->norm = supported_stds & std;
827 return tvp5150_set_std(sd, std);
952 v4l2_std_id std;
958 std = tvp5150_read_std(sd);
960 std = decoder->norm;
963 tvp5150_set_std(sd, std);
1016 static void tvp5150_set_default(v4l2_std_id std, struct v4l2_rect *crop)
1022 if (std & V4L2_STD_525_60)
1074 v4l2_std_id std;
1078 std = tvp5150_read_std(sd);
1080 std = decoder->norm;
1082 return (std & V4L2_STD_525_60) ?
1164 v4l2_std_id std;
1174 std = tvp5150_read_std(sd);
1176 std = decoder->norm;
1177 if (std & V4L2_STD_525_60)
1214 v4l2_std_id std;
1221 std = tvp5150_read_std(sd);
1222 if (std != decoder->detected_norm) {
1223 decoder->detected_norm = std;
1224 tvp5150_set_default(std, &decoder->rect);