On a Nexus 5 running Android 5.0.1, when recording from the bluetooth mic with startBluetoothSco(), the recording switches to the phone mic if the app is switched. Please see below:
The recording is silently switched to the main input mic. SCO_AUDIO_STATE_DISCONNECTED is never received. 03-04 15:13:26.026 1453-2016/? D/audio_hw_primary﹕ out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2 03-04 15:13:26.049 1453-1997/? D/audio_hw_primary﹕ select_devices: out_snd_device(0: none) in_snd_device(32: speaker-mic) 03-04 15:13:26.049 1453-1997/? D/audio_hw_primary﹕ disable_audio_route: reset and update mixer path: audio-record bt-sco 03-04 15:13:26.061 1453-1997/? D/audio_hw_primary﹕ disable_snd_device: snd_device(44: bt-sco-mic) 03-04 15:13:26.061 1453-1997/? D/msm8974_platform﹕ platform_send_audio_calibration: sending audio calibration for snd_device(32) acdb_id(11) 03-04 15:13:26.061 1453-1997/? D/﹕ Failed to fetch the lookup information of the device 0000000B 03-04 15:13:26.061 1453-1997/? E/ACDB-LOADER﹕ Error: ACDB AudProc vol returned = -19 03-04 15:13:26.061 1453-1997/? D/audio_hw_primary﹕ enable_snd_device: snd_device(32: speaker-mic) 03-04 15:13:26.065 1453-1997/? D/audio_hw_primary﹕ enable_audio_route: apply and update mixer path: audio-record This will also happen if the screen is switched off. Wondering if anyone has any ideas about this and preventing it, if possible? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

