From: Hans Verkuil <hans.verk...@cisco.com>

This resulted in an upside-down picture.

Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
Tested-by: Arvydas Sidorenko <asi...@gmail.com>
---
 drivers/media/usb/stkwebcam/stk-webcam.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c 
b/drivers/media/usb/stkwebcam/stk-webcam.c
index 4cbab08..71ac307 100644
--- a/drivers/media/usb/stkwebcam/stk-webcam.c
+++ b/drivers/media/usb/stkwebcam/stk-webcam.c
@@ -1305,15 +1305,15 @@ static int stk_camera_probe(struct usb_interface 
*interface,
        if (hflip != -1)
                dev->vsettings.hflip = hflip;
        else if (dmi_check_system(stk_upside_down_dmi_table))
-               dev->vsettings.hflip = 1;
-       else
                dev->vsettings.hflip = 0;
+       else
+               dev->vsettings.hflip = 1;
        if (vflip != -1)
                dev->vsettings.vflip = vflip;
        else if (dmi_check_system(stk_upside_down_dmi_table))
-               dev->vsettings.vflip = 1;
-       else
                dev->vsettings.vflip = 0;
+       else
+               dev->vsettings.vflip = 1;
        dev->n_sbufs = 0;
        set_present(dev);
 
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to