diff options
author | vivek mehta <mvivek@codeaurora.org> | 2015-08-10 23:39:23 -0700 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2015-08-11 15:10:43 -0700 |
commit | fe121d53e92525681e6cd922874c75be6d2efe7a (patch) | |
tree | 73e4fd46e6b04132065d52768c4fbec2bb7854d8 | |
parent | c92c59683257878fb8dc08d827313b4a865898da (diff) | |
download | hardware_qcom_audio-fe121d53e92525681e6cd922874c75be6d2efe7a.tar.gz hardware_qcom_audio-fe121d53e92525681e6cd922874c75be6d2efe7a.tar.bz2 hardware_qcom_audio-fe121d53e92525681e6cd922874c75be6d2efe7a.zip |
hal: add default SND device
Select SND device SPEAKER_MIC in voice usecase when output device
is speaker and fluenec is not enabled.
Bug: 23041574
Change-Id: I50a825f6830776dff3d754516e3803f1ffa31455
-rw-r--r-- | hal/msm8974/platform.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c index 572945fd..6e8a9bb5 100644 --- a/hal/msm8974/platform.c +++ b/hal/msm8974/platform.c @@ -1848,6 +1848,11 @@ snd_device_t platform_get_input_snd_device(void *platform, audio_devices_t out_d snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC; } } + + //select default + if (snd_device == SND_DEVICE_NONE) { + snd_device = SND_DEVICE_IN_VOICE_SPEAKER_MIC; + } } else if (out_device & AUDIO_DEVICE_OUT_TELEPHONY_TX) { snd_device = SND_DEVICE_IN_VOICE_RX; } |