MLK-12060 media: output: pxp_v4l2: Add filter function for dma_request_channel
authorRobby Cai <robby.cai@nxp.com>
Fri, 25 Dec 2015 06:04:54 +0000 (14:04 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:35 +0000 (14:49 -0500)
commit338c1ad47dd5da44afc78a5ddc287ffe5a94c022
tree93ef7482f67b1a3c4e2952cd3bd9cd19fed30a4e
parent1f04e2594fab2834aa339a230d86d01f915125a9
MLK-12060 media: output: pxp_v4l2: Add filter function for dma_request_channel

Without the filter function, the dma_request_channel() API could possibly get
a sdma channel. The dma_request_channel() API does not return error but the
consequent operations on that channel will be invalid then the upper level
application expects to be stuck.

The patch added the filter functions to get right dma channel for the fix.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
drivers/media/platform/mxc/output/mxc_pxp_v4l2.c