camera: this is not just for d2 anymore

Change-Id: Ic6411156cf919c6fcc825405de95017ceffd55f8
msm8960-common: I don't want to see your face

Strengthen the prohibition against face detection as some third
party apps are ignoring it.

Change-Id: I88df1b40f27472b7ed40d745b4b5b59b6d2fa560
msm8960: Add fix for stupid preferred preview size bug

Change-Id: I793e497b103bdf23d612ac0a4cc6bdd00544c38f
msm8960: Remove duplicate audio firmware type

 * Slowly moving inline with upstream.

Change-Id: I1c67674e09b88fc2a00a913c69e7b5dceb723106
msm8960: Enable ZSL in video mode too

Change-Id: I2cdf38268cc27bf1a2056d97482e93d547c60ff6
camera: Don't forcefully enable ZSL

Enabling ZSL without the app being aware of it is a bad idea, and can
lead to a 3rd party app trying to mix it with incompatible options with
unpredictable results. Disable it unless the camera explicitly requests
that feature.

Change-Id: Ia655f5185720cd69577c2c3006662df63e8535ef
add ISO 50 mode for d2

Change-Id: I1211150262739cced8c5c3635c5151cdaf06105c
msm8960: fix samsung camcorder mode the right way

A lot of these modes are inter-dependent. Don't mess with Samsung camera
mode if it's already been set.

There is also a problem with apps which use the FFC for video chat, that
don't set the recording hint properly. Detect them from the special
video frame rate used.

Change-Id: I8f1fc611a2f100d0438447c25103fc44917c5d87
toggle ZSL mode properly

D2's camera HAL is very stupid and it leaves camera_mode on even when
ZSL has been turned off.

Change-Id: If2216c8f7ae40ad272fb6048d955b3f99a46f6fe
fix this mess

camMode and ZSL are persistent across camera switches and switches from
still video to camcorder, resulting in inconsistent states.

The fix:
Don't just detect if camMode is unset, since the previous set state is
too persistent. Instead, test specifically for the special mode Snapchat
sets that the wrapper would never set, where the recording hint is not
on but camMode is.

Ensure we are only enforcing the Hangouts exception for the FFC.

Restore the previous ZSL logic. It worked just fine.

Change-Id: I0751c12ebd4035a86682e9c9c76b7e2d422cbc7e
Various camera fixes

Sometimes camMode is left on when switching from video to still mode.
Detect the switch and allow it to be reset.

Do not set camMode on rear camera (yet).

preview fixes for ApexQ

Change-Id: I1ff0153ccb402e0e67e1660210829f07a90dee7a
d2lte: fix Skype video chat

Change-Id: Ife14f9c54b0cd77457fc8a76597d73ab870df947
network_mode: add an LTE only option

Change-Id: I952681a2e9b0d750ceecd5dec96be59c7143b2cf
apexq: camera: remove inapplicable hack

Change-Id: Ib1117beb6642d98d32610e9f194ddd1fd0ffb832
msm8960-common: add keydisabler hw file

Change-Id: I95d66ba27159625fe9d6222a82361ba7808556c3
msm8960-common: set some properties

Use highest quality audio resampler
Enable KSM
Re-enable HW AAC encoder, it no longer seems to intefere with video
recording pause
Actually use that 7 step call volume

Change-Id: I5f48f955f0fbf0aebce82b5babeb338bffa86290
overlay: remove network_mode overlay

Change-Id: I5095da671eb8065d2a8268751d7755d83e8ccc1d
Merge "msm8960-common: add keydisabler hw file" into cm-11.0
msm8960: add qcom keystore engine

Change-Id: I609dd5a84f02aa5f9bb10b1bd95fb340609f6e6a
Revert "msm8960: add qcom keystore engine"

This reverts commit 3c10a4a0cd59c135167ba2ea5e59ae8d12b388db.

Change-Id: I2de14b6a0fa57b36b254c9b4e4d82e4e74581efe