video: mdnie: lift RGB tuning restrictions
* Modified for Kconfig option
This commit is contained in:
parent
1d4accf4e3
commit
516175a0e7
4 changed files with 20 additions and 2 deletions
|
@ -3431,6 +3431,7 @@ CONFIG_EXYNOS_DECON_LCD_S6E3HA8=y
|
|||
CONFIG_SEC_DISPLAYPORT_LOGGER=y
|
||||
CONFIG_SEC_DISPLAYPORT_BIGDATA=y
|
||||
CONFIG_EXYNOS_DECON_MDNIE_LITE=y
|
||||
CONFIG_EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS=y
|
||||
CONFIG_SUPPORT_AFC=y
|
||||
CONFIG_EXYNOS_DECON_LCD_SYSFS=y
|
||||
CONFIG_EXYNOS_DECON_LCD_SPI=y
|
||||
|
|
|
@ -7,6 +7,11 @@ config EXYNOS_DECON_MDNIE_LITE
|
|||
tristate "Support MDNIE LITE"
|
||||
default n
|
||||
|
||||
config EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS
|
||||
depends on EXYNOS_DECON_MDNIE_LITE
|
||||
tristate "RGB tuning restrictions"
|
||||
default y
|
||||
|
||||
config SUPPORT_AFC
|
||||
depends on EXYNOS_DECON_LCD && EXYNOS_DECON_MDNIE_LITE
|
||||
tristate "Support AFC"
|
||||
|
|
|
@ -499,10 +499,17 @@ static void mdnie_update_scr_white_mode(struct mdnie_info *mdnie)
|
|||
if (mdnie_mode == MDNIE_SCENARIO_MODE) {
|
||||
if ((IS_LDU_MODE(mdnie)) && (mdnie->props.scenario != EBOOK_MODE)) {
|
||||
mdnie->props.scr_white_mode = SCR_WHITE_MODE_ADJUST_LDU;
|
||||
#ifdef CONFIG_EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS
|
||||
} else if (mdnie->props.update_sensorRGB &&
|
||||
mdnie->props.mode == AUTO &&
|
||||
(mdnie->props.scenario == BROWSER_MODE ||
|
||||
mdnie->props.scenario == EBOOK_MODE)) {
|
||||
#else
|
||||
} else if (mdnie->props.update_sensorRGB ||
|
||||
(mdnie->props.mode == AUTO &&
|
||||
(mdnie->props.scenario == BROWSER_MODE ||
|
||||
mdnie->props.scenario == EBOOK_MODE))) {
|
||||
#endif
|
||||
mdnie->props.scr_white_mode = SCR_WHITE_MODE_SENSOR_RGB;
|
||||
mdnie->props.update_sensorRGB = false;
|
||||
} else if (mdnie->props.scenario <= SCENARIO_MAX &&
|
||||
|
@ -886,7 +893,7 @@ static ssize_t sensorRGB_store(struct device *dev,
|
|||
{
|
||||
struct mdnie_info *mdnie = dev_get_drvdata(dev);
|
||||
unsigned int white_red = 0, white_green = 0, white_blue = 0;
|
||||
int mdnie_mode = mdnie_current_state(mdnie), ret;
|
||||
int ret;
|
||||
|
||||
ret = sscanf(buf, "%d %d %d",
|
||||
&white_red, &white_green, &white_blue);
|
||||
|
@ -896,10 +903,14 @@ static ssize_t sensorRGB_store(struct device *dev,
|
|||
dev_info(dev, "%s, white_r %d, white_g %d, white_b %d\n",
|
||||
__func__, white_red, white_green, white_blue);
|
||||
|
||||
if (mdnie_mode == MDNIE_SCENARIO_MODE &&
|
||||
#ifdef CONFIG_EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS
|
||||
if (mdnie_current_state(mdnie) == MDNIE_SCENARIO_MODE &&
|
||||
mdnie->props.mode == AUTO &&
|
||||
(mdnie->props.scenario == BROWSER_MODE ||
|
||||
mdnie->props.scenario == EBOOK_MODE)) {
|
||||
#else
|
||||
if (IS_MDNIE_ENABLED(mdnie)) {
|
||||
#endif
|
||||
mutex_lock(&mdnie->lock);
|
||||
mdnie->props.ssr_wrgb[0] = white_red;
|
||||
mdnie->props.ssr_wrgb[1] = white_green;
|
||||
|
|
|
@ -109,6 +109,7 @@ patch_stock() {
|
|||
patch_aosp() {
|
||||
printf "Patching Cached Defconfig For AOSP Base\n"
|
||||
sed -i 's/CONFIG_USB_ANDROID_SAMSUNG_MTP=y/# CONFIG_USB_ANDROID_SAMSUNG_MTP is not set/g' "$CUR_DIR"/.config
|
||||
sed -i 's/CONFIG_EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS=y/# CONFIG_EXYNOS_DECON_MDNIE_LITE_TUNE_RESTRICTIONS is not set/g' "$CUR_DIR"/.config
|
||||
sed -i 's/CONFIG_ZRAM_LRU_WRITEBACK=y/# CONFIG_ZRAM_LRU_WRITEBACK is not set/g' "$CUR_DIR"/.config
|
||||
sed -i 's/CONFIG_ZRAM_LRU_WRITEBACK_LIMIT=5120/CONFIG_ZRAM_LRU_WRITEBACK_LIMIT=1024/g' "$CUR_DIR"/.config
|
||||
KERNEL_NAME="Kernel-aosp"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue