Commit Graph

655 Commits

Author SHA1 Message Date
Christopher N. Hesse d8d04fd497 audio: Support new and old mixer paths locations
Change-Id: Ifa2a55cbfe45ab9d53cd23098012443f9b32ca31
2018-02-16 11:59:28 +01:00
Christopher N. Hesse 2beff4222c audio: Print error in case of nonexistant mixer paths
Change-Id: I131ed6518ce8f26638a3490ee1be7a5d93b4e5b8
(cherry picked from commit 0524e26d2a1d155ce1dc9609b8e8741fd5f1500f)
2018-02-16 10:58:10 +00:00
Christopher N. Hesse 11ef211749 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)
2018-02-09 15:23:07 +00:00
Christopher N. Hesse 56508259a6 wifiloader: Make sure WiFi firmware path is writable
Change-Id: Ib0ae2a004d4207a4ccb3d551c9a6a092920595ca
2018-02-05 14:05:28 +00:00
Christopher N. Hesse 5b6ec5682e wifiloader: Notify WiFi HAL on module load success
Change-Id: I0c7de00aec571a29f79137bb5b50178b0be91408
2018-02-05 14:05:01 +00:00
Christopher N. Hesse 4ada34bc6d dtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatch
Change-Id: I486239d47255d5a5347e7b8ac7348afb8bc5bddb
(cherry picked from commit 8f74f0a7e9839d4f6f499aecdcc6c042ca4671a0)
2018-02-05 14:04:17 +00:00
Simon Shields 2440fd85c9 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)
2018-02-05 14:04:02 +00:00
Davis Mosenkovs 8b4ba0d6b6 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)
2018-01-29 01:01:07 +00:00
Davis Mosenkovs 2fa73d6973 Added another new Murata MAC range
Another herolte user observed OUI 8c:45:00

Change-Id: I7eaf4fef29c6dbc6a962de0ff745c9703f65fcfc
(cherry picked from commit 70d3e3166f748e96f72c1c96aa2971f4981e9981)
2018-01-29 00:57:57 +00:00
Sean hoyt 7ef59cea50 libsec-ril: Include liblog
Change-Id: I87df49446a2729f19a5d5611a88a4a80faf0350b
2018-01-21 13:29:29 +01:00
Martin Bouchet f7c75aa4e0 libril: fix network operator search
The number of mQANElements should be defined in the system
prop ro.ril.telephony.mqanelements

Change-Id: Ie5bb8ba80c5ac93b7502da3b1bb3d2b4404ecd5e
2018-01-21 13:29:20 +01:00
Martin Bouchet d912396454 libril: fix in call presentation
Change-Id: Ifd4a20c0bcd34f380716cc96cdd4c99b4b909266
2018-01-21 13:29:07 +01:00
Martin Bouchet d53206c5bd libril: handle Samsung proprietary commands
Change-Id: Ief8402c8e75c677c7f2e32794f13867b924b209f
2018-01-21 13:28:25 +01:00
Martin Bouchet 0063444a40 libril: port Samsung responseDataCallList to O libril
Change-Id: I1a1980e25b2ae1c496420fe3bfb0e8999e62f864
2018-01-21 13:28:18 +01:00
Martin Bouchet db968d4efd libril: port samsung changes to signalStrength
Change-Id: I39c1f5dcb44bcd0cf265243276d7649a9c2fdc8c
2018-01-21 13:27:52 +01:00
Martin Bouchet c3c6ceeaad libril: add Samsung flags to makefile
Change-Id: I5deb1f7582b207acf908691a7ac69a9ebbc62505
2018-01-21 13:27:48 +01:00
Martin Bouchet 6e9a4971ec libril: bring back signalStrength v5 and v6
Change-Id: Ie0513986e9cabe9b363198e0192b18a0a8fe97de
2018-01-21 13:26:45 +01:00
Martin Bouchet 0d4bbaf7f1 ril: import Oreo AOSP libril
Change-Id: I00750bad812dc263e9c74a504b48512a892376c8
2018-01-21 13:26:31 +01:00
Christopher N. Hesse e4a1c59a0b 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)
2018-01-20 22:32:04 +00:00
Christopher N. Hesse 6c0020c6a9 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)
2018-01-20 22:31:42 +00:00
Christopher N. Hesse 77880a2b13 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)
2018-01-20 22:31:27 +00:00
Christopher N. Hesse 33affb806e audio: Improve code readability
Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5
(cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)
2018-01-20 22:30:35 +00:00
Christopher N. Hesse 6a2a3079c0 audio: Initial support for amplifier HALs
Change-Id: I04ef5b89ca595a0df02f6a4a68748bd0d0cdb245
(cherry picked from commit 7a82a0e691d884045c78d1cb9f7ab0dd51a5d871)
2018-01-20 22:30:10 +00:00
Christopher N. Hesse 8f9268e598 libril: Fix multisim flags
Change-Id: Idb2ea518c115c1dbfbbbbb79094938ce006f40d8
(cherry picked from commit c98cc605c67e950bf14aa9f0d14966382ec45a0c)
2018-01-20 22:29:43 +00:00
Bruno Martins f38167ac84 AdvancedDisplay: Restore back button to the action bar
Change-Id: I7ae2d1ccbb0a55fc28c31d4791aaae1169b8221f
2018-01-18 12:30:47 +00:00
Bruno Martins 6deaa3b648 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
2018-01-18 12:30:35 +00:00
micky387 4eacd85752 AdvancedDisplay: cyanogenmod -> lineageos
Change-Id: Ie6d64f0995f266d2dbe3e16c8032820cc5164c1f
2018-01-18 12:30:20 +00:00
Kevin F. Haggerty c94f6eed4a 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
2018-01-05 17:57:29 +00:00
Kevin F. Haggerty 5f70b61eec 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
2018-01-05 09:59:33 -07:00
Kevin F. Haggerty a04741b693 dtbhtool: Use BoringSSL instead of mincrypt
* mincrypt is gone as of LineageOS/android_system_core@6b11c13ae

Change-Id: Ia3b1dee747510daff45a345ae603181be5ab6023
2018-01-05 09:58:48 -07:00
Kevin F. Haggerty 523971c63b 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
2017-12-28 09:09:41 -07:00
Diego Wilson ea125c30ea macloader: Move device dependent modules to /vendor
Change-Id: I184ec79c8fc4d6047146b84bcc935aef129fc7f4
2017-12-25 23:51:32 -07:00
LuK1337 bdb254d989 fingerprint: bauth: Bump version to 2.1
* Required for fingerprint HIDL HAL in O.

Change-Id: Iec8450521a51bbfddf2225274a7a6982baa42561
2017-11-26 19:22:54 +00:00
Diego Wilson eb0e9d2340 consumerir: Move device dependent modules to /vendor
Change-Id: Ia05938d479babea4e0d7d25d52c818a43cedf362
2017-11-26 19:22:01 +00:00
Diego Wilson 6b2b66ca41 liblights: Move device dependent modules to /vendor
Change-Id: Ia7534e9188048b95e6c85497cfeb5e28a279629b
2017-11-26 19:21:45 +00:00
Arne Coucheron 53ac6a135f samsung: hardware: Rebrand from cmhw to lineagehw
Change-Id: I9576ca2d6bf5dfb9d0259e314f20aa0fe7f775b5
2017-10-13 03:12:11 +02:00
Christopher N. Hesse e6e0e77d1c dtbhtool: Use libfdt from external/dtc
Change-Id: Ia3e38120965125de684e39213f94ad53238d55ce
2017-09-16 23:20:30 +00:00
LuK1337 977aee55ba dtbToolCM -> dtbToolLineage
Change-Id: I515ce4855cbaa2157a25dac56f18a6b1ca60ec84
2017-08-28 20:24:52 +00:00
Christopher N. Hesse 231dc651ab 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
2017-08-13 08:38:58 +00:00
Abhisek Devkota 2c868b183c Automatic translation import
Change-Id: Iac6ca07164f94ff319af48ecf8cae29a76052c02
2017-08-03 22:48:37 -07:00
Basil Gello 2a40024127 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
2017-08-03 21:03:38 +00:00
Christopher N. Hesse fb5669e851 power: Keep boost fd opened as well
Change-Id: I016b28c29786fc948a007d4ec3106be8a662eafd
2017-07-31 00:01:00 +00:00
Andrea Arcangeli a322ea2bdd 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
2017-07-26 18:02:32 -06:00
Basil Gello 72aac79216 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
2017-07-17 22:15:16 +00:00
Basil Gello 338942b188 secril-client: return exact error code from blockingWrite()
Change-Id: Ibb6d3636648480c53a2fd19044eefe5b97f1eceb
2017-07-13 19:19:56 +00:00
Christopher N. Hesse 1146f1a616 Revert "power: Temporary logging fix"
This reverts commit ff86846e97.

Change-Id: I46aa4d6606c3c519322b2e2cd048bd312a15fa4d
2017-07-13 21:17:23 +02:00
Christopher N. Hesse 7ad73bc372 power: Allow for a dynamic cluster configuration
Change-Id: I542b36d26cad23f29e70ab70d996c95ca3ab11a7
2017-07-13 19:13:51 +00:00
Christopher N. Hesse ff86846e97 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
2017-07-09 23:08:10 +02:00
Christopher N. Hesse 775bce8f14 power: Print information on boot
Change-Id: I1a8ba54f1b27c2e96c6bae77046dc207cdf35025
2017-07-09 20:40:38 +00:00
Christopher N. Hesse 0da5fbf3e2 power: sysfs_read: Do not store newlines
Change-Id: If20b509b489b056ac3b37c208c42bc5407f61802
2017-07-09 20:36:32 +00:00