Commit Graph

33 Commits

Author SHA1 Message Date
Linux Build Service Account
6baee220f0 Merge "asoc: Update mixer control for island mode setting" 2018-08-02 08:23:15 -07:00
Aditya Bavanari
e90adf0fe7 asoc: Add support for Rx and Tx codec dma interface
New codec dma interfaces have been introduced to
connect LPASS and Codec macros. Add playback
and capture DAIs for Rx and Tx codec.

CRs-Fixed: 2281591
Change-Id: I26ba49660d62accb96ea7b063e00b35917dfbdca
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-07-31 11:23:21 +05:30
Mangesh Kunchamwar
07b8dc90a9 asoc: Update mixer control for island mode setting
Fix overwriting of port ID in island mode mixer control.

Change-Id: Ibf650e94519ffde7655e14a88ccc9042b3a3544b
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-30 23:17:12 +05:30
Ralf Herz
c8701f776a asoc: Add support to handle SPDIF input and output interfaces
Support two SPDIF input and two SPDIF output interfaces in AFE.

Change-Id: Ie2eb97e85c3b21cb112282dbdf0049a271e7cc93
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2018-07-25 21:35:45 +05:30
Linux Build Service Account
f205f9ccd7 Merge "asoc: dsp: add support for aptX adaptive" 2018-07-18 10:16:11 -07:00
Sharad Sangle
82777e54d5 asoc: dsp: add support for aptX adaptive
Add support for new A2DP profile aptX adaptive.
This is just like any other A2DP profiles.

CRs-fixed: 2272343
Change-Id: I219dec038e84b7b98ebb2d5233ddf576c8bbe70a
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2018-07-12 22:26:40 -07:00
Mangesh Kunchamwar
2d84e4aedc asoc: Enable VAD in QCS405
Add AFE HW CAL dep node in config and fix the set sampling rate
for codec dma interface

Change-Id: I9165a80da00bfb5b61bbf4f0391ff794d8fba352
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-07-11 21:27:07 +05:30
Mangesh Kunchamwar
9d2cada0af asoc: fix for applying parameters for codec dma
Fix for getting the parameters for codec dma interface
from mixer controls and apply to port config.

CRs-Fixed: 2248380
Change-Id: I351c32e868b8fd3fde3eabbeef89b625a7bf8598
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-28 20:07:16 +05:30
Mangesh Kunchamwar
b8526cc457 asoc: fix for reading dt file for codec dma node
Read 32bit instead of 16bit from dt files for
codec dma dai id.

CRs-Fixed: 2248380
Change-Id: I7d49e0530df7261a9a5d2bb8a742ebe3095cc9d0
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-25 15:31:45 +05:30
Mangesh Kunchamwar
0c794ae9f4 asoc: Add support for VAD in DAI driver
Update DAI driver to include VAD configuration related mixer
controls for the supported DAIs.

Change-Id: I7c1ff9a30c3afcf9bb66e40283e6909631df9aa6
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-12 19:19:37 +05:30
Mangesh Kunchamwar
d191c5fe13 asoc: Add support for codec dma interface
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add codec dma interface dai driver
and corresponding dais.

Change-Id: I307950ff3cbfe80c966bd9de21803655bb46e05c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-11 14:09:54 +05:30
Garmond Leung
6b3f418d7e dsp: Add support for setting USB packet service interval
Add support for setting packet service interval for usb
AFE Port.

Change-Id: I2221c659f967deaccb9031a9a61b51fd475a0e22
2018-05-31 17:56:21 -07:00
Aniket Kumar Lata
c0c314765f asoc: dsp: Add support for adaptive bitrate
Add support for adaptive bitrate with A2DP offload.
Set up Tx feedback path on SLIMBUS_7_TX from BT SoC
to LPASS. Configure AFE encoder and decoder for ABR.
Add bit width support to configure AFE port with
32bit for BT A2DP.

Change-Id: I8e0afaf52561e5dc70318240ba238fc42844501f
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-04-29 15:59:32 -07:00
Karthikeyan Mani
b3c62d149e asoc: remove tdm optional properties boot logs
Move the tdm device property logs from probe function
to prepare function to print them only when tdm usecase
is started and not during bootup.

Change-Id: I3844709d501bf510620d6f20f270e30c68e78b78
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-02 11:24:27 -07:00
Laxminath Kasam
30ad751aac ASoC: rmmod fixes for audio drivers
For remove module(rmmod), update drivers
to cleanup resources and allow insert module
again without any issue.

Change-Id: Iddc6e5e11d986359afd3100bf3c5eab70cb1c1eb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-01 16:02:06 +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
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
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
Rohit kumar
b242df4632 asoc: dai-q6: update quinary mi2s dai id to 4
Update quinary mi2s dai id to 4 and secondary mi2s playback
sd1 dai id to 5. Also update index of mi2s_config_controls
for primary, secondary, tertiary and quaternary mi2s.

CRs-Fixed: 2133890
Change-Id: I00997b79a148cf50b2a3f9acf6e44fe603e5c944
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2017-11-07 01:18:26 -08:00
Laxminath Kasam
8b1366a648 Audio: DLKM support for all audio modules
Switch to DLKM for all audio kernel modules.

Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-11-02 13:42:09 +05:30
Linux Build Service Account
953c2b88b1 Merge "dsp: add support for aptX dual mono" 2017-10-25 09:56:58 -07:00
Xiaoyu Ye
5e7ef9c922 ASoC: add support to configure clock frequency for all TDM interfaces
Enable all five TDM interfaces to configure clock frequency during
the runtime.

Change-Id: I066ea2034509dee2350205ee887dd3eeb6f5389b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-10-17 16:47:34 -07:00
Preetam Singh Ranawat
899b78bd18 dsp: add support for aptX dual mono
Send sync mode parameter to DSP for supporting aptX dual mono.

Change-Id: I1c43b0dec6661a77644e28df45ca6c1a182745de
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2017-10-11 13:43:44 -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
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
e2c3eee3ae Merge "ASoC: add support to configure TDM dai clk attribute and clk freq" 2017-09-20 17:55:26 -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
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
Preetam Singh Ranawat
5402849018 dsp: add CELT encoder support
Add CELT encoder support to enable audio broadcast over split a2dp.

Change-Id: If0d927913c5e525ff1cebf857323ab70be2122a1
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2017-09-06 03:58:45 -07:00
Laxminath Kasam
8f7ccc2e6f audio-lnx: Add latest snapshot for audio drivers.
Propagate the changes based on latest snapshot
for audio kernel source tree at below cutoff of
kernel msm-4.9 -
(040750bfa78 -
 "Revert "ARM: dts: msm: Add DT node for aop-qmp
  clock controller on SDM845 v2"")

CRs-Fixed: 2104096
Change-Id: I0927c40b3a188dbf892e7ec4c1c7810953724929
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-09-04 20:12:56 +05:30
Laxminath Kasam
605b42f92c audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders.
asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)

Restructure drivers to above folder format.
Include directories also follow above format.

Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-18 16:56:12 -06:00