Audio: get_input_snd_device - use all bt sco devices for voice calls.

Use  AUDIO_DEVICE_OUT_BLUETOOTH_SCO
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET and
     AUDIO_DEVICE_OUT_BLUETOOTH_SCO_CARKIT
and not only AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET for voice calls.

Remove default voice_mic for sco devices - why we need default mic
for sco output devices if now we handle all sco output devices.

Change-Id: Ibf4eb42eebcf7dc229649d8afe6e8b3ea9354165
tirimbino
stenkinevgeniy 7 years ago committed by Jan Altensen
parent 3de9767564
commit 097e294176
No known key found for this signature in database
GPG Key ID: 3E45BB95F7AD33DA
  1. 5
      audio/audio_hw.c

@ -741,17 +741,12 @@ static snd_device_t get_input_snd_device(struct audio_device *adev, audio_device
/* BT SCO */ /* BT SCO */
if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) { if (out_device & AUDIO_DEVICE_OUT_ALL_SCO) {
snd_device = SND_DEVICE_IN_VOICE_MIC;
if (out_device & AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET) {
if (voice_session_uses_wideband(adev->voice.session)) { if (voice_session_uses_wideband(adev->voice.session)) {
snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC_WB; snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC_WB;
} else { } else {
snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC; snd_device = SND_DEVICE_IN_VOICE_BT_SCO_MIC;
} }
} else if (voice_session_uses_twomic(adev->voice.session)) {
snd_device = SND_DEVICE_IN_VOICE_EARPIECE_MIC;
}
} }
} else if (source == AUDIO_SOURCE_CAMCORDER) { } else if (source == AUDIO_SOURCE_CAMCORDER) {
if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC || if (in_device & AUDIO_DEVICE_IN_BUILTIN_MIC ||

Loading…
Cancel
Save