GitHub/LineageOS/android_hardware_samsung.git
5 years agoAutomatic translation import
Michael W [Fri, 1 Mar 2019 11:35:26 +0000 (12:35 +0100)]
Automatic translation import

Change-Id: I882aff6ec1e8dec88330dc0fa5ba09c0ecc036c2

5 years agoAdd anpother semco oui mapping
ivanmeler [Wed, 13 Feb 2019 15:30:38 +0000 (16:30 +0100)]
Add anpother semco oui mapping

Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36

5 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

5 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>
5 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>
5 years agoAudio: fix call recording.
stenkinevgeniy [Thu, 12 Jul 2018 05:55:33 +0000 (05:55 +0000)]
Audio: fix call recording.

Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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>
5 years agomacloader: Add 3 more semco mac ranges
ivanmeler [Sun, 3 Feb 2019 10:22:51 +0000 (11:22 +0100)]
macloader: Add 3 more semco mac ranges

Confirmed with https://www.wireshark.org/tools/oui-lookup.html
 48:13:7E SamsungE Samsung Electronics Co.,Ltd
 E8:3A:12 SamsungE Samsung Electronics Co.,Ltd
 F8:E6:1A SamsungE Samsung Electronics Co.,Ltd

Change-Id: Ic7225951cee415d68a917031d5f969f45a9cc7ec

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 agoAutomatic translation import
Michael W [Sat, 5 Jan 2019 15:02:29 +0000 (16:02 +0100)]
Automatic translation import

Change-Id: I7afae85e6462b2c4b91999ad65e82e92ab0db8e3

5 years agoAutomatic translation import
Michael Bestas [Fri, 14 Dec 2018 21:47:23 +0000 (23:47 +0200)]
Automatic translation import

Change-Id: I714d27f512ae0d1324374ad7f40677a287ab25cd

5 years agoAutomatic translation import
Michael Bestas [Sun, 25 Nov 2018 23:49:56 +0000 (01:49 +0200)]
Automatic translation import

Change-Id: Ia8c21170075bc9cf32a1c55a5da3c5ee1b0f3abd

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 agoAutomatic translation import
Michael Bestas [Thu, 15 Nov 2018 19:40:00 +0000 (21:40 +0200)]
Automatic translation import

Change-Id: Id0d4ea2797e1ef8f833c48975567a89fb325e1df

6 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

6 years agoAutomatic translation import
Michael Bestas [Sun, 4 Nov 2018 22:39:32 +0000 (00:39 +0200)]
Automatic translation import

Change-Id: I7118446dae352f7ed8079c37e0b58961994c14f4

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
(cherry picked from commit f66c95bcae5f4a0453b5c5f035f02e476145667b)

6 years agoAutomatic translation import
Michael Bestas [Sat, 13 Oct 2018 14:16:03 +0000 (17:16 +0300)]
Automatic translation import

Change-Id: Ic2d979b5db335a695492ed0cc3e0f08013f9d8d0

6 years agodtbhtool: Add new DTBH_MODEL entry
Christopher N. Hesse [Thu, 19 Jul 2018 21:08:14 +0000 (23:08 +0200)]
dtbhtool: Add new DTBH_MODEL entry

This allows us to distinguish not only by platform and subtype at build
time, but also by device-specific model.

It is required because two devices may share the same kernel sources and
thus build the same dtbs, but the resulting dt.img should be devie
specific and only contain the specific dtbs for that device.
Otherwise we are likely to violate dt.img size constraints by including
too many dtbs (which is the case for a5y17lte and a7y17lte right now).

For now, the feature will be optional (existing samsung_dtbh.h headers
don't have to be changed) but that might change in the future.

Change-Id: I2d804f9f1a14051e60f4de4f3d2d4f11c9b3c23f

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 agoAdvancedDisplay: Migrate to AAPT2
LuK1337 [Sat, 25 Aug 2018 10:31:48 +0000 (12:31 +0200)]
AdvancedDisplay: Migrate to AAPT2

Change-Id: I59dabea4484dd1f1e5c57ae2ac37b9939d2c875d
(cherry picked from commit d0e208008ccc1385c0ca61fe0bd40e7f92fcb9e8)

6 years agoAutomatic translation import
Michael Bestas [Thu, 16 Aug 2018 16:08:55 +0000 (19:08 +0300)]
Automatic translation import

Change-Id: I0913447dca830307d41286499ed69cd3e1e197c4

6 years agoAutomatic translation import
Michael Bestas [Sun, 5 Aug 2018 14:34:02 +0000 (17:34 +0300)]
Automatic translation import

Change-Id: Idc62dba34bdbe82a70e3b0e53755348a48659334

6 years agomacloader: Correct classification of f0:25:b7
Paul Keith [Wed, 1 Aug 2018 19:41:08 +0000 (21:41 +0200)]
macloader: Correct classification of f0:25:b7

* CIS table says 33 33, which is semco not semco3rd

Change-Id: I944df6b13a8c1294ef47016d15f13f79c5ed5f7d

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>
6 years agoAudio: remove unsupported aec loopback stuff.
stenkinevgeniy [Tue, 3 Jul 2018 07:38:08 +0000 (07:38 +0000)]
Audio: remove unsupported aec loopback stuff.

Change-Id: Ibabe4c5fc3b23cd5a0e33fc90b76db93a72099a6

6 years agolibril: Fix freeing of strings for roaming protocol flag
Paul Keith [Thu, 28 Jun 2018 16:45:29 +0000 (18:45 +0200)]
libril: Fix freeing of strings for roaming protocol flag

Change-Id: Id6150885203a64733bffeb7ce6dc4e91fab305df

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
(cherry picked from commit ba6c738c2f39fc1011ae5f61067f84b1bf430111)

6 years agomacloader: load nvram_net.txt from /vendor
micky387 [Wed, 7 Feb 2018 13:18:24 +0000 (14:18 +0100)]
macloader: load nvram_net.txt from /vendor

Change-Id: I688f42059459c400834cac0b4c8933ef216827a5

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

6 years agoril: service: Fix RIL_UNSOL_NITZ_TIME_RECEIVED Parcel
Paul Keith [Sun, 22 Oct 2017 03:25:25 +0000 (05:25 +0200)]
ril: service: Fix RIL_UNSOL_NITZ_TIME_RECEIVED Parcel

* Sometimes, the modem is sending 1-2 extra fields with
  the country mcc, which confuses ServiceStateTracker
* Drop the extra data here, instead of in our RIL class

[haggertk]: Forward port to ril-caf on lineage-15.

Change-Id: Ifbec67bb0dac271226bd8b5471deaf6a2ef33f2b

6 years agoril: service: Add workaround for "ring of death" bug
Paul Keith [Tue, 24 Oct 2017 00:27:29 +0000 (02:27 +0200)]
ril: service: Add workaround for "ring of death" bug

[javelinanddart]: Forward port to ril-caf on lineage-15.1

Change-Id: Ifeeee11ee83deddb8eff565847641c45a105378f

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
(cherry picked from commit 39d1d019965d04ddfad2c643de53cd5501803aa4)

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
(cherry picked from commit 35dbc1e39fa7d355edbebe0071145aac45cc1075)

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: 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

6 years agomkbootimg: Include system/tools/dtbtool
Michael Bestas [Sun, 25 Mar 2018 17:33:08 +0000 (20:33 +0300)]
mkbootimg: Include system/tools/dtbtool

* Moved from device/qcom/common

Change-Id: I9b301923aaebdbfbc8599e0f8524b2a38fe6cefa

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 agoril: service: Get off my back
Paul Keith [Tue, 6 Mar 2018 19:19:57 +0000 (20:19 +0100)]
ril: service: Get off my back

* Checking numInts and numStrings for strict equality when
  we're not looping is dumb, because Samsung is notorious
  for sending extra information in their RIL
* Check if there's *enough* data rather than the *exact amount*
  to fix a bunch of invalid response errors

Change-Id: I14bc37240e5760b4629fcb74b64f25ad95d4fdfc

6 years agoril: service: Fix breakage introduced by f7c75aa4e0
Christopher N. Hesse [Fri, 23 Feb 2018 18:07:27 +0000 (19:07 +0100)]
ril: service: Fix breakage introduced by f7c75aa4e0

Before:
    if (response == NULL || numStrings != 3) {
After:
    if (response == NULL || numStrings != mqanelements - 2) {

This patch fixes the logic so we don't change the value check.

"mqanelements" is not related to getOperatorResponse, so get get rid of
the affected code.

Change-Id: I86c6ae7b7492a5d04fbc8dc415c4f615e7d05bab

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 agoril: Add support for imsType parcel member
Christopher N. Hesse [Fri, 16 Feb 2018 11:40:06 +0000 (12:40 +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 agoAdvancedDisplay: Rename Negative to Accessibility
Paul Keith [Wed, 21 Feb 2018 20:40:51 +0000 (21:40 +0100)]
AdvancedDisplay: Rename Negative to Accessibility

* Samsung now supports many more modes than just inverted colors
* Add strings for these extra modes while we're at it

Change-Id: If2a469c994658d521d98b91adec1a19badb8092f

6 years agoAdvancedDisplay: Add support for new mDNIe scenarios
LuK1337 [Sat, 28 Jan 2017 17:38:22 +0000 (18:38 +0100)]
AdvancedDisplay: Add support for new mDNIe scenarios

* BROWSER_APP
* eBOOK_APP
* EMAIL_APP
* TDMB_APP

Change-Id: I44be4d46f7a077295f0631a71ec652e61c3f9411

6 years agoAdvancedDisplay: Fix strings
Paul Keith [Wed, 21 Feb 2018 19:10:11 +0000 (20:10 +0100)]
AdvancedDisplay: Fix strings

* It just so happens that not all devices will have the
  same options available, so allow them to specify what
  they have without breaking tranlations by moving the
  scenario names into individual strings from the arrays
* Update a few strings to be actually translatable
* Fix an off-by-one error for every display mode after
  "LineageOS (default)": UI is the same thing as the
  default mode, so remove it to make the mode selection
  actually choose the user-selected mode

Change-Id: Id5d659d79c10ea097c35b7416ef7c1cc93937756

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

6 years agoaudio: Support new and old mixer paths locations
Christopher N. Hesse [Sat, 27 Jan 2018 23:07:47 +0000 (00:07 +0100)]
audio: Support new and old mixer paths locations

Change-Id: Ifa2a55cbfe45ab9d53cd23098012443f9b32ca31

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
(cherry picked from commit 0524e26d2a1d155ce1dc9609b8e8741fd5f1500f)

6 years agoaudio: Avoid mixer path dependency conflicts staging/lineage-15.1
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
(cherry picked from commit 507e8ce5bffb36fae8b1cd4e5498fa19a6273ee6)

6 years agowifiloader: Make sure WiFi firmware path is writable
Christopher N. Hesse [Wed, 24 Jan 2018 01:14:45 +0000 (02:14 +0100)]
wifiloader: Make sure WiFi firmware path is writable

Change-Id: Ib0ae2a004d4207a4ccb3d551c9a6a092920595ca

6 years agowifiloader: Notify WiFi HAL on module load success
Christopher N. Hesse [Sun, 21 Jan 2018 23:20:06 +0000 (00:20 +0100)]
wifiloader: Notify WiFi HAL on module load success

Change-Id: I0c7de00aec571a29f79137bb5b50178b0be91408

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
(cherry picked from commit 8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0)

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
(cherry picked from commit 25b3f58c5bb9e9cfd2f0282047a2ea13141496cc)

6 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
(cherry picked from commit 939c81d0e0581a08b896636ce0f1d5bb96946dc9)

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
(cherry picked from commit 70d3e3166f748e96f72c1c96aa2971f4981e9981)

6 years agolibsec-ril: Include liblog
Sean hoyt [Wed, 23 Aug 2017 12:05:55 +0000 (12:05 +0000)]
libsec-ril: Include liblog

Change-Id: I87df49446a2729f19a5d5611a88a4a80faf0350b

6 years agolibril: fix network operator search
Martin Bouchet [Sun, 24 Sep 2017 07:51:55 +0000 (04:51 -0300)]
libril: fix network operator search

The number of mQANElements should be defined in the system
prop ro.ril.telephony.mqanelements

Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e

6 years agolibril: fix in call presentation
Martin Bouchet [Sun, 24 Sep 2017 06:14:57 +0000 (03:14 -0300)]
libril: fix in call presentation

Change-Id: Ifd4a20c0bcd34f380716cc96cdd4c99b4b909266

6 years agolibril: handle Samsung proprietary commands
Martin Bouchet [Sun, 24 Sep 2017 07:46:04 +0000 (04:46 -0300)]
libril: handle Samsung proprietary commands

Change-Id: Ief8402c8e75c677c7f2e32794f13867b924b209f

6 years agolibril: port Samsung responseDataCallList to O libril
Martin Bouchet [Sat, 23 Sep 2017 08:43:12 +0000 (05:43 -0300)]
libril: port Samsung responseDataCallList to O libril

Change-Id: I1a1980e25b2ae1c496420fe3bfb0e8999e62f864

6 years agolibril: port samsung changes to signalStrength
Martin Bouchet [Sat, 23 Sep 2017 08:23:52 +0000 (05:23 -0300)]
libril: port samsung changes to signalStrength

Change-Id: I39c1f5dcb44bcd0cf265243276d7649a9c2fdc8c

6 years agolibril: add Samsung flags to makefile
Martin Bouchet [Sat, 23 Sep 2017 07:57:42 +0000 (04:57 -0300)]
libril: add Samsung flags to makefile

Change-Id: I5deb1f7582b207acf908691a7ac69a9ebbc62505

6 years agolibril: bring back signalStrength v5 and v6
Martin Bouchet [Sat, 23 Sep 2017 07:55:52 +0000 (04:55 -0300)]
libril: bring back signalStrength v5 and v6

Change-Id: Ie0513986e9cabe9b363198e0192b18a0a8fe97de

6 years agoril: import Oreo AOSP libril
Martin Bouchet [Sat, 23 Sep 2017 07:54:37 +0000 (04:54 -0300)]
ril: import Oreo AOSP libril

Change-Id: I00750bad812dc263e9c74a504b48512a892376c8

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
(cherry picked from commit d462f7b86e957f858959ef5d80fd1744689ee6ea)

6 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
(cherry picked from commit 5169e86c10b7429b01d6ab0500a0509141dcbfe1)

6 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
(cherry picked from commit f33a728b205f7656ca6211a07e3dd69c623b75ca)

6 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
(cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)

6 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
(cherry picked from commit 7a82a0e691d884045c78d1cb9f7ab0dd51a5d871)

6 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
(cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)

6 years agoAdvancedDisplay: Restore back button to the action bar
Bruno Martins [Thu, 28 Dec 2017 01:24:44 +0000 (02:24 +0100)]
AdvancedDisplay: Restore back button to the action bar

Change-Id: I7ae2d1ccbb0a55fc28c31d4791aaae1169b8221f

6 years agoAdvancedDisplay: Re-integrate into Settings
Bruno Martins [Thu, 28 Dec 2017 01:20:44 +0000 (02:20 +0100)]
AdvancedDisplay: Re-integrate into Settings

 * Apply the default Oreo theme and inherit the layouts from Google
   for the Settings app, in order to keep UI consistency.

 * Get rid of SettingsDrawerActivity as it no longer fits in.

 * Add required appcompat and preference support libraries.

 * Integrate into display settings category using IA.

Change-Id: I8438e0ebec27085df2be4668f8f7170d2010fb20

6 years agoAdvancedDisplay: cyanogenmod -> lineageos
micky387 [Wed, 27 Dec 2017 21:35:26 +0000 (22:35 +0100)]
AdvancedDisplay: cyanogenmod -> lineageos

Change-Id: Ie6d64f0995f266d2dbe3e16c8032820cc5164c1f

6 years agodtbhtool: Use right local module class to avoid relocation packaging
Kevin F. Haggerty [Fri, 5 Jan 2018 16:53:10 +0000 (09:53 -0700)]
dtbhtool: Use right local module class to avoid relocation packaging

* UTILITY_EXECUTABLES is not a thing anymore, but EXECUTABLES are
  not packed

Change-Id: I1b27c4e23c08579f478af0756e86263e9ab4d740

6 years agodtbhtool: Define both host and target libdtbimg
Kevin F. Haggerty [Fri, 5 Jan 2018 16:39:35 +0000 (09:39 -0700)]
dtbhtool: Define both host and target libdtbimg

* The utilities need it and not defining the target library results
  in a missing dependency

Change-Id: I745d8586a4a2cc5e3b8bdbe4a7e9dc19e1161db6

6 years agodtbhtool: Use BoringSSL instead of mincrypt
Kevin F. Haggerty [Fri, 5 Jan 2018 16:34:52 +0000 (09:34 -0700)]
dtbhtool: Use BoringSSL instead of mincrypt

* mincrypt is gone as of LineageOS/android_system_core@6b11c13ae

Change-Id: Ia3b1dee747510daff45a345ae603181be5ab6023

6 years agomacloader: Stop allowing G and O write perms to the cidfile
Kevin F. Haggerty [Thu, 28 Dec 2017 16:01:32 +0000 (09:01 -0700)]
macloader: Stop allowing G and O write perms to the cidfile

* Only macloader should ever write to this, but others (e.g,
  libbt-vendor.so) read from it. 0644 is more than enough.

Change-Id: I3d2fb3dfec1ba81c9c382ed18c93114e641df4a0

6 years agomacloader: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
macloader: Move device dependent modules to /vendor

Change-Id: I184ec79c8fc4d6047146b84bcc935aef129fc7f4

6 years agofingerprint: bauth: Bump version to 2.1 lineage-15.0
LuK1337 [Mon, 28 Aug 2017 20:22:42 +0000 (22:22 +0200)]
fingerprint: bauth: Bump version to 2.1

* Required for fingerprint HIDL HAL in O.

Change-Id: Iec8450521a51bbfddf2225274a7a6982baa42561

6 years agoconsumerir: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
consumerir: Move device dependent modules to /vendor

Change-Id: Ia05938d479babea4e0d7d25d52c818a43cedf362

6 years agoliblights: Move device dependent modules to /vendor
Diego Wilson [Sat, 25 Feb 2017 01:07:28 +0000 (17:07 -0800)]
liblights: Move device dependent modules to /vendor

Change-Id: Ia7534e9188048b95e6c85497cfeb5e28a279629b

7 years agosamsung: hardware: Rebrand from cmhw to lineagehw
Arne Coucheron [Fri, 13 Oct 2017 01:12:11 +0000 (03:12 +0200)]
samsung: hardware: Rebrand from cmhw to lineagehw

Change-Id: I9576ca2d6bf5dfb9d0259e314f20aa0fe7f775b5

7 years agodtbhtool: Use libfdt from external/dtc
Christopher N. Hesse [Wed, 23 Aug 2017 13:02:03 +0000 (15:02 +0200)]
dtbhtool: Use libfdt from external/dtc

Change-Id: Ia3e38120965125de684e39213f94ad53238d55ce

7 years agodtbToolCM -> dtbToolLineage
LuK1337 [Mon, 28 Aug 2017 20:24:35 +0000 (22:24 +0200)]
dtbToolCM -> dtbToolLineage

Change-Id: I515ce4855cbaa2157a25dac56f18a6b1ca60ec84

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