diff options
author | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:21:28 -0600 |
---|---|---|
committer | Quinn Jensen <quinn.jensen@freescale.com> | 2007-10-24 21:21:28 -0600 |
commit | 3ebe0f3d2a04b9135462140ca5ad82e909768179 (patch) | |
tree | 10ae6be801d3ff5b55b541c85429e57f688ffe99 /drivers | |
parent | af5d8ed34638590c5c35e3fb0c3692e0f939f3dd (diff) |
Make the latency hiding option mx27 specific since it could
Patch to mke the latency hiding option MX27 specific since it could
break other platforms that have a VPU. Applies to linux 2.6.22
kernel for MX platforms.
http://www.bitshrine.org/gpp/linux-2.6.22-mx-Make-the-latency-hiding-option-mx27-specif.patch
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mxc/vpu/mxc_vpu.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mxc/vpu/mxc_vpu.c b/drivers/mxc/vpu/mxc_vpu.c index 48ffe3659f63..b5a7538809a4 100644 --- a/drivers/mxc/vpu/mxc_vpu.c +++ b/drivers/mxc/vpu/mxc_vpu.c @@ -270,7 +270,10 @@ static int vpu_ioctl(struct inode *inode, struct file *filp, u_int cmd, codec_done = 0; break; - } + + } +/* RMW: this is not portable across platforms */ +#ifdef CONFIG_ARCH_MX27 /* set/clear LHD (Latency Hiding Disable) bit in ESDCFG0 reg. Tends to fix MPEG4 issue on MX27 TO2 */ case VPU_IOC_LHD: @@ -296,6 +299,7 @@ static int vpu_ioctl(struct inode *inode, struct file *filp, u_int cmd, break; } +#endif case VPU_IOC_VL2CC_FLUSH: if (cpu_is_mx32()) { vl2cc_flush(); |