Commit Graph

71 Commits

Author SHA1 Message Date
Rohit Kumar
af88e4c53b asoc: sdm660: configure mi2s gpios from machine driver
Add support to configure MI2S gpios from machine
driver.

Change-Id: I561fdc775c63fd7b31d41a3053956d1643bea566
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-10-04 13:53:33 +05:30
Rohit Kumar
804f26b95f asoc: sdm660: add sclk and mclk support for quinary interfaces
Add sclk and mclk support for quinary MI2S interfaces for
sdm660. Also, update MCLK IDs for secondary and quaternary
MI2S.

Change-Id: If6271224caffbf1623939d409e3e031d5a0c8423
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-10-04 10:03:02 +05:30
Linux Build Service Account
152c7e2bf0 Merge "asoc: sdm660: add support for quinary interfaces" 2017-09-28 09:37:22 -07:00
Linux Build Service Account
8baa1d3330 Merge "autoconf: sdm670: add support to compile analog and digital codec" 2017-09-28 09:37:22 -07:00
Linux Build Service Account
7cc0186011 Merge "audio-lnx: dsp: codecs: modify API to configure output PCM block" 2017-09-26 23:17:35 -07:00
Linux Build Service Account
7deefbcc90 Merge "asoc: msm: add support for quinary interfaces in dai and routing driver" 2017-09-26 23:17:34 -07:00
Linux Build Service Account
58262a8d49 Merge "asoc: send effect config based on apptype" 2017-09-26 23:17:34 -07:00
Rohit Kumar
b315465773 autoconf: sdm670: add support to compile analog and digital codec
Make autoconf changes to enable compilation of
analog and digital codec separately.

Change-Id: I0e7da48ead0bfe535f9103776845e068a3c149d3
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-09-26 16:12:24 +05:30
Rohit Kumar
d17544899a asoc: sdm660: add support for quinary interfaces
Add support for Quinary MI2S, AuxPCM and TDM interfaces
in sdm660 machine driver.

Change-Id: I2dad713a3286499e9b76206b28a82b56638949a4
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-09-26 01:37:48 -07:00
Rohit Kumar
a507793028 asoc: msm: add support for quinary interfaces in dai and routing driver
Add support for dais and routing for Quinary MI2S, AUXPCM and TDM
interfaces.

Change-Id: I50c3099a658998bab805c4c6a5aa447e85f3e7c6
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-09-26 01:37:41 -07:00
Linux Build Service Account
1c88acb93b Merge "dsp: fix logic to send AFE calibration for TDM AFE ports" 2017-09-25 06:14:20 -07:00
Linux Build Service Account
53a557ad46 Merge "ipc: fix out of bounds read issue" 2017-09-24 13:00:49 -07:00
Linux Build Service Account
a86c405d15 Merge "ASoC: wsa881x: fix wsa881x speaker damage" 2017-09-24 13:00:49 -07:00
Xiaoyu Ye
13da482a70 dsp: fix logic to send AFE calibration for TDM AFE ports
AFE calibration should be sent even when the number of group ports is 1.
Remove this condition from API to send AFE calibration for any number of
group ports.

Change-Id: I7f0c8ab739da2831e17e5dbbaf013cf99f2e6d88
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-22 10:28:19 -07:00
Satya Krishna Pindiproli
e169e990ea audio-lnx: dsp: codecs: modify API to configure output PCM block
Pass valid channel count and sample rate information to
configure AAC decoder component and modify the API used
to configure the output PCM block when multi AAC decoder
component is used in non-tunnelled mode.

Change-Id: I5938f316a39b722924416b6910e6c8b835e7855e
Signed-off-by: Satya Krishna Pindiproli <satyak@codeaurora.org>
2017-09-22 11:34:35 +05:30
Rohit Kumar
39603aff7b ipc: apr_v2: export symbols used by WCD driver
Add EXPORT_SYMBOL to symbols used by codec driver.
Codec driver is built as separate module and requires
symbols called to be exported.

Change-Id: I3d1bc6c8cbfc1b92f790b700ecfeaff211ddcff0
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-09-21 20:02:37 +05:30
Linux Build Service Account
f570bf1500 Merge "ASoC: msm: fix compilation errors when CONFIG_QTI_PP is disabled" 2017-09-20 23:35:09 -07:00
Linux Build Service Account
42f62e9d1b Merge "ASoC: add routing entries for Multimedia10 and Multimedia16" 2017-09-20 17:55:33 -07:00
Linux Build Service Account
7e0d1ab80a Merge "ASoC: sdm845: add support to enable QUAT TDM TX path" 2017-09-20 17:55:32 -07:00
Linux Build Service Account
9c14ec875e Merge "dsp: fix dangling pointer access" 2017-09-20 17:55:30 -07:00
Linux Build Service Account
93218c59be Merge "ASoC: msm: qdsp6v2: add support to enable 4-channel QUAT TDM recording" 2017-09-20 17:55:29 -07:00
Linux Build Service Account
038538045b Merge "ASoC: sdm845: add support to update TDM CLK frequency at runtime" 2017-09-20 17:55:26 -07:00
Linux Build Service Account
e2c3eee3ae Merge "ASoC: add support to configure TDM dai clk attribute and clk freq" 2017-09-20 17:55:26 -07:00
Linux Build Service Account
24f165a616 Merge "ASoC: wcd-spi: initialize local variable 'status'" 2017-09-20 17:55:24 -07:00
Linux Build Service Account
6d61dadc8f Merge "asoc: initialize L/R/C gain for both mono/stereo playback" 2017-09-20 17:55:23 -07:00
Linux Build Service Account
19d7949681 Merge "dsp: allocate contiguous memory for version information" 2017-09-20 17:55:21 -07:00
Vatsal Bucha
83716b9a69 ASoC: wsa881x: fix wsa881x speaker damage
wsa881x speaker damage has been reported due to DC at
wsa output. Add a register setting which will reset
the soundwire when there are any DC or synchronization issues.

CRs-Fixed: 2086505
Change-Id: Id2bfb876a5bace891befa613153a88ee54033d76
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-09-20 17:49:45 +05:30
Vidyakumar Athota
87c83b72af ipc: fix out of bounds read issue
If userspace sends non-null terminated channel name then
out of bounds read is possible while printing channel name.
Fix this issue by validating channel name before use.

Change-Id: Ide270a54be14b280e87360836a0fad1302075660
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-09-19 12:06:46 -07:00
Vikram Panduranga
ee9c03a81e asoc: send effect config based on apptype
Add support to configure a specific module and its parameter on adm
based on apptype. This can be used to dynamically configure a module
provided by application.

Change-Id: Iccfee192b0dec505bbb5f65a251e0dd12432fe59
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2017-09-18 14:48:33 -07:00
Xiaoyu Ye
a63f8be985 ASoC: msm: fix compilation errors when CONFIG_QTI_PP is disabled
Add dummy static inline functions for feature QTI_PP to fix compilation
erros for undefined function when flag 'CONFIG_QTI_PP' is not defined.

Change-Id: I24c29636755f44a80b2a0267e0dbb8f72d6a3c9d
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-15 17:20:58 -07:00
Vikram Panduranga
016c49fa46 ASoC: add routing entries for Multimedia10 and Multimedia16
Add missing FE to BE links for Multimedia10 and Multimedia16
which can resolve FE to BE routing failures.

Change-Id: I9f889d88fe520f7efa83c2e2058995fa955c82cb
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2017-09-15 11:47:14 -07:00
Aditya Bavanari
a8aea17ddd dsp: fix dangling pointer access
Assign the circular buffer address to port buffer only after ION
allocation is succesful to fix dangling pointer access.
Also, lock the circular buffer memory allocation in order to
avoid multiple allocations for a port.

CRs-Fixed: 2096407
Change-Id: I22c1d55ea611ac59cdca51924787f6831bad8c2b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-09-15 11:33:28 +05:30
Xiaoyu Ye
f48af4ff1f ASoC: sdm845: add support to update TDM CLK frequency at runtime
TDM CLK frequency needs to be updated at runtime to use the correct
CLK setup.

Change-Id: Ib42fedca3cbf41b85ca121ca04cc994bf8ad4d39
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-14 12:32:39 -07:00
Linux Build Service Account
383f3df747 Merge "autoconf: enabled HDMI for sdm670" 2017-09-14 04:20:56 -07:00
Linux Build Service Account
9772575504 Merge "ASoC: add SLIM_7_TX routing for Multimedia10" 2017-09-14 04:20:55 -07:00
Linux Build Service Account
09507d550a Merge "ipc: initialize glink link state" 2017-09-14 04:20:54 -07:00
Linux Build Service Account
4b813164fc Merge "dsp: add CELT encoder support" 2017-09-14 04:20:54 -07:00
Linux Build Service Account
116595df77 Merge "asoc: remove unused audio files" 2017-09-14 04:20:53 -07:00
Linux Build Service Account
8f2ab91f37 Merge "ASoC: codecs: wcd934x: Fix slimbus overflow" 2017-09-14 04:20:52 -07:00
Linux Build Service Account
ed02dabfb7 Merge "dsp: fix 2nd channel mute in VPRx out for Stereo EC ref" 2017-09-14 04:20:50 -07:00
Cong Tang
2b6adc8ba1 ASoC: add support to configure TDM dai clk attribute and clk freq
TDM dai driver supports optional clk attribute configuration and
clk freq update. To configure TDM interface as PCM mode, the clk
attribute should be Q6AFE_LPASS_CLK_ATTRIBUTE_INVERT_COUPLE_NO.
Implement set_sysclk callback function to update Quaternary TDM
RX and TX clk freq.

Change-Id: I41edaa8d99325e9582e04ddb81a6ad5b5e4435bc
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-13 17:42:16 -07:00
Siena Richard
2d0102dd44 dsp: allocate contiguous memory for version information
Allocate contiguous memory for version information instead of splitting
it across the stack and heap to centralize memory and improve
readability.

CRs-Fixed: 2104576
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Change-Id: Id7b5942522da6312da57bfef3d3c0b55934fe1d7
2017-09-13 11:15:43 -07:00
Xiaoyu Ye
1cb5ce084c ASoC: msm: qdsp6v2: add support to enable 4-channel QUAT TDM recording
Add the corresponding 'cap_mask' to support 4 slots configuration in
CPU DAI driver to enable 4-channel QUAT TDM recording feature on SDM845.

Change-Id: I137d874b00fadde7513ab6c843f61becc74feac1
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-12 18:30:03 -07:00
Xiaoyu Ye
a6b2a53173 ASoC: sdm845: add support to enable QUAT TDM TX path
Add support to update QUAT TDM TX HW parameters and
back end DAI link ops to enable QUAT TDM recording
feature on SDM845.

Change-Id: If0fccafaf563f9453559a45a59300a5bec75f449
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-12 18:03:50 -07:00
Tanya Dixit
861a8fa60c dsp: fix no recovery after SSR/PDR
Add apr_reset for q6core service to enable glink channel
to close and open properly after SSR.

CRs-Fixed: 2099312
Change-Id: Ia023cdb19a6a9dc7fae3e5c28ab51ddd92d37527
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2017-09-12 15:50:47 +05:30
Vidyakumar Athota
60871bde94 ipc: initialize glink link state
There is a chance that glink channel memory pointer is used
after free if WDSP_REG_PKT and WDSP_CMD_PKT are received at
the same time from different threads. Fix this issue by
initializing glink link state to GLINK_LINK_STATE_DOWN.
Also limit error logs to avoid watchdog timeout issues.

Change-Id: I07c4e6f12eb057405eb59f1c0d04b890fa964ce8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2017-09-11 14:26:19 -07:00
Aditya Bavanari
245361df38 dsp: fix 2nd channel mute in VPRx out for Stereo EC ref
In Stereo EC reference, mute is observed in VPRx output
of 2nd channel when only speaker device uses custom MFC topology.

When handset and speaker use the same custom topology, issue is not
observed. Because when DSP VPRx module creates the
custom topology with handset configuration (1 channel and
center channel mapping) and device switch to speaker occurs
MFC conversion from center to left and right channels is successful.

But in case where handset uses default topology, when device
switch to speaker occurs, VPRx creates the custom topology
with speaker configuration(2 channels and left mapping). So,
when MFC config is received, only left->left mapping is done which
leads to mute in right channel.

Fix is to send the channel mixer configuration to MFC module
so that both left->left and left->right mapping is done.

CRs-Fixed: 2102374
Change-Id: If9be09866615e6623e78f48b9841eb068c825992
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-09-11 23:02:33 +05:30
Aditya Bavanari
f0cb90b1f7 dsp: assign channel mapping for Quad Mic use case
Assign channel mapping for Quad Mic voice use case
in channel info command during voice setup
as DSP requires channel mapping to be sent with
default values.

CRs-Fixed: 2097341
Change-Id: I661f845c26f8639e5e8dffa430ecc8cb3b3e8780
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-09-11 23:02:26 +05:30
Asish Bhattacharya
73f4dfff20 autoconf: enabled HDMI for sdm670
Fix compilation of kernel for sdm670.

Change-Id: Ice7768e280a924043b7aafb4d8f7e9fdc051134b
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2017-09-11 18:31:50 +05:30
Laxminath Kasam
da488bf1ff asoc: remove unused audio files
Update to remove unused driver files
from techpack audio.

CRs-Fixed: 2105780
Change-Id: I1dcf1c6e75838863eee0556f7919068dfc47772d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-09-11 15:16:14 +05:30