/* Sanitize the service_lines in *fmt per the video std, and return 1 if any service_line is left as valid after santization  */
static int check_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
/* Sanitize the service_lines in *fmt per the video std, and return 1 if any service_line is left as valid after santization  */
static int check_service_set(struct v4l2_sliced_vbi_format *fmt, int is_pal)
{
	int f, l;
	u16 set = 0;
	for (f = 0; f < 2; f++) {
		for (l = 0; l < 24; l++) {
			fmt->service_lines[f][l] = select_service_from_set(f, l, fmt->service_lines[f][l], is_pal);
			set |= fmt->service_lines[f][l];
		}
	}
	return set != 0;
}