Commit Graph

1202 Commits

Author SHA1 Message Date
Linux Build Service Account
52ce2f0fff Merge "ASoC: msm: add machine driver for kona" 2018-12-09 22:07:46 -08:00
Meng Wang
15c825d077 ASoC: codec: Update codec driver to component driver
Some alsa API are removed in kernel-4.19 which would cause
codec driver compile failure. Update codec driver to fix it.

Change-Id: Ie358ec1863082166958059c179300b453d2a03ad
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-08 03:15:55 -08:00
Meng Wang
ee084a068e ASoC: Change platform driver to component driver
snd_soc_platform_driver is removed in kernel-4.19.
Update snd_soc_platform_driver to snd_soc_component_driver.

Change-Id: I434b6fd173d1f4365a610d9164342d5d04d6c5bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-08 03:15:41 -08:00
Linux Build Service Account
6463cdbf2f Merge "ASoc: ep92: change setup_timer to timer_setup" 2018-12-07 13:20:52 -08:00
Linux Build Service Account
610822ab62 Merge "asoc: Avoid usage of variable length array" 2018-12-07 13:20:52 -08:00
Linux Build Service Account
355332ce80 Merge "ASoC: switch audio drivers to SPDX identifier" 2018-12-07 13:20:51 -08:00
Linux Build Service Account
1e9ef98142 Merge "ASoC: wcd-irq: correct identifier name to fix compile error" 2018-12-07 13:20:51 -08:00
Linux Build Service Account
c4ee98397f Merge "asoc: routing: update app type config get function" 2018-12-07 13:20:50 -08:00
Linux Build Service Account
6503d5b287 Merge "asoc: add snd_dec_ddp struct for AC3 and EC3 playback" 2018-12-07 13:20:48 -08:00
Vignesh Kulothungan
e9abcd0fbd ASoC: msm: add machine driver for kona
Add machine driver for Kona with stub codec.

Change-Id: Ic214324e22e2eaeaa2651e4fbeb8fd187aeb458e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-12-07 11:43:23 -08:00
Meng Wang
c7b180ec7c asoc: Avoid usage of variable length array
chmap in msm_lsm_check_and_set_lab_controls, data in
wcd9xxx_i2c_write_device and irq_level in wcd9xxx_irq_init
are Variable Length Array (VLA). VLAs are considered unfit
when it comes to security, performance, code quality and so
on. Hence, allocate the memory dynamically.

Change-Id: I52f33e61f857a00774eb26dc1d6372f2ed3d425c
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-06 23:52:08 -08:00
Meng Wang
61af6849e9 ASoC: switch audio drivers to SPDX identifier
Switch audio drivers to SPDX identifier on msm-4.19.

Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 15:47:32 +08:00
Meng Wang
978ae25e31 ASoc: ep92: change setup_timer to timer_setup
On kernel-4.19, setup_timer is changed to timer_setup.
Update ep92 driver to fix compile error.

Change-Id: I844241413c72c415819774921f267d84692ba177
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 12:27:56 +08:00
Meng Wang
64aae620b0 ASoC: wcd-irq: correct identifier name to fix compile error
The two arguments in functions wcd_request_irq, wcd_free_irq,
wcd_enable_irq and wcd_disable_irq have same identifier names.
Correct wcd_irq_info identifier name to fix compile error

Change-Id: I6f240d3af1cd253336d070d0f3228eae96a4fcb6
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 11:19:46 +08:00
Meng Wang
d6107d0bbe asoc: clean up audio drivers and remove unused files
Clean up audio drivers and remove unused files.

Change-Id: I50559ac3c5f4a1f4336e4480cd3ff235d015441e
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-06 15:04:09 +08:00
Meng Wang
adbca4f654 asoc: routing: update app type config get function
Update app type config get function and userspace can
get the app type config with mixer control.

Change-Id: I78eda2963161936ae1dbf90dad1bfb64cb079e8d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-06 13:42:40 +08:00
Meng Wang
1b52b57ad2 asoc: add snd_dec_ddp struct for AC3 and EC3 playback
Move struct snd_dec_ddp from uapi folder to msm-compress-q6-v2.c to
avoid code check warning.

Change-Id: Id33eee6da8f42841c80e7e5795bb19e71ab6e784
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-11-28 02:55:16 -08:00
Linux Build Service Account
53ad8477b6 Merge "asoc: codecs: Correct the clk users increment/decrement logic" 2018-11-24 23:09:30 -08:00
Linux Build Service Account
164fffc986 Merge "asoc: codecs: wcd937x: Optimize HPH PA delays" 2018-11-22 20:08:59 -08:00
Linux Build Service Account
3e440a8895 Merge "wcd937x: Use MICBIAS2 instead of MICBIAS1 for MICB2_VOUT" 2018-11-22 20:08:57 -08:00
Linux Build Service Account
506d3c19c6 Merge "dsp: fix configuration of EC reference" 2018-11-22 20:08:56 -08:00
Vatsal Bucha
4b8884a7ae ASoC: wcd: Remove non-essential current source votings from adc
Zdet current source is enabled for 4 pole aux cable and kept
even after plug removal. This increases voltage for both hph left and
right which causes error in cross-connection detection for subsequent plug
detections. Remove current source enablement from unrequired places.

CRs-Fixed: 2234559
Change-Id: Icffbca88f7a6873c509c91e31b494dd6d5d21cb9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-22 00:54:35 -08:00
Gerrit - the friendly Code Review server
4894c6e6b2 Merge changes into audio-drivers.lnx.3.1 2018-11-21 20:58:54 -08:00
Linux Build Service Account
efce0f1657 Merge "ASoC: wcd9335: Add support for Microphone Activity Detection" 2018-11-21 20:45:55 -08:00
Linux Build Service Account
e515ae3fc2 Merge "msm: update auto suspend delay for voting LPASS NPA resource" 2018-11-21 20:45:54 -08:00
Linux Build Service Account
d07fc81d86 Merge "dsp: audio_ion: Update IOVA start address from dt entry" 2018-11-21 20:45:53 -08:00
Linux Build Service Account
e83932585b Merge "Asoc: codec: Fix compilation errors for sdmsteppe target" 2018-11-21 20:45:52 -08:00
Linux Build Service Account
a49eeaac30 Merge "Asoc: Enable audio-dlkm compilation for sdmsteppe target" 2018-11-21 20:45:52 -08:00
Linux Build Service Account
5bbb86f402 Merge "asoc: msm-audio-effects: initialize struct before use" 2018-11-21 20:45:50 -08:00
Linux Build Service Account
b5caafccd1 Merge "asoc: msm: update max eq sessions based on fe dai max" 2018-11-21 20:45:49 -08:00
Linux Build Service Account
b6c04f460a Merge "asoc: sm8150: use locked version of soc_find_component" 2018-11-21 20:45:48 -08:00
Linux Build Service Account
06fa13565c Merge "dsp: avtimer: Update function pointers for camera isp to use avtimer" 2018-11-21 20:45:46 -08:00
Aditya Bavanari
c496ed25a9 asoc: codecs: Correct the clk users increment/decrement logic
The clk users count goes out of sync with the actual
clk requests from clients during SSR/PDR. Increment the
clk users only after the clk request is successful.

Change-Id: I512f037a118f4763a64e7a64f7f559bcfa37a37f
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-11-21 02:21:35 -08:00
Laxminath Kasam
7c8ff05871 asoc: codecs: wcd937x: Optimize HPH PA delays
On headphone path, cold start output latency
is not met. Optimize delays during HPH DAC
and PA paths.

CRs-Fixed: 2338278
Change-Id: If96975d664fc655a4ac38a9d6ed88b6af61adfdf
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-21 14:41:00 +05:30
Laxminath Kasam
35849ccf24 asoc: codecs: Fix CnP on HPH turnon and turnoff
On headphone(HPH) path, CnP spec is not met.
Handle sequences for bolero and tanggu codecs
as per HW sequences. Disable vdd_buck during
system suspend when no usecase is active.

CRs-Fixed: 2343436
Change-Id: I62f89d829715f07885a97531fdcb2cc3ca0822ef
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-21 14:40:00 +05:30
Dieter Luecking
4162083535 dsp: fix configuration of EC reference
The check open_v8.endpoint_id_2 != 0xFFFF can only
be true if changed after initializing open_v8.endpoint_id_2
to 0xFFFF. If not, EC reference will never be configured
correctly. Fixing code to account for that.

Change-Id: I8d2aba19ae1f60ace118c828a98d5fecb149be18
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
2018-11-21 09:12:30 +01:00
Linux Build Service Account
3a0e91bf0c Merge "ASoC: wcd937x: Fix pop after PDR" 2018-11-20 19:53:17 -08:00
Linux Build Service Account
523f345c3a Merge "asoc: codecs: bolero: Disable HD2 on RX macro" 2018-11-20 19:53:16 -08:00
Linux Build Service Account
aea561ec79 Merge "asoc: wcd937x: Handle button press before release interrupt" 2018-11-20 19:53:15 -08:00
Linux Build Service Account
3b193e414d Merge "dsp: q6adm: fix boundary check for copp idx" 2018-11-20 19:53:13 -08:00
Linux Build Service Account
e0d44204fe Merge "ASoC: msm: remove pcm_i2S_sel_vt_address from machine driver" 2018-11-20 19:53:12 -08:00
Linux Build Service Account
13c086dcee Merge "ASoC: wcd934x: mark wdma3 output widget as ignore_suspend" 2018-11-20 19:53:11 -08:00
Linux Build Service Account
56d0f0500e Merge "ASoC: dsp: correct return value check" 2018-11-20 19:53:09 -08:00
Raja Mallik
f008d22120 ASoC: wcd9335: Add support for Microphone Activity Detection
Microphone Activity Detection (MAD) hardware in the codec is used to
perform detection of audio/beacon/ultrasound audio activity on the
microphone. Add routing controls and configuration to enable the
capture support for MAD in WCD9335 codec.

Change-Id: I48359c6069bbebfc7f58efc24654544309912b69
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Signed-off-by: Raja Mallik <rmallik@codeaurora.org>
2018-11-20 12:27:06 -08:00
Laxminath Kasam
356b68c1e2 dsp: avtimer: Update function pointers for camera isp to use avtimer
After DLKM, avtimer functions cannot be invoked directly
from kernel driver. Camera driver exposes API to get the
function pointers to use avtimer. Update the function
pointers by calling respective camera set API.
AVTIMER_LEGACY config should be enabled in audio conf
to enable this support.

CRs-Fixed: 2201340
Change-Id: I165e7ea0226e174288f3e8b81ef01fce137e2e35
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-20 11:52:27 -08:00
Karthikeyan Mani
773b1d1ad0 asoc: sm8150: use locked version of soc_find_component
Use soc_find_component locked version to ensure proper
access of component list while trying to find wsa
components from the list.

Change-Id: I1960d5b023c3d59f5c97ca0f616b4d9e39c15c50
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-20 10:34:09 -08:00
Vatsal Bucha
2a7cbe473a wcd937x: Use MICBIAS2 instead of MICBIAS1 for MICB2_VOUT
MICBIAS1 is mapped to MICB2_VOUT. Replace it with
MICBIAS2 as MICBIAS2 is used for mbhc detect.

Change-Id: I23bade728f0c5b9de75d78ccb70e57d74f01adbb
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-19 22:03:16 -08:00
Md Mansoor Ahmed
26d8bddff4 Asoc: codec: Fix compilation errors for sdmsteppe target
Fix compilation errors for sdmsteppe target.

Change-Id: I511bfd5271d04b455e46a101c47ea1535681dcca
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-11-20 11:07:28 +05:30
Md Mansoor Ahmed
2382aaad1a Asoc: Enable audio-dlkm compilation for sdmsteppe target
Enable compilation for sdmsteppe target and also fix
compilation errors.

Change-Id: I18a13764415ae955843706943e338bb575c11853
Signed-off-by: Md Mansoor Ahmed <mansoor@codeaurora.org>
2018-11-20 11:06:32 +05:30
Mangesh Kunchamwar
eb1fdd1afc msm: update auto suspend delay for voting LPASS NPA resource
Reduce auto suspend delay to 100ms from 1500ms for voting LPASS
NPA resource to reduce delay in entering LPASS into island mode.

Change-Id: Ic38f7b9e8d794963e51c30dfd03da586bca84bd2
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-19 16:18:33 +05:30