summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | libsensors: switch to portable typedefs to match callbacksDheeraj CVR2015-11-259-29/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | Using a strict basetype only coding style is not a good idea especially when we are dealing with callbacks which use portable typedef like int64_t. This kind of coding style would most likely end up in overflows at various places especially when dealing with timestamps and sensor delays which are caused when typecasting datatypes of different size. Switch to portable typedefs and get rid of "long". Change-Id: I75b9cace7602345dba9095f046292e6d4db07df4
* | libsensors: fix light sensorJavi Ferrer2015-11-251-3/+37
| | | | | | | | Change-Id: I7cad5c048c1a9877889216ca8ca43bb13daeb4b0
* | i9300: libsensors: remove unused orientation sensorChristian Balster2015-11-256-480/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | The Orientation Sensor is deprecated and no longer required. Additionally this implementation is never even used, since Android automatically replaces it by it's own implementation if the sensor HAL doesn't also provide a Rotation Vector sensor. Furthermore the current implementation only uses the accelerometer and magnetometer for the sensor fusion and doesn't make use of the Gyroscope. So should we at some point decide to implement our own complete sensor fusion this would have to be rewritten anyway. Change-Id: I45d8a9afd2089b49131e6cc69cdf2f3dfee46c92
* | i9300: libsensors: Fix compass orientation (for real)Christian Balster2015-11-254-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Actually this fixes several more problems, but the compass orientation is the most noticeable symptom of this: Android expects sensor event timestamps in nanoseconds. Linux timestamps on the other hand are saved in the timeval struct in seconds and micro- seconds. Therefore these need to be converted, which is easy enough and is implemented in input.c of libsensors. Unfortunately, the current implementation uses type long int for the return value and all further calculations. Since the nanosecond values easily exceed 2^32 the buffers overflow and wrap, which results in the reported timestamps moving between -2^16 and 2^16. The consequences of this are noticeable especially with fused sensors integrating the gyroscope readings, which use the difference of two timestamps to calculate the change in orientation by multiplying it by the rotation rate. When the buffer wraps around this results in a huge time difference and thus leads to a momentary orientation change every ~4.3 seconds. This commit fixes this behavior by using long long int. Change-Id: Ib47bdc36ece16371c82f61b125315074ec048e32
* | i9300: libsensors: fix magnetometer offset parameters not being savedChristian Balster2015-11-251-10/+19
| | | | | | | | | | | | also fix a typo Change-Id: I69246a96c53d7ec02ca90d73bc85dec4cbc73343
* | i9300: libsensors: report at least bogus accuracy for gyroChristian Balster2015-11-251-0/+2
| | | | | | | | Change-Id: I81ff71c8ae6bf25c1aabac4a6d8d6fcf64bd2e0b
* | i9300: libsensors: fix typo in accelerometer dataChristian Balster2015-11-251-1/+1
| | | | | | | | Change-Id: Iee501b65c23bed22bfe769496bafc852f939a8ac
* | i9300: libsensors: add real accuracy reporting for magnetometerChristian Balster2015-11-252-5/+26
| | | | | | | | Change-Id: I3dd56f4d7fb0de8feca2422c165fe0c3cd92761a
* | Revert "i9300: libsensors: fix compass orientation"Christian Balster2015-11-251-1/+1
| | | | | | | | | | | | | | | | | | This reverts commit 9f7182d0542f4c82b6fe4722b8b9389021ad6ae9. Let's not mess with the magnetometer sensitivity adjustments. The magnetometer orientations are correct as is. Change-Id: I218578088c43a27f4ff89d8c9e1671641725817a
* | i9300: update libsensors from replicantJavi Ferrer2015-11-2516-631/+652
| | | | | | | | | | | | - Orientation sensor still broken Change-Id: I7d20afbbc1f8b1ca5d046a38c0c3b7ce824c12cd
* | i9300: libsensors: L bringup - fix buildDheeraj CVR2015-11-251-7/+14
| | | | | | | | Change-Id: I3c5cd29a497d2a84da7742b8fdf54bf4e0869cee
* | i9300: CameraWrapper cleanup and updateChristian Balster2015-11-251-189/+180
| | | | | | | | | | | | | | Conflicts: camera/CameraWrapper.cpp Change-Id: Ic33d9a91629cf04e99c6e316e4871489f9f45924
* | i9300: Use open-source camera againJustArchi2015-11-253-7/+2
| | | | | | | | | | | | | | Conflicts: BoardConfig.mk Change-Id: I5794d6c3fb2e2ca542fc0eff65317334be9047b7
* | i9300: fix camera includesMarcKe2015-11-251-0/+3
| | | | | | | | Change-Id: I554de271021b595b27620135189f4dc61f604170
* | i9300: include samsung specific camera parametersChristian Balster2015-11-251-0/+55
| | | | | | | | Change-Id: Ie8f657544212a70a2ce0c7fb61d050d87f6247f6
* | i9300: enable zram [1/2]forkbomb2015-11-252-0/+7
| | | | | | | | Change-Id: I537df0d39ceddfabb5e0a859398d5068f6860faa
* | i9300: Fix broken AIF2 logicJustArchi2015-11-251-4/+0
| | | | | | | | | | | | | | We have only one analog source and one speaker, do not use right (mute) channel for AIF2 Change-Id: I65780e0d022263976712e79a70bf217bf1b988eb
* | i9300: We should boost only earpieceJustArchi2015-11-251-2/+2
| | | | | | | | Change-Id: I037aace6fae22c8635332bc5888663ac8c9e3851
* | audio: +3dB for speaker, headset, headphoneJavi Ferrer2015-11-251-3/+3
| | | | | | | | Change-Id: Iebfe3b797e3f44de1c6527111105122ed871f1c8
* | audio: enable noise suppression by defaultDheeraj CVR2015-11-253-39/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Framework was responsible for enabling or disabling the noise suppression using audio parameters. However, this is currently broken in lollipop and most of the newer devices have noise suppression enabled by default. Use noise suppression when using the default input device (main microphone). Conflicts: audio/audio_hw.c overlay/packages/services/Telephony/res/values/config.xml Change-Id: Ie8bdfe1d9860fdad996640d1664e8111df7d3cec
* | audio: remove deprecated audio_stream_frame_sizeMarcKe2015-11-251-9/+9
| | | | | | | | Change-Id: I8593343012faf5b528df03cc9ed098bf44b66888
* | audio: forward call mute to RIL client interfaceDheeraj CVR2015-11-253-2/+21
| | | | | | | | Change-Id: Iccb763b48a687b88692c84976a7cddf72031b5be
* | i9300: audio: adjust microphone sensitivityDheeraj CVR2015-11-251-4/+4
| | | | | | | | | | | | | | | | * Lower the main and sub mic gain to prevent distortion. * Increase the headset mic gain * Enable +30db boost for headset mic Change-Id: If5a3605b8742fc125d36d2b11e9c2bb15f089f92
* | audio: set noise suppression based on audio parameterDheeraj CVR2015-11-252-9/+20
| | | | | | | | Change-Id: Ie28205afda03280d9cc6437a7c98f7b995fd4f50
* | audio: make builtin mic and back mic volumes consistentDheeraj CVR2015-11-253-12/+2
| | | | | | | | Change-Id: I25cab57acb84a14200006e832a43676ff3c8b9d0
* | audio: fix noise supression and update mixer ctlsDheeraj CVR2015-11-254-147/+70
| | | | | | | | Change-Id: I5b76be2d7d5d9754974295fce81b26498ccee391
* | i9300: Remove density from PRODUCT_AAPT_CONFIGJustArchi2015-11-251-5/+2
| | | | | | | | | | | | | | | | | | | | AAPT ignores densities in PRODUCT_AAPT_CONFIG. The use of PRODUCT_AAPT_PREF_CONFIG for density is encouraged, as AAPT is able to determine the fallback density to use if a resource of the specified density does not exist. Change-Id: I38ed9cc72108c290a3f74c4bbc08ae37a56efa4f
* | i9300: Overlay bringupJustArchi2015-11-253-43/+93
| | | | | | | | Change-Id: Ica5b5c3035c6e5ff2756564fa3d894ba8a6d24bd
* | i9300: squash RIL bringupforkbomb2015-11-2510-20/+1684
| | | | | | | | | | | | | | | | | | | | | | | | * ril: update ril header to v11 from https://github.com/ArchiDroid/android_device_samsung_i9300/commit/706bc3c354d2f6d6d905e6a26ccee282357c26ee * ril: LCE support * set BOARD_RIL_CLASS and add SamsungExynos4RIL * add Samsung symbols shim library * use ril-wrapper to stop libsec-ril from crashing (based off dmitry-ril for the Nexus S) Change-Id: I169024341621ea05db5b8d8e82c4bf958b7bc6c0
* | i9300: update fstabforkbomb2015-11-211-3/+3
| | | | | | | | Change-Id: Ia8b8eeb35ee487c4b3729765e4c7ef79e7894eb2
* | i9300: init: cleanupDheeraj CVR2015-11-211-21/+0
| | | | | | | | | | | | | | Conflicts: rootdir/init.target.rc Change-Id: I76d330088c9fcf6e6ce20388980293d366af2997
* | i9300: remove obsolete mobiledata.interfaces propChristian Balster2015-11-211-1/+0
| | | | | | | | | | | | | | This property was used in GB to work around a hardcoded list of interfaces in MobileDataStateTracker and is no longer required. Change-Id: Iaba910f52331079ab19ba05c2d2fc6586f895231
* | i9300: squash selinux updates for CM 12.xMarcKe2015-11-2122-39/+89
| | | | | | | | | | | | | | | | | | | | i9300: selinux updates for cm12 Change-Id: I724a1acb4724ae34e60881da4708f7fbc98080ad i9300: Selinux updates Change-Id: I4e31d24c2eefcfdffa49cf1ee7468498200bb83c
* | I9300: Update RIL header to v9 [2/2]Andrew Jiang2014-10-271-3/+112
| | | | | | | | Change-Id: I8891182a084c9b05c3203b8bc8aeb1c066f6a60d
* | Audio parameter for setting noise suppressionKetut Putu Kumajaya2014-10-101-1/+1
| | | | | | | | Change-Id: I1fb529396f7a039bf9843368f4f1b5036c889e82
* | i9300: fix noise suppression overlaysNBruderman2014-09-221-3/+1
| | | | | | | | | | | | | | The phone app isn't relevant anymore, the overlays were switched to the Telephony overlays, so this change was needed Change-Id: I469a40f3ba023b8b0f356b289dd3e62b5659ff28
* | enable torch high brightness settingMarcKe2014-07-151-0/+3
| | | | | | | | | | | | | | the standard value for high brightness changed to false. the i9300 supports that feature. so it should be enabled. Change-Id: Ibf67bbff5f7c3f5e9a0277b42206eece48bc5de4
* | i9300: enable eject sdcardUnpublished2014-07-121-0/+3
| | | | | | | | | | | | Change-Id: Ic38fca9b0972e2e54b2972c4800e675203e2f04e JIRA: CYAN-4539 Issue: https://jira.cyanogenmod.org/browse/CYAN-4539
* | Add iso mode settings to the CameraWrapperMarcKe2014-05-291-1/+17
| | | | | | | | | | | | It's taken from the old wrapper and works just fine. Change-Id: I4c6f5c040f5c4612d4694611b62417c7521dca84
* | fix preview/camera crash after stopping video recordMarcKe2014-05-231-4/+0
| | | | | | | | | | | | | | | | After stopping a video record, the camera preview was always freezing with the cm camera. With the google camera, the whole camera even crash and you could not connect to the camera anymore. This commit fixes the issue. Change-Id: Ic2b6e626e983fcd9d5c7e73ad99b27e5afd16dc7
* | Device provides its own camera HALRicardo Cerqueira2014-05-201-0/+2
| | | | | | | | Change-Id: Id5c0f45bfaa7a89db0979e51d0740e298a9c15f9
* | Revert "Camera2: Don't try to cancel focus messages when preview stops"Ricardo Cerqueira2014-05-171-22/+0
| | | | | | | | | | | | This reverts commit 7c9742c6af99b5a395fe8b8a2d99e3f9676aa808. Change-Id: Icf8f4024c92537e1fde1e17191196135e28cbf9a
* | Rename camera blobJavier Ferrer2014-05-171-1/+1
| | | | | | | | | | | | Subclass it into "vendor" to allow the wrapper to load it Change-Id: I3e541eba02cf514eba72b9dd699c87825bd5617d
* | Build camera wrapperRicardo Cerqueira2014-05-171-0/+4
| | | | | | | | Change-Id: I2ab420398de6b0f6d6bb994d1c87843acba4c9da
* | camerawrapper: Do not cancel auto focus when preview is not runningJavier Ferrer2014-05-171-2/+12
| | | | | | | | Change-Id: I9a457b7bab327a9252cf13a6ee46517063f603fa
* | camera: Add wrapperRicardo Cerqueira2014-05-172-0/+627
| | | | | | | | Change-Id: Ia6a0a358ec5152742ab5b65236cc527ec70b8688
* | Camera2: Don't try to cancel focus messages when preview stopsRicardo Cerqueira2014-04-121-0/+22
| | | | | | | | Change-Id: I3dc4762de2b321f3d01d6d6c07ec5fba33fb90e5
* | SELinux: Remove duplicate rulesRicardo Cerqueira2014-04-102-2/+0
| | | | | | | | | | | | These are now declared in the global sepolicy Change-Id: I2861d939a43e0f7b736534006b83505fe52fbd35
* | Switch back to the binary camera HALRicardo Cerqueira2014-04-063-4/+3
| | | | | | | | | | | | | | Add compatibility libutils symbols required by it, and use it again. It's much more reliable than the reimplementation Change-Id: Ic837f4688015a956d635f0cf6b9846c24265a4e1
* | i9300: audio: bring back removed microphone fixDheeraj CVR2014-03-241-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | http://review.cyanogenmod.org/61104 has reverted http://review.cyanogenmod.org/51085 which has bought back issues with microphone after a voice call. After a voice call, the microphone is either not working or the recorded audio is very faint and not audible. The Input device has to be explicitly set to AUDIO_DEVICE_NONE after a voice call, since force_all_standby() wouldn't work for a voice call usecase. More details about the fix is included in the gerrit comments for the actual patch. Change-Id: I87c63b0ec4390ec3e5703e1de5804c10289ee423