mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
[media] pvrusb2: For querystd, start with list of hardware-supported standards
The V4L querystd implementation appears to want to narrow down the list of available standards by starting with a hardware-supported list and then attempting to detect which among those are actually available. Prior to this change in the pvrusb2 driver we started with all possible standards. With this change in place we instead narrow to just the standards that we know the hardware can actually support. For example, this removes the ATSC standards from the list if we aren't dealing with a hybrid device... Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
c0bb609fdc
commit
aeebb1b314
1 changed files with 1 additions and 1 deletions
|
@ -2867,7 +2867,7 @@ static void pvr2_subdev_set_control(struct pvr2_hdw *hdw, int id,
|
||||||
v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw)
|
v4l2_std_id pvr2_hdw_get_detected_std(struct pvr2_hdw *hdw)
|
||||||
{
|
{
|
||||||
v4l2_std_id std;
|
v4l2_std_id std;
|
||||||
std = V4L2_STD_ALL;
|
std = (v4l2_std_id)hdw->std_mask_avail;
|
||||||
v4l2_device_call_all(&hdw->v4l2_dev, 0,
|
v4l2_device_call_all(&hdw->v4l2_dev, 0,
|
||||||
video, querystd, &std);
|
video, querystd, &std);
|
||||||
return std;
|
return std;
|
||||||
|
|
Loading…
Reference in a new issue