~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to h264.c

  • Committer: Jens Kuske
  • Date: 2016-02-29 22:01:00 UTC
  • Revision ID: git-v1:cba127cf8457a7e4a2e02832f0b653e85f2c97c7
Add A64 support

Show diffs side-by-side

added added

removed removed

Lines of Context:
804
804
 
805
805
        // sdctrl
806
806
        writel(0x00000000, c->regs + VE_H264_SDROT_CTRL);
807
 
        if (cedrus_get_ve_version(decoder->device->cedrus) == 0x1680)
 
807
        if (cedrus_get_ve_version(decoder->device->cedrus) >= 0x1680)
808
808
        {
809
809
                writel(cedrus_mem_get_bus_addr(c->output->yuv->data), c->regs + VE_H264_SDROT_LUMA);
810
810
                writel(cedrus_mem_get_bus_addr(c->output->yuv->data) + c->output->luma_size, c->regs + VE_H264_SDROT_CHROMA);
834
834
                }
835
835
 
836
836
                // Enable startcode detect and ??
837
 
                writel((0x1 << 25) | (0x1 << 10) | ((cedrus_get_ve_version(decoder->device->cedrus) == 0x1680) << 9), c->regs + VE_H264_CTRL);
 
837
                writel((0x1 << 25) | (0x1 << 10) | ((cedrus_get_ve_version(decoder->device->cedrus) >= 0x1680) << 9), c->regs + VE_H264_CTRL);
838
838
 
839
839
                // input buffer
840
840
                writel((len - pos) * 8, c->regs + VE_H264_VLD_LEN);