summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Automatic translation importcm-14.1Michael Bestas2019-08-0612-53/+168
| | | | Change-Id: Iafbcf9d9715939045a47d5bd0284386917c59917
* Automatic translation importMichael Bestas2019-03-11184-2610/+1325
| | | | Change-Id: Iba9d3b39567a403f6c7ef329b3eff19ce51408c8
* Add anpother semco oui mappingivanmeler2019-02-131-0/+1
| | | | Change-Id: Ie6d58fe13af35716a406feb262e6e18954c26c36
* 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: If340fcfc4daeee501be92358cae91f123c8999d6
* 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
* macloader: Add new mac addresses for semcosh and and murataivanmeler2018-11-271-0/+2
| | | | | | Observed on new s7 models Change-Id: Ic2d2068d6e7ba4f1dedb1e3fd83c9a5797523d86
* Adding WiFi MAC address for new S7 devicesivanmeler2018-10-201-0/+1
| | | | | | | | 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
* Automatic translation importMichael Bestas2018-10-141-1/+1
| | | | Change-Id: I8335be5e24d85f25b23082f666451b7ef54c2c04
* libril: add missing return statementStricted2018-08-261-1/+1
| | | | Change-Id: Icfdc5fae064f66bfcaf061bff0d0d1e5554f126d
* audio_hw: Prevent referencing input devices from empty listVasyl Gello2018-07-251-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.stenkinevgeniy2018-07-251-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.stenkinevgeniy2018-07-254-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.stenkinevgeniy2018-07-251-6/+0
| | | | Change-Id: I312d2a36009ec1415dd5ccba4fbb68ae4a10e2ab
* audio: improve log message to support for devices that dont have an ampChristopher N. Hesse2018-07-191-1/+5
| | | | | | Change-Id: I3fe824c4dbdb57bb0d63b395cfcef2f9dbbe556b Signed-off-by: Abhay Ruparel <abhayruparel2000@gmail.com> (cherry picked from commit c487bbe38958d79aa7391b928f15e9ed5f8d1d4b)
* Audio: remove unsupported aec loopback stuff.stenkinevgeniy2018-07-023-159/+0
| | | | Change-Id: Ie9429a7a8131dacdc73899192f50b545d8f8b1c3
* MAC: add new Murata rangeVahempio2018-06-291-0/+1
| | | | | | | New herolte OUI observed: 1c:70:22 Checked on hwaddress.com Change-Id: I4a2c15e315b46af81f815114cf85f0d1cced87f3
* Add missing murata and semco3rd mac addressesivanmeler2018-06-281-0/+2
| | | | | | | Users found this on few herolte/hero2lte revisions Change-Id: I2cda3a3b39c951c1215622ae1b55483fbbfc94a8 (cherry picked from commit 5e6355bc8c8687ef81798614e4772ccd68eb51b7)
* libsecril-client: provide req_id for SendOemRequestHook errorsVasyl Gello2018-06-151-2/+4
| | | | Change-Id: Ie4a28deff74ed0b8ac4eeff4dfb4b34098d20e6c
* audio: Re-worked sound pre- and post-processingBasil Gello2018-06-123-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"stenkinevgeniy2018-05-301-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.stenkinevgeniy2018-05-241-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 profilestenkinevgeniy2018-05-241-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 usecasesstenkinevgeniy2018-05-241-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)stenkinevgeniy2018-05-241-11/+0
| | | | Change-Id: I70fbd41ac386d7ea9a7fa0abb540151727461ac1
* Audio: remove out stream resampler.stenkinevgeniy2018-05-242-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: out_open_pcm_devices - use out->config instead of ↵stenkinevgeniy2018-05-081-1/+1
| | | | | | | | | | | | | | | | 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
* Audio: remove unsupported hotword/soundtrigger stuff.stenkinevgeniy2018-05-082-138/+20
| | | | Change-Id: Ie21f94e80a18f5a5805a3ee00e12e83fa2fc3f1a
* Automatic translation importMichael Bestas2018-05-052-1/+19
| | | | Change-Id: Ibf413b26d41d35b2b54422e18e9b3f6b33a56407
* audio: return EINVAL to avoid get_presentation_position spamming logsVictor Lourme2018-04-051-2/+1
| | | | | Change-Id: I32ec0c5651395c7af3dc4b80d25204bf0fcc1977 (cherry picked from commit 5869cd357e9b0bd9dffe70ac207cda4ec266b73c)
* fingerprint: send cancel-message to systemLukas06102018-03-231-1/+14
| | | | | | | | | | | | | | | | | 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
* audio: Use audio_route_{apply/reset}_and_update_pathChristopher N. Hesse2018-03-091-37/+17
| | | | | | We don't need to handle the mixer updates here anymore. Change-Id: Id60759e31a6501e4772bbd7377505197c932545a
* audio: Update mixer knobs after re-applying output routeChristopher N. Hesse2018-03-061-0/+1
| | | | Change-Id: I35fbcc03e9666e579134512b443610e546c31441
* audio: Guard mixer path dependency fixChristopher N. Hesse2018-03-041-1/+1
| | | | Change-Id: Id93d7941ae322a83488da3cea62c6eb36a6e9160
* power: Allow POWER_HINT_DISABLE_TOUCH in low power modeChristopher N. Hesse2018-02-231-2/+1
| | | | | | Remove the unused len var while we're at it. Change-Id: Iabaf3b8704072a8758b213a54530eaffbf0c7ae5
* power: Silence excessive loggingChristopher N. Hesse2018-02-191-1/+1
| | | | | Change-Id: I519122aaa77e73cf0290610a3d9d4aa79700e843 (cherry picked from commit 4f7dc6ffec2344057ca7db8af8b5029bfcc8d931)
* ril: Add support for imsType parcel memberChristopher N. Hesse2018-02-162-0/+14
| | | | | | This is needed for Samsung devices like the Galaxy A5 2017. Change-Id: I3b89cf8ac232fef5629b439dbf5d2f21bdb264a2
* ril: Add support for roamingProtocol parcel memberChristopher N. Hesse2018-02-162-0/+13
| | | | | | This is needed for Samsung devices like the Galaxy A5 2017. Change-Id: I549130b838377d8a8668ac59b51c314fe9e7f5ab
* audio: Avoid mixer path dependency conflictsChristopher N. Hesse2018-02-081-0/+11
| | | | | | | | | | | | | | 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
* dtbhtool: Print better warnings for PLATFORM/SUBTYPE mismatchChristopher N. Hesse2018-02-051-2/+4
| | | | Change-Id: I486239d47255d5a5347e7b8ac7348afb8bc5bddb
* Automatic translation importMichael Bestas2018-02-046-2/+104
| | | | Change-Id: I53d1292b609076a6f6fb6f4e47f50e749fc5c8d1
* dtbhtool: implement unpackdtbhimgSimon Shields2018-02-032-0/+190
| | | | | | | Parses a DTBH image and outputs the information needed for samsung_dtb.h and dumps all DTBs contained in the file. Change-Id: Ia724f25c3b33423baeefec85c9b0d42967fce6f2
* audio: Directly link voice data <-> sessionChristopher N. Hesse2018-01-303-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
* Added another new Murata MAC rangeDavis Mosenkovs2018-01-291-0/+1
| | | | | | Another herolte user observed OUI 8c:45:00 Change-Id: I7eaf4fef29c6dbc6a962de0ff745c9703f65fcfc
* audio: Print error in case of nonexistant mixer pathsChristopher N. Hesse2018-01-281-0/+5
| | | | Change-Id: I131ed6518ce8f26638a3490ee1be7a5d93b4e5b8
* audio: Fix BT sample rate handling properlyChristopher N. Hesse2018-01-192-4/+20
| | | | | | | | 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
* Revert "audio: Always use 16kHz sampling for SCO"Christopher N. Hesse2018-01-192-3/+17
| | | | | | This reverts commit 182464861d3194f637f23431230810b6d9f7f2ab. Change-Id: Ib1b4d074b9acc54d77a3c97b2a37a498db58376b
* audio: run ril_set_call_clock_sync() in stop_voice_session()Usaamah Patel2018-01-111-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>
* Added new Murata MAC rangeDavis Mosenkovs2017-01-091-1/+2
| | | | | | OUI a0:c9:a0 was observed on hero devices bought in December 2017 Change-Id: I0a2404780b1b5b017bb89468d235a2174a245989
* Automatic translation importAbhisek Devkota2017-12-164-0/+78
| | | | Change-Id: Icaf152e2e9a7829fdafa26c906fc09138dfbd548