summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* samsung: add radio 1.3 servicelineage-17.0Willi Ye2019-12-2217-0/+4229
| | | | Change-Id: I9b8710c5f322ec928a2106072f002eaf0ecd7e82
* samsung: power: dont depend on liblights_helperJan Altensen2019-11-262-3/+25
| | | | | | * this is partially a revert of 1226350ee7101a4dc42a4903e148f17c4bd54e4b Change-Id: I0ab7f6dc7642f7778f802e18b2f2dda7c11d9b3b
* samsung: remove old fingerprint and lights halJan Altensen2019-11-2610-1171/+0
| | | | | | * there are hidl replacements available, use them Change-Id: I36243259627aeb76c2dfbfc2b6b4e219c509cfb5
* samsung: remove old lineagehw java classesJan Altensen2019-10-136-562/+0
| | | | Change-Id: I69f3aeb20382c49c7e928d6d6f41f016adfbc9b1
* samsung: audio: Add libprocessgroup dependency to set_sched_policy usersSuren Baghdasaryan2019-10-131-0/+1
| | | | | | | | | | | | | | Add libprocessgroup dependency to audio hal that uses set_sched_policy. Include sched_policy_ctrl.h header which now contains set_sched_policy definition. Exempt-From-Owner-Approval: janitorial Bug: 111307099 Test: builds, boots Change-Id: I8286daed7065c405ca06e87c1b8f6f6c301dc388 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
* samsung: libril: Tuning of Binder buffer for rild.Ruthwar Ambeer2019-10-131-0/+13
| | | | | | | | | Tuned the Binder buffer to 500KB as it is not going to use the default allocated 1MB which saves RAM for 32 bit processors. Change-Id: Ifea2720f8e853643a37912c3459e923168677b1e CRs-Fixed: 2283052
* samsung: Drop module eng tagsErfan Abdi2019-09-059-15/+0
| | | | Change-Id: I2e84d598b2412e617e5575bfdefd804612f76889
* samsung: hidl: Add fingerprint 2.1 HALJan Altensen2019-08-216-0/+573
| | | | Change-Id: Ibd1b7fe7e1847ec28b2450fbf44cc740e5f364ef
* samsung: hidl: Add keymaster 4.0 HALLuK13372019-08-194-0/+124
| | | | Change-Id: Ib754acda4b6f3e8d1911432523a9b06ba1509aa6
* loki: Standardize ifeq logic among makefilesNolen Johnson2019-08-112-2/+2
| | | | | | * Also resolve a typo. Change-Id: Ic32740db8a9216751b5735ad472a7fcc48e6a738
* mkbootimg: Add Loki supportNolen Johnson2019-08-1112-0/+1395
| | | | | | | | | | * I want my target-files built images to be Loki'd if the device needs Loki. * With this, devices that rely on Loki can ship Lineage Recovery officially. * Import loki_tool from: https://github.com/Stricted/android_external_loki. Change-Id: I45ef363e05566268c8f24f7e8939a2d785478fbe
* samsung: hidl: light: battery has lowest priorityJan Altensen2019-08-071-4/+4
| | | | Change-Id: I90d61439f8a431f1836e439d34764b7eb7983db9
* Automatic translation importMichael Bestas2019-08-041-0/+2
| | | | Change-Id: Ieb32cc183acaf620e49ec4e2951e80df2ff6b694
* samsung: hidl: light service: Mark as shutdown criticalSteven Moreland2019-07-221-0/+2
| | | | | | | | | | | | | | | | Required because the lights need to be turned off late in boot (e.x. during fsck for disk health), and before, blank_screen accessing light encountered a race condition where if it didn't get scheduled before all of the processes which were getting shutdown were getting killed, the screen wouldn't blank. Bug: 74976325 Test: adjusting brightness continues to work Test: screen blanks during shutdown at the correct time including when an artificial 5s delay is inserted when the phone normally fscks (which can also be quick) Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
* samsung: hidl: light_service: Add interface specification for lights halSteven Moreland2019-07-221-0/+1
| | | | | | | | | | | | | So that init knows how to start it and to provide an example of how to specify interfaces since there are no lazy starting services on Pixel yet. In order to make lights a lazy service, it would also have to be marked as 'oneshot'. Test: manually using Light as a lazy service Bug: 64678982 Change-Id: I846a7e2d9545b42af9b985adb74883bda1b8c355
* lineagehw: hidl: livedisplay: run clang-formatJan Altensen2019-07-2116-47/+54
| | | | Change-Id: I2abd96bb87321c8cfb86aa155b5423665dfb5c2e
* lineagehw: hidl: touch: run clang-formatJan Altensen2019-07-219-32/+31
| | | | Change-Id: If7126936fc4e0804c29061c7ecc706228654af15
* hidl: add hidl lights halJan Altensen2019-07-219-0/+462
| | | | Change-Id: I333c8d3e20bb451d208f15661afc06ac47e1a377
* hidl: livedisplay: Fix reading mode string comparisonLuK13372019-07-101-1/+1
| | | | | | | * Since we are trimming the string it will never match one with trailing space at the end. Change-Id: Iea76092112555ed8b858560f07ef8e88f0ff593b
* Automatic translation importMichael Bestas2019-07-061-1/+1
| | | | Change-Id: I7b217eb210fe710ba73511bcf96d9c4e4abe17bc
* Automatic translation importMichael Bestas2019-06-083-0/+74
| | | | Change-Id: I3c6060e02b5a290f9485994035750c96d9a5a118
* hidl: livedisplay: Restore default display mode in DisplayModes constructorLuK13372019-05-251-0/+2
| | | | Change-Id: I5a6303f7f67a8b6d35663d2d86346d585f367cd3
* hidl: livedisplay: Move .displaymodedefault to /data/vendor/displayLuK13372019-05-255-1/+13
| | | | | | | * By default hal_lineage_livedisplay_default does not have permissions to write to /data/misc. Change-Id: I5599a5e6602ea326322328aeda1c6eb0411a5568
* hidl: livedisplay: Add binderized service implementationJan Altensen2019-05-2427-494/+798
| | | | | | | | | | * Change default ::implementation namespace to ::samsung * Fill in required methods for used impls * Cleanup passthrough code for used impls * Remove unused impls * Add and setup binderized service Change-Id: I545a7c0ac8bf4fce04da73a0d39d4ac1938496f2
* samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.livedisplayJan Altensen2019-05-2419-0/+1040
| | | | | | * Generated from hidl-gen with added LineageOS copyrights Change-Id: I150c3a65b92586fa2715c0f8ef27d2bcc6ba5d70
* hidl: touch: Add binderized service implementationPaul Keith2019-04-1111-82/+309
| | | | | | | | | * Change default ::implementation namespace to ::samsung * Fill in required methods for used impls * Cleanup passthrough code for used impls * Add and setup binderized service Change-Id: Iadc3b6e385233d103c3349ce31a08d6d040886c7
* samsung: Add dummy lineagehw HIDL interfaces for vendor.lineage.touchPaul Keith2019-04-119-0/+436
| | | | | | * Generated from hidl-gen with added LineageOS copyrights Change-Id: Ia1073b57ecbafee0e599788b1ead5cc4b2dbda57
* Automatic translation importMichael Bestas2019-04-077-2/+109
| | | | Change-Id: I9a691863f0f09b859ec07c1f421f5c41dc3fdbdd
* Automatic translation importMichael W2019-03-11208-3276/+66
| | | | Change-Id: Ic3b685df13f3fd3564b1301bfb1276f7c369196b
* Automatic translation importMichael Bestas2019-02-265-0/+3
| | | | Change-Id: I95f8b2c7aa1c76cef2d14b6b9c2e971cc5f66d46
* Add anpother semco oui mappingivanmeler2019-02-131-0/+1
| | | | Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36
* audio_hw: Prevent referencing input devices from empty listVasyl Gello2019-02-051-0/+10
| | | | | | | | 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
* Audio: fix voip calls over bluetooth for Wolfson Microelectronics codecs.stenkinevgeniy2019-02-051-0/+8
| | | | | | | | 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>
* Audio: fix voip calls over bluetooth headset.stenkinevgeniy2019-02-054-74/+47
| | | | | | | | | | | 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>
* Audio: fix call recording.stenkinevgeniy2019-02-051-6/+0
| | | | Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab
* audio: Re-worked sound pre- and post-processingBasil Gello2019-02-053-63/+24
| | | | | | | | | | | 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
* Revert "audio: Fix incall device switch handling"stenkinevgeniy2019-02-051-5/+2
| | | | | | | | | | | | | 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
* Audio: get_input_snd_device - use all bt sco devices for voice calls.stenkinevgeniy2019-02-051-7/+2
| | | | | | | | | | | | 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
* Audio: remove separated bt_sco playback profilestenkinevgeniy2019-02-051-23/+6
| | | | | | | | | | 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
* Audio: check and route usecasesstenkinevgeniy2019-02-051-0/+63
| | | | | | | | | | | | | | | | | | | | 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
* Audio: HAL should handle other streams (when call active)stenkinevgeniy2019-02-051-11/+0
| | | | Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1
* Audio: remove out stream resampler.stenkinevgeniy2019-02-052-56/+2
| | | | | | | | 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
* audio: Directly link voice data <-> sessionChristopher N. Hesse2019-02-053-17/+8
| | | | | | | | 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
* audio: run ril_set_call_clock_sync() in stop_voice_session()Usaamah Patel2019-02-051-2/+2
| | | | | | | | | | 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>
* audio: Fix WBS sample rate usageMartin Hoffmann2019-02-051-2/+1
| | | | | | | | | | | | | | | | | | | 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
* macloader: Add 3 more semco mac rangesivanmeler2019-02-031-1/+4
| | | | | | | | | 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
* Add unlisted SEMCO3RD mac addressivanmeler2019-01-311-0/+1
| | | | | | | | Confirmed with https://www.wireshark.org/tools/oui-lookup.html 08:C5:E1 SamsungE Samsung Electro-Mechanics(Thailand) Change-Id: Ief2ec0a19c554aeb4266a64cd58aec56baf9cfe5
* macloader: Add mac addresses observed on new revisions of Galaxy S7ivanmeler2019-01-281-0/+4
| | | | | | | | | | 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
* bauth: Add enumerate functionLukas06102019-01-211-0/+6
| | | | Change-Id: I452a651b2a1b11d3619ecde50f448812bf032b66
* Automatic translation importMichael Bestas2019-01-12104-1007/+1462
| | | | Change-Id: I12060711239cbd686b461a6e99369a2fb4cbf0f4