[media] hdpvr: fix querystd 'unknown format' return
If no format has been detected, then querystd should return V4L2_STD_UNKNOWN, not V4L2_STD_ALL. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								36b5114653
							
						
					
				
			
			
				commit
				
					
						ab6e134a48
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -613,7 +613,7 @@ static int vidioc_querystd(struct file *file, void *_fh, v4l2_std_id *a)
 | 
				
			||||||
	struct hdpvr_fh *fh = _fh;
 | 
						struct hdpvr_fh *fh = _fh;
 | 
				
			||||||
	int ret;
 | 
						int ret;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	*a = V4L2_STD_ALL;
 | 
						*a = V4L2_STD_UNKNOWN;
 | 
				
			||||||
	if (dev->options.video_input == HDPVR_COMPONENT)
 | 
						if (dev->options.video_input == HDPVR_COMPONENT)
 | 
				
			||||||
		return fh->legacy_mode ? 0 : -ENODATA;
 | 
							return fh->legacy_mode ? 0 : -ENODATA;
 | 
				
			||||||
	ret = get_video_info(dev, &vid_info);
 | 
						ret = get_video_info(dev, &vid_info);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue