]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00293132-1 pxp/v4l2: change memory alloc policy for PxP output buffer
authorRobby Cai <R63905@freescale.com>
Fri, 20 Dec 2013 10:20:47 +0000 (18:20 +0800)
committerRobby Cai <R63905@freescale.com>
Tue, 31 Dec 2013 09:14:01 +0000 (17:14 +0800)
commit899e6300782860d364f8543b4fca123efa309d56
tree4d231423f550710604ebc35c1ddef9e2f1a793f7
parentb6f7e36ba81ff0c98753cf9f27e9735d65f0d3f6
ENGR00293132-1 pxp/v4l2: change memory alloc policy for PxP output buffer

In previous implementation, the memory allocation/free for PxP output buffer is
done each time v4l2 output device is opened/closed. This is not necessary and
may cause memory fragmentation issue after running many many times. Now we
re-allocate the memory for it only if the existing memory size is not sufficent
for new case.

Signed-off-by: Robby Cai <R63905@freescale.com>
drivers/media/platform/mxc/output/mxc_pxp_v4l2.c
drivers/media/platform/mxc/output/mxc_pxp_v4l2.h