GitHub/LineageOS/android_hardware_samsung.git
5 years agoAdd unlisted SEMCO3RD mac address
ivanmeler [Thu, 31 Jan 2019 11:58:17 +0000 (12:58 +0100)]
Add unlisted SEMCO3RD mac address

Confirmed with https://www.wireshark.org/tools/oui-lookup.html

 08:C5:E1 SamsungE Samsung Electro-Mechanics(Thailand)

Change-Id: Ief2ec0a19c554aeb4266a64cd58aec56baf9cfe5

5 years agomacloader: Add mac addresses observed on new revisions of Galaxy S7
ivanmeler [Mon, 28 Jan 2019 12:11:54 +0000 (13:11 +0100)]
macloader: Add mac addresses observed on new revisions of Galaxy S7

verified on https://www.wireshark.org/tools/oui-lookup.html

10: 98:C3 MurataMa Murata Manufacturing Co., Ltd.
24: 18:1D SamsungE Samsung Electro-Mechanics(Thailand)
30: 07:4D SamsungE Samsung Electro-Mechanics(Thailand)
94: 76:B7 SamsungE Samsung Electronics Co.,Ltd
Change-Id: I3e3aebfca89b68fcb188ff955efdb1b8d32d16af

5 years agomacloader: Add new mac addresses for semcosh and and murata
ivanmeler [Tue, 27 Nov 2018 10:55:20 +0000 (11:55 +0100)]
macloader: Add new mac addresses for semcosh and and murata
Observed on new s7 models

Change-Id: Ic2d2068d6e7ba4f1dedb1e3fd83c9a5797523d86

6 years agoAdding WiFi MAC address for new S7 devices
ivanmeler [Tue, 28 Aug 2018 18:27:39 +0000 (20:27 +0200)]
Adding WiFi MAC address for new S7 devices

Some new S7 devices are sold with cc:c0:79 MAC Address.
Adding this address in file macaddr_mappings.h is required in order to load proper drivers.
Without it, the WiFi does not work properly : signal is weak

Change-Id: I9845f8739cf3e5a4caea9eeb989576877d088731

6 years agoAutomatic translation import
Michael Bestas [Sun, 14 Oct 2018 10:59:30 +0000 (13:59 +0300)]
Automatic translation import

Change-Id: I8335be5e24d85f25b23082f666451b7ef54c2c04

6 years agolibril: add missing return statement
Stricted [Sun, 26 Aug 2018 09:42:23 +0000 (11:42 +0200)]
libril: add missing return statement

Change-Id: Icfdc5fae064f66bfcaf061bff0d0d1e5554f126d

6 years agoaudio_hw: Prevent referencing input devices from empty list
Vasyl Gello [Sun, 1 Jul 2018 07:57:35 +0000 (10:57 +0300)]
audio_hw: Prevent referencing input devices from empty list

Fixes audioserver crash in in_get_capture_position() if PCM input
device was not properly opened.

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Change-Id: I2f2d9bc8151cf61af112a9544268513effacacb5

6 years agoAudio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.
stenkinevgeniy [Mon, 9 Jul 2018 14:48:19 +0000 (14:48 +0000)]
Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.

Some devices, that using wm* codecs like i9500, t805, p601 and others
need open CP pcm's when using BT SCO in IN_COMMUNICATION mode.

Change-Id: I64935aabf1c52e66409e727f02752cd325f8ef58
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
6 years agoAudio: fix voip calls over bluetooth headset.
stenkinevgeniy [Mon, 9 Jul 2018 11:20:36 +0000 (11:20 +0000)]
Audio: fix voip calls over bluetooth headset.

Current HAL start/stop bt_sco session only for incall mode -
rewrite logic to start/stop bt session when system switch to
one of the bluetooth devices.
Move bt_sco_active and pcm_sco_rx/tx to main audio_device structure.
Remove bt_sco_capture profile.

Change-Id: I7bbe4273f759e255bb857f8292f2921df31d4b0b
Signed-off-by: stenkinevgeniy <stenkinevgeniy@gmail.com>
6 years agoAudio: fix call recording.
stenkinevgeniy [Thu, 12 Jul 2018 05:55:33 +0000 (05:55 +0000)]
Audio: fix call recording.

Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab

6 years agoaudio: improve log message to support for devices that dont have an amp
Christopher N. Hesse [Thu, 12 Jul 2018 11:51:43 +0000 (13:51 +0200)]
audio: improve log message to support for devices that dont have an amp

Change-Id: I3fe824c4dbdb57bb0d63b395cfcef2f9dbbe556b
Signed-off-by: Abhay Ruparel <abhayruparel2000@gmail.com>
(cherry picked from commit c487bbe38958d79aa7391b928f15e9ed5f8d1d4b)

6 years agoAudio: remove unsupported aec loopback stuff.
stenkinevgeniy [Wed, 20 Jun 2018 07:40:53 +0000 (07:40 +0000)]
Audio: remove unsupported aec loopback stuff.

Change-Id: Ie9429a7a8131dacdc73899192f50b545d8f8b1c3

6 years agoMAC: add new Murata range
Vahempio [Fri, 29 Jun 2018 17:17:40 +0000 (19:17 +0200)]
MAC: add new Murata range

New herolte OUI observed: 1c:70:22
Checked on hwaddress.com

Change-Id: I4a2c15e315b46af81f815114cf85f0d1cced87f3

6 years agoAdd missing murata and semco3rd mac addresses
ivanmeler [Thu, 28 Jun 2018 09:22:17 +0000 (02:22 -0700)]
Add missing murata and semco3rd mac addresses

Users found this on few herolte/hero2lte revisions

Change-Id: I2cda3a3b39c951c1215622ae1b55483fbbfc94a8
(cherry picked from commit 5e6355bc8c8687ef81798614e4772ccd68eb51b7)

6 years agolibsecril-client: provide req_id for SendOemRequestHook errors
Vasyl Gello [Sun, 10 Jun 2018 19:14:28 +0000 (22:14 +0300)]
libsecril-client: provide req_id for SendOemRequestHook errors

Change-Id: Ie4a28deff74ed0b8ac4eeff4dfb4b34098d20e6c

6 years agoaudio: Re-worked sound pre- and post-processing
Basil Gello [Mon, 21 May 2018 15:29:12 +0000 (18:29 +0300)]
audio: Re-worked sound pre- and post-processing

In order to activate proprietary sound pre- and post-processing,
the following parts of audio HAL were revised:

* Activated ENABLE_PREPROCESSING directive in Android.mk
* Removed unused variables and functions
* Re-written set_preprocessor_echo_delay() function

Change-Id: I868087f422764895df7d2bc6bbf4bbd76672b8e7

6 years agoRevert "audio: Fix incall device switch handling"
stenkinevgeniy [Wed, 30 May 2018 15:43:14 +0000 (15:43 +0000)]
Revert "audio: Fix incall device switch handling"

This commit cause bug - no sound after end voice call when
using speaker. Sound come back after audioflinger send
standby and hal reenable speaker for new stream (usecase).

Reason - hal need reenable speaker (or other devices) for
other streams (usecases).

This reverts commit f33a728b205f7656ca6211a07e3dd69c623b75ca.

Change-Id: Icde4e83ab824008e931b681cdbb6e11d6a2a7aa5

6 years agoAudio: get_input_snd_device - use all bt sco devices for voice calls.
stenkinevgeniy [Tue, 22 May 2018 18:06:48 +0000 (18:06 +0000)]
Audio: get_input_snd_device - use all bt sco devices for voice calls.

Use  AUDIO_DEVICE_OUT_BLUETOOTH_SCO
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET and
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
and not only AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET for voice calls.

Remove default voice_mic for sco devices - why we need default mic
for sco output devices if now we handle all sco output devices.

Change-Id: Ibf4eb42eebcf7dc229649d8afe6e8b3ea9354165

6 years agoAudio: remove separated bt_sco playback profile
stenkinevgeniy [Sun, 20 May 2018 14:18:53 +0000 (14:18 +0000)]
Audio: remove separated bt_sco playback profile

Myabe this related to htc flounder hw but this
not needed for samsung and this cause bug when
hal trying open bt pcm device for system sounds
while voice call active on sco and bt pcm device
opened with start_voice_session_bt_sco.

Change-Id: I75482dad42feccae5e8ca9df2623ef4693a7bdb0

6 years agoAudio: check and route usecases
stenkinevgeniy [Tue, 8 May 2018 12:02:35 +0000 (12:02 +0000)]
Audio: check and route usecases

Add check_and_route_usecases -

this function is to make sure that all the usecases that are active on
the hardware codec backend are always routed to any one device that is
handled by the hardware codec.

Example:
When voice call starting - we need earpice -
hal enable earpice, but befor - we put call button -
and hal enable speaker and play sound - "click"
And now we have speaker and earpice enabled.
Later when audioflinger send standby (default after 3 sec) to stream
which use speaker - hal disable speaker while voice call active - and
we have no sound in earpice.
check_and_route_usecases will not allow such situations.

Change-Id: Ibc534bb14c25e4a4ffb4f3487d1424e9e1ed6a67

6 years agoAudio: HAL should handle other streams (when call active)
stenkinevgeniy [Tue, 8 May 2018 11:51:29 +0000 (11:51 +0000)]
Audio: HAL should handle other streams (when call active)

Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1

6 years agoAudio: remove out stream resampler.
stenkinevgeniy [Tue, 8 May 2018 07:17:53 +0000 (07:17 +0000)]
Audio: remove out stream resampler.

This never use - because -
out->sample_rate and out->config configured in adev_open_output_stream
out->config = can have deep or no pcm config with only 48000 sample rate.

Change-Id: Ie1c4025585ab6e1b7a900486181c1bceeff88139

6 years agoAudio: out_open_pcm_devices - use out->config instead of pcm_device->pcm_profile...
stenkinevgeniy [Tue, 8 May 2018 06:52:05 +0000 (06:52 +0000)]
Audio: out_open_pcm_devices - use out->config instead of pcm_device->pcm_profile->config.

Current get_pcm_device return always first finded pcm_profile.
And out->pcm_dev_list always have only pcm_device_playback pcm_profiles.

But if we need use deep_buffer pcm device
we need use deep_bufer pcm_config - current hal
don't did this...

And we configure out->config in adev_open_output_stream
function with proper pcm_config (deep or no).

Change-Id: I86fdb18202afb0e83393f32830d57c929f174ae6

6 years agoAudio: remove unsupported hotword/soundtrigger stuff.
stenkinevgeniy [Mon, 7 May 2018 18:00:13 +0000 (18:00 +0000)]
Audio: remove unsupported hotword/soundtrigger stuff.

Change-Id: Ie21f94e80a18f5a5805a3ee00e12e83fa2fc3f1a

6 years agoAutomatic translation import
Michael Bestas [Sat, 5 May 2018 16:21:29 +0000 (19:21 +0300)]
Automatic translation import

Change-Id: Ibf413b26d41d35b2b54422e18e9b3f6b33a56407

6 years agoaudio: return EINVAL to avoid get_presentation_position spamming logs
Victor Lourme [Mon, 26 Mar 2018 17:36:07 +0000 (19:36 +0200)]
audio: return EINVAL to avoid get_presentation_position spamming logs

Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977
(cherry picked from commit 5869cd357e9b0bd9dffe70ac207cda4ec266b73c)

6 years agofingerprint: send cancel-message to system
Lukas0610 [Wed, 7 Mar 2018 12:04:55 +0000 (13:04 +0100)]
fingerprint: send cancel-message to system

Android expects a FINGERPRINT_ERROR_CANCELED error-message if a
fingerprint authentication-requested was cancelled.

As bauth doesn't deliver such a message on its own, we use the
already notify-wrapper to send a message to Android if the
authentication was cancelled by bauth to allow a proper operation
of the fingerprint-service.

Some devices (hero, hero2) with the fingerprint scanner embedded in
the home button need this for the "config_fingerprintWakeAndUnlock"
option to work reliably.

Change-Id: Id5ec866a7608885925687a1927e0e6085e9b6cff
Ref: BUGBASH-1422

6 years agoaudio: Use audio_route_{apply/reset}_and_update_path
Christopher N. Hesse [Fri, 9 Mar 2018 22:20:55 +0000 (23:20 +0100)]
audio: Use audio_route_{apply/reset}_and_update_path

We don't need to handle the mixer updates here anymore.

Change-Id: Id60759e31a6501e4772bbd7377505197c932545a

6 years agoaudio: Update mixer knobs after re-applying output route
Christopher N. Hesse [Tue, 6 Mar 2018 19:16:00 +0000 (20:16 +0100)]
audio: Update mixer knobs after re-applying output route

Change-Id: I35fbcc03e9666e579134512b443610e546c31441

6 years agoaudio: Guard mixer path dependency fix
Christopher N. Hesse [Mon, 12 Feb 2018 00:47:48 +0000 (01:47 +0100)]
audio: Guard mixer path dependency fix

Change-Id: Id93d7941ae322a83488da3cea62c6eb36a6e9160

6 years agopower: Allow POWER_HINT_DISABLE_TOUCH in low power mode
Christopher N. Hesse [Mon, 19 Feb 2018 22:20:14 +0000 (23:20 +0100)]
power: Allow POWER_HINT_DISABLE_TOUCH in low power mode

 Remove the unused len var while we're at it.

Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5

6 years agopower: Silence excessive logging
Christopher N. Hesse [Mon, 19 Feb 2018 22:17:09 +0000 (23:17 +0100)]
power: Silence excessive logging

Change-Id: I519122aaa77e73cf0290610a3d9d4aa79700e843
(cherry picked from commit 4f7dc6ffec2344057ca7db8af8b5029bfcc8d931)

6 years agoril: Add support for imsType parcel member
Christopher N. Hesse [Tue, 13 Feb 2018 23:13:18 +0000 (00:13 +0100)]
ril: Add support for imsType parcel member

This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2

6 years agoril: Add support for roamingProtocol parcel member
Christopher N. Hesse [Tue, 13 Feb 2018 22:51:12 +0000 (23:51 +0100)]
ril: Add support for roamingProtocol parcel member

This is needed for Samsung devices like the Galaxy A5 2017.

Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab

6 years agoaudio: Avoid mixer path dependency conflicts
Christopher N. Hesse [Fri, 2 Feb 2018 22:19:42 +0000 (23:19 +0100)]
audio: Avoid mixer path dependency conflicts

On some devices, certain input and output mixer controls share the same
endpoint, which means that if an input stream is disabled (and the mixer
is updated), that shared endpoint may be disabled as well.

This would result in no audio, because no one is aware that the output
stream in fact does still need the shared endpoint to be enabled.

We prevent this by enabling the output mixers after disabling input mixers,
if any.

Change-Id: I4d80fcd0648a11099f27177da3cd29095b6a8c34

6 years agodtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatch
Christopher N. Hesse [Mon, 29 Jan 2018 21:47:52 +0000 (22:47 +0100)]
dtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatch

Change-Id: I486239d47255d5a5347e7b8ac7348afb8bc5bddb

6 years agoAutomatic translation import
Michael Bestas [Sun, 4 Feb 2018 02:52:16 +0000 (04:52 +0200)]
Automatic translation import

Change-Id: I53d1292b609076a6f6fb6f4e47f50e749fc5c8d1

6 years agodtbhtool: implement unpackdtbhimg
Simon Shields [Mon, 29 Jan 2018 02:17:08 +0000 (13:17 +1100)]
dtbhtool: implement unpackdtbhimg

Parses a DTBH image and outputs the information needed
for samsung_dtb.h and dumps all DTBs contained in the file.

Change-Id: Ia724f25c3b33423baeefec85c9b0d42967fce6f2

6 years agoaudio: Directly link voice data <-> session
Christopher N. Hesse [Mon, 29 Jan 2018 02:28:10 +0000 (03:28 +0100)]
audio: Directly link voice data <-> session

This is part of a cleanup series.
In the future, we should reconsider the struct usage and (maybe?) move
the members into one common place.

Change-Id: I3218d75acb0c4965332ba0de30b40ca7821596a7

6 years agoAdded another new Murata MAC range
Davis Mosenkovs [Sun, 28 Jan 2018 23:49:52 +0000 (15:49 -0800)]
Added another new Murata MAC range

Another herolte user observed OUI 8c:45:00

Change-Id: I7eaf4fef29c6dbc6a962de0ff745c9703f65fcfc

6 years agoaudio: Print error in case of nonexistant mixer paths
Christopher N. Hesse [Sun, 28 Jan 2018 12:16:17 +0000 (13:16 +0100)]
audio: Print error in case of nonexistant mixer paths

Change-Id: I131ed6518ce8f26638a3490ee1be7a5d93b4e5b8

6 years agoaudio: Fix BT sample rate handling properly
Christopher N. Hesse [Tue, 16 Jan 2018 17:33:38 +0000 (18:33 +0100)]
audio: Fix BT sample rate handling properly

This should now support both old and new headsets,
as we rely on codec negotiation in the bluetooth
stack for narrow/wide band switching.

Change-Id: Ie9d308dfc55726fd1591a7d158f610bd267340e6

6 years agoRevert "audio: Always use 16kHz sampling for SCO"
Christopher N. Hesse [Tue, 16 Jan 2018 21:05:02 +0000 (22:05 +0100)]
Revert "audio: Always use 16kHz sampling for SCO"

This reverts commit 182464861d3194f637f23431230810b6d9f7f2ab.

Change-Id: Ib1b4d074b9acc54d77a3c97b2a37a498db58376b

6 years agoaudio: run ril_set_call_clock_sync() in stop_voice_session()
Usaamah Patel [Tue, 19 Dec 2017 15:42:38 +0000 (15:42 +0000)]
audio: run ril_set_call_clock_sync() in stop_voice_session()

Some devices like the Samsung Galaxy S6, require this
to be run at the end of the voice session. However some
devices also need this to be run at the start of the
voice session whereas the S6 does not (see previous commit).

Change-Id: I833b57e262795fcbd8be6f44afb17b0f1ca6fee3
Signed-off-by: Usaamah Patel <ussyp2015@gmail.com>
7 years agoAdded new Murata MAC range
Davis Mosenkovs [Mon, 9 Jan 2017 20:11:31 +0000 (12:11 -0800)]
Added new Murata MAC range

OUI a0:c9:a0 was observed on hero devices bought in December 2017

Change-Id: I0a2404780b1b5b017bb89468d235a2174a245989

6 years agoAutomatic translation import
Abhisek Devkota [Sat, 16 Dec 2017 19:34:41 +0000 (11:34 -0800)]
Automatic translation import

Change-Id: Icaf152e2e9a7829fdafa26c906fc09138dfbd548

6 years agoaudio: Always use 16kHz sampling for SCO
Christopher N. Hesse [Fri, 17 Nov 2017 21:00:38 +0000 (22:00 +0100)]
audio: Always use 16kHz sampling for SCO

Change-Id: Id9a42913522fa41c71781dffad9a45dccc78f706

6 years agoAutomatic translation import
Abhisek Devkota [Tue, 12 Dec 2017 05:57:27 +0000 (21:57 -0800)]
Automatic translation import

Change-Id: Iaea0d7c3504341aae3cd011fa2d621f4df895dad

7 years agoaudio: End voice call in set_mode()
Christopher N. Hesse [Fri, 17 Nov 2017 19:41:11 +0000 (20:41 +0100)]
audio: End voice call in set_mode()

Previously, we would only end the voice call once the next output
stream happened (and parameters would be set).

Change-Id: Id0d2711605e57ad69d9b26b36afb562444349358

7 years agoaudio: Fix incall device switch handling
Christopher N. Hesse [Fri, 17 Nov 2017 19:27:50 +0000 (20:27 +0100)]
audio: Fix incall device switch handling

The whole code block was no-op, since we would override
(in|out)_snd_device at a later point anyways.

Change-Id: Ieb2b0918c9c72f18d195d6b34b5c9768fce130b3

7 years agoaudio: Improve code readability
Christopher N. Hesse [Thu, 16 Nov 2017 16:01:37 +0000 (17:01 +0100)]
audio: Improve code readability

Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5

7 years agoaudio: Initial support for amplifier HALs
Christopher N. Hesse [Fri, 4 Aug 2017 19:17:55 +0000 (21:17 +0200)]
audio: Initial support for amplifier HALs

Change-Id: I04ef5b89ca595a0df02f6a4a68748bd0d0cdb245

7 years agolibril: Fix multisim flags
Christopher N. Hesse [Fri, 20 Oct 2017 16:34:57 +0000 (18:34 +0200)]
libril: Fix multisim flags

Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8

7 years agoAutomatic translation import
Abhisek Devkota [Sat, 21 Oct 2017 18:11:46 +0000 (11:11 -0700)]
Automatic translation import

Change-Id: Ie816ca65ea96940062424d03b1cbfec27a056f55

7 years agoRemove obsolete values-be translations
Michael Bestas [Sat, 30 Sep 2017 15:35:38 +0000 (18:35 +0300)]
Remove obsolete values-be translations

* values-be-rBY is used now

Change-Id: I24ecbc1caf2af391746fa5f968d0ad37ee06a2a1

7 years agoliblights: Add led-blink support for BLN
Dominggoes Isakh [Tue, 8 Aug 2017 14:43:53 +0000 (16:43 +0200)]
liblights: Add led-blink support for BLN

Change-Id: I0f112abdae3dcd9b94520e41e2e8f4fb956300cf

7 years agolibril: Force RADIO_TECH_1xRTT on lteOnCdmaDevice
Matt Mower [Tue, 8 Nov 2016 13:28:00 +0000 (07:28 -0600)]
libril: Force RADIO_TECH_1xRTT on lteOnCdmaDevice

Ensure CDMA variants have CDMALTEPhone objects setup in frameworks
instead of GSM. This resolves issues with *- dialing and +1 dialing on
Verizon Wireless, for example. Credit to Nolan Burchfield for
identifying the issue.

Change-Id: Ib5188bbf1bbed290962c0e236af96c2f1639f954

7 years agoaudio: Fix WBS sample rate usage
Martin Hoffmann [Wed, 26 Jul 2017 10:10:37 +0000 (12:10 +0200)]
audio: Fix WBS sample rate usage

Fixes: BUGBASH-302

Correctly use 16khz for the WBS-SCO pcm_config.
No more garbled or mute in-call sound on bt.

Apply together with a device specific port of:
https://review.lineageos.org/#/c/177996/
and REMOVE any definitions of
SCO_WBS_SAMPLE_RATE
https://review.lineageos.org/#/c/178371/

This requires testing for all devices using:
android_hardware_samsung
(universal audio HAL part)

Change-Id: I84fb1b234bf2880bf98bf99f1e4ff6c05500b0e3

7 years agowifiloader: Load kernel module if present
Christopher N. Hesse [Wed, 2 Aug 2017 13:21:35 +0000 (15:21 +0200)]
wifiloader: Load kernel module if present

Samsung does this in the macloader service,
but this is the more appropriate place for
our platform.

Change-Id: I6335fea1d73d48f3c3f9938f33b536c5cda52acb

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 4 Aug 2017 05:48:37 +0000 (22:48 -0700)]
Automatic translation import

Change-Id: Iac6ca07164f94ff319af48ecf8cae29a76052c02

7 years agosecril-client: close fds on I/O errors
Basil Gello [Tue, 18 Jul 2017 19:00:01 +0000 (22:00 +0300)]
secril-client: close fds on I/O errors

if a kernel device returns an I/O error, it is better not to chew
the CPU resources retrying I/O operation on a not ready device.

Fixes periodical 100%-core load in audioserver after a voice call
completion.

Change-Id: I2b66ffd18c85823a11e50598a6b4e3c0245a0083

7 years agopower: Keep boost fd opened as well
Christopher N. Hesse [Sat, 8 Jul 2017 10:44:39 +0000 (12:44 +0200)]
power: Keep boost fd opened as well

Change-Id: I016b28c29786fc948a007d4ec3106be8a662eafd

7 years agomacloader: Drop semcove case and enum
Andrea Arcangeli [Tue, 25 Jul 2017 21:43:20 +0000 (23:43 +0200)]
macloader: Drop semcove case and enum

The all_ranges structure has one entry less than MAX_TYPES because
semcove type is not defined there, but there's no check for NULL and if
the mac isn't found it segfaults.

Change-Id: Ie218ea0a82b03992085db0f2d1cfc7079e7415a0

7 years agosecril-client: Fix RIL client token management in SendOemRequestHookRaw()
Basil Gello [Thu, 13 Jul 2017 16:29:21 +0000 (19:29 +0300)]
secril-client: Fix RIL client token management in SendOemRequestHookRaw()

On some devices, like SM-T805 (Galaxy Tab S 10.5 LTE), the RIL client
code produces errors "SendOemRequestHookRaw: No token" due to large
amount of tokens allocated by OEM messages requiring no response from
RIL daemon (like set call audio path, set call volume, set mite etc).

The indicator of an OEM message with no response expected is:

     RegisterRequestCompleteHandler(client, REQ_XXX, NULL);

inside the RIL client message method. To prevent the token pool from
overflows, the proposed patch de-registers the token and frees its call
history if the handler for this message req_id is set to NULL.

Change-Id: Id414263bf471115797cae1a9ed628249734b9347

7 years agosecril-client: return exact error code from blockingWrite()
Basil Gello [Thu, 13 Jul 2017 16:36:39 +0000 (19:36 +0300)]
secril-client: return exact error code from blockingWrite()

Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb

7 years agoRevert "power: Temporary logging fix"
Christopher N. Hesse [Thu, 13 Jul 2017 19:14:57 +0000 (21:14 +0200)]
Revert "power: Temporary logging fix"

This reverts commit ff86846e97f2d159cc98af80938246db0d53c39a.

Change-Id: I46aa4d6606c3c519322b2e2cd048bd312a15fa4d

7 years agopower: Allow for a dynamic cluster configuration
Christopher N. Hesse [Wed, 28 Jun 2017 20:53:03 +0000 (22:53 +0200)]
power: Allow for a dynamic cluster configuration

Change-Id: I542b36d26cad23f29e70ab70d996c95ca3ab11a7

7 years agopower: Temporary logging fix
Christopher N. Hesse [Sun, 9 Jul 2017 21:07:09 +0000 (23:07 +0200)]
power: Temporary logging fix

This will be reverted once the more advanced mechanism
(https://review.lineageos.org/#/c/179092/) goes in.

The boost fd logging will be restored once
https://review.lineageos.org/#/c/180313/ makes it into
the code base.

Change-Id: Ifc1b4a2ba3e1c4283d74eafec45c5fbf07153f03

7 years agopower: Print information on boot
Christopher N. Hesse [Sat, 8 Jul 2017 11:46:35 +0000 (13:46 +0200)]
power: Print information on boot

Change-Id: I1a8ba54f1b27c2e96c6bae77046dc207cdf35025

7 years agopower: sysfs_read: Do not store newlines
Christopher N. Hesse [Sat, 8 Jul 2017 11:56:25 +0000 (13:56 +0200)]
power: sysfs_read: Do not store newlines

Change-Id: If20b509b489b056ac3b37c208c42bc5407f61802

7 years agoAdvancedDisplay: Refactor
Luca Stefani [Sat, 4 Feb 2017 22:58:11 +0000 (23:58 +0100)]
AdvancedDisplay: Refactor

* Integrate with Settings
* Remove back button

Change-Id: Ie3bcd43ef7225bdc3b177446906335f59561b584

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 23 Jun 2017 03:56:50 +0000 (20:56 -0700)]
Automatic translation import

Change-Id: I352dfea4f441b2b1a7d14b4e665f1fe77eecc99c

7 years agoexynos: multimedia: add support for OMX_IndexParamVideoIntraRefresh parameter
Dheeraj CVR [Thu, 12 Mar 2015 02:41:11 +0000 (08:11 +0530)]
exynos: multimedia: add support for OMX_IndexParamVideoIntraRefresh parameter

filiprrs: This fixes miracast, and possibly resolves issues with features
like chromecast, screen recording, wifi display etc.

Change-Id: I35f789a9ae29df0198b21c98dc866d8886799893

7 years agoliblights: Fix fast blinking notification LEDs.
Jason Vidal [Sun, 11 Jun 2017 08:02:38 +0000 (08:02 +0000)]
liblights: Fix fast blinking notification LEDs.

Seems that the fast blinking notification LEDs experienced on some
Samsung devices was due to the removal of these two lines that clean
the 'blink' array. Propose re-inserting to correct the fast blinking
LED issue.

Change-Id: I88ea828a50468aae494b1dd54290607308de543a

7 years agoliblights: Add BLN support
Dominggoes Isakh [Fri, 26 May 2017 21:43:49 +0000 (23:43 +0200)]
liblights: Add BLN support

Change-Id: I3745b7c4ca7adadd62e116c71cd7357a4e8ed015

7 years agoliblights: Fix variable button brightness code
Paul Keith [Fri, 2 Jun 2017 22:52:14 +0000 (17:52 -0500)]
liblights: Fix variable button brightness code

* Because we're using #ifdef in set_light_buttons(),
  defining VAR_BUTTON_BRIGHTNESS to anything, including 0,
  results in the button brightness code being enabled
* That results in broken touchkey backlight for devices
  that don't override the samsung_lights header, or defined
  this macro to 0 in their device's samsung_lights header
* Comment out the macro to correct this logic

Change-Id: Icf554b0deac975f729f1a70e517341dae74f3657

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 1 Jun 2017 03:10:28 +0000 (20:10 -0700)]
Automatic translation import

Change-Id: I376a4f179af4bd395ca9c17da93f5101aca4c68c

7 years agoliblights: Add support for variable touchkey brightness
Dominggoes Isakh [Thu, 25 May 2017 12:49:46 +0000 (14:49 +0200)]
liblights: Add support for variable touchkey brightness

Change-Id: Icc5c589e88dc342ae50b432187bae65a9b3a23d7

7 years agopower: Write IO busy parameter for big cluster
Christopher N. Hesse [Mon, 29 May 2017 18:45:14 +0000 (20:45 +0200)]
power: Write IO busy parameter for big cluster

Change-Id: I9e09f640b956be87729df735225fcfe8f066ab48

7 years agomodemloader: Add support for recent devices
Christopher N. Hesse [Thu, 25 May 2017 15:39:18 +0000 (17:39 +0200)]
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

7 years agoAutomatic translation import
Abhisek Devkota [Thu, 18 May 2017 05:23:14 +0000 (22:23 -0700)]
Automatic translation import

Change-Id: I15bc33336962fd84fcb328d5fda461e5ce0bd495

7 years agopower: Allow POWER_HINT_LOW_POWER hint to disable power save mode
Christopher N. Hesse [Wed, 26 Apr 2017 19:42:10 +0000 (21:42 +0200)]
power: Allow POWER_HINT_LOW_POWER hint to disable power save mode

Change-Id: I3b4c90f05267ca4182187361e5d373adb6de25d7

7 years agoAutomatic translation import
Abhisek Devkota [Fri, 28 Apr 2017 22:17:09 +0000 (15:17 -0700)]
Automatic translation import

Change-Id: I7cdf0153bcb66bf25d80c694022018b5d89287e2

7 years agoAdvancedDisplay - Rename default scenario
Abhisek Devkota [Thu, 27 Apr 2017 17:54:53 +0000 (10:54 -0700)]
AdvancedDisplay - Rename default scenario

Change-Id: I6122234ef08b78958e28d3a127b3c73757a43445

7 years agomkbootimg: add exynos subdir to possible_dtb_dirs
Jesse Chan [Tue, 25 Apr 2017 09:38:42 +0000 (17:38 +0800)]
mkbootimg: add exynos subdir to possible_dtb_dirs

Change-Id: I70e5e0817ff0b63da7df3ab63f42b815170096e4

7 years agopower: Sanity check touchscreen path
Paul Keith [Sat, 22 Apr 2017 02:34:17 +0000 (21:34 -0500)]
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>
7 years agoAutomatic translation import
Abhisek Devkota [Thu, 20 Apr 2017 19:10:52 +0000 (12:10 -0700)]
Automatic translation import

Change-Id: I201d7c8ce8c9495085e68a76e14aa8d67caa31de

7 years agopower: Align to AOSP API
Christopher N. Hesse [Wed, 5 Apr 2017 16:52:48 +0000 (18:52 +0200)]
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

7 years agopower: Remove unused variables
Christopher N. Hesse [Wed, 5 Apr 2017 16:54:03 +0000 (18:54 +0200)]
power: Remove unused variables

Change-Id: I805a12837bd013e71c098479279dcc5895ea1e1d

7 years agolights: Put back fd checks before closing
Christopher N. Hesse [Wed, 5 Apr 2017 16:55:28 +0000 (18:55 +0200)]
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

7 years agolights_helper: I/O API cleanup
Christopher N. Hesse [Sun, 2 Apr 2017 15:20:16 +0000 (17:20 +0200)]
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

7 years agoaudience: Cleanup write_int()
Christopher N. Hesse [Sun, 2 Apr 2017 12:06:24 +0000 (14:06 +0200)]
audience: Cleanup write_int()

Change-Id: Idfec2093c63a864d5f9d37353adbf6f8fc5d4fcd

7 years agoaudience: Use O_WRONLY flag for write_int()
Christopher N. Hesse [Sun, 2 Apr 2017 11:24:47 +0000 (13:24 +0200)]
audience: Use O_WRONLY flag for write_int()

Change-Id: I9a0bdc78644e7a4875d7e49051722fff3d47ee6b

7 years agoaudience: Always log write_int() fails
Christopher N. Hesse [Sun, 2 Apr 2017 11:24:24 +0000 (13:24 +0200)]
audience: Always log write_int() fails

Change-Id: I747c38646599ae3f687279ca8a95db804f3ad015

7 years agoaudience: Warn when we cannot handle the output device
Christopher N. Hesse [Sun, 2 Apr 2017 11:19:36 +0000 (13:19 +0200)]
audience: Warn when we cannot handle the output device

Change-Id: I0cddd94f22c5e912436682d713a1ae441723cfee

7 years agopower: Add POWER_HINT_DISABLE_TOUCH support
Christopher N. Hesse [Mon, 16 Jan 2017 23:04:45 +0000 (00:04 +0100)]
power: Add POWER_HINT_DISABLE_TOUCH support

Change-Id: I363df278598e3402692424539638f3547c648e26

7 years agoAutomatic translation import
Abhisek Devkota [Wed, 29 Mar 2017 21:27:17 +0000 (14:27 -0700)]
Automatic translation import

Change-Id: I58d68d3bc81f39d0b452a9aa1f408a0e6830de63

7 years agoPowerHAL: Update the hispeed_freq value before using it
Martin Bouchet [Tue, 28 Mar 2017 07:00:04 +0000 (04:00 -0300)]
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

7 years agoaudio: Split BT SCO media/incall paths
Christopher N. Hesse [Mon, 20 Mar 2017 18:40:53 +0000 (19:40 +0100)]
audio: Split BT SCO media/incall paths

Change-Id: I23a621855e8b96edcd92d8740dfec270ff7e7407

7 years agoaudio: add support for bluetooth wideband voice calls
Fevax [Wed, 15 Mar 2017 13:56:39 +0000 (10:56 -0300)]
audio: add support for bluetooth wideband voice calls

Change-Id: I02bf23a83c52389cc02ba1f61572eb651418fe24