Commit graph

43 commits

Author SHA1 Message Date
Linux Build Service Account
1228153fca Merge "asoc: sdm660: configure mi2s gpios from machine driver" 2017-10-06 03:35:14 -07:00
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
64c321d351 Merge "ASoC: wcd-mbhc: add support to read new headset detection parameters" 2017-10-03 09:44:23 -07:00
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
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
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
a86c405d15 Merge "ASoC: wsa881x: fix wsa881x speaker damage" 2017-09-24 13:00:49 -07:00
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
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
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
Meng Wang
4d6a6bef32 ASoC: wcd-mbhc: add support to read new headset detection parameters
To config different headset detection parameters for different hardware, add
two new headset detection parameters in device tree and read it in mbhc driver.

Change-Id: I10457b7d5eae54eba8a4cd273885a63ebad3ccb3
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2017-09-19 09:48:34 +08: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
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
9772575504 Merge "ASoC: add SLIM_7_TX routing for Multimedia10" 2017-09-14 04:20:55 -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
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
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
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
yidongh
98526effb3 asoc: initialize L/R/C gain for both mono/stereo playback
When there's a dynamic channel change from mono to stereo,
volume burst is observed because center channel gain for
stereo is not initialized. Initialize center channel gain
for both mono and stereo playback.

CRs-Fixed: 2095081
Change-Id: I02254b5696a17e2792ea26a2265ab01326f5cf9e
Signed-off-by: Yidong Huang <yidongh@codeaurora.org>
2017-09-10 19:47:23 -07:00
Vikram Panduranga
72863154a8 ASoC: add SLIM_7_TX routing for Multimedia10
Add missing FE to BE link for Multimedia10.

Change-Id: Ibf9a80c942107b1f68b5954b21f87d4f7494b1fc
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2017-09-08 16:44:08 -07:00
Xiaoyu Ye
e908ba91db ASoC: wcd-spi: initialize local variable 'status'
Variable 'status' is used without initialization.
Initialize it to the right value.

Change-Id: I7f43d8905d8192e5f308e9fd00a52eb531f2f698
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2017-09-08 11:34:45 -07:00
Karthikeyan Mani
5eaced6d70 ASoC: codecs: wcd934x: Fix slimbus overflow
Remove MCLK_CONTROL and FS_CNT_CONTROL from
the list of volatile registers so that regmap
sync happens for these registers when coming
out of power collapse. These clock registers
need to be synced otherwise codec state is not
restored correctly after power collapse.

CRs-fixed: 2053506
Change-Id: I9b5385a357f9ad05ad085603410704e916e3985e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-09-07 10:36:06 -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
Shiv Maliyappanahalli
8b3bdea209 asoc: codecs: fix compilation error for wcd codec
The previous commit fb24ad8485a assigns obj-y with
msm_hdmi_codec_rx.o instead of appending, thus giving
compilation error as previously assigned object files
are removed.
Fix by appending obj-y with msm_hdmi_codec_rx.o instead
of assigning.

Change-Id: I7c5ea5627e2e1888e3fc0b53a6650ab64b9a29a8
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2017-08-31 18:19:03 -07:00
Shiv Maliyappanahalli
24d1c0878a asoc: codecs: add object to compile audio hdmi codec driver
HDMI codec driver is not compiling as the corresponding object
file is not set in the makefile.
Add object file to SND_SOC_MSM_HDMI_CODEC_RX config.

Change-Id: I6068f551db357e5bfa73ff5b51014347f38b925c
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2017-08-31 15:48:28 -07:00
Laxminath Kasam
38070be30b 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 -

(aed56b2df75 - "drm/msm/sde: update te vsync enable sequence change")

Change-Id: I7ed5102146986b81e5cb9ca55432360b3549b60c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-24 03:53:42 -07:00
Laxminath Kasam
7e057cf8cd audio-lnx: Enable compilation for sdm670 audio
Enable compilation for sdm670 audio. Update
for both internal and external codecs.

Change-Id: I030837a2c0180a5a31d0ab786ad5de607027050f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-18 16:56:13 -06:00
Asish Bhattacharya
34504581a0 audio-lnx: Add snapshot of audio drivers from below commit.
(1996ec83a45: "ARM: dts: msm: Reduce CNOC bus voting for
        USB slave on SDM845")

This change is to migrate latest snapshot of kernel drivers.

Change-Id: I84669db544773d3ce9d2d5dff0ab6943bd7d8ff9
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2017-08-18 16:56:12 -06:00
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