More WIP, address API fixups - kernel now returns only offsets of allocations,

we need to retrieve and store the physical address of the port if we want to
calculate allocation physical address.

Change-Id: If7050dcbb8eca11ae72e65c8f82677cc106b2f76
This commit is contained in:
Andrew Mahone 2011-07-11 15:14:17 -04:00
parent 962d1bde85
commit 854ffb4c25

View File

@ -462,10 +462,10 @@ SSBSIP_MFC_ERROR_CODE SsbSipMfcEncGetInBuf(void *openHandle, SSBSIP_MFC_ENC_INPU
LOGE("SsbSipMfcEncGetInBuf: IOCTL_MFC_GET_IN_BUF failed\n");
return MFC_RET_ENC_GET_INBUF_FAIL;
}
pCTX->virFrmBuf.luma = user_addr_arg.args.mem_alloc.out_uaddr;
pCTX->virFrmBuf.chroma = user_addr_arg.args.mem_alloc.out_uaddr + (unsigned int)aligned_y_size;
pCTX->phyFrmBuf.luma = user_addr_arg.args.mem_alloc.out_paddr;
pCTX->phyFrmBuf.chroma = user_addr_arg.args.mem_alloc.out_paddr + (unsigned int)aligned_y_size;
pCTX->virFrmBuf.luma = user_addr_arg.args.mem_alloc.offset + pCTX->mapped_addr;
pCTX->virFrmBuf.chroma = user_addr_arg.args.mem_alloc.out_offset + pCTX->mapped_addr + (unsigned int)aligned_y_size;
pCTX->phyFrmBuf.luma = user_addr_arg.args.mem_alloc.addr;
pCTX->phyFrmBuf.chroma = user_addr_arg.args.mem_alloc.addr + (unsigned int)aligned_y_size;
pCTX->sizeFrmBuf.luma = (unsigned int)y_size;
pCTX->sizeFrmBuf.chroma = (unsigned int)c_size;