Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 869625 Details for
Bug 844999
Image upside-down on Asus F7S
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
PATCH 1/2: libv4lcontrol: Check control_flags before doing wildcard maching on upside_down
0001-libv4lcontrol-Check-control_flags-before-doing-wildc.patch (text/plain), 2.38 KB, created by
Hans de Goede
on 2014-03-02 14:01:32 UTC
(
hide
)
Description:
PATCH 1/2: libv4lcontrol: Check control_flags before doing wildcard maching on upside_down
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2014-03-02 14:01:32 UTC
Size:
2.38 KB
patch
obsolete
>From 7497d21099e1159c901fd795849a55ec55edff05 Mon Sep 17 00:00:00 2001 >From: Hans de Goede <hdegoede@redhat.com> >Date: Sun, 2 Mar 2014 14:55:36 +0100 >Subject: [PATCH 1/2] libv4lcontrol: Check control_flags before doing wildcard > maching on upside_down > >Check the more specific control_flags table before doing wildcard maching on >entries in the upside_down table, and if there is a match in the control_flags >table skip the upside_down table. > >This way the control flags table can be used to override false positives caused >by the upside_down table wildcard matching. > >Signed-off-by: Hans de Goede <hdegoede@redhat.com> >--- > lib/libv4lconvert/control/libv4lcontrol.c | 20 +++++++++++--------- > 1 file changed, 11 insertions(+), 9 deletions(-) > >diff --git a/lib/libv4lconvert/control/libv4lcontrol.c b/lib/libv4lconvert/control/libv4lcontrol.c >index 088e936..e09159d 100644 >--- a/lib/libv4lconvert/control/libv4lcontrol.c >+++ b/lib/libv4lconvert/control/libv4lcontrol.c >@@ -528,15 +528,6 @@ static void v4lcontrol_get_flags_from_db(struct v4lcontrol_data *data, > v4lcontrol_get_dmi_string(sysfs_prefix, "board_version", dmi_board_version, > sizeof(dmi_board_version)); > >- for (i = 0; i < ARRAY_SIZE(upside_down); i++) >- if (find_dmi_string(upside_down[i].board_vendor, dmi_board_vendor) && >- find_dmi_string(upside_down[i].board_name, dmi_board_name) && >- find_usb_id(upside_down[i].camera_id, vendor_id, product_id)) { >- /* found entry */ >- data->flags |= V4LCONTROL_HFLIPPED | V4LCONTROL_VFLIPPED; >- break; >- } >- > for (i = 0; i < ARRAY_SIZE(v4lcontrol_flags); i++) > if (v4lcontrol_flags[i].vendor_id == vendor_id && > v4lcontrol_flags[i].product_id == >@@ -557,6 +548,17 @@ static void v4lcontrol_get_flags_from_db(struct v4lcontrol_data *data, > !strcmp(v4lcontrol_flags[i].dmi_board_version, dmi_board_version))) { > data->flags |= v4lcontrol_flags[i].flags; > data->flags_info = &v4lcontrol_flags[i]; >+ /* Entries in the v4lcontrol_flags table override >+ wildcard matches in the upside_down table. */ >+ return; >+ } >+ >+ for (i = 0; i < ARRAY_SIZE(upside_down); i++) >+ if (find_dmi_string(upside_down[i].board_vendor, dmi_board_vendor) && >+ find_dmi_string(upside_down[i].board_name, dmi_board_name) && >+ find_usb_id(upside_down[i].camera_id, vendor_id, product_id)) { >+ /* found entry */ >+ data->flags |= V4LCONTROL_HFLIPPED | V4LCONTROL_VFLIPPED; > break; > } > } >-- >1.9.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 844999
:
601738
|
601739
|
861644
|
861645
|
869598
| 869625 |
869626