]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 16 Jun 2014 16:09:22 +0000 (18:09 +0200)
commite77df8b1ebcf70e3422a6b6f38e8da77de8d7a77
tree46b49a72f37d23d63e7887cca23e763ad3b3233d
parent93859ec401402682ce120068895cf76733d958dd
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