AUDIO_EVENT_SCREEN_STATUS_CHANGED was added in a previous change
in the middle of the enum which led to erroneous logs. This change
resolved that by moving it to the end of the enum.
Change-Id: Ic01e8daaf037556886fbd5bc35491c034385a473
Support snd card status string with set parameters
API for audio HAL dev and input/output streams.
Remove hostless session control in auto hal as it
is managed in audiod.
Change-Id: I3390ca26cf49cef86df116d8e28c5c558f9afee6
This change adds new usecases to the list that will raise a
usecase event to sthal. USECASE_AUDIO_PLAYBACK_LOW_LATENCY and
USECASE_AUDIO_PLAYBACK_ULL are added with system property checks.
USECASE_AUDIO_PLAYBACK_MMAP is also added without a system
property. Additionally, screen state events can now be sent to
sthal.
Change-Id: I936b2390d886b67695daf184a2ca1b018ed17567
EC ref port can be simultaneously set and reset by
audio and SVA use cases. Synchronize enabling/disabling
of EC ref between sthal and audio hal by passing EC ref
enablement/disablement information to each other.
1. When closing input, EC ref does not stop if SVA EC ref
is active.
2. Pass Audio EC ref status to STHAL, when stopping SVA,
ensure EC does not stop if Audio EC ref is active.
Change-Id: I67f1f6316ea64e43a21cbf0add90d345a1108d3e
In order to protect voice recognition data from other clients
in audio record concurrency usecases, mute all active non voice
recognition input streams.
Change-Id: I1002726699902952c8b8568d57aa1cb6dfc2ad2b
-Audio HAL to support FFV get_paramters via sound trigger
callback.
-FFV needs clients to pass down the SM handle info to get a few
paramerters with respect to the given SM handle but standard
get_parameters doesn't support kvpairs for input keys, it does
support for return of kvpairs, add support for a new delimiter
which will be used while sending keys in get_parameter.
-Enable Keep alive for Red Dragon
-Adjust volume gains based on the systems team tuned values
Change-Id: I96c7214b4a084568862e3550eaabbb9d51e253d9
Update soundtrigger stream status callback to include device info.
The device info included in status callback can be used by sthal
to select ec reference.
Change-Id: Ia5973ce287300bab4b505269829332e60cf9e7f4
Insert a new enum type in audio event type definition, this is
to keep the event type reported to sound trigger HAL to be
consistent with audio HAL.
Change-Id: Id6024cd22752665da91f0db97217df08e4091dfe
Report battery status to sound trigger hal which is used to
determine performance mode or low power mode for SVA.
Also report active rx device to STHAL to select equivalent
echo reference.
Change-Id: If9633fefd3319cc5121e96c238c9de04d67efe35
Tx mute is observed for voice call with SVA running in background as
STHAL disables the device enabled by AHAL as it gets intimation about
audio usecase after enabling device.
Fix this by removing prop version check in device status so that STHAL
pauses its session before audio usecase enables device.
Also add check for playback usecase in stream status to send playback
usecase info to STHAL.
Change-Id: I8e575ad7cd198b4367d78f5dbe318fc908f86caf
Tx mute is observed for voice call with SVA running in background as
STHAL disables the device enabled by AHAL as it gets intimation about
audio usecase after enabling device.
Fix this by removing prop version check in device status so that STHAL
pauses its session before audio usecase enables device.
Also add check for playback usecase in stream status to send playback
usecase info to STHAL.
Change-Id: I8e575ad7cd198b4367d78f5dbe318fc908f86caf
- Add quad mic mixer controls in audio and sound trigger xmls files.
- Add changes to set EC reference device for FFV.
CRs-Fixed: 2225936
Change-Id: Ife05d9069db2880473f8e6d06ab284c011f935ae
- Add get param support in AHAL for Direction of Arrival and Channel
index from STHAL.
- Correct feature flag enable syntax and resolve compile errors.
- Remove codec loopback and add afe loopback mixer controls in mixer xml.
- Update sound_trigger_platform xml file.
CRs-Fixed: 2225936
Change-Id: I2e477013977a03a599d6bb4a52c66b897e967219
SVA detetions are happening during voice call in progress.
Because STHAL is not updated about the voice call usecase and hence SVA is
not being paused.
Fix this issue by sending callback to STHAL from AHAL.
Change-Id: I441aeec56fae5bcfbab3eed6697f08e6901024e6
SVA detetions are happening during voice call in progress.
Because STHAL is not updated about the voice call usecase and hence SVA is
not being paused.
Fix this issue by sending callback to STHAL from AHAL.
Change-Id: I441aeec56fae5bcfbab3eed6697f08e6901024e6
Instead of sending device enable/disable events, send use case
enable/disable events with use case type and device info to
sound trigger hal.
Sound trigger hal can decide to support the concurrent capture
based on the audio use case.
Also avoid compilation dependency on sound trigger hal proprietary
interface header file by maintaining interface APIs locally.
CRs-Fixed: 2173226
Change-Id: I7837523a31da3298fd817bb8355993f9861daca3
FFV EC reference signal is fed from AFE RX port.
Start the keep alive session to write silence data to
RX port and feed the silence data to FFV EC.
Change-Id: I38b0396ef853493c9a176444dc803744be1c45bb
Signed-off-by: Surendar karka <sukark@codeaurora.org>
-Absolute path is only needed when lib is not present in default
path (/usr/lib or /usr/lib64) but as LE uses default path,
absolute path is not needed.
-This also avoid specifying two different path for 32bit and 64bit
architecture.
Change-Id: I55c6d9edaebe374f9b2ad16ebe20fd4e9d0aef08
Enable SoundMonitor in audio hal to handle ADSP SSR events,
do required cleanup and restore any active sessions gracefully.
Change-Id: I83270b7c12095e56a6677f41efe0f5618a27e0e5
Switch hardcoded system/vendor path to $(TARGET_COPY_OUT_VENDOR). For
direct loading of files in code, switch from /system/vendor to
/vendor - relying on /vendor symlink for compatibility.
Change-Id: I96960f977f1ab74f266aa7a7937c760b6675ca54
Pass SVA execution mode to sound trigger HAL received
as part of setparameters.
Add support for getparameters in soundtrigger and return
SVA execution mode status from sound trigger HAL when
queried.
Change-Id: I63c482920ee778beb806e3138c93e005e15ca897
Relay the device connect/disconnect events to sound trigger hal
in order to support voice activation using mic devices other
than handset mic.
Change-Id: Id4b186269f6f39ebbba605f4819965365b33b7e7
Soundtrigger implementation between Tasha and Tavil codecs is
different. Add a session abstraction so the underlying layer
can interpret the session based on the codec being used.
Change-Id: I341e1c5c84a93988eee002743093beb2b7398fd0
With CLANG enabled and -Wall & -Werror being set in
LOCAL_CFLAGS, all warnings are treated as errors.
This commit fixes all the warnings most of which are
about unused variables and functions.
Change-Id: I32c6593fa0ad6a4fdca5dc8e6c76982a146a8bc6
If the framework doesn't call read before standby and closes the
record session, sound trigger buffering will not be stopped and
sound trigger hal continue buffering internally. Fix this by
stopping buffering during record session close.
Change-Id: I83941610b3152f26e5ae9c449dbb8f9846b266a2
CRs-fixed: 966060
While sound trigger lab data being read, if CPE SSR
happens the pcm read returns -ENETRESET. Instead of
updating the sound card sate, mark the sound trigger
state as inactive to avoid reading the lab data from
driver. Marking the session as inactive handle both
CPE and ADSP SSR scenarios where HAL is prevented
to read from kernel.
Change-Id: Id82eed597c01265a7d26f17e5ac3c5cd0e17adbf
CRs-fixed: 790726
When SSR happens the callbacks between sthal and ahal
are called within each context aquiring the locks resulting
in race condition. Fixed by removing lock before calling
the sthal callback.
Change-Id: I6cd88d25758f9c0a6ca39141df6629e2f8b6c0c5
Sound Trigger App uses setParameters() API to pass the number of
sessions to be configured to STHAL.
Change-Id: I14abff49863d82178fb633c9a93af0cd02c83e2e
Sound trigger lookahead buffering data is read through audio hal.
Also the audio hal has to inform sound trigger hal about concurrencies
and subsytsem restart events. Audio Hal uses proprietary interface
defined by sound trigger for communication with sound trigger hal.
Change-Id: Id344077b40b481a953769518f8a6ac0adc13b709