android_kernel_xiaomi_sm8350/asoc
Dhananjay Kumar 4867dc18a8 asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun
ADSP, userspace and LSM client driver, all these three layer are maintaining
independent buffers and rewrite them irrespective of the buffer being read
successfully by their client or not.
Before switching to real-time capture, history buffers cached can be returned
with minimal delay and may lead to overrun in a module if buffering in the
module is not sufficient to store all those data generated almost instantaneously.
LSM driver having buffer size smaller than history buffer duration is hitting
this issue and resulting in buffer overrun for even a small delay from userspace
in start of capture processing thread.
Prevent this issue by synchronising read and write in LSM driver to make
sure the driver waits for read from userspace before writing the same buffer again.

Change-Id: I2710b484a7ef03e8314c7ba05bf729893aecb890
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-11-02 19:54:00 +05:30
..
codecs Initial Android target definition for trinket. 2018-10-31 02:40:21 -07:00
Android.mk Initial Android target definition for trinket. 2018-10-31 02:40:21 -07:00
device_event.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
Kbuild Initial Android target definition for trinket. 2018-10-31 02:40:21 -07:00
machine_815x_init.c asoc: add machine driver for sa8155 based automotive platform 2018-08-01 21:54:59 -07:00
machine_815x_init.h asoc: add machine driver for sa8155 based automotive platform 2018-08-01 21:54:59 -07:00
msm8998.c Asoc: swr: Bus Driver changes to support new master driver 2018-06-14 00:39:50 +05:30
msm-audio-effects-q6-v2.c ASoC: dsp: Update audio effects driver to support Instance ID 2018-03-04 23:22:34 -08:00
msm-compress-q6-v2.c Merge "asoc: qcs405: Use changed clock for SPDIF interfaces" 2018-10-15 21:21:25 -07:00
msm-cpe-lsm.c asoc: msm-cpe-lsm: use kmalloc for slim_port_xfer buffers 2018-03-01 17:01:19 +08:00
msm-dai-fe.c dai: Add support for 16ch MI2S 2018-10-04 07:14:31 -07:00
msm-dai-q6-hdmi-v2.c asoc: update log level to avoid execessive logging 2018-09-27 09:56:25 -07:00
msm-dai-q6-v2.c asoc: add A2DP sink support in dai-driver 2018-10-31 23:14:59 -07:00
msm-dai-q6-v2.h dai: Add support for 16ch MI2S 2018-10-04 07:14:31 -07:00
msm-dai-slim.c ASoC: allow drivers to compile both static and dynamic 2017-12-07 19:57:27 +05:30
msm-dai-stub-v2.c ASoC: allow drivers to compile both static and dynamic 2017-12-07 19:57:27 +05:30
msm-dolby-common.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-dolby-dap-config.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-ds2-dap-config.c ASoC: dsp: Update dap driver to support Instance ID 2018-03-04 23:21:47 -08:00
msm-ds2-dap-config.h ASoC: dsp: Update dap driver to support Instance ID 2018-03-04 23:21:47 -08:00
msm-lsm-client.c asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun 2018-11-02 19:54:00 +05:30
msm-pcm-afe-v2.c ASoC: update snd_pcm_ops copy interface in platform drivers 2018-02-03 08:36:32 +08:00
msm-pcm-afe-v2.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-pcm-dtmf-v2.c ASoC: update snd_pcm_ops copy interface in platform drivers 2018-02-03 08:36:32 +08:00
msm-pcm-host-voice-v2.c Merge "dsp: update MSM Audio ION wrappers to align with upstream" 2018-02-15 17:52:20 -08:00
msm-pcm-hostless.c ASoC: allow drivers to compile both static and dynamic 2017-12-07 19:57:27 +05:30
msm-pcm-loopback-v2.c asoc: update log level to avoid execessive logging 2018-09-27 09:56:25 -07:00
msm-pcm-q6-noirq.c asoc: update log level to avoid execessive logging 2018-09-27 09:56:25 -07:00
msm-pcm-q6-v2.c Merge "msm: featurize support for 32channels from QDSP6" 2018-10-16 01:49:01 -07:00
msm-pcm-q6-v2.h asoc: msm: Add support for 32 ch 2018-10-04 07:14:00 -07:00
msm-pcm-routing-devdep.c audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-pcm-routing-devdep.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-pcm-routing-v2.c Merge "asoc: qcs405: add A2DP sink support in machine driver" 2018-11-02 02:54:25 -07:00
msm-pcm-routing-v2.h asoc: msm: Add support for 32 ch 2018-10-04 07:14:00 -07:00
msm-pcm-voice-v2.c dsp: add support for mic break detection 2018-09-06 16:33:54 -07:00
msm-pcm-voice-v2.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-pcm-voip-v2.c ASoC: update snd_pcm_ops copy interface in platform drivers 2018-02-03 08:36:32 +08:00
msm-qti-pp-config.c Merge "asoc: qcs405: Use changed clock for SPDIF interfaces" 2018-10-15 21:21:25 -07:00
msm-qti-pp-config.h ASoC: msm: qdsp6v2: Add dynamic chmix config support 2018-06-19 18:45:52 -07:00
msm-slim-dma.h audio-lnx: Rename folders to new flat structure. 2017-08-18 16:56:12 -06:00
msm-transcode-loopback-q6-v2.c asoc: Add effects controls in loopback driver 2018-10-31 02:36:34 -07:00
platform_init.c Audio: DLKM support for all audio modules 2017-11-02 13:42:09 +05:30
platform_init.h Audio: DLKM support for all audio modules 2017-11-02 13:42:09 +05:30
qcs405.c asoc: qcs405: add A2DP sink support in machine driver 2018-10-31 23:15:46 -07:00
sa8155.c ASoC: add dai links for tert tdm tx7 and sec rx7 2018-10-12 17:11:34 -07:00
sdm660-common.c Asoc: swr: Bus Driver changes to support new master driver 2018-06-14 00:39:50 +05:30
sdm660-common.h ASoC: Add Euro usb-c analog support for sdm670 internal codec 2018-03-06 11:10:30 +08:00
sdm660-ext-dai-links.c asoc: sdm660: fix tasha lite detection issue 2018-02-28 23:05:27 -08:00
sdm660-external.c asoc: sdm670: check sound card status before sending AFE config 2018-01-10 22:52:32 -08:00
sdm660-external.h audio-lnx: Add support to build sdm670 machine driver as module 2017-10-18 10:19:08 +08:00
sdm660-internal.c asoc: sdm660: Add new dais for multiple record session 2018-03-04 18:55:16 -08:00
sdm660-internal.h audio-lnx: Add support to build sdm670 machine driver as module 2017-10-18 10:19:08 +08:00
sdm845.c Asoc: swr: Bus Driver changes to support new master driver 2018-06-14 00:39:50 +05:30
sm6150.c Merge "ASoC: sm6150: Use FSA for USBC gnd-mic swap" 2018-10-16 20:46:40 -07:00
sm8150.c Merge "asoc: add machine driver for sa8155 based automotive platform" 2018-08-11 23:11:48 -07:00