İşleme Grafiği

222 İşleme

Yazar SHA1 Mesaj Tarih
Karthikeyan Mani
82597ffeec asoc: codecs: Fix device switch pop issue
With AANC enabled, and when the device switches
from speaker path to handset path there is a audible
pop. Add more delay to the aanc enable work function
to resolve the pop issue.

CRs-Fixed: 2137607
Change-Id: Icaf381179b0a81440b21ab4280cb6fc95e6fe6ba
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-26 21:31:29 -08:00
Linux Build Service Account
05cae9910f Merge "asoc: add multiple sampling rates support for a2dp" 2017-12-21 21:53:36 -08:00
Linux Build Service Account
18d2731639 Merge "msm: Array bounds check for buffer index" 2017-12-20 00:31:40 -08:00
Linux Build Service Account
344329b79c Merge "ASoC: remove error prints and warning at bootup log" 2017-12-20 00:31:39 -08:00
Linux Build Service Account
6b6dae7320 Merge "asoc: vote for Glink Rx thread priority upgrade" 2017-12-20 00:31:38 -08:00
Linux Build Service Account
8640fa521a Merge "ipc: add api to vote for upgrading thread priority" 2017-12-20 00:31:37 -08:00
Aditya Bavanari
6348e87415 dsp: export adm_set_lsm_port_id for platform
For audio modules DLKM support, export the ADM API
to external modules.

CRs-Fixed: 2160337
Change-Id: Ieaf88b2c1d99f5fc42a7a3f1900887702323f18b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-18 13:20:54 +05:30
Linux Build Service Account
b809b3b9d7 Merge "ASoC: dsp: add spin lock to protect ac" 2017-12-16 03:09:30 -08:00
Linux Build Service Account
a35c30a54f Merge "ASoC: sdm845: update MI2S supported sampling rates" 2017-12-16 03:09:29 -08:00
Linux Build Service Account
6f3eeba8d2 Merge "asoc: set freed pointers to NULL" 2017-12-16 03:09:29 -08:00
Linux Build Service Account
3db4f18b0e Merge "dsp: send spkr prot calibration after default acdb" 2017-12-16 03:09:28 -08:00
Linux Build Service Account
bb979ce209 Merge "autoconf: sdm845: remove unused configs" 2017-12-16 03:09:27 -08:00
Linux Build Service Account
9c81253780 Merge "dsp: add support for new ADM LSM cal types" 2017-12-16 03:09:26 -08:00
Linux Build Service Account
3a6d24603e Merge "asoc: sdm845: check sound card status before sending AFE config" 2017-12-16 03:09:25 -08:00
Linux Build Service Account
0055984340 Merge "asoc: codecs: modify gnd mic swap threshold for usb-c analog" 2017-12-16 03:09:24 -08:00
Linux Build Service Account
7bae55be7c Merge "dsp: add LDAC encoder support" 2017-12-16 03:09:23 -08:00
Linux Build Service Account
68b1ed3dc2 Merge "dsp: add scrambler support in DSP over split a2dp" 2017-12-16 03:09:22 -08:00
Linux Build Service Account
b4e447d3e0 Merge "dsp: codecs: add support to enable multiaac 5.1 channel playback" 2017-12-16 03:09:21 -08:00
Linux Build Service Account
24a9908ba2 Merge "asoc: add multiple sampling rates support for a2dp" 2017-12-16 03:09:20 -08:00
Linux Build Service Account
5492c58b13 Merge "ASoC: qdsp6v2: Add Audio EC Ref routing to LSM FEs" 2017-12-16 03:09:20 -08:00
Linux Build Service Account
463b274f59 Merge "dsp: assign channel mapping to three channel voice Tx devices" 2017-12-16 03:09:17 -08:00
Linux Build Service Account
26c91d4488 Merge "audio-lnx: Fix re-compile issue for dlkm" 2017-12-15 12:47:37 -08:00
Vignesh Kulothungan
3817b1847e msm: Array bounds check for buffer index
Check the ASM buffer index boundary before using it
to access the buffer to avoid out of array bounds error.

CRs-Fixed: 2145996
Change-Id: I5492941dfd9e7c3fa90af6caec14f9ff7e75d248
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2017-12-15 10:03:25 -08:00
Banajit Goswami
616e68cd4a asoc: vote for Glink Rx thread priority upgrade
For Low-latency audio playback usecase, vote for a priority
upgrade for Glink Rx thread, to avoid any performance issue.

Change-Id: I8332c80eedd7325700e695f341fc4b92f65fd77c
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-12-14 12:10:58 -08:00
Banajit Goswami
8832732009 ipc: add api to vote for upgrading thread priority
For some time critical tasks, the thread priority
might need to be upgraded to Real-Time Thread
priority level. Expose an interface from APR layer
so that clients can vote for a priority upgrade
whenever needed.

Change-Id: Ieb4afa914905750eccdf7672020a8751fdcf6462
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-12-14 12:10:42 -08:00
Linux Build Service Account
3f2ab3aa80 Merge "asoc: remove deprecated dummy functions in DAP modules" 2017-12-14 06:27:57 -08:00
Aditya Bavanari
9deef91554 asoc: set freed pointers to NULL
Set freed pointers to NULL to avoid double free
in msm_compr_playback_open and msm_compr_playback_free
functions of the compress driver.

CRs-Fixed: 2142216
Change-Id: Ifd011dd85dd9f610c7b69dd460f73d26e006cd66
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-13 04:59:45 -08:00
Laxminath Kasam
94815dae7e audio-lnx: Fix re-compile issue for dlkm
On incremental build, Module.symver used
will be older. Add commands to delete symver
files before recompile starts for audio kernel.

Change-Id: I1e90ad4543a7a06b5940f0a2612d18ed722ecd55
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-12-13 01:09:30 -08:00
Meng Wang
9730cdd47e ASoC: dsp: add spin lock to protect ac
There is a possible use after free for the ac variable
that causes kernel panic. Add spinlock to fix race
condition to avoid this issue.

Change-Id: I71638c269f572ff1eaad87682fa000cd1dad407d
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-12-12 23:44:08 -08:00
Aditya Bavanari
a8349a42c7 dsp: assign channel mapping to three channel voice Tx devices
Assign default channel mapping to three channel voice Tx
devices when the topology specific info cal data is NULL.

Change-Id: Ic9d572edc1d7de07a2bd5e11d82f875368c35854
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-12 22:20:10 -08:00
Linux Build Service Account
5643be1804 Merge "ASoC: allow drivers to compile both static and dynamic" 2017-12-12 09:56:54 -08:00
Linux Build Service Account
6d3d8cf5e5 Merge "dsp: unlock the mutex before return to avoid potential deadlock" 2017-12-12 09:56:53 -08:00
Linux Build Service Account
f8ee2d26bf Merge "ipc: add validity check to APR port" 2017-12-12 09:56:52 -08:00
Linux Build Service Account
4460de0faa Merge "asoc: codecs: stop mbhc before mbhc init and after ssr" 2017-12-12 09:56:52 -08:00
Aditya Bavanari
2a627ae4bb dsp: add support for new ADM LSM cal types
Add support for new ADM LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I155d29ff0b77b069aa5970408332064c5c2aebd7
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-12 12:22:09 +05:30
Karthikeyan Mani
5e53248e06 autoconf: sdm845: remove unused configs
Remove duplicates and unused configs from the
config header file.

CRs-fixed: 2147443
Change-Id: I10735b0a344e575591c128bd9ca74850c068023d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-11 21:15:39 -08:00
Aditya Bavanari
3889b4aebb dsp: add support for new AFE LSM cal types
Add support for new AFE LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I9af5c34ea7ad9403b9e6d63ac5d3e73e708a320e
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-11 21:06:17 -08:00
Banajit Goswami
9e31a8a6e3 asoc: sdm845: check sound card status before sending AFE config
WCD codec must be enumerated before AFE configuration for
some of the features can be sent to DSP. This is because
as part of setting up this configuration, DSP tries to
access some codec register. These register accesses will
fail if codec is not enumerated already.
Add a check for Sound Card online state to confirm that WCD
codec has already enumerated before sending AFE configs.

Change-Id: I0b7e5eb49e4f6c6aee9cb142054e57eae592602b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-12-11 21:05:19 -08:00
Karthikeyan Mani
5392d8052e asoc: codecs: modify gnd mic swap threshold for usb-c analog
To reduce time of usb-c analog headset detection, reduce
gnd mic swap threshold if usb-c is enabled. Use
existing threshold value otherwise.

CRs-Fixed: 2137077
Change-Id: Ic1d1f3a00c9034caaac45f2c80f018546a69ce59
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-11 21:03:01 -08:00
Preetam Singh Ranawat
0a087aff7b dsp: add LDAC encoder support
Add support for LDAC encoding in dsp to
enable LDAC encoder over split a2dp path.

CRs-Fixed: 2143086
Change-Id: Ia5ed981f5cd9cc61621d667362585ec7a7e64fa1
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 21:01:26 -08:00
Preetam Singh Ranawat
f746a87965 dsp: add scrambler support in DSP over split a2dp
Add support to enable scrambler in COP Packetizer module
over split A2DP path to fix 44.1Khz playback.

CRs-Fixed: 2143142
Change-Id: I52fec39e10a1c0939fd49d1e1303b03312544abf
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 21:00:31 -08:00
Xiaoyu Ye
d99897f5bb dsp: codecs: add support to enable multiaac 5.1 channel playback
Channel number of multiaac audio decoder is hard-coded to two during
the configuration. Modify it to accept different channel numbers to
enable 5.1 channel playback.

Change-Id: Ibc33ddc7f2ac810a6a34cdbd7a832e58531dfa4f
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-12-11 20:59:54 -08:00
Preetam Singh Ranawat
ae532a03f1 asoc: add multiple sampling rates support for a2dp
Add support of 44.1Khz, 88.2Khz and 96Khz over split-a2dp path.

CRs-Fixed: 2143086
Change-Id: I05e7e947bec250c509f647718323bd208c46b2b2
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-11 20:57:18 -08:00
Xiaojun Sang
092e0edef4 dsp: send spkr prot calibration after default acdb
send dynamic limiter threshold value for spv3 after default
ACDB. Otherwise, dynamic value gets overwritten by default
ACDB value.

Change-Id: Icf509ba3398920439f8bad2a861f946c7472fe78
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2017-12-11 16:25:48 +08:00
Xiaoyu Ye
f423ab17d3 dsp: unlock the mutex before return to avoid potential deadlock
Function "q6asm_set_shared_circ_buff" has a potential scenario that
can cause deadlock due to a missing call to unlock mutex before return.
Avoid this potential deadlock by calling the mutex unlock just before
the return of function "q6asm_set_shared_circ_buff".

Change-Id: Ic454eb5eb57c7616d891277c09e0e3bd37e63cd2
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-12-10 21:27:39 -08:00
Yunfei Zhang
3efc4a220f ASoC: qdsp6v2: Add Audio EC Ref routing to LSM FEs
Add routings between LSM FEs and Audio EC Ref, or AFE port for
external Audio EC Ref will not be enabled during DSP SVA.

Change-Id: Ic70ee9479cd384d0226ac0e92a1824f92ec2d946
Signed-off-by: Yunfei Zhang <yunfeiz@codeaurora.og>
2017-12-10 18:29:47 -08:00
kunleiz
df5a00af69 ASoC: msm: qdsp6v2: Remove unused dapm routings
Clean up unused routings from dapm routing map.

CRs-Fixed: 2149819
Change-Id: I056e8ca14d75262844616c7c831bec450d809d48
Signed-off-by: kunleiz <kunleiz@codeaurora.org>
2017-12-08 19:32:47 +08:00
Aalique Grahame
e4fd7d5484 ASoC: Enable display-port for voice calls
Add mixer controls to enable voice calls over
display-port.

CRs-Fixed: 2151849
Change-Id: Id245b9c5b97d55c1db60e897954cc94eecd7f42d
Signed-off-by: Aalique Grahame <agrahame@codeaurora.org>
2017-12-08 03:31:26 -08:00
Aditya Bavanari
d3047b2ae0 ipc: add validity check to APR port
Add boundary checks for APR port received from ADSP.

CRs-Fixed: 2143207
Change-Id: I9a7fa39ee223e1859323caa6eb74c1c8a26a041d
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-07 21:10:55 -08:00
Karthikeyan Mani
776b1b32c2 asoc: codecs: stop mbhc before mbhc init and after ssr
In SSR init call stop mbhc before initializing mbhc
again, so that usbc analog deregisters the callback
with PMI notifier.

CRs-fixed: 2128532
Change-Id: I329f25172b5cc2d80b93918787f703d89c95062f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-12-07 08:50:35 -08:00