diff -Naurd old/drivers/video/geode/gxfb_dcon.c new/drivers/video/geode/gxfb_dcon.c
|
old
|
new
|
|
| 143 | 143 | dcon_disp_mode &= ~(MODE_CSWIZZLE | MODE_COL_AA); |
| 144 | 144 | dcon_disp_mode |= MODE_MONO_LUMA; |
| 145 | 145 | } |
| 146 | | else { |
| | 146 | else if (arg == DCON_OUTPUT_GREEN) { |
| | 147 | dcon_disp_mode &= ~(MODE_MONO_LUMA | MODE_CSWIZZLE | MODE_COL_AA); |
| | 148 | } |
| | 149 | else if (arg == DCON_OUTPUT_UNFILTERED) { |
| | 150 | dcon_disp_mode &= ~(MODE_MONO_LUMA | MODE_COL_AA); |
| | 151 | dcon_disp_mode |= MODE_CSWIZZLE; |
| | 152 | } |
| | 153 | else if (arg == DCON_OUTPUT_FILTERED) { |
| | 154 | dcon_disp_mode &= ~(MODE_MONO_LUMA); |
| | 155 | dcon_disp_mode |= (MODE_CSWIZZLE | MODE_COL_AA); |
| | 156 | } |
| | 157 | else /* if (arg == DCON_OUTPUT_COLOR) */ { |
| 147 | 158 | dcon_disp_mode &= ~(MODE_MONO_LUMA); |
| 148 | 159 | dcon_disp_mode |= MODE_CSWIZZLE; |
| 149 | 160 | if (useaa) |
| … |
… |
|
| 281 | 292 | if (get_user(karg, (int __user *)arg)) |
| 282 | 293 | return -EFAULT; |
| 283 | 294 | |
| 284 | | if (karg > 1 || karg < -1) |
| | 295 | if (karg > DCON_OUTPUT_MAX || karg < -1) |
| 285 | 296 | return -EINVAL; |
| 286 | 297 | |
| 287 | 298 | if (karg > -1) |
| … |
… |
|
| 412 | 423 | if (_strtoul(buf, count, &output)) |
| 413 | 424 | return -EINVAL; |
| 414 | 425 | |
| 415 | | if (output == DCON_OUTPUT_COLOR || output == DCON_OUTPUT_MONO) { |
| | 426 | if (output >= 0 && output <= DCON_OUTPUT_MAX) { |
| 416 | 427 | dcon_set_output(output); |
| 417 | 428 | rc = count; |
| 418 | 429 | } |
diff -Naurd old/drivers/video/geode/gxfb_dcon.h new/drivers/video/geode/gxfb_dcon.h
|
old
|
new
|
|
| 62 | 62 | #define DCON_SOURCE_CPU 1 |
| 63 | 63 | |
| 64 | 64 | /* Output values */ |
| | 65 | #define DCON_OUTPUT_QUERY -1 |
| 65 | 66 | #define DCON_OUTPUT_COLOR 0 |
| 66 | 67 | #define DCON_OUTPUT_MONO 1 |
| | 68 | #define DCON_OUTPUT_GREEN 2 |
| | 69 | #define DCON_OUTPUT_FILTERED 3 |
| | 70 | #define DCON_OUTPUT_UNFILTERED 4 |
| | 71 | #define DCON_OUTPUT_MAX DCON_OUTPUT_UNFILTERED |
| 67 | 72 | |
| 68 | 73 | /* Sleep values */ |
| 69 | 74 | #define DCON_ACTIVE 0 |