Commit Graph

116 Commits

Author SHA1 Message Date
Ramjee Singh a8385bc1c2 configs: ST HAL upgrade for P compatibility
-Sound trigger HIDL interface supports loading of more
than 1MB sound models from 2.1 version. Update to use HIDL
version 2.1.

Change-Id: I564f598f41f20a01ba9e8dd69be125097a134f1c
2018-09-24 02:23:27 -07:00
Ramjee Singh e4c9c814bd configs: Update microphone characteristics.
Update microphone characteristics to closely match
the default microphone routings for different
sound devices.

Change-Id: I6716a9cd68515deb25957d6fe8290da08d088029
CRs-Fixed: 2264242
2018-08-28 16:56:21 +05:30
Linux Build Service Account ae9dc8a16f Merge "configs: Enable h/w memory tuning" 2018-08-11 23:11:52 -07:00
yidongh 6f69327d3a configs: correct wrong settings in mixer path
Fix the BT SampleRate from '16000' to 'KHZ_16'
in "mmap-playback bt-sco-wb".

Fix the path name from "mmap-buffer-playback hdmi"
to "mmap-playback hdmi".

CRs-Fixed: 2278484
Change-Id: I44ae1d02cb214555967e3f1f42b0cd022e5c4bfe
2018-07-31 02:52:30 -07:00
Linux Build Service Account 6ad124563d Merge "configs: MSM8998: HAL compatibility for P upgrade" 2018-07-29 01:10:33 -07:00
Ramjee Singh 43d58b2290 configs: Enable h/w memory tuning
H/w binder reserves 1 MB by default for memory operations.
Customization is to only reserve usable memory

Change-Id: Ide08e72e4437da270d498ff30b3cc1640d39d963
2018-07-26 14:59:19 +05:30
Linux Build Service Account fa37b6600b Merge "config: Remove property vendor.fm.a2dp.conc.disabled" 2018-07-24 00:22:34 -07:00
Ramjee Singh 0ea2f13259 configs: MSM8998: HAL compatibility for P upgrade
HAL compatibility for P upgrade.
Include the required product packages.

Change-Id: Ifb003315ea7935de9bc2bf8bebdec9d56bde8115
2018-07-23 00:19:01 -07:00
Ramjee Singh c05e64cb50 configs: MSM8998: Add microphone characteristics and snd device mapping
Populate microphone characteristics for supported microphones on
platform. Map input sound devices to specific microphone ids.

Change-Id: Iddb1d5e2a7b77985290df7d84c0342aaf80278e1
2018-07-23 00:18:28 -07:00
Manisha Agarwal a0fcd18a52 config: Remove property vendor.fm.a2dp.conc.disabled
FM Playback Audio routes to A2DP path when BT Headset is connected.

The property vendor.fm.a2dp.conc.disabled is not used in FM
app as it is using app loopback for speaker and WHS(with BT connected)

FM app takes care of BT concurrency of not enabling FM over A2DP ,
Hence removing FM and a2dp concurrency changes from audio
modules.

CRs-Fixed: 2272694
Change-Id: I551ca9b0a9e060e72a6523ce7677234f2da2874f
2018-07-06 10:40:38 +05:30
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
Ramjee Singh 3a3db16bbe msm8998: Separate BT sample rate Rx and Tx backend config
Independent configuration of Rx and Tx backend sample rates
for BT usecases.

Change-Id: Icf4ef19c4337bf4faab99896cbbcc62549e33e6a
2018-05-30 22:46:07 -07:00
Lakshman Chaluvaraju c57b29cc10 configs: Add audio effects xml file
VTS audio effects test cases are failing due
non availability of audio_effects.xml file.
Added new audio_effects.xml as per existing
audio_effects.conf

CRs-Fixed: 2225774
Change-Id: Ief5dc78bbefc3dd7d6eab65b731806aa975dbf1e
2018-05-27 19:10:37 -07:00
Ramjee Singh 6bc592c88b Revert "configs: Disable compress voip."
This reverts commit 78f3b48a3e.

Change-Id: I503eb51c19978e971abf37cdc5bdf45eb4f53abf
2018-05-14 01:59:13 -07:00
Ramjee Singh f7e3316f20 msm8998:Disable 3D audio
Change-Id: I4cf1563ce2b40df2729429d35b6cccb0a0e46cf5
2018-04-15 22:25:45 -07:00
Ramjee Singh 78f3b48a3e configs: Disable compress voip.
Change-Id: I5617b3398ed87fda568d4964c4b62a0b6bf2c976
2018-04-09 02:37:19 -07:00
Bharat Pawar ba3b49dfc3 audio: configs: Disable qahw for msm8998 target
Change-Id: Iefbe8d22164639491c2a9c64fb1818b5e7b7f2e6
2018-03-08 23:27:50 -08:00
Md Mansoor Ahmed 1df3378fda config: Update keep_alive to support silence playback on non-hdmi devices
Keep_alive can now handle silence playback on multiple concurrent
devices such as primary output devices as well as HDMI

Change-Id: Icdf22c9d8d1264d463b23c8f54020e792840b73c
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-01-29 23:08:52 -08:00
Satya Krishna Pindiproli b09eb02179 configs: add USB_HEADSET device in policy conf files
Add support for USB_HEADSET device in audio policy configuration
files of all targets which support USB Tunnel Mode.

CRs-Fixed: 2150144
Change-Id: I14c124e1a5407d004143c977348637fd373a4126
2018-01-09 12:28:58 +05:30
Preetam Singh Ranawat ef555e2e32 configs: remove default sampling rate and channel entries for bt a2dp
-Remove default setting of sampling rate to 48K and stereo channel
  for bt a2dp as support for multiple sampling rates and channels
  over a2dp is added and being set from hal.

Change-Id: I8a40182af0d97b31b136a1928cbbe6f728eb950f
2017-12-01 09:56:52 -08:00
Linux Build Service Account adbbe4f9ba Merge "configs: Remove the path of audio_dynamic_log.xml" 2017-10-20 06:10:49 -07:00
Revathi Uddaraju fdaeee2a19 configs: Remove the path of audio_dynamic_log.xml
Remove the path of audio_dynamic_log.xml file as proprietary
file cannot be added in open source repo.

Change-Id: I72b0638e8d3a11036b1183c62d8c3d28758a583f
2017-10-20 12:54:07 +05:30
Linux Build Service Account 33d58d5c2b Merge "configs: Copy audio_dynamic_log.xml file to /data/vendor/misc/audio" 2017-10-12 01:38:47 -07:00
Revathi Uddaraju 074d9c6436 configs: Copy audio_dynamic_log.xml file to /data/vendor/misc/audio
Copy the audio_dynamic_log.xml file to /data/vendor/misc/audio path.

Change-Id: I4c57f51b8ef6036fa047eec501707693efe5c762
2017-10-11 10:40:34 +05:30
Haynes Mathew George 484e8d2aff audio: Dynamic USB profile changes
Add support for hifi playback and record usecase

CRs-Fixed: 2106614
Change-Id: Ic0d5c8907e9951e8205131060071101ca16a455b
2017-10-06 16:36:51 +05:30
Linux Build Service Account ddd4df2aac Merge "Revert "configs: Add built-in mic to primary input sources"" 2017-09-24 13:03:15 -07:00
Linux Build Service Account eb59a54d86 Merge "configs: add system property to set AudioFlinger client heap size" 2017-09-20 15:19:47 -07:00
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
Manish Dewangan 671a420087 audio: hal: Fix for DTSHD passthrough playback
-DTSHD passthrough is not working when drift correction is enabled.
-Drift correction enablement calls out_write(0) to start compress
 session. However DTSHD iec61937 transmission info parsing fails due
 to size zero write buffer.
-To fix this added
  -Changes to call dts parser when first valid buffer is enabled.
  -Changes to trigger select_device() to update backend configuration.
-Also added mixer path change to configure default HDMI backend
 configuration

Change-Id: I68b2c79ff008a7d081efa475c8b9782072f5ce03
2017-09-13 16:15:40 -07:00
Satya Krishna Pindiproli 650ea15c90 configs: add system property to set AudioFlinger client heap size
Playback of high sample rate multichannel clips fails when
repeat mode is set to repeat one. This is because the default
heap size allocated for AudioFlinger clients is 4MB which is insufficient.

Set the system property ro.af.client_heap_size_kbyte to 7KB. This property
is read in AudioFlinger and multiplied by 1024, so effectively the allocated
heap size becomes 7MB which is sufficient to play such clips in repeat mode.

CRs-Fixed: 2108978
Change-Id: I72f4bb9892465afb311bb269545a5fe926696b02
2017-09-13 17:16:51 +05:30
Linux Build Service Account 9ba5756894 Merge "configs: Add speaker and bt-sco combo device" 2017-09-04 04:42:12 -07:00
Haynes Mathew George 1608104d51 audio HAL: add support for MMAP IRQ mode streams.
Introduce MMAP NOIRQ in shared mode.

CRs-Fixed: 2071843
Change-Id: I79ee079475d23f01aaf730a488b79831fd070df1
2017-08-29 16:26:23 -07:00
kunleiz b7c33b13d1 configs: Add speaker and bt-sco combo device
Add path entries for speaker and bt-sco combo device.

CRs-Fixed: 2081083
Change-Id: Ic7f2457081dbeb1a6b44832c8fafc5729f60a724
2017-08-22 23:45:07 -07:00
Laxminath Kasam 3a3ac882a7 audio: configs: Update IIR coefficients by default.
To address voice latency during device switch,
update IIR coefficients at one time at bootup
and store in kernel driver to handle it during
WCD power collapse and resume.

CRs-Fixed: 2052352
Change-Id: Ib49e03c139767aa548e5194b821e5875dab72471
2017-08-15 15:18:55 -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
Weiyin Jiang 4aa384038c configs: Add flag to control support for 3D audio
Introduce feature flag to control support for
3D audio

Change-Id: I280d0619236c3fc46b0f8623fab58d7f641f6127
2017-08-04 23:16:40 -07:00
Satya Krishna Pindiproli 4a72ae62f1 hal: fix failure in running VtsHalAudioV2_0Target module
VtsHalAudioV2_0Target fails to execute completely and results in
failure of target boot up after VTS execution as system server waits
indefinitely for audioserver to come up. This is due to fd leaks while
running the test cases in the module.

Disable dolby flag on all relevant targets and close open fds in
deinit of sound monitor to resolve fd leaks. This ensures successful
execution of VTS and proper target reboot after execution of VTS.

CRs-Fixed: 2067095
Change-Id: Id4c9b680017f591dec8df385280888cc893dca8a
2017-07-26 17:09:57 -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
Quinn Male 3b465aba1d configs: Changes to support WDSP fluence
Add the switches to enable fluence and select fluence type in the
platform xml. Also add the new mixer controls for WDSP QMIC and
TMIC, along with ADSP TMIC configurations.

Change-Id: I8b0c4e1be6ce79b9bb59c8b591b0491d874c7a2d
2017-07-20 18:22:05 -07:00
Ashish Jain 39c375228b configs: msm8998: Add compress-voip bt-a2dp path entries
-During device switch in a voip call, some apps dont close the session
and instead change the mode to MODE_IN_NORMAL.
-This leads to the voip session to get routed to A2DP-Handset mic pair,
which is not a standard or supported pair.
-To avoid routing errors and only to handle this transitory state,
add compress-voip a2dp path.

Change-Id: I2fea6be63cfc67f527fa7ac506861d6b580cb6b4
2017-07-11 16:01:48 -07:00
Weiyin Jiang ae97a68402 audio: update audio_effects.conf to use vendor
Update librariy path in audio_effects.conf and hard coded lines.

Change-Id: I75cd66fd66910074cf534e08a7a65b6a5795bfee
2017-07-11 15:41:16 -07:00
Satya Krishna Pindiproli a61f3151fc configs: add fractional sample rates to profiles
Add fractional/native sample rates to applicable profiles
to enable configuration of ADM at those rates.

Without this end to end playback of native clips with
sample rate >= 88.2 kHz is not truly native.

Change-Id: I399d725c57769c730db6acdb03b4626a7aa1ce6f
2017-07-11 15:41:04 -07:00
Aniket Kumar Lata e1fcd932c6 configs: Update prefixes for audio system properties
Vendor created android properties are required to have
vendor/qti prefix. Update vendor specific audio system
property configs.

CRs-Fixed: 2034869
Change-Id: Ie7283cbe00eb0a0e80ba0b478ecf904ceb2f9280
2017-07-11 15:39:27 -07:00
Quinn Male ac07a8910f configs: Add custom config ids for LSM usecases
With this addition to the xml, sound trigger hal will add the
custom config header to the opaque data received from the app when
it is running on ADSP.

Change-Id: I1234eeb55b555ca566bd4a2ed6cb0b69f7bbd522
2017-07-11 15:02:47 -07:00
Dhananjay Kumar e6293dd5b4 audio: enable SoundMonitor to handle ADSP SSR events
Enable SoundMonitor in audio hal to handle ADSP SSR events,
do required cleanup and restore any active sessions gracefully.

Change-Id: I83270b7c12095e56a6677f41efe0f5618a27e0e5
2017-07-11 15:01:33 -07:00
Naresh Tanniru 10758b6746 hal: configs: effects: update conf & lib paths
- Update config & make files to
  /vendor path instead /system for
  system and vendor image support

Change-Id: I2c1886441e3d31b9eb4e66caba0d70030a4a8f27
2017-06-14 19:16:02 +05:30
Naresh Tanniru a717d88792 Revert "hal: configs: effects: Enable treble feature"
This reverts commit
 cab4a7d433.

Change-Id: Ic8a6827e5719b469dbd73af5934b9998d53c42c0
2017-06-14 19:03:09 +05:30
Naresh Tanniru cab4a7d433 hal: configs: effects: Enable treble feature
- All qcom proprietary modules should use
  /vendor path instead /system for
  treble compatibility

- Modify configs and android makefiles accordingly

Change-Id: I1a4db8c39b5e7585d1a4d60584d5b1672c9599ac
2017-06-07 05:29:25 -07:00
Linux Build Service Account d9612eb182 Merge "configs: add usb tty support" 2017-06-06 06:16:00 -07:00
Linux Build Service Account 11e89fa37b Merge "hal: Add support for dynamic logging" 2017-06-06 06:15:55 -07:00