summaryrefslogtreecommitdiffstats
path: root/audio
Commit message (Collapse)AuthorAgeFilesLines
...
* audio: Add missing deep buffer to use_case_tableAndreas Schneider2017-02-141-0/+1
| | | | Change-Id: I5216838e0de257241206546f2e9f71896292fe9e
* audio: Fix device table access in get_snd_device_name()Andreas Schneider2017-02-141-1/+2
| | | | | | | We have a value for SND_DEVICE_NONE so we should use that. There is no field for SND_DEVICE_MIN so we need to check it is bigger. Change-Id: I041930c8c4b552d45804a178aeb1aa981ae7c13f
* audio: Fix time diff to always return positive numbersAndreas Schneider2017-02-141-11/+4
| | | | Change-Id: I62f835f95fc1d1a671cfdb2e6e6ac1758524235f
* audio: Update comments for voice micsAndreas Schneider2017-02-121-4/+8
| | | | Change-Id: I3fc888a4046a2b49bc887088750dd0e5be1c543c
* audio: Add support for bluetooth voice callsAndreas Schneider2017-02-124-4/+123
| | | | Change-Id: Ic63b7c09ed7401ab72824a406db333e3fbce780b
* audio: Remove device bit only on active_inputAndreas Schneider2017-02-111-3/+3
| | | | | | This makes the code less confusing. Change-Id: I6020f892f5165a6c784b05737e29b24d7121b8c9
* audio: Add a mixer_path_0.xml template for the HALAndreas Schneider2017-02-111-0/+140
| | | | Change-Id: Iec0976cf7d9d54edb850b972c44b7159a2374ef2
* audio: Add support for voice session mic muteAndreas Schneider2017-02-113-1/+9
| | | | Change-Id: I5277736fffcb4511e4a7adb2e3e10090dcab484c
* audio: Add voice call wideband supportAndreas Schneider2017-02-114-3/+50
| | | | Change-Id: Idf6725aaaf906109ce973a8109b7c252a997dead
* audio: Add support for two mic controlAndreas Schneider2017-02-114-7/+27
| | | | Change-Id: I0176b41b071577e9e55f5177ec1219d4e9aa91a2
* audio: Leave out_get_presentation_position() early when switching to WBAndreas Schneider2017-02-111-0/+6
| | | | | | | When the voice session switches from NB to WB we should just leave early. Change-Id: Ib4bfe336f6e51fa469fee50c96a81c819f58678b
* audio: Do not segfault in out_get_presentation_position()Andreas Schneider2017-02-111-15/+26
| | | | | | | | | When a voice call is stopped we switch back to the default primary output (speaker). Then this function gets executed and as ther was no active PCM because voice_session is handling that it segfaults because the PCM is NULL. Change-Id: I927504b7962b096c0d4c3642b48aee55c85ec013
* audio: Enable voice call supportChristopher N. Hesse2017-02-104-13/+314
| | | | | | Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org> Change-Id: I284f21240e56dda93cb8a2ab98b903ff712504a6
* audio: Remove unused variables and functionAndreas Schneider2017-02-102-27/+16
| | | | | | | The unused functions have just been commented out. This also sets the CFLAGS to -Wall and -Werror. Change-Id: Iea097426313a68a01a074627115853fccc680579
* Revert "audio: Remove unused screen_state parameter"Andreas Schneider2017-02-102-0/+9
| | | | | | | | | We want that to avoid an error message in the log, so revert the revomal. This reverts commit cdad20da45269c9c5d7308f7d63de1350e04d94d. Change-Id: Ic90cd6b02e5b3e8aae73d824153c3084643a8acc
* audio: Improve error message for RILD connectionAndreas Schneider2017-02-101-1/+2
| | | | | | | We need to make it more prominent so people recognize it and fix their connection. Change-Id: I36218ac130351b053f7fda2319d797885ac0930e
* audio: Initialize the radio voice sessionChristopher N. Hesse2017-02-105-1/+111
| | | | | | | | This just allocates the structre and creates the RIL connection. This is per audio_device structure to make sure we to not run into issues with audioserver threading. Change-Id: I42e1b7ae57579f39c5f76566ef5b67d4e2c13e3f
* audio: Add ril_interface to talk to radioChristopher N. Hesse2017-02-103-2/+319
| | | | | | | This is based on previous work for tuna, i9300, i9500 and many other devices. Change-Id: Ie94f12ee7940ffae84aec5e409a2a831b34d616f
* audio: Create a structure for voice to group valuesAndreas Schneider2017-02-102-17/+25
| | | | Change-Id: I184d39460aa8a9a3ee5efc5fe3aa63e99a2e9d12
* audio: Add a delay for DSP firmware loadingAndreas Schneider2017-02-103-2/+76
| | | | | | This is turned off by default. Change-Id: Idf764933c67e6666cb2cc0043fa7a7e86935488d
* audio: Allow playback on earpiece tooFevax2017-02-081-2/+2
| | | | | | For VoIP we need to have output on the earpiece. Change-Id: I5c5488a184b3efe4f95a2d0602ad286b1eba7780
* audio: in_call is a bool typeAndreas Schneider2017-02-071-1/+1
| | | | Change-Id: Ie8db6ddac7f3cb64acd4bf95be00744754a2907d
* audio: Remove unused audio routesAndreas Schneider2017-02-062-20/+0
| | | | Change-Id: Ia3670f075369eb721e12588c5c6f0b3525a51e67
* audio: Disable support for IRQ affinity by defaultAndreas Schneider2017-02-022-0/+12
| | | | Change-Id: I410f0037747149471a1d5fe7cf38720121938822
* audio: Correctly handle out of memory conditionsAndreas Schneider2017-02-022-7/+70
| | | | Change-Id: Id7e0ab1085d3e38c1eaa7905a17726e9d1a68cc9
* audio: Make speaker swap on screen rotation optionalAndreas Schneider2017-02-022-0/+8
| | | | Change-Id: I73623629c4418bff8178793d856d8da98b694283
* audio: Remove unused screen_state parameterAndreas Schneider2017-02-022-9/+0
| | | | Change-Id: I3359e5e6c0d49bc5067f3a78f2f5a1b087c7ae4b
* audio: Remove tty_mode which we do not supportAndreas Schneider2017-02-022-69/+2
| | | | Change-Id: Ifdde7e0ae6b6f1a293d6fa50625ab70ba1fc63a1
* audio: s/handset/earpiece/gChristopher N. Hesse2017-02-022-19/+19
| | | | | | | | HANDSET is too similar to HEADSET. Choose a better name instead and call it EARPIECE like everyone else. Change-Id: Ida986366e2ef16cb422cba6ecaeedbe8c1ae9908
* audio: Implement get_capture_position()Christopher N. Hesse2017-02-022-0/+39
| | | | Change-Id: Ib9f637d30774b2a9aa23e6958ce5465d90eae467
* audio: improve read/write timing for streamsChristopher N. Hesse2017-02-022-5/+54
| | | | | Change-Id: Ic4231c4b44369a9438c6c94622b90862047e9a32 Reference: https://github.com/LineageOS/android_hardware_libhardware/commit/0caeee8ac429dd8098e97b2cd8ad3751031a5b67
* audio: Use C99 initializers in read_frames()Andreas Schneider2017-02-021-2/+2
| | | | Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc
* audio: Fix memory leak when preprocessing is disabledAndreas Schneider2017-01-301-9/+10
| | | | Change-Id: Ia168de215200ae9e1f4740cf5623b39058b3797c
* audio: Allow targets to override the deep buffer deviceChristopher N. Hesse2017-01-302-15/+31
| | | | Change-Id: I539403661e40e5be7eb5cc130a4b8ad8331d2a4a
* audio: Move card specfic defines to a headerChristopher N. Hesse2017-01-305-11/+68
| | | | Change-Id: Iec74ee5c4c0cf93e3a7413901e128b76cf708dbb
* audio: Factor out offload codeChristopher N. Hesse2017-01-304-313/+502
| | | | Change-Id: I94a592262016d954318dab3d1339504e54f83681
* audio: Rename header guard macroChristopher N. Hesse2017-01-301-3/+3
| | | | Change-Id: I350616da3ba98965d2dcdd533e57d77b0ac7e41a
* audio: Update module name/authorChristopher N. Hesse2017-01-301-2/+2
| | | | Change-Id: I744742d6be18a4b599e58f3c005154d5a944bd0f
* audio: Remove dummybuf headphone GPIO codeChristopher N. Hesse2017-01-302-193/+0
| | | | Change-Id: I004ac324df61f37083858c6a5f01f093ad19f98b
* audio: Remove HTC acoustic amplifier codeChristopher N. Hesse2017-01-302-162/+3
| | | | Change-Id: Id9ea8f1eb9403d171150fd5f15c7ec431c4a1504
* audio: Import N HAL from flounderChristopher N. Hesse2017-01-303-0/+5329
HEAD: Turn off excess logging Change-Id: I77d6eaf4ac31d969fd42e9a96418203bc682476f Change-Id: I1cbcbf16ab617b676defcce49335d6f4190e63a9