Camera Wrapper: Only call cancel_auto_focus when the preview is enabled.

Change-Id: I2a26ba8bac3ef84f49ea5897cdeedbb5c0724e2b
msm8960: Unbreak network mode options

Change-Id: I3dcfedef08693587b0a1b35c45ef434797c0f32c
Merge "msm8960: Unbreak network mode options" into cm-11.0
msm8960: Modify 'roamingText3' for Network Extender support.

Change-Id: Ia0e4fe78f775654335f8715839c1db3844c3ffcb
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