diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 10:27:10 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-04-18 10:27:10 +0200 |
commit | 6658c3527cda5c8d7a25a8c71af58d161a82fca2 (patch) | |
tree | 00140fd32aa8f3c91850cd3fe93656370858b795 | |
parent | 2ac453a36b2f6adf5ca5e7812ebb2e26d790f884 (diff) |
wfdport: Properly expose that flip,mirror and roation is unsupported
-rw-r--r-- | src/wfdport.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/wfdport.c b/src/wfdport.c index f1d5bdf..8d8501b 100644 --- a/src/wfdport.c +++ b/src/wfdport.c @@ -274,6 +274,11 @@ wfd_port_get_attribi(struct wfd_device *device, /* no effect as FILL_PORT_AREA = true */ case WFD_PORT_BACKGROUND_COLOR: return 0; + case WFD_PORT_FLIP: + case WFD_PORT_MIRROR: + return WFD_FALSE; + case WFD_PORT_ROTATION: + return 0; case WFD_PORT_PIPELINE_ID_COUNT: return wfd_port_choose_pipeline(device, port) != 0 ? 1 : 0; default: @@ -374,6 +379,10 @@ wfd_port_set_attribi(struct wfd_device *device, } port->power_mode = value; break; + /* ignored by WFD_PORT_MODE_{FLIP_MIRROR,ROTATION}_SUPPORT */ + case WFD_PORT_FLIP: + case WFD_PORT_MIRROR: + case WFD_PORT_ROTATION: /* ignored as FILL_PORT_AREA = true */ case WFD_PORT_BACKGROUND_COLOR: default: @@ -465,6 +474,10 @@ wfd_port_mode_get_attribi(struct wfd_device *device, return mode->hdisplay; case WFD_PORT_MODE_HEIGHT: return mode->vdisplay; + case WFD_PORT_MODE_FLIP_MIRROR_SUPPORT: + return WFD_FALSE; + case WFD_PORT_MODE_ROTATION_SUPPORT: + return WFD_ROTATION_SUPPORT_NONE; default: break; } |