Commit graph

446 commits

Author SHA1 Message Date
Christopher N. Hesse
b0d8610bdb modemloader: Add support for recent devices
* Try to read the hardware revision from the
   bootloader before parsing /proc/cpuinfo
 * Set more properties to catch all recent device
   needs as well
 * Introduce a property to let other services (cbd)
   know they can start

Change-Id: I50d8ec37921ec2559bdd7fe852d830f10fe1c12e
2017-05-25 17:46:35 +02:00
Abhisek Devkota
b1d4bcbadd Automatic translation import
Change-Id: I15bc33336962fd84fcb328d5fda461e5ce0bd495
2017-05-17 22:23:14 -07:00
Christopher N. Hesse
5eca5aa565 power: Allow POWER_HINT_LOW_POWER hint to disable power save mode
Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7
2017-05-06 20:27:04 +00:00
Abhisek Devkota
8920be7d43 Automatic translation import
Change-Id: I7cdf0153bcb66bf25d80c694022018b5d89287e2
2017-04-28 15:17:09 -07:00
Abhisek Devkota
a58b7d9f98 AdvancedDisplay - Rename default scenario
Change-Id: I6122234ef08b78958e28d3a127b3c73757a43445
2017-04-27 10:54:53 -07:00
Jesse Chan
9432ff3385 mkbootimg: add exynos subdir to possible_dtb_dirs
Change-Id: I70e5e0817ff0b63da7df3ab63f42b815170096e4
2017-04-25 17:40:04 +08:00
Paul Keith
5e4fbe091d power: Sanity check touchscreen path
* Let's not always assume this isn't NULL

Change-Id: I181cb014fc06d0f0ca795c3ecc374ccf9dbb57f1
Signed-off-by: Paul Keith <javelinanddart@bestas.gr>
2017-04-24 14:14:53 -05:00
Abhisek Devkota
1961bdbc43 Automatic translation import
Change-Id: I201d7c8ce8c9495085e68a76e14aa8d67caa31de
2017-04-20 12:10:52 -07:00
Christopher N. Hesse
3fa2b6951e power: Align to AOSP API
AOSP power hints can have a NULL data parameter,
only our custom hints are guaranteed to provide data.

Change-Id: Ibea874e75a7092b3f9c1c56dc5182cdf73f35532
2017-04-05 18:58:09 +02:00
Christopher N. Hesse
5781c8ec57 power: Remove unused variables
Change-Id: I805a12837bd013e71c098479279dcc5895ea1e1d
2017-04-05 18:58:09 +02:00
Christopher N. Hesse
e37aedde2e lights: Put back fd checks before closing
While close(NULL) is indeed a harmless noop, fd can
end up being < 0 for us.

Change-Id: I56dcd7fb61c72d3ce750b13329ff42e11ab63c84
2017-04-05 18:58:09 +02:00
Christopher N. Hesse
235c298767 lights_helper: I/O API cleanup
* buf => buffer for consistency
 * explicitly cast strtol retval to int
 * close(NULL) is a no-op, remove superfluous checking
 * replace variying buffer sizes by INT_MAX_STRLEN
 * always return signed errno codes

Change-Id: I972e33e2435ec7d68a8ffdc5ab88a14d8005ff55
2017-04-02 17:27:58 +02:00
Christopher N. Hesse
d483dd7898 audience: Cleanup write_int()
Change-Id: Idfec2093c63a864d5f9d37353adbf6f8fc5d4fcd
2017-04-02 14:14:46 +02:00
Christopher N. Hesse
658f447ad3 audience: Use O_WRONLY flag for write_int()
Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b
2017-04-02 14:12:54 +02:00
Christopher N. Hesse
2036814f43 audience: Always log write_int() fails
Change-Id: I747c38646599ae3f687279ca8a95db804f3ad015
2017-04-02 14:11:25 +02:00
Christopher N. Hesse
705246055a audience: Warn when we cannot handle the output device
Change-Id: I0cddd94f22c5e912436682d713a1ae441723cfee
2017-04-02 14:07:46 +02:00
Christopher N. Hesse
f9b8e83975 power: Add POWER_HINT_DISABLE_TOUCH support
Change-Id: I363df278598e3402692424539638f3547c648e26
2017-04-02 13:15:40 +02:00
Abhisek Devkota
047075e2a7 Automatic translation import
Change-Id: I58d68d3bc81f39d0b452a9aa1f408a0e6830de63
2017-03-29 14:27:17 -07:00
Martin Bouchet
4bf8a7978e PowerHAL: Update the hispeed_freq value before using it
The hispeed_freq value is read only in the inizialization process.
If we decide to change it later writing a new value to the node
this new value wont be taken into consideration by the power hal.
Lets update the hispeed_freq value in the power hal before using
it to limit the max cpu freq when we go into power save mode.

Change-Id: I4b8c7f67259750b2931b18c3871874022aa6054d
2017-03-28 19:28:29 +00:00
Christopher N. Hesse
56caa269d2 audio: Split BT SCO media/incall paths
Change-Id: I23a621855e8b96edcd92d8740dfec270ff7e7407
2017-03-20 19:48:35 +01:00
Fevax
51bd12c20d audio: add support for bluetooth wideband voice calls
Change-Id: I02bf23a83c52389cc02ba1f61572eb651418fe24
2017-03-20 14:44:03 +00:00
Christopher N. Hesse
81f714d57a power: Rework governor path abstraction
Construct the paths for the driver based on the device
specific header data.

Change-Id: Ic7c72a2bbe6f199e1297f41817840059595f516d
2017-03-18 17:48:13 +00:00
Abhisek Devkota
c9bdb4d506 Automatic translation import
Change-Id: Ib6bc0641aa25b3f4071b3ad2e57a5c084d418916
2017-03-15 13:38:37 -07:00
Christopher N. Hesse
2981f792c4 power: Cleanup hint handling
Change-Id: I828a68105272fef3fe454561d98825f8703bca0b
2017-03-14 08:05:53 +00:00
Christopher N. Hesse
15b63090f2 power: Discard hints in power save mode
Change-Id: I9c3701261e49023761599ebaa8cd3e09a88a40c6
2017-03-14 08:05:31 +00:00
Christopher N. Hesse
f70cf8ac6b power: Keep boostpulse fd opened
No one else should be writing to this, so keep the fd
opened.

Change-Id: I4258f7f7d69250f4832a67807031ab3faa9ff586
2017-03-14 08:05:13 +00:00
Christopher N. Hesse
f21fbdb02e power: Keep boostpulse fd opened
No one else should be writing to this, so keep the fd
opened.

Change-Id: I4258f7f7d69250f4832a67807031ab3faa9ff586
2017-03-14 08:04:43 +00:00
Luca Stefani
a042209f66 liblights: Always apply linear scaling if max brightness isn't 255
* As of now the code account only max_brightness > 255
  -> Check if max_brightness != 255 and apply the scaling
     even if the max_brightness is less then 255

Change-Id: I809ece5844c8ccf20ae6507f23d308fe3ddfe94b
2017-03-13 15:11:53 +01:00
Abhisek Devkota
3c99507fb6 Automatic translation import
Change-Id: I27a0fd483b301f46556d5e37819ee2bdcf346046
2017-03-08 14:06:35 -08:00
Christopher N. Hesse
65c65bd186 power: Initialize device power paths
Change-Id: I56481946e2e3f4a80f2d3a7713ce61ed7923666d
2017-03-07 23:02:10 +01:00
Christopher N. Hesse
d9106e98b2 power: Cleanup touchkey handling
* Simplify interactive changes
 * Better support for non-touchkey devices
 * Only perform read I/O in samsung_power_set_interactive
   if needed (improves wake->panel_on delay)

Change-Id: If7bd6a1833ac7605db437ef3664230f9a452d58b
2017-03-07 22:50:41 +01:00
Christopher N. Hesse
f154b17b79 lights: Add a log tag
Change-Id: I7f4643324ed5c52b60ceede5f1ad8f24131cf3c0
2017-03-04 16:03:33 +01:00
Christopher N. Hesse
209f5deec3 lights: Cleanup read/write API
* Use O_WRONLY for write
 * Return errno for write
 * Log all failures
 * Fix read_int():
   We would always treat strtol(...) = 0 as an error,
   although the real value can very well be 0.
   Check the end pointer to fix this.

Change-Id: Id2bc9acc103a7a6400dd06f3904af37cbb0b5174
2017-03-04 15:42:49 +01:00
Christopher N. Hesse
b5b9500a62 lights: Remove superfluous log newlines
Change-Id: Id1522dfe92c9e585000edd7067b50968f38c07ca
2017-03-04 15:04:16 +01:00
Christopher N. Hesse
354f713a56 power: Remove superfluous log newlines
Change-Id: I33da39a89544f3580d395f4165b8cff4de5a4224
2017-03-04 14:58:48 +01:00
Christopher N. Hesse
0fdef0cbd6 audio: Add support for Audience EarSmart ICs
Some devices (often T-Mobile variants) have extra hardware for
incall audio processing.
Audio must be routed to the ES IC properly so it can be passed to
ALSA, otherwise the RX/TX streams are lost.

Change-Id: Ib29c747d5728a09726e14bab00f26ad273400aba
2017-03-03 21:49:59 +00:00
Michael W
68f8fb65aa Automatic translation import
Change-Id: I1e390ecacd03d6c97ea1bfe14474a37bbfe29fb2
2017-03-03 18:40:43 +00:00
Christopher N. Hesse
a13e517a69 audio: Add error logging to ril_interface
Change-Id: I447d1bf2745990bd71688847d3e9cdb432c57f47
2017-03-01 11:22:04 +01:00
Andreas Schneider
e9a44a2d55 audio: Restart the voice call on device change
When we change the device during a phone call we need to completely
restart it. This is required by the modem.

Change-Id: I902c78bf50dfb5dc3da51fca0fb862f872df86ca
2017-02-24 22:50:27 +00:00
Simon Shields
310d1999e5 liblights: add support for adjusting notification LED brightness
The old exynos4x12 lights HAL had logic for scaling the brightness of
lights according to the light's type and also scaling each R/G/B colour.

Bring this logic across, and make the battery LED not eye-searing at
night.

Based on work by Daniel Hillenbrand.

REGRESSION-66

Change-Id: Ia6108468f57c3b6c6a1a68da76a1c3362fd982a5
2017-02-24 12:53:18 +00:00
Christopher N. Hesse
5eda55f20a libsecril-client: Expose MSIM functions by default
Recent devices (zero, noble, others) link audio-ril
against this.

Change-Id: If774ff378f519b221594e8b793a95831cacd4ae4
2017-02-22 11:01:04 +00:00
Simon Shields
a9d8bf6af4 libril: use responseInts for LAST_CALL_FAIL_CAUSE on Exynos4
Exynos4 devices send two ints as a response to this request,
causing responseFailCause to think the result is a LastCallFailCause struct,
which it then tries to treat as a Java UTF-8 encoded string, causing a
crash.

Work around this by forcing responseInts (the original behaviour)
on Exynos4 devices.

Change-Id: Ied14948db3049066ffc760b6d3df09b4cefa2df0
2017-02-19 13:39:36 +00:00
Andreas Schneider
dd8a36941b audio: Improve logging in out_set_parameters()
Change-Id: I5800307905870ca836383e7d492a7472a9a386be
2017-02-19 11:47:26 +00:00
Andreas Schneider
49b9dcb284 audio: Implement WB_AMR callback correctly
Change-Id: Ib2392c8a122d07b40814ca2eeaecf30f9bdb0f99
2017-02-19 11:46:55 +00:00
Martin Bouchet
3ac2971b52 macloader: Fix default NVRAM param path
* Not sure why this was ever the default path

Change-Id: I3ae7ab2a4fc0c84d78b8eba1ec8a132f5be531e9
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
2017-02-17 11:38:13 +00:00
Abhisek Devkota
037d0779db Automatic translation import
Change-Id: I58d0e1a5a3bfb2ed098b8d31684f1c9558748c2a
2017-02-16 10:43:09 -08:00
Andreas Schneider
dde54c0469 audio: Fix get_snd_device_name() for earpiece
SND_DEVICE_MIN_OUT_EARPIECE is set to SND_DEVICE_MIN.

Change-Id: I3a442df7f388b72d433257f6ac1db473e4cb14a6
2017-02-16 14:50:48 +01:00
Christopher N. Hesse
130da9f065 audio: Cleanup and fix voicecall preparation
* if (usecase == NULL) should actually be if (vc_usecase == NULL)
 * Avoid unnecessary if-block indentation by updating the control
   flow

Change-Id: If00ac405a1eac429862b953580e8614227015134
2017-02-16 14:50:48 +01:00
Martin Bouchet
8794541f19 macloader: Add one more SEMCO3RD half address
reference here:
http://hwaddress.com/company/samsung-electro-mechanicsthailand-2

Change-Id: Iee368306bf9387b743fb77aa8d83d73c70c51f3e
2017-02-16 04:46:59 +00:00
Christopher N. Hesse
74c317d1bd audio: Guard WB_AMR callback
Some devices do not support this; some devices are WiFi only
and obviously do not have it.

Change-Id: I6d245eee447bd87849cbdfd41c0cf73c6af714e6
2017-02-15 11:25:45 +01:00