Commit Graph

28 Commits

Author SHA1 Message Date
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
1f5ff4b6f0 Merge "audio: Enable audio compile for 8953" 2018-01-09 03:08:39 -08:00
Laxminath Kasam
942d1c6ed1 audio: Enable audio compile for 8953
Add support for audio compile for 8953.

Change-Id: I37ef20b44aecba8ffc9a7d1d346bf83a9115ad1b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-12-29 16:44:10 +05:30
Laxminath Kasam
817af9a7f1 ASoC: sdm660_cdc: Fix ear_pa_gain control
In analog codec, EAR PA gain control get
function is updated with input value again
resulting in override. Remove the override
of control value again.

CRs-Fixed: 2161617
Change-Id: I7ddd252adf53666a6c9adc1bc92e840067fa932c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-12-28 11:43:06 +05:30
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
5643be1804 Merge "ASoC: allow drivers to compile both static and dynamic" 2017-12-12 09:56:54 -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
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
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
34fc964d12 Merge "ASoC: wcd: Fix pop noise when device switch" 2017-11-16 07:37:41 -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
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
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
Vatsal Bucha
3249ff278d ASoC: codecs: sdm660_cdc: Fix kernel panic on sdm660-internal
Kernel panic is observed during SSR. This is because
ADSP does not get sufficient time to bring up LPASS after SSR.
An increase in ADSP Ready timeout resolves the issue.

CRs-Fixed: 2101404
Change-Id: Ia7d1ecde7a713b4d71b2a4ebb1f85a38b8fa28b5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-11-07 02:52:31 -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
97c9da7a1e Merge "ASoC: codecs: sdm660_cdc: Fix mute if compander is disabled" 2017-10-30 11:35:08 -07:00
Linux Build Service Account
73780981b5 Merge "ASoC: codecs: sdm660_cdc: Fix pop noise issue at DMIC" 2017-10-25 09:56:56 -07:00
Vatsal Bucha
523325316e ASoC: codecs: sdm660_cdc: Fix mute if compander is disabled
Compander disable sequence does not get called
after headphone playback on FM. This results
in mute at one channel. Compander clock
should be disabled at the end to resolve the mute.

CRs-Fixed: 2102126
Change-Id: Ia47fb1c393db255b52a965173a769896768f245e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-10-25 18:20:34 +05:30
Vatsal Bucha
2e3e0f2180 ASoC: codecs: sdm660_cdc: Fix pop noise issue at DMIC
Pop noise occurs during switch from handset to speaker mode
during voice call. This is because sufficient delay
is not provided for tx to unmute. A delayed workqueue
that will do unmute at the end solves the issue.

CRs-Fixed: 2101423
Change-Id: I1ae7068b23158bb8428d5b96e9f65fb05a67ff7e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-10-11 19:58:38 +05:30
Rohit Kumar
4b5bd80a91 asoc: codecs: Add support to compile internal codec as module
Separate compilation of analog and digital codec and add
support to compile them as dynamic module.

Change-Id: I81f01bf60aef71f67e025fa4ff1ba805a960e61d
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-10-03 06:44:15 -07: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