]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00174399 ASRC: fix mmap fail bug
authorChen Liangjun <b36089@freescale.com>
Tue, 14 Feb 2012 03:23:30 +0000 (11:23 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:01 +0000 (08:34 +0200)
commit0cab90def91a8dda955d65f477894564719210a2
tree00d3f9daa97a8c599edef66e4bf30c3bb09c5e29
parent98e2b198ba6fcc36e251a683b76472c1c8b3248a
ENGR00174399 ASRC: fix mmap fail bug

If output sample rate is less than input sample rate, it is possible
that the address of output dma buffer 0 can not be divided by page size.
Thus the mmap of output dma in the user space would fail and test
would fail.

let all output dma buffers allocate dma buffer together and we can
assure that the address of output dma buffer 0 can be divided by
page size.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
drivers/mxc/asrc/mxc_asrc.c