galaxys2-common: fix EXIF data generated by the camera

 * ensure that all IFDs are 12 bytes long; previously when the data field contained less than 4 bytes of data the IFDs were truncated too soon
 * change all data types and number of components according to the EXIF standard
 * get the actual status of the flash from the camera; previosly the camera flash settings (which are not valid EXIF values) were copied in
 * fix calculations of GPS coordinates

With these changes the EXIF generated by the camera are valid and readable. There are still issues with some tags but most data is correct now.

Thanks to dafnis, who identified the problematic fields, and tryptophane, who helped testing.

Patch Set 2: fix whitespaces.

Change-Id: I513ea89f69ff26646e6a4a439b1cd5b835cba8d6
galaxys2-common: camera: exynos_exif.c: fix values of some wrong EXIF tags

 * adapt the code to the changes made in Exif.h
 * calculate ExposureTime from the ShutterSpeedValue: the exposure time
   read from the camera doesn't seem to work

Together with changes in Exif.h, this commit fixes ExposureTime, FNumber,
ShutterSpeedValue, ApertureValue, BrightnessValue and MaxApertureValue.

The values now match what was generated by the closed camera driver.

Credits to tryptophane for ExposureTime and ShutterSpeedValue. Thanks to
opaco23 and stone_ship who provided samples.

This commit requires http://review.cyanogenmod.org/37370

Change-Id: I16b606e65e895b98f9679ffb6172869c2cbe741c
galaxys2-common: allow d710 to build audio

Change-Id: Id5cd7617d73620931b5d5ba5599ecd21c28f1eea
galaxys2: add opensource libril, remove ril class

- remove blob rild
- remove blob libril.so

Change-Id: I9f6d99bbd0ecf7c591c64a53e738339f0eaa3905
galaxys2: switch to smdk4412 kernel

Change-Id: I9b4ee389937a6418bb9de79679324aae40a9a736
galaxys2: libril: add a fallback to handle signalstrength for older modems

Change-Id: I66c253dbd8bf0db38b7e723cd43357752d2d9949
Mixer: Handle write element

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Mixer: Set the next elements routes when one failed

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>

Conflicts:

	tinyalsa_audio/mixer.c
galaxys2: back to blob libril

opensource libril is causing memory problems

Change-Id: I3afc5430bcb52c4e31e2e79b1b2faf4bf53b4e3e
galaxys2: set default mdnie scenario and mode on boot

Change-Id: Ib99b00b1dab576d8be19757e3b03206336c2ecdd
galaxys2: libril: remove handling of uusInfo and reenable

Change-Id: I7897a5d36bb5fa51e29f5244ebfbfc81f225f6cf
Merge "Mixer: Handle write element" into cm-10.1
Merge "Mixer: Set the next elements routes when one failed" into cm-10.1
galaxys2: audio: remove some logging

Change-Id: I4c391a74f0f29a1b1a5392546f0b8c39f92c7898
galaxys2-common: audio: fix merge fail

Change-Id: Icfdbe362c9dff887c96e5d65ecc94cca7bccd227
galaxys2: fix getting preferred network type

NETWORK_MODE_GLOBAL => NETWORK_MODE_WCDMA_PREF

Change-Id: Icb2d1ee40c75b7c30188e6e0036a2084cda3e071
galaxys2: libril: uus is absent

Change-Id: Id52cec452588bc629b6ccbda51932678f2f8aeab
galaxys2: loop ringtones, cleanup unused props

Change-Id: Ieec8981f495aacb6e6ce14a52a72935296b55de3
galaxys2: move device settings from i9100

Change-Id: I9209974db9ce5b013fc56f2249ff8b4c511d5eaa
galaxys2: pimp my vibrator

Change-Id: I71781be97d01598f83be3db828ebaf91c8211b78