Skip to content

Commit

Permalink
vince: audio: Add built-in mic to primary input sources
Browse files Browse the repository at this point in the history
Built-in Mic is the fallback input source if A2dp,SCO,wired
headset,usb headset/device are not connected. During the transient
period between an output device and input device connection, if
primary input profile is selected and none of the above devices
are available, APM selects built-in mic as the new device.
Current configuration does not support built-in mic in mix routes
for primary input resulting in premature input close. This leads
to AudioRecord track recreation. Timing issues have been observed
due to incorrect input attributes being set leading to start record
failures. One such case is device switch (handset to headset)during
incall record. Add built-in mic to avoid timing issues relating to
restoreRecord_l call flow.

CRs-Fixed: 2066905
Change-Id: I97cc5370a843ddfd14f3b43ba4435c2930b8e19a
  • Loading branch information
Aniket Kumar Lata authored and mdeejay committed Mar 16, 2019
1 parent a1c9d45 commit 174457f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio/audio_policy_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@
<route type="mix" sink="Telephony Tx"
sources="voice_tx"/>
<route type="mix" sink="primary input"
sources="Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
sources="Built-In Mic,Wired Headset Mic,BT SCO Headset Mic,FM Tuner,Telephony Rx"/>
<route type="mix" sink="surround_sound"
sources="Built-In Mic,Built-In Back Mic"/>
<route type="mix" sink="record_24"
Expand Down

0 comments on commit 174457f

Please sign in to comment.