diff options
author | Zhou Peng <eagle.zhou@nxp.com> | 2018-06-06 17:52:34 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:32:03 +0800 |
commit | a6b0d370611527cad675fcc85542361316f6953c (patch) | |
tree | 84f1f6285a02ee18a17cf73c2659dd21c23a46bd /drivers | |
parent | 7a9ffad308a8ec4fc23ea268fdbeff6fbd30b79c (diff) |
MLK-18532: [i.MX8MM/Hantro]: h1 encoder doesn't work when running with decoder simultaneously
Remove legacy function 'hantrodec_choose_core()'
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Diffstat (limited to 'drivers')
-rwxr-xr-x | drivers/mxc/hantro_845/hantrodec_845s.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mxc/hantro_845/hantrodec_845s.c b/drivers/mxc/hantro_845/hantrodec_845s.c index 2dc806aeab6c..90649439d15e 100755 --- a/drivers/mxc/hantro_845/hantrodec_845s.c +++ b/drivers/mxc/hantro_845/hantrodec_845s.c @@ -483,7 +483,7 @@ static int GetDecCoreID(unsigned long format) PDEBUG("GetDecCoreID=%d\n", core_id); return core_id; } - +#if 0 static int hantrodec_choose_core(int is_g1) { volatile unsigned char *reg = NULL; @@ -517,7 +517,7 @@ static int hantrodec_choose_core(int is_g1) PDEBUG("hantrodec_choose_core OK!\n"); return 0; } - +#endif static long ReserveDecoder(hantrodec_t *dev, struct file *filp, unsigned long format) { @@ -537,6 +537,7 @@ static long ReserveDecoder(hantrodec_t *dev, struct file *filp, unsigned long fo if (wait_event_interruptible(hw_queue, GetDecCoreAny(&Core, dev, filp, format) != 0)) return -ERESTARTSYS; #endif +#if 0 if (IS_G1(dev->hw_id)) { if (0 == hantrodec_choose_core(1)) PDEBUG("G1 is reserved\n"); @@ -548,7 +549,7 @@ static long ReserveDecoder(hantrodec_t *dev, struct file *filp, unsigned long fo else return -1; } - +#endif #ifdef CONFIG_DEVICE_THERMAL_XXX if (hantro_dynamic_clock) hantro_thermal_check(hantro_dev); |