mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 06:55:13 +08:00
media: usbtv: Use the constant for supported standards
Use the USBTV_TV_STD define instead of repeating ourselves. Signed-off-by: Hugo Grostabussiat <bonstra@bonstra.fr.eu.org> Signed-off-by: Hans Verkuil <hansverk@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
bed6d27bcf
commit
15b4c54ea4
@ -670,8 +670,7 @@ static int usbtv_s_std(struct file *file, void *priv, v4l2_std_id norm)
|
||||
int ret = -EINVAL;
|
||||
struct usbtv *usbtv = video_drvdata(file);
|
||||
|
||||
if ((norm & V4L2_STD_525_60) || (norm & V4L2_STD_PAL) ||
|
||||
(norm & V4L2_STD_SECAM))
|
||||
if (norm & USBTV_TV_STD)
|
||||
ret = usbtv_select_norm(usbtv, norm);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user