diff options
Diffstat (limited to 'drivers/mxc/ipu3/ipu_common.c')
-rw-r--r-- | drivers/mxc/ipu3/ipu_common.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_common.c b/drivers/mxc/ipu3/ipu_common.c index 892e8b64fd71..fd0ba2d0ee19 100644 --- a/drivers/mxc/ipu3/ipu_common.c +++ b/drivers/mxc/ipu3/ipu_common.c @@ -2057,6 +2057,7 @@ int32_t ipu_disable_channel(ipu_channel_t channel, bool wait_for_stop) uint32_t out_dma; uint32_t sec_dma = NO_DMA; uint32_t thrd_dma = NO_DMA; + uint16_t fg_pos_x, fg_pos_y; spin_lock_irqsave(&ipu_lock, lock_flags); @@ -2088,8 +2089,10 @@ int32_t ipu_disable_channel(ipu_channel_t channel, bool wait_for_stop) if ((channel == MEM_BG_SYNC) || (channel == MEM_FG_SYNC) || (channel == MEM_DC_SYNC)) { - if (channel == MEM_FG_SYNC) + if (channel == MEM_FG_SYNC) { + ipu_disp_get_window_pos(channel, &fg_pos_x, &fg_pos_y); ipu_disp_set_window_pos(channel, 0, 0); + } _ipu_dp_dc_disable(channel, false); @@ -2221,6 +2224,9 @@ int32_t ipu_disable_channel(ipu_channel_t channel, bool wait_for_stop) spin_unlock_irqrestore(&ipu_lock, lock_flags); + if (channel == MEM_FG_SYNC) + ipu_disp_set_window_pos(channel, fg_pos_x, fg_pos_y); + return 0; } EXPORT_SYMBOL(ipu_disable_channel); |