diff options
author | Shuzhen Wang <shuzhenw@quicinc.com> | 2013-11-11 23:55:59 -0800 |
---|---|---|
committer | Vineeta Srivastava <vsrivastava@google.com> | 2013-11-12 15:42:17 -0800 |
commit | ff9f4538c09399030fa73e3e65a167852cb91e8f (patch) | |
tree | eba7efa62cd202a669351f3e23da92d2f0309e63 | |
parent | 1e661b89f8becf65469a34c6da75782747500529 (diff) | |
download | android_hardware_qcom_power-staging/cm-12.0.tar.gz android_hardware_qcom_power-staging/cm-12.0.tar.bz2 android_hardware_qcom_power-staging/cm-12.0.zip |
power: Toggle encoder boost for camera previewstaging/cm-12.0-cafstaging/cm-12.0cm-12.0
Bug: 11256084
Change-Id: Ia2388bdae597fccf19acb5db2fb59fc50ec6e13c
-rw-r--r-- | power.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -126,15 +126,15 @@ static void process_video_encode_hint(void *metadata) if (!strncmp(metadata, STATE_ON, sizeof(STATE_ON))) { /* Video encode started */ sync_thread(1); + enc_boost(1); } else if (!strncmp(metadata, STATE_OFF, sizeof(STATE_OFF))) { /* Video encode stopped */ sync_thread(0); + enc_boost(0); } else if (!strncmp(metadata, STATE_HDR_ON, sizeof(STATE_HDR_ON))) { /* HDR usecase started */ - enc_boost(1); } else if (!strncmp(metadata, STATE_HDR_OFF, sizeof(STATE_HDR_OFF))) { /* HDR usecase stopped */ - enc_boost(0); }else return; } else { |