VPU: return correct decoded length on iommu case
authorHerman Chen <herman.chen@rock-chips.com>
Thu, 18 Jun 2015 13:54:23 +0000 (21:54 +0800)
committerHerman Chen <herman.chen@rock-chips.com>
Thu, 25 Jun 2015 02:59:08 +0000 (10:59 +0800)
commit8d63e1b1d95eefff3a40760bf4de85a645bd2e71
tree26b0f0a67568f817936feacbc0f215718b17bc19
parentad6a4ffb3c19f757ff63b9dae5b508b39f2e3572
VPU: return correct decoded length on iommu case

On iommu case the decode buffer address is replace by iommu address.
When decoding finished the new register value is also the iommu address.
So the actual decoded length need a hack to calculate.

This patch is to resolve H.264 field stream packet with both top field
and bottom field. By retrieving the real decoded length decoder can detect
this case.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
arch/arm/mach-rockchip/vcodec_service.c