Commit Graph

3980 Commits

Author SHA1 Message Date
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
Asish Bhattacharya
5faacb3a7e ASoC: allow drivers to compile both static and dynamic
Based on where the code is synced the driver should allow
both static and dynamic linked compilation.
Also remove __exit for modules loaded from another common
init/exit functions.

Change-Id: Ib58f152002aba3af4446f9bbd9b82c279212bd0a
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2017-12-07 19:57:27 +05:30
Preetam Singh Ranawat
66f1f21285 asoc: add multiple sampling rates support for a2dp
Add support of 44.1Khz, 88.2Khz and 96Khz over split-a2dp path.

CRs-Fixed: 2153696
Change-Id: I69f20c7a9c465c974e847f42d754c69511138fbb
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-12-05 02:31:29 -08:00
Rohit kumar
9326b2df53 asoc: codecs: disable analog codec static supplies during suspend
Disable regulator supplies of analog codec during suspend
to reduce power consumption.

CRs-Fixed: 2132296
Change-Id: Ia4b690f01e83e929f8bf4d279454e2ff2e8655a2
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2017-11-30 00:33:35 -08:00
Xiaoyu Ye
38fdba57ef ASoC: sdm845: update MI2S supported sampling rates
Update MI2S supported sampling rates in machine driver
to match the CPU DAI driver.

Change-Id: If6145e9f18182ab4621ffcd14716039fcc1bef6f
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-11-29 22:58:20 -08:00
Xiaoyu Ye
5071ff10c0 asoc: remove deprecated dummy functions in DAP modules
File "msm-ds2-dap-config.c" has corresponding dummy functions defined
for all of its functions to avoid compilation error when config flags
"CONFIG_DOLBY_LICENSE" and "CONFIG_DOLBY_DS2" are not selected for a
target. However, this file will not get compiled when these two flags
are not selected. Therefore, those dummy functions are useless and
should be removed.

Change-Id: Ic53a6a9d87d6fd56560af1aec3dc012d6486b42a
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-11-29 13:53:31 -08:00
Laxminath Kasam
52697fe50c ASoC: remove error prints and warning at bootup log
Cleanup for errors and warning print in audio drivers.

CRs-Fixed: 2080345
Change-Id: Ib473dad9226127930be7079063e7795a802ca279
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-11-29 02:18:40 -08:00
Linux Build Service Account
50a527cf07 Merge "asoc: codecs: add support for TX hybrid mode" 2017-11-24 23:27:33 -08:00
Linux Build Service Account
4add670f8a Merge "ASoC: wcd: Fix pop noise in HPH plus LO4 concurrent usecase" 2017-11-24 23:27:32 -08:00
Linux Build Service Account
67b3ea5933 Merge "ASoC: Remove excess logs in compress driver" 2017-11-24 23:27:31 -08:00
Karthikeyan Mani
00d55efdfb asoc: codecs: add support for TX hybrid mode
Add support for analog mic TX hybrid mode to allow
audio catpure in high performance at the same time
achieving lower power.

CRs-Fixed: 2136385
Change-Id: I08b90a26d6b6e4761ff17dec84bf58f8d437d908
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-11-22 22:49:03 -08:00
Vatsal Bucha
e9a5007c9f ASoC: wcd: Fix pop noise in HPH plus LO4 concurrent usecase
Pop sound happens after start playback on HPH when
ultrasound playback on LO4 is enabled.
This is because CnP is sequence dependent and enabling
design blocks in specified order is causing minimum CnP.

CRs-Fixed: 2100346
Change-Id: If10f9013cc1a2aa61fe9c719d3190f2df0b00950
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-20 21:14:23 -08:00
Linux Build Service Account
ccde4f27a1 Merge "asoc: wcd934x: set bus down flag right when notification reaches" 2017-11-20 10:52:52 -08:00
Banajit Goswami
15fffc6b9b asoc: wcd934x: set bus down flag right when notification reaches
Set bus_down_in_recovery flag as soon as possible when
BUS down notification reaches codec driver. This is to
avoid any unwanted slimbus transaction while BUS is still
not recovered.

Change-Id: I77917975372bf51e6aa881cbfc63c479478db375
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-11-20 03:19:40 -08:00
Linux Build Service Account
e722894df5 Merge "ASoC: msm: qdsp6v2: Remove unused FE DAIs" 2017-11-17 02:33:45 -08:00
Linux Build Service Account
4653d96d9f Merge "ASoC: wcd934x: reset ASRC after playback" 2017-11-16 17:37:26 -08:00
Linux Build Service Account
57a2dd58fe Merge "asoc: sdm845: update and affine qos value" 2017-11-16 17:37:26 -08:00
Linux Build Service Account
b080bad185 Merge "dsp: sdxpoorwills: fix compilation issue" 2017-11-16 17:37:25 -08:00
Linux Build Service Account
ebf37be3b5 Merge "ASoC: sdxpoorwills: enable audio compilation" 2017-11-16 17:37:24 -08:00
Linux Build Service Account
44c7f62e5f Merge "ASoC: sdm845: fix clock refcount for MI2S/AUXPCM shutdown" 2017-11-16 17:37:23 -08:00
Linux Build Service Account
34fc964d12 Merge "ASoC: wcd: Fix pop noise when device switch" 2017-11-16 07:37:41 -08:00
Walter Yang
09d4168c79 ASoC: wcd934x: reset ASRC after playback
Reset ASRC after audio playback is completed to clear
the FIFO and avoid any noise being generated.

CRs-Fixed: 2129994
Change-Id: Ie45796e1bd68d5a8bd790490a65520358f26b811
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2017-11-16 02:54:55 -08:00
Banajit Goswami
f6bc7130d2 asoc: wcd9xxx-core: avoid slimbus read/write during ADSP SSR
This reverts commit 40bc50d768038c04f8c1 ("mfd: wcd9xxx-core:
Synchronize codec down and reset calls from slimbus.").
This is to make sure that the dev_up flag is set right
after device_down is called from Slimbus after ADSP SSR.
This flag helps make sure that all read/write calls over
slimbus are blocked until ADSP and Slimbus are fully up
post-SSR.

Change-Id: I5595a23a0b51f2ca392ddfb5773b057204185b54
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2017-11-16 02:53:26 -08:00
Haynes Mathew George
c3f9814e4f asoc: sdm845: update and affine qos value
Fix qos value to 300 micro seconds to prevent core
from going into low power mode when low latency
session is active. Also pin this qos to core 1
& core 2 where audio and glink threads are
running to let other cores to go to low power
modes if possible.

Change-Id: I46d356c384fd8d02a9a3b336a113200171bf25a0
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2017-11-16 02:52:18 -08:00
kunleiz
8a60b82da9 ASoC: msm: qdsp6v2: Remove unused FE DAIs
Clean up unused FE DAIs and remove duplicate
routings from dapm routing map for MI2S_RX_VOICE
Mixer.

CRs-Fixed: 2001153
Change-Id: I2c9bd1255331d83b1901915259fe61d287f682fc
Signed-off-by: kunleiz <kunleiz@codeaurora.org>
2017-11-16 02:51:40 -08:00
Vatsal Bucha
0527c56a87 ASoC: Remove excess logs in compress driver
Excess logs are printed in msm_compr_pointer during ADSP SSR.
This causes failure of some interrupts to occur which
results in SSR failure. Logs can be reduced by applying ratelimit.

CRs-Fixed: 2128011
Change-Id: I0d3d82bf52ea307cdf719f97c4907a2d376580c1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-16 02:51:31 -08:00
Xiaoyu Ye
a87e56ddf2 dsp: sdxpoorwills: fix compilation issue
Variable 'vm_page_prot' has different types in different
ARM platforms. Using macro "pgprot_val" to handle it to
fix compilation issue for sdxpoorwills targets.

Change-Id: Ic7b8de9860759cc56812e7a3ffb1aaea2b6779f9
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-11-16 02:50:54 -08:00
Xiaoyu Ye
afb4161307 ASoC: sdxpoorwills: enable audio compilation
Enable compilation of audio drivers for SDXPOORWILLS.

Change-Id: I2a8d949f98ab6fb56111dffdab51d9123a41c3c1
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-11-16 02:50:35 -08:00
Linux Build Service Account
abebf0b484 Merge "ASoC: codecs: sdm660_cdc: Fix HPH CnP issue on sdm660-internal" 2017-11-16 02:19:13 -08:00
Linux Build Service Account
4eaf88bd5e Merge "ASoC: wcd: set analog gain mode to manual when compander is off" 2017-11-16 02:19:12 -08:00
Vatsal Bucha
1b70f5b02d ASoC: wcd: Fix pop noise when device switch
Pop is observed during switch from playback in native mode
to voice call and vice-versa. This is resolved by mclk
reset to non-native mode before hph path powers up.

CRs-Fixed: 2117960
Change-Id: Ic554c3b2af24dac3ae94b5a239559e5d11e98271
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-15 23:00:47 -08:00
Tanya Dixit
f415b42910 dsp: add mutex unlock to properly release lock
Add mutex unlock in function audio_effects_shared_ioctl
at appropriate place to prevent use after free.

CRs-Fixed: 2123291
Change-Id: Ie0d321dc8cc20a295d102a44faea7e5710834932
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2017-11-14 01:59:11 -08:00
Xiaoyu Ye
f6853a2010 ASoC: sdm845: fix clock refcount for MI2S/AUXPCM shutdown
For MI2S and AUXPCM shutdown, if clock disable is failed,
do not bother to re-increment clock reference. Otherwise,
next time when startup is called, clock enable will not
be called again, so use case will not work.

Change-Id: I5ce4590d2a2030f9d00f1dba9577396f7685a87b
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-11-13 03:03:10 -08:00
Linux Build Service Account
7cb56be566 Merge "ASoC: Add support for qcs605 for dlkm" 2017-11-10 17:24:16 -08:00
Linux Build Service Account
a4ced05898 Merge "ASoC: codecs: sdm660_cdc: Remove lb_mode mixer var from sdm660" 2017-11-10 17:24:16 -08:00
Linux Build Service Account
36b6c5d5e1 Merge "ASoC: codecs: sdm660_cdc: Fix kernel panic on sdm660-internal" 2017-11-10 17:24:15 -08:00
Linux Build Service Account
51909136cd Merge "ASoC: wsa: add mixer ctl to set boost value" 2017-11-10 17:24:14 -08:00
Linux Build Service Account
5ef0c002fa Merge "ASoC: codecs: add mixer ctls to control boost level" 2017-11-10 17:24:13 -08:00
Linux Build Service Account
8ad81f0d8a Merge "ASoC: add support for speaker protection 3.0" 2017-11-10 17:24:12 -08:00
Laxminath Kasam
6bb3a96984 ASoC: Add support for qcs605 for dlkm
Update make files to extend dlkm support for qcs605

Change-Id: Icf736fb66ca12966f4c6cd72bb906eb32899868a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-11-09 14:58:12 +05:30
Vatsal Bucha
d4d03c03ef ASoC: codecs: sdm660_cdc: Remove lb_mode mixer var from sdm660
lb_mode var is redundant for sdm660_cdc.
Loopback works fine without this var also.

CRs-Fixed: 2101423
Change-Id: I727da02660a0f1d6ee5582fc2f2c0a8f6cd59bc1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-07 04:09:07 -08:00
Vatsal Bucha
a868bb9d14 ASoC: codecs: sdm660_cdc: Fix HPH CnP issue on sdm660-internal
Pop is observed after start playback on hph.
This is because both compander channels are not enabled
at the same time which differs from ideal sequence.
Amplitude of pop gets reduced after
corresponding change is made.

CRs-Fixed: 2101404
Change-Id: Iba2b8a809fd3b53f0c180ce28ac5668d7635fb24
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-07 17:26:18 +05:30
Vatsal Bucha
7be67e5fba ASoC: wcd: set analog gain mode to manual when compander is off
If compander DRE isn't turned on, ensure analog gain mode
is set to manual mode. This also resolves low volume
at one channel.

CRs-Fixed: 2102126
Change-Id: Id29b7055fe4f7fa7b3853c26770df38d10539d8c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-07 17:25:41 +05:30