summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRamjee Singh <ramjee@codeaurora.org>2019-09-20 14:48:09 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-09-20 04:19:40 -0700
commit5781b50b9caf684bf1455436b9a2eef2d47e0233 (patch)
tree04630409036e05b240e097bae7c689156159e58b
parent3fe883a23e5f668b119c31af6e6b5c4dc5539c07 (diff)
downloadhardware_qcom_audio-5781b50b9caf684bf1455436b9a2eef2d47e0233.tar.gz
hardware_qcom_audio-5781b50b9caf684bf1455436b9a2eef2d47e0233.tar.bz2
hardware_qcom_audio-5781b50b9caf684bf1455436b9a2eef2d47e0233.zip
hal: Allow hal to open Telephony RX as attached device
- Incall recording and USB voice call does not work as Telephony RX is not available device. It is default attached device and policy should be able to open input stream with this device. - Change is to allow opening Telephony RX even if its not in call to serve as default attached device. Change-Id: I239cede58141dfe3faf7f06a495cc2824f201a58
-rw-r--r--hal/audio_hw.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c
index c99b4491..61159ae7 100644
--- a/hal/audio_hw.c
+++ b/hal/audio_hw.c
@@ -7362,13 +7362,6 @@ static int adev_open_input_stream(struct audio_hw_device *dev,
in->bit_width = 16;
in->af_period_multiplier = 1;
- /* Update config params with the requested sample rate and channels */
- if ((in->device == AUDIO_DEVICE_IN_TELEPHONY_RX) &&
- (adev->mode != AUDIO_MODE_IN_CALL)) {
- ret = -EINVAL;
- goto err_open;
- }
-
if (is_usb_dev && may_use_hifi_record) {
/* HiFi record selects an appropriate format, channel, rate combo
depending on sink capabilities*/