~thopiekar/arm-mali/libvdpau-sunxi

« back to all changes in this revision

Viewing changes to mpeg4.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:
191
191
 
192
192
                // ??
193
193
                writel(0x40620000, ve_regs + VE_MPEG_SDROT_CTRL);
194
 
                if (cedrus_get_ve_version(decoder->device->cedrus) == 0x1680)
 
194
                if (cedrus_get_ve_version(decoder->device->cedrus) >= 0x1680)
195
195
                        writel((0x2 << 30) | (0x1 << 28) | (output->chroma_size / 2), ve_regs + VE_EXTRA_OUT_FMT_OFFSET);
196
196
 
197
197
                // set vop header
218
218
                writel(0x0, ve_regs + VE_MPEG_MBA);
219
219
 
220
220
                // enable interrupt, unknown control flags
221
 
                writel(0x80084118 | ((cedrus_get_ve_version(decoder->device->cedrus) != 0x1680) << 7) | ((hdr.vop_coding_type == VOP_P ? 0x1 : 0x0) << 12), ve_regs + VE_MPEG_CTRL);
 
221
                writel(0x80084118 | ((cedrus_get_ve_version(decoder->device->cedrus) < 0x1680) << 7) | ((hdr.vop_coding_type == VOP_P ? 0x1 : 0x0) << 12), ve_regs + VE_MPEG_CTRL);
222
222
 
223
223
                // set quantization parameter
224
224
                writel(hdr.vop_quant, ve_regs + VE_MPEG_QP_INPUT);