Skip to content

Instantly share code, notes, and snippets.

@wolfgar
Created January 22, 2015 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolfgar/6568c717efc76bedbb6a to your computer and use it in GitHub Desktop.
Save wolfgar/6568c717efc76bedbb6a to your computer and use it in GitHub Desktop.
double rate kernel patch
--- a/drivers/mxc/ipu3/ipu_device.c
+++ b/drivers/mxc/ipu3/ipu_device.c
@@ -2090,6 +2090,7 @@ static int init_ic(struct ipu_soc *ipu, struct ipu_task_entry *t)
inbuf = t->input.paddr + t->set.istride + t->set.i_off;
params.mem_prp_vf_mem.field_fmt =
IPU_DEINTERLACE_FIELD_BOTTOM;
+ outbuf += t->set.ostride;
} else
inbuf = t->input.paddr + t->set.i_off;
} else {
@@ -2097,8 +2098,10 @@ static int init_ic(struct ipu_soc *ipu, struct ipu_task_entry *t)
inbuf = t->input.paddr + t->set.i_off;
params.mem_prp_vf_mem.field_fmt =
IPU_DEINTERLACE_FIELD_TOP;
- } else
+ } else {
inbuf = t->input.paddr + t->set.istride + t->set.i_off;
+ outbuf += t->set.ostride;
+ }
}
} else
inbuf = t->input.paddr + t->set.i_off;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment