Commit Graph

11 Commits

Author SHA1 Message Date
Samyak Jain 9368d745ae configs: Support 2 instances of "primary input"
No Audio heard in FM Speaker when FM record and FM speaker are on simultaneously

With default values for maxActiveCount and maxOpenCount,
FM app is unable to record and play FM audio on speaker simultaneously
since it uses application loop back(AudioRecord->AudioTrack)
to route FM audio to non-default devices(Speaker)

Add attributes maxActiveCount="2" and maxOpenCount="2" to mixPort "primary input"

CRs-fixed: 2249758
Change-Id: I82a1cb0d5596486d531d5324b91f932f52b07f9e
2018-06-26 12:26:25 +05:30
Aniket Kumar Lata bd889a9359 Revert "configs: Add built-in mic to primary input sources"
This reverts commit 1c57390b961d2eaee6817d91e9453832780261bf.

As per surround sound recording design reverting this
commit to remove built-in mic from primary inputs.

Change-Id: Ic0727a4c59d437045a2ef38cfe4ca2ea66ae21d2
2017-09-18 03:13:23 -07:00
Dhananjay Kumar aeb58fdc7f audio: configs: update policy configuration to fix vts failure
Update default audio_policy_configuration.xml to remove configurations
that are not compatible with aosp system image and are causing vts failures.
Add custom audio policy configurations at /vendor/etc/audio/ to be picked
up by qti customized system image.

Change-Id: Iae1f4c72090ef5a0c6472083dce8b0065beb6851
2017-08-11 17:19:54 -07:00
Divya Narayanan Poojary 8b04ebdd33 audio: add CHANNEL_INDEX_MASK_6 for surround sound
-Adding CHANNEL_INDEX_MASK_6 for surround sound profile
 for multichannel recording.

CRs-fixed: 1069985
Change-Id: Ida574844ae2ebf3588151530f107e30de0cbb8d4
2017-07-27 12:22:05 -07:00
Aniket Kumar Lata 2b3642c1f2 configs: Add built-in mic to primary input sources
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
2017-07-26 16:20:51 -07:00
Dhananjay Kumar ac3415870d audio: make direct output independent of DIRECT_PCM flag
- Make direct output independent of flag AUDIO_OUTPUT_FLAG_DIRECT_PCM.
- Remove multi-channel profile as it is redundant with respect to
  direct output profiles.

Change-Id: I7f5fef656f1d8796872e4d297da3220c3e69951d
2017-04-07 23:13:36 +05:30
Arun Tom Abraham f888ae8cfe hal : Changes for 24 bit recording support
Add new input profile to support 24 bit record.
Based on bitwidth select appropriate unprocessed mic device.

Change-Id: Iba7cdf733f6993129cea1bf41908831ac1dda8d4
2016-12-21 05:16:27 -08:00
Haynes Mathew George 275b1600cc config: additional 12k, 24k sample rate support to direct_pcm profile
Add 12k, 24k as supported sample rates

CRs-Fixed: 1073379
Change-Id: I63d7de7fa8b90ecc1c658fdc3c1448814476636e
2016-10-03 11:26:56 -07:00
Satya Krishna Pindiproli 4c60154231 configs: remove device loopback entries from policy XML files
Remove device loopback entries from route declarations in
policy config XML files for all targets as HAL 2.0 does not
support loopback between devices.

Change-Id: If6f8b96d0edc24cd05fc932d82796729879cfb2a
2016-07-28 11:57:25 +05:30
Chaithanya Krishna Bacharaju 58f0387778 hal: Add support for 3 & 4 channel recording
Add channel mask entry in surround_sound and 24bit record profile
to support 3 & 4 channel recording.
This ensures input open happens with corresponding index mask
instead of using nearset channel configuration.

Change-Id: Ifa120b070f4a5218f4d5ee648284928aac0cf55a
2016-06-14 23:51:55 -07:00
Satya Krishna Pindiproli 87a95f981d audio: configs: add target specific audio policy configuration XML
Add target specific audio policy configuration XML file for all targets
with enhancements such as additional formats under compressed_offload
output, new device ports such as proxy, line, fm etc., new outputs like
direct_pcm, raw etc. as per the text based audio_policy.conf file and
enable its usage by setting the flag USE_XML_AUDIO_POLICY_CONF to 1.

CRs-Fixed: 1015136
Change-Id: Ifcaa780e0f47df74e1476bb2dc0584bd54f0206b
2016-05-20 15:16:48 +05:30