mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
bab2dc64e7
Underrun would cause resetting of CSC registers thereby causing black screen. Now schedule work to program CSC registers in underrun interrupt handler. Change-Id: I9f5cc8ddbe9afbfd36d65601b66e8da5e7ec6e95 Signed-off-by: Krishna Chaitanya Parimi <cparimi@codeaurora.org>
77 lines
2 KiB
C
77 lines
2 KiB
C
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef MDP3_CTRL_H
|
|
#define MDP3_CTRL_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/mutex.h>
|
|
#include <linux/completion.h>
|
|
#include <linux/timer.h>
|
|
|
|
#include "mdp3.h"
|
|
#include "mdp3_dma.h"
|
|
#include "mdss_fb.h"
|
|
#include "mdss_panel.h"
|
|
|
|
#define MDP3_MAX_BUF_QUEUE 8
|
|
#define MDP3_LUT_HIST_EN 0x001
|
|
#define MDP3_LUT_GC_EN 0x002
|
|
|
|
struct mdp3_buffer_queue {
|
|
struct mdp3_img_data img_data[MDP3_MAX_BUF_QUEUE];
|
|
int count;
|
|
int push_idx;
|
|
int pop_idx;
|
|
};
|
|
|
|
struct mdp3_session_data {
|
|
struct mutex lock;
|
|
int status;
|
|
struct mdp3_dma *dma;
|
|
struct mdss_panel_data *panel;
|
|
struct mdp3_intf *intf;
|
|
struct msm_fb_data_type *mfd;
|
|
ktime_t vsync_time;
|
|
struct timer_list vsync_timer;
|
|
int vsync_period;
|
|
struct sysfs_dirent *vsync_event_sd;
|
|
struct mdp_overlay overlay;
|
|
struct mdp_overlay req_overlay;
|
|
struct mdp3_buffer_queue bufq_in;
|
|
struct mdp3_buffer_queue bufq_out;
|
|
struct work_struct clk_off_work;
|
|
struct work_struct dma_done_work;
|
|
atomic_t dma_done_cnt;
|
|
int histo_status;
|
|
struct mutex histo_lock;
|
|
int lut_sel;
|
|
bool vsync_before_commit;
|
|
bool first_commit;
|
|
int clk_on;
|
|
struct blocking_notifier_head notifier_head;
|
|
|
|
int vsync_enabled;
|
|
atomic_t vsync_countdown; /* Used to count down */
|
|
bool in_splash_screen;
|
|
int dyn_pu_state; /* dynamic partial update status */
|
|
bool esd_recovery;
|
|
|
|
bool dma_active;
|
|
struct completion dma_completion;
|
|
int (*wait_for_dma_done)(struct mdp3_session_data *session);
|
|
};
|
|
|
|
int mdp3_ctrl_init(struct msm_fb_data_type *mfd);
|
|
|
|
#endif /* MDP3_CTRL_H */
|