Commit graph

16 commits

Author SHA1 Message Date
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
Fevax
51bd12c20d audio: add support for bluetooth wideband voice calls
Change-Id: I02bf23a83c52389cc02ba1f61572eb651418fe24
2017-03-20 14:44:03 +00:00
Christopher N. Hesse
0fdef0cbd6 audio: Add support for Audience EarSmart ICs
Some devices (often T-Mobile variants) have extra hardware for
incall audio processing.
Audio must be routed to the ES IC properly so it can be passed to
ALSA, otherwise the RX/TX streams are lost.

Change-Id: Ib29c747d5728a09726e14bab00f26ad273400aba
2017-03-03 21:49:59 +00:00
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
2017-02-24 22:50:27 +00:00
Andreas Schneider
49b9dcb284 audio: Implement WB_AMR callback correctly
Change-Id: Ib2392c8a122d07b40814ca2eeaecf30f9bdb0f99
2017-02-19 11:46:55 +00:00
Christopher N. Hesse
74c317d1bd audio: Guard WB_AMR callback
Some devices do not support this; some devices are WiFi only
and obviously do not have it.

Change-Id: I6d245eee447bd87849cbdfd41c0cf73c6af714e6
2017-02-15 11:25:45 +01:00
Andreas Schneider
e6286b9208 audio: Rename HANDSET to EARPIECE to follow libsecril-client
Change-Id: I9e99e1bdf8c8c29aca4d753269190dd34c229d8a
2017-02-15 10:38:30 +01:00
Christopher N. Hesse
86f7ea8e9f Revert "audio: Disable voice log by default"
This was intentionally left enabled and does not spam anyways,
but allows users to extract helpful information without
recompiling.

This reverts commit e06577dc81.

Change-Id: I604ee674a1db466b3d3e364cb95f5688edd4947c
2017-02-15 09:42:05 +01:00
Andreas Schneider
e06577dc81 audio: Disable voice log by default
Change-Id: I56c54fe1f3d75cbd05693f98f2f2210ea13295dc
2017-02-14 17:42:15 +01:00
Andreas Schneider
d44edaa261 audio: Log error if we fail to set the audio path
Change-Id: Ide469d644aaab2a97dd72244bd316c2ff497d9db
2017-02-14 17:42:15 +01:00
Andreas Schneider
05bc1882e2 audio: Add support for bluetooth voice calls
Change-Id: Ic63b7c09ed7401ab72824a406db333e3fbce780b
2017-02-12 11:56:30 +00:00
Andreas Schneider
107a848bc3 audio: Add support for voice session mic mute
Change-Id: I5277736fffcb4511e4a7adb2e3e10090dcab484c
2017-02-11 14:23:16 +01:00
Andreas Schneider
59486fa48c audio: Add voice call wideband support
Change-Id: Idf6725aaaf906109ce973a8109b7c252a997dead
2017-02-11 14:23:16 +01:00
Andreas Schneider
82f3248400 audio: Add support for two mic control
Change-Id: I0176b41b071577e9e55f5177ec1219d4e9aa91a2
2017-02-11 14:23:16 +01:00
Christopher N. Hesse
696959dda1 audio: Enable voice call support
Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org>

Change-Id: I284f21240e56dda93cb8a2ab98b903ff712504a6
2017-02-10 21:41:49 +01:00
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
2017-02-10 20:31:20 +00:00