diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-19 19:25:56 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-02-03 01:42:25 -0500 |
commit | 9ad7bd2944bd979ef4877cd439719be44c5f3b47 (patch) | |
tree | cf70d092016d677b68b4178b7f669939c3820b63 /drivers/dma/ipu | |
parent | 4b1cf1facca31b7db2a61d8aa2ba40d5a93a0957 (diff) |
dma: cases IPU_PIX_FMT_BGRA32, BGR32 and ABGR32 are the same in ipu_ch_param_set_size()
In these cases the same statements are executed.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/ipu')
-rw-r--r-- | drivers/dma/ipu/ipu_idmac.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/dma/ipu/ipu_idmac.c b/drivers/dma/ipu/ipu_idmac.c index 9a5bc1a7389e..1c518f1cc49b 100644 --- a/drivers/dma/ipu/ipu_idmac.c +++ b/drivers/dma/ipu/ipu_idmac.c | |||
@@ -348,6 +348,7 @@ static void ipu_ch_param_set_size(union chan_param_mem *params, | |||
348 | break; | 348 | break; |
349 | case IPU_PIX_FMT_BGRA32: | 349 | case IPU_PIX_FMT_BGRA32: |
350 | case IPU_PIX_FMT_BGR32: | 350 | case IPU_PIX_FMT_BGR32: |
351 | case IPU_PIX_FMT_ABGR32: | ||
351 | params->ip.bpp = 0; | 352 | params->ip.bpp = 0; |
352 | params->ip.pfs = 4; | 353 | params->ip.pfs = 4; |
353 | params->ip.npb = 7; | 354 | params->ip.npb = 7; |
@@ -376,20 +377,6 @@ static void ipu_ch_param_set_size(union chan_param_mem *params, | |||
376 | params->ip.wid2 = 7; /* Blue bit width - 1 */ | 377 | params->ip.wid2 = 7; /* Blue bit width - 1 */ |
377 | params->ip.wid3 = 7; /* Alpha bit width - 1 */ | 378 | params->ip.wid3 = 7; /* Alpha bit width - 1 */ |
378 | break; | 379 | break; |
379 | case IPU_PIX_FMT_ABGR32: | ||
380 | params->ip.bpp = 0; | ||
381 | params->ip.pfs = 4; | ||
382 | params->ip.npb = 7; | ||
383 | params->ip.sat = 2; /* SAT = 32-bit access */ | ||
384 | params->ip.ofs0 = 8; /* Red bit offset */ | ||
385 | params->ip.ofs1 = 16; /* Green bit offset */ | ||
386 | params->ip.ofs2 = 24; /* Blue bit offset */ | ||
387 | params->ip.ofs3 = 0; /* Alpha bit offset */ | ||
388 | params->ip.wid0 = 7; /* Red bit width - 1 */ | ||
389 | params->ip.wid1 = 7; /* Green bit width - 1 */ | ||
390 | params->ip.wid2 = 7; /* Blue bit width - 1 */ | ||
391 | params->ip.wid3 = 7; /* Alpha bit width - 1 */ | ||
392 | break; | ||
393 | case IPU_PIX_FMT_UYVY: | 380 | case IPU_PIX_FMT_UYVY: |
394 | params->ip.bpp = 2; | 381 | params->ip.bpp = 2; |
395 | params->ip.pfs = 6; | 382 | params->ip.pfs = 6; |