Camera: Call cancel_buffers on min undequeued buffers

Call cancel_buffers on min undequeued buffers after dequeuing all buffers
before stating prewview.

Bug: 8371899
Change-Id: I9cf911f57044b034f77e185a827953d260ac1786
Signed-off-by: Iliyan Malchev <malchev@google.com>
camera: Set the maximum fps to 30.

Maximum fps supported was incorrectly set to 120.
Setting it to 30 fps.

Bug: 8873494
Change-Id: Iebff8ab58eb8376cb60c8f0cd93b8216ef51845f
Signed-off-by: Iliyan Malchev <malchev@google.com>
camera: enabling HW encoder in all cases

in specific case such as 5MP and zoom,
SW encoder doesn't work well.
so HW encoder will cover it instead of SW encoder.
this is qualcomm patch

bug: 9305377
Change-Id: Id79ccdea0b027855981c0aec0f6f1bf77ccffef0
Signed-off-by: insup.choi <insup.choi@lge.com>
Remove 176x144 from list of supported preview sizes.

It's broken, when using it the colors are wrong and there are noisy
artifacts.
Issue became evident by using camera tile in quick settings ribbon.

Change-Id: Ia2246c9088f9b6df623f056b203df20d51338d9b
camera: Fixes for race conditions in abnormal snapshot stop.

Change-Id: Iba20800baee92dcd59ae6edb96e7dc1953c83a88

Bug: 12467743
Bug: 11021907
Camera: Fix race condition in snapshot.

Change-Id: I917994f3bb4663eb33ffa2c76754947f70f3cd5e
Bug: 13620972
sync autofocus code with mako

includes:
555a146 camera: Fix onAutoFocus never sent back to camera service during CAF
camera: Fix default camera areas not to throw NumberFormatException

* When using Camera#getParameters from Java, if the default camera area
  was set and then read (e.g. Parameters#getMeteringAreas), Java
  would throw a NumberFormatException due to the unexpected spaces

Change-Id: I567a1e6c58ed0bfb77cc09787393ea18eba5d613