Christopher N. Hesse
33affb806e
audio: Improve code readability
...
Change-Id: I5b1f24ab6098a037559603a92b4a1a38987488f5
(cherry picked from commit 4b29ec95d88d7cb99a7c55f0d3297a3b8c2149c4)
7 years ago
Christopher N. Hesse
6a2a3079c0
audio: Initial support for amplifier HALs
...
Change-Id: I04ef5b89ca595a0df02f6a4a68748bd0d0cdb245
(cherry picked from commit 7a82a0e691d884045c78d1cb9f7ab0dd51a5d871)
7 years ago
Christopher N. Hesse
56caa269d2
audio: Split BT SCO media/incall paths
...
Change-Id: I23a621855e8b96edcd92d8740dfec270ff7e7407
8 years ago
Fevax
51bd12c20d
audio: add support for bluetooth wideband voice calls
...
Change-Id: I02bf23a83c52389cc02ba1f61572eb651418fe24
8 years ago
Andreas Schneider
e9a44a2d55
audio: Restart the voice call on device change
...
When we change the device during a phone call we need to completely
restart it. This is required by the modem.
Change-Id: I902c78bf50dfb5dc3da51fca0fb862f872df86ca
8 years ago
Andreas Schneider
dd8a36941b
audio: Improve logging in out_set_parameters()
...
Change-Id: I5800307905870ca836383e7d492a7472a9a386be
8 years ago
Andreas Schneider
dde54c0469
audio: Fix get_snd_device_name() for earpiece
...
SND_DEVICE_MIN_OUT_EARPIECE is set to SND_DEVICE_MIN.
Change-Id: I3a442df7f388b72d433257f6ac1db473e4cb14a6
8 years ago
Christopher N. Hesse
130da9f065
audio: Cleanup and fix voicecall preparation
...
* if (usecase == NULL) should actually be if (vc_usecase == NULL)
* Avoid unnecessary if-block indentation by updating the control
flow
Change-Id: If00ac405a1eac429862b953580e8614227015134
8 years ago
Paul Keith
f114e2ee35
audio: Use labs() instead of abs()
...
* abs() accepts ints as parameters,
but this breaks compile since
the times are longs, not ints
* Use labs() instead, which accepts
longs as parameters, to fix compile
Change-Id: I8f980a78380cdae18abd5b9602e281beae3ee4d3
Signed-off-by: Paul Keith <javelinanddart@aidenswann.com>
8 years ago
Andreas Schneider
df6fc8a6a9
audio: Add missing deep buffer to use_case_table
...
Change-Id: I5216838e0de257241206546f2e9f71896292fe9e
8 years ago
Andreas Schneider
adb788d97c
audio: Fix device table access in get_snd_device_name()
...
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
8 years ago
Andreas Schneider
58735a9cf9
audio: Fix time diff to always return positive numbers
...
Change-Id: I62f835f95fc1d1a671cfdb2e6e6ac1758524235f
8 years ago
Andreas Schneider
05bc1882e2
audio: Add support for bluetooth voice calls
...
Change-Id: Ic63b7c09ed7401ab72824a406db333e3fbce780b
8 years ago
Andreas Schneider
757e2d8a77
audio: Remove device bit only on active_input
...
This makes the code less confusing.
Change-Id: I6020f892f5165a6c784b05737e29b24d7121b8c9
8 years ago
Andreas Schneider
107a848bc3
audio: Add support for voice session mic mute
...
Change-Id: I5277736fffcb4511e4a7adb2e3e10090dcab484c
8 years ago
Andreas Schneider
59486fa48c
audio: Add voice call wideband support
...
Change-Id: Idf6725aaaf906109ce973a8109b7c252a997dead
8 years ago
Andreas Schneider
82f3248400
audio: Add support for two mic control
...
Change-Id: I0176b41b071577e9e55f5177ec1219d4e9aa91a2
8 years ago
Andreas Schneider
97fa7f1c5c
audio: Leave out_get_presentation_position() early when switching to WB
...
When the voice session switches from NB to WB we should just leave
early.
Change-Id: Ib4bfe336f6e51fa469fee50c96a81c819f58678b
8 years ago
Andreas Schneider
d6359186ea
audio: Do not segfault in out_get_presentation_position()
...
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
8 years ago
Christopher N. Hesse
696959dda1
audio: Enable voice call support
...
Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org>
Change-Id: I284f21240e56dda93cb8a2ab98b903ff712504a6
8 years ago
Andreas Schneider
5a2f10031a
audio: Remove unused variables and function
...
The unused functions have just been commented out.
This also sets the CFLAGS to -Wall and -Werror.
Change-Id: Iea097426313a68a01a074627115853fccc680579
8 years ago
Andreas Schneider
ecd17ce8ba
Revert "audio: Remove unused screen_state parameter"
...
We want that to avoid an error message in the log, so revert the
revomal.
This reverts commit cdad20da45
.
Change-Id: Ic90cd6b02e5b3e8aae73d824153c3084643a8acc
8 years ago
Christopher N. Hesse
41c9f3d2bc
audio: Initialize the radio voice session
...
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
8 years ago
Andreas Schneider
74ef3a12fc
audio: Create a structure for voice to group values
...
Change-Id: I184d39460aa8a9a3ee5efc5fe3aa63e99a2e9d12
8 years ago
Andreas Schneider
759368fbc0
audio: Add a delay for DSP firmware loading
...
This is turned off by default.
Change-Id: Idf764933c67e6666cb2cc0043fa7a7e86935488d
8 years ago
Fevax
86ac23487e
audio: Allow playback on earpiece too
...
For VoIP we need to have output on the earpiece.
Change-Id: I5c5488a184b3efe4f95a2d0602ad286b1eba7780
8 years ago
Andreas Schneider
7cc49b4fb2
audio: Remove unused audio routes
...
Change-Id: Ia3670f075369eb721e12588c5c6f0b3525a51e67
8 years ago
Andreas Schneider
3b643835f9
audio: Disable support for IRQ affinity by default
...
Change-Id: I410f0037747149471a1d5fe7cf38720121938822
8 years ago
Andreas Schneider
56204f6d19
audio: Correctly handle out of memory conditions
...
Change-Id: Id7e0ab1085d3e38c1eaa7905a17726e9d1a68cc9
8 years ago
Andreas Schneider
dc15cec22a
audio: Make speaker swap on screen rotation optional
...
Change-Id: I73623629c4418bff8178793d856d8da98b694283
8 years ago
Andreas Schneider
cdad20da45
audio: Remove unused screen_state parameter
...
Change-Id: I3359e5e6c0d49bc5067f3a78f2f5a1b087c7ae4b
8 years ago
Andreas Schneider
a2b77321b1
audio: Remove tty_mode which we do not support
...
Change-Id: Ifdde7e0ae6b6f1a293d6fa50625ab70ba1fc63a1
8 years ago
Christopher N. Hesse
530cf0d012
audio: s/handset/earpiece/g
...
HANDSET is too similar to HEADSET.
Choose a better name instead and call it EARPIECE
like everyone else.
Change-Id: Ida986366e2ef16cb422cba6ecaeedbe8c1ae9908
8 years ago
Christopher N. Hesse
ce6d5afbcd
audio: Implement get_capture_position()
...
Change-Id: Ib9f637d30774b2a9aa23e6958ce5465d90eae467
8 years ago
Christopher N. Hesse
e6b3a3eae4
audio: improve read/write timing for streams
...
Change-Id: Ic4231c4b44369a9438c6c94622b90862047e9a32
Reference: 0caeee8ac4
8 years ago
Andreas Schneider
b7f32128dc
audio: Use C99 initializers in read_frames()
...
Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc
8 years ago
Andreas Schneider
cabe5e6aef
audio: Fix memory leak when preprocessing is disabled
...
Change-Id: Ia168de215200ae9e1f4740cf5623b39058b3797c
8 years ago
Christopher N. Hesse
8414bd240a
audio: Allow targets to override the deep buffer device
...
Change-Id: I539403661e40e5be7eb5cc130a4b8ad8331d2a4a
8 years ago
Christopher N. Hesse
d23c6b5fcd
audio: Move card specfic defines to a header
...
Change-Id: Iec74ee5c4c0cf93e3a7413901e128b76cf708dbb
8 years ago
Christopher N. Hesse
757ac41a40
audio: Factor out offload code
...
Change-Id: I94a592262016d954318dab3d1339504e54f83681
8 years ago
Christopher N. Hesse
c8502b9ea8
audio: Update module name/author
...
Change-Id: I744742d6be18a4b599e58f3c005154d5a944bd0f
8 years ago
Christopher N. Hesse
052094be3b
audio: Remove dummybuf headphone GPIO code
...
Change-Id: I004ac324df61f37083858c6a5f01f093ad19f98b
8 years ago
Christopher N. Hesse
2f6f8580a3
audio: Remove HTC acoustic amplifier code
...
Change-Id: Id9ea8f1eb9403d171150fd5f15c7ec431c4a1504
8 years ago
Christopher N. Hesse
297a636a12
audio: Import N HAL from flounder
...
HEAD:
Turn off excess logging
Change-Id: I77d6eaf4ac31d969fd42e9a96418203bc682476f
Change-Id: I1cbcbf16ab617b676defcce49335d6f4190e63a9
8 years ago