fix comment, add 16:9 letterbox
[enigma2.git] / lib / driver / avswitch.cpp
index 8197acc77ccedb6a26ebdee3b71c9b8f36427745..199a785541fecd351027b167d0bb8d8d2447f02a 100644 (file)
@@ -104,11 +104,13 @@ void eAVSwitch::setAspectRatio(int ratio)
        0-4:3 Letterbox
        1-4:3 PanScan
        2-16:9
-       3-16:9 forced
+       3-16:9 forced ("panscan")
+       4-16:10 Letterbox
+       5-16:10 PanScan
+       6-16:9 forced ("letterbox")
        */
-       
-       char *aspect[] = {"4:3", "4:3", "any", "16:9"};
-       char *policy[] = {"letterbox", "panscan", "bestfit", "panscan"};
+       char *aspect[] = {"4:3", "4:3", "any", "16:9", "16:10", "16:10", "16:9", "16:9"};
+       char *policy[] = {"letterbox", "panscan", "bestfit", "panscan", "letterbox", "panscan", "letterbox"};
 
        int fd;
        if((fd = open("/proc/stb/video/aspect", O_WRONLY)) < 0) {
@@ -152,6 +154,8 @@ void eAVSwitch::setVideomode(int mode)
                        break;
        }
        close(fd);
+
+       m_video_mode = mode;
 }
 
 void eAVSwitch::setWSS(int val) // 0 = auto, 1 = auto(4:3_off)