Commit Graph

937 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Vatsal Bucha
79da9fb84a ASoC: wcd937x: Fix pop after PDR
Pop is heard after PDR is triggered. This is
because while device down PA is still on.
Disable PA before SSR device down to prevent pop.

Change-Id: I6bfe3e731bdf60fba8fee90ab39c03a0512006ce
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-19 14:41:52 +05:30
Linux Build Service Account
e95846085a Merge "ASoC: Fix null pointer dereference for prtd pointer" 2018-11-18 23:46:57 -08:00
Linux Build Service Account
712efd3aa3 Merge "wcd934x: Fix NULL pointer dereference for wcd9xxx pointer" 2018-11-18 23:46:54 -08:00
Linux Build Service Account
d72c877e31 Merge "soc: vote for LPASS NPA resource from LPI TLMM driver" 2018-11-17 09:56:49 -08:00
Meng Wang
49e9a4081b ASoC: msm: remove pcm_i2S_sel_vt_address from machine driver
lpaif_muxsel_virt_addr to select AUXPCM or I2S is not needed in
machine driver. ADSP would select AUXPCM or I2S according to
afe port.
Remove related change in machine driver.

Change-Id: I55520a56bab2134a08e86909b98eb15d588c53ba
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-11-16 17:18:24 -08:00
Bhalchandra Gajare
9ae91fb765 ASoC: wcd934x: mark wdma3 output widget as ignore_suspend
Paths using WDMA3_OUT widget are currently not marked to be ignored
during suspend, which results in the path teardown during suspend.
Due to this the audio use-case is broken. Fix this by marking
WDMA3_OUT widget as ignore_suspend.

CRs-fixed: 2176596
Change-Id: I72a2dda21aabfe9b13ea8660d4e3a51b3185d9ea
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-11-16 17:14:17 -08:00
Linux Build Service Account
d2d43fa980 Merge "ASoC: wcd937x: Enable hph OCP" 2018-11-16 10:16:59 -08:00
Linux Build Service Account
bef6a02c0d Merge "asoc: add SBC support for BT Sink in dai-driver" 2018-11-16 08:34:30 -08:00
Linux Build Service Account
67a099c6cc Merge "asoc: sdm845: set flag ignore_pmdown_time for ultrasound RX DAI" 2018-11-15 22:54:08 -08:00
Vatsal Bucha
8d8602219b wcd934x: Fix NULL pointer dereference for wcd9xxx pointer
During bind/unbind of ngd_msm_ctrl power_gate_digital_core
is called. Simultaneously tavil_remove is also called
making tavil pointer as NULL.  Check for tavil as not NULL
at the start of function to avoid NULL pointer dereference.

CRs-Fixed: 2267796
Change-Id: I6fc476cc8b706b556836f30838983de0f34d4fc1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 18:05:52 -08:00
Vatsal Bucha
2eb2e613df ASoC: Fix null pointer dereference for prtd pointer
Private data pointer may not be initialized before
access it in adsp_stream_cmd_put. NULL check for prtd
avoids the issue.

CRs-Fixed: 2250112
Change-Id: I0a033d7e867b183c329941b57b49232729191f1b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 18:01:31 -08:00
Florian Pfister
4b3b0c8401 asoc: add SBC support for BT Sink in dai-driver
Receive SBC stream parameters from IPC library.

Change-Id: I59e938589c912c85aa3b84203ff20c469b978671
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
2018-11-15 06:09:47 -08:00
Vatsal Bucha
204f59cd14 ASoC: wcd937x: Enable hph OCP
Update registers to enable OCP for HPHL and HPHR.

CRs-Fixed: 2321013
Change-Id: I51a872981ee2dc435757152b9122067944d13924
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 04:32:14 -08:00
Laxminath Kasam
d3ffb3368b asoc: codecs: bolero: Disable HD2 on RX macro
HD2 canceller on analog codec is performing
better and enabling HD2 block on rx macro side
as well impacting THD+N spec. As per HW
recommendation, disable HD2 on digital bolero
rx macro by default. Mixer control option is
provided if required to enable it in future for
any requirements.

CRs-Fixed: 2343436
Change-Id: Ic1696ff9a6dea22a3c2a6071708267e2a024a4c7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-15 15:01:09 +05:30
Linux Build Service Account
ffb86ea061 Merge "asoc: bolero: Add support to register wake irq" 2018-11-14 23:15:24 -08:00
Linux Build Service Account
3de80a4abd Merge "asoc: codecs: Add new class-H driver for wcd937x" 2018-11-14 23:15:18 -08:00
Mangesh Kunchamwar
920015ceb8 asoc: codecs: bolero: vote for LPASS NPA resource
Updates for voting for LPASS island NPA resource while
access any LPASS registers.

Change-Id: Ibcebd2d6ef368f309594689335bc07a36eafeaf0
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-15 12:22:48 +05:30
Vatsal Bucha
53b4e14f94 ASoC: bolero: Add callback to tanggu in SSR Disable
Add callback event in ssr_disable to disable
tanggu PA before regcache_cache_only
to avoid pop after PDR. Also update proper bit
while RX Mute.

Change-Id: I06402269d393ca74c11611482cafbde03f4c62b9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-11-15 11:40:25 +05:30
Mangesh Kunchamwar
912a96accb asoc: codecs: update audio clock driver for LPASS NPA resource
Add new clock node for LPASS NPA resource for clients
to enable or disable the resource.

Change-Id: I8aa587771618d301ace72d6df1045078cdf39c9c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-11-14 18:39:09 +05:30
Aditya Bavanari
3e19f3c007 asoc: sm6150: Add changes to send wake_irq mechanism
SM6150 V1.0 target uses ipc wake up mechanism. Based on
version info of sm6150 chipset, register for
wake up interrupt either by ipc_wakeup or hardware
interrupt line machanism.

Change-Id: I7f12d919418b284f310c8b7bb5cd24e47f2099ec
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-11-14 03:38:37 -08:00
Aditya Bavanari
c4e96121c5 asoc: bolero: Add support to register wake irq
Add reg_wake_irq macro callback and issue an event
from Tx macro to Tx sound wire master instance
in order to register for wake irq and to handle
the ipc wake up interrupt.

Change-Id: Iefddc1f85173ce267c0b00c9d06be3a4a2fe29fe
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-11-14 17:06:38 +05:30
Ramprasad Katkam
0730ecfaa0 asoc: wcd937x: Handle button press before release interrupt
If button press and release interrupts occur at same time
processing button release first would treat the button event
as fake, as it is not preceeded with press event. Hence
process button press before button release in irq driver.

Change-Id: I9413def87537502c470236a3948a21be47c479bc
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-11-14 11:48:09 +05:30
Linux Build Service Account
71d091e2ec Merge "asoc: wcd937x: move export functions to new header" 2018-11-13 21:59:22 -08:00
Laxminath Kasam
7adc34e496 asoc: codecs: Add new class-H driver for wcd937x
Add new class-H driver with sequences to support
both class-H and class-AB modes on wcd937x variants.

Change-Id: Ie109f3d951af1e8a0079dd39ab2fe1e9883bd6c2
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-13 13:15:59 +05:30
Laxminath Kasam
838f0b885f asoc: wcd937x: move export functions to new header
For export functions from wcd937x use separate
header as internal header is only supposed to be
used within wcd937x driver logic.

Change-Id: Ice373ff95f7166a2f968458b25223c582edc7fba
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-12 21:49:59 +05:30
Laxminath Kasam
de09dfb301 asoc: codecs: bolero: Add HPH power modes on bolero
Two power modes are supported on bolero digital.
Add support to set required power mode using
mixer control and enable runtime during powerup
sequence.

Change-Id: I4c5a7560984d60745ac98848f1eec1d1f8485323
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-11-12 20:19:57 +05:30
Karthikeyan Mani
4183e32a46 asoc: msm-audio-effects: initialize struct before use
Memset the param header struct to null values before
using or passing it to other functions.

Change-Id: I09ae686e62c8812ea267d4f809529b324fb7106d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-09 17:48:17 -08:00
Karthikeyan Mani
94aca37c6e asoc: msm: update max eq sessions based on fe dai max
Maintain eq data size to be equal to the max fe dais
present to not step over bound in accessing.

Change-Id: Ice0b7675b39a9fe2516a56d4e0b739ce34277958
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-11-09 14:56:11 -08:00
Xiaoyu Ye
52b9a67618 asoc: sdm845: set flag ignore_pmdown_time for ultrasound RX DAI
During PCM closing, the AIF power down will be delayed due to flag
ignore_pmdown_time is not set. Set this flag for ultrasound RX DAI
to avoid delay in PCM close which causes slimbus overflow.

Change-Id: I5eeaceaacc5be0c200b50d1a7d0f211fa0d41f2b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-11-06 17:33:28 -08:00
Linux Build Service Account
408ba7c759 Merge "asoc: wcd937x: disable TX CH2 after power down" 2018-11-05 21:39:05 -08:00
Linux Build Service Account
2ae2328796 Merge "asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun" 2018-11-05 21:38:56 -08:00
Linux Build Service Account
d577325ee4 Merge "asoc: qcs405: add machine driver support for SLIMBUS_9_TX" 2018-11-04 19:08:06 -08:00
Dhananjay Kumar
4867dc18a8 asoc: msm-lsm-client: Update lsm client driver to prevent buffer overrun
ADSP, userspace and LSM client driver, all these three layer are maintaining
independent buffers and rewrite them irrespective of the buffer being read
successfully by their client or not.
Before switching to real-time capture, history buffers cached can be returned
with minimal delay and may lead to overrun in a module if buffering in the
module is not sufficient to store all those data generated almost instantaneously.
LSM driver having buffer size smaller than history buffer duration is hitting
this issue and resulting in buffer overrun for even a small delay from userspace
in start of capture processing thread.
Prevent this issue by synchronising read and write in LSM driver to make
sure the driver waits for read from userspace before writing the same buffer again.

Change-Id: I2710b484a7ef03e8314c7ba05bf729893aecb890
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-11-02 19:54:00 +05:30
Linux Build Service Account
42a69eda3d Merge "asoc: qcs405: add A2DP sink support in machine driver" 2018-11-02 02:54:25 -07:00
Linux Build Service Account
17c1ef34d2 Merge "ASoC: msm: routing: add ec ref for sec and tert tdm" 2018-11-02 02:54:24 -07:00
Linux Build Service Account
aeb99f98ef Merge "Initial Android target definition for trinket." 2018-11-02 01:53:32 -07:00
Xiaojun Sang
80eb5ddfdd asoc: wcd937x: disable TX CH2 after power down
TX channel2 is not disabled after power down. It leads to
noise at the beginning of next recording on CH2.
Disable it after power down.

Change-Id: If12a84df52b9c8cd55de2bdcb91f950b054898b8
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-11-02 12:42:50 +08:00
Derek Chen
2bb55777d4 ASoC: msm: routing: add ec ref for sec and tert tdm
Add ec reference support for SEC_TDM_TX_0 and
TERT_TDM_RX_2 ports.

Change-Id: I3116b942fbd3c6c7bea14a77fdcd840dcab059aa
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-11-01 09:26:27 -07:00
Surendar Karka
05392ab0da asoc: qcs405: add machine driver support for SLIMBUS_9_TX
Add machine driver code to support SLIMBUS_9_TX port.
SLIMBUS_9_TX BE port is used for split A2DP sink usecase.

Change-Id: I9628a46c4b2b2fe0f5fb8c9861975fd4630bdcdb
2018-10-31 23:16:24 -07:00
Florian Pfister
cc99c35118 asoc: qcs405: add A2DP sink support in machine driver
Add support to configure sample rate for SLIM_9_TX.

Change-Id: Icea2b7c707840be60a23707947c9811e83e4789d
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:15:46 -07:00
Florian Pfister
522073c370 asoc: add A2DP sink support in dai-driver
Add decoder config support for split A2DP sink.

Change-Id: If71a2b2ae7f0f0500f196b0552ab185c9f37b778
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:59 -07:00
Hari Veerubhotla
dcab67c504 Initial Android target definition for trinket.
Change-Id: Ib55a9013b0fa5bcda0e5d2d17d1741e607a9c9b5
2018-10-31 02:40:21 -07:00
Trinath Thammishetty
d49fecb934 asoc: Add effects controls in loopback driver
Add audio effects related controls in transcode loopback driver to
support audio effects in hardware loopback usecase.
Update transcode loopback driver to support configuration of DSP render
window. Render window is used by DSP to take rendering decision.
i.e whether input frame should be rendered, dropped or repeated.

Change-Id: I09bb725d980b8051eae3a245584e2b66cd2af7ff
Signed-off-by: Trinath Thammishetty <tthamish@codeaurora.org>
2018-10-31 02:36:34 -07:00
Linux Build Service Account
04804945eb Merge "asoc: bolero: Fix gfmux access during SSR" 2018-10-25 19:21:08 -07:00
Linux Build Service Account
1563894fb6 Merge "asoc: add limit checks for copp index" 2018-10-25 19:21:06 -07:00
Linux Build Service Account
f79c5c1f41 Merge "asoc: codecs: Add proper NULL checks and initialize variables" 2018-10-25 03:13:39 -07:00
Linux Build Service Account
6bbd1d460e Merge "asoc: wcd937x: initialize micb lock mutex" 2018-10-23 21:52:56 -07:00
Laxminath Kasam
701e358482 asoc: bolero: Fix gfmux access during SSR
Avoid access of gfmux register during SSR/PDR.
Reset the gfmux state to MCLK_MUX0 after
SSR up event in rx macro.

Change-Id: I2ac611049efd3ce9d03bc9dcd912f64887a23679
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-24 00:53:52 +05:30
Linux Build Service Account
8f1c3e3970 Merge "ASoC: msm: add tdm clk ref count" 2018-10-23 01:32:53 -07:00
Linux Build Service Account
8d33594d66 Merge "asoc: bolero: avoid TX distortion by runtime HPF param change" 2018-10-23 01:32:51 -07:00
Linux Build Service Account
03072ce6e1 Merge "audio-lnx: ANDROID_BUILD_TOP is deprecated." 2018-10-23 01:32:43 -07:00
Tanya Dixit
ab8eba8711 asoc: codecs: Add proper NULL checks and initialize variables
Add null checks and initialize unintialized variables in
wsa macro, wcd937x and wcd937x_slave drivers.

CRs-Fixed: 2328286
Change-Id: I76b8d262e42d2b06ece3a6ecba28ed26b13d4447
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-22 15:06:48 +05:30
Linux Build Service Account
df791f4d5b Merge "asoc: bolero: Increase timeout for session down during ssr" 2018-10-20 00:23:54 -07:00
Ramprasad Katkam
e23066df2a asoc: wcd937x: initialize micb lock mutex
Micb lock which is used to synchronize micbias
control api is not initialized causing spin lock
errors. Initialize the mutex to avoid the issue.

Change-Id: I580e52e1bd225c2d99bfba4657d80670296709a0
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-17 15:58:23 +05:30
Linux Build Service Account
4384fe6966 Merge "asoc: msm: routing: remove WARN() log messages" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
82113d6cac Merge "ASoC: wcd934x: enable MAD fs_cntr by default" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
1af19d2b71 Merge "ASoC: sm6150: Use FSA for USBC gnd-mic swap" 2018-10-16 20:46:40 -07:00
Derek Chen
e71ecf6efe ASoC: msm: add tdm clk ref count
Add TDM clock reference count as LPASS
CLK API should only be controlled once
per TDM interface.

Change-Id: I025dc7cce3f1ccfe3b9d0ed652b71773f90d5c6f
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-16 10:26:27 -07:00
Linux Build Service Account
0f70258551 Merge "msm: featurize support for 32channels from QDSP6" 2018-10-16 01:49:01 -07:00
Linux Build Service Account
6acb6a2f4d Merge "ASoC: add dai links for tert tdm tx7 and sec rx7" 2018-10-15 21:21:34 -07:00
Linux Build Service Account
1929529772 Merge "asoc: qcs405: Use changed clock for SPDIF interfaces" 2018-10-15 21:21:25 -07:00
Vignesh Kulothungan
e59d3158a0 asoc: add limit checks for copp index
Check the validity of copp index before calling
adm_close. This avoids redundant error logs in
adm_close.

CRs-Fixed: 2330388
Change-Id: I0b1cef5a45298fe9cbc84d9b944f6f10cec562df
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-10-15 11:40:51 -07:00
Vatsal Bucha
6cb17a0a3f ASoC: sm6150: Use FSA for USBC gnd-mic swap
USBC gnd mic swap is taken care of by FSA4480.
Gpio does not need to be swapped for this purpose.

CRs-Fixed: 2323772
Change-Id: Ida490995761ec5361ff2302b990d3c6fe1f32f85
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-15 16:35:35 +05:30
Derek Chen
85599d7787 ASoC: add dai links for tert tdm tx7 and sec rx7
Add hostless FE and TDM BE DAI links for
TERT TDM TX7 and SEC TDM RX7 ports.

Change-Id: I57fed1162c5dc175475e7990f57d4a010a9057f2
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-12 17:11:34 -07:00
Ramprasad Katkam
f83634eead asoc: bolero: Increase timeout for session down during ssr
Sometimes observed that session is taken more time to teardown
after ssr. Increase timeout to allow more time for session
to be tear down.

Change-Id: I3f1b4d8f583ad5b9c8f5e1b90af9c576ae6bd2b2
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-12 22:31:39 +05:30
Mangesh Kunchamwar
9f295c71fe msm: featurize support for 32channels from QDSP6
Add configuration flag to make use of 32channel support from
QDSP6.

Change-Id: I1e491b1ec870234140e914add4f177e5351b9953
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-12 13:12:29 +05:30
Vidyakumar Athota
7b3952d3ce asoc: msm: routing: remove WARN() log messages
Replace WARN() log messages with pr_warn() to avoid
exposing call stack in logs.

Change-Id: I3485a28f18431ae48ad0efbe49635a8cff9f40cd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-10-11 15:01:59 -07:00
Bhalchandra Gajare
077589df00 ASoC: wcd934x: enable MAD fs_cntr by default
Currently, the fs_cntr for MAD is enabled whenever the MAD
audio path is enabled. But, a new issue is reported where
MAD fs_cntr is required even for some of the non-MAD paths.
As per hardware requirements, enable the MAD fs_cntr always
from the codec default registers.

Change-Id: I6fe8f663b82e711b4194aa51a3e21150aa98cf02
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-10-11 11:08:04 -07:00
Derek Chen
fdcc0985a2 asoc: routing: add tdm loopback from tert tx7 to sec rx7
Add hostless loopback routing from TERT TDM
TX 7 to SEC TDM RX 7.

Change-Id: Id6737b0f292ec3ff541d988338db8ad4f8cf6ee9
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-11 10:38:43 -07:00
Linux Build Service Account
c4a3ea6151 Merge "ASoC: wcd9xxx: Add gpio control for micbias-supply for SXR1120" 2018-10-11 08:04:58 -07:00
Linux Build Service Account
6fe3f835a5 Merge "asoc: sm6150: add configuration for adaptive bitrate" 2018-10-11 08:04:57 -07:00
Linux Build Service Account
a25f9ecc66 Merge "ASoC: wcd934x: Set micbias curr to higher value when micb is enabled" 2018-10-11 08:04:55 -07:00
Linux Build Service Account
274bedc587 Merge "asoc: qdsp6v2: latency mode support for transcode loopback" 2018-10-11 08:04:53 -07:00
Xiaojun Sang
d155fdcb2f asoc: bolero: avoid TX distortion by runtime HPF param change
Runtime HPF param change leads to TX distortion at the beginning.
Unmute HPF after param change.

Change-Id: I7683ca047123dd004fb2dd019365305edfc72ea5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-10-11 15:24:10 +08:00
Sharad Sangle
493a1b3ea9 asoc: sm6150: add configuration for adaptive bitrate
Add mixer ctrls to independently configure
TX and RX sample rates for BT RX and TX backends.

Change-Id: I011d3bfb85448605717e2c1a20c19a2fc86dac3f
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2018-10-10 12:31:52 +05:30
Linux Build Service Account
a8be987232 Merge "asoc: wcd937x: Reset mbhc detection type after ssr" 2018-10-08 23:04:40 -07:00
Linux Build Service Account
ce49ef9363 Merge "asoc: wcd937x: Make vdd-buck as on-demand supply" 2018-10-08 23:04:34 -07:00
Linux Build Service Account
516aa8be7c Merge "asoc: wcd937x: Fix pop on headphone playback start" 2018-10-08 23:04:31 -07:00
Linux Build Service Account
38db822619 Merge "ASoC: wcd934x: Avoid soundwire enable when codec is in power collapse" 2018-10-08 23:04:23 -07:00
Vatsal Bucha
8148b998ed ASoC: wcd9xxx: Add gpio control for micbias-supply for SXR1120
SXR1120 has additional gpio for micbias supply to be
enabled. Add control for this gpio and enable it.

Change-Id: Ica4ea9765db9bd48a1f8eb010d82d2687c8abbb9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-08 14:23:42 +05:30
Vatsal Bucha
78607e4927 ASoC: wcd934x: Set micbias curr to higher value when micb is enabled
When micbias is enabled set curr to higher value for
vreg bob bypass and when it is disabled set it
to default value for sm6150.

CRs-Fixed: 2315478
Change-Id: I451506002f382e666d47bc83944bdc8dbbedcad8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-08 14:10:23 +05:30
Linux Build Service Account
4073cd77cd Merge "asoc: csra66x0: Fix interrupt in multichannel case" 2018-10-07 21:19:48 -07:00
Linux Build Service Account
72a52601a1 Merge "asoc: codecs: Use sysfs instead of mixer_ctls for EP92 HDMI" 2018-10-07 21:19:47 -07:00
Linux Build Service Account
3bd2246b42 Merge "asoc: wcd937x: update access for wcd937x registers" 2018-10-07 21:19:46 -07:00
Linux Build Service Account
82cd1e425e Merge "asoc: add support for Slimbus 9 port" 2018-10-07 21:19:42 -07:00
Laxminath Kasam
248273c949 asoc: wcd937x: Fix pop on headphone playback start
Pop is observed on HPH playback start. Enable SWR port
config setup before HPH PA enable.

Change-Id: I2253be1c7e4d8df2bffd7bd0396ceb72a5018637
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-05 22:14:05 +05:30
Tanya Dixit
6c13f05fb4 asoc: wcd937x: Make vdd-buck as on-demand supply
Add widget and routing support for vdd-buck supply
as dynamic for all rx usecases.

Change-Id: I1e67e7e950e33a0d98900ee0b20e0dc818a7936d
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-05 18:36:18 +05:30
Romed Schur
c9f4551452 asoc: csra66x0: Fix interrupt in multichannel case
If interrupt indicates a fault in multichannel case,
reset all cluster devices in a specific order.

Change-Id: I077ff65c5f2b5e656fcdf6533fde04eba426e322
Signed-off-by: Romed Schur <rschur@codeaurora.org>
2018-10-04 16:54:36 +02:00
Linux Build Service Account
e91a85258f Merge "asoc: wcd-irq: Use non-sync disable irq api" 2018-10-04 07:47:04 -07:00
Linux Build Service Account
8b4e56f2c4 Merge "asoc: volume control support for transcode loopback FE" 2018-10-04 07:47:03 -07:00
Linux Build Service Account
f1de3e72f3 Merge "asoc: enable app type config for transcode loopback" 2018-10-04 07:47:02 -07:00
Linux Build Service Account
39ed36f371 Merge "asoc: qcs405: add machine driver support for compress loopback" 2018-10-04 07:46:58 -07:00
Linux Build Service Account
9501b03fb1 Merge "asoc: bolero: Fix slow playback on HPH" 2018-10-04 07:46:56 -07:00
Linux Build Service Account
3933347f55 Merge "asoc: codecs: add ignore suspend for bolero and wcd937x widgets" 2018-10-04 07:46:54 -07:00
Linux Build Service Account
5ff58d1a5d Merge "asoc: update log level to avoid execessive logging" 2018-10-04 07:46:53 -07:00
Ramprasad Katkam
c49a9d541d asoc: wcd937x: Reset mbhc detection type after ssr
If headset is connected during SSR, after recovery mbhc
driver expects a new detection event as the driver is reinitialized.
Reset detection type to insertion to retrigger a hw interrupt
for mbhc driver.

Change-Id: I55705eb6b6a289deb5dc16a4b9ef6252082a3d9a
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-04 20:09:17 +05:30
Ralf Herz
3cd7e58eca asoc: qcs405: Use changed clock for SPDIF interfaces
ADSP only supports 163.84MHz for SPDIF input interface clock.

Change-Id: Ib228dea0508a77d8194b348b50801624b678022f
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:38:09 -07:00
Ralf Herz
900bd738dd asoc: Add sysfs attr for SPDIF interfaces
The format change event signaling for SPDIF input interfaces
is adapted to provide format information through sysfs nodes.

Change-Id: Ifab1074a0e4b13e08813e27f8694023c2c47bfe1
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:37:49 -07:00
Dieter Luecking
ceef9afb23 asoc: msm-compress: Add support for up to 32 channels
Compressed streams now do support up to 32 channels.
Use new ADSP API for 32 channels if ADSP supports this.
If not fall back to 8 channel API.

Change-Id: Ief6fe189a6a34f15cfb96bfb9cb7d97b03633b95
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 16:34:57 +02:00
Dieter Luecking
1bf7c9038e asoc: qcs405: Upgrade for 16ch and senary AIFs
AFE MI2S interfaces now support up to 8 data lines
(16 channels). Add support for the same.
Make senary PCM and MI2S ports available.

Change-Id: I810dbe1c12ff091b3b4604d9e59f7015e3a55c98
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:53 -07:00
Dieter Luecking
92c6a5fcfb dai: Add support for 16ch MI2S
AFE MI2S interfaces now support up to 8 data lines
(16 channels). Add DAI support for the same.

Change-Id: I7c507c0161733094c1260731c7a046561fb63200
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:31 -07:00
Dieter Luecking
70668fcb8d asoc: msm: Add support for 32 ch
PCM streams do now support up to 32 channels.
Extend Playback Channel Map mixer control to 32
channels. Use new DSP 32 channel API if DSP version
supports it. If not fall back to 8 channels API.

Change-Id: I74c4f91b0c9fab2a963690ba8143ebea36ad23dd
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:00 -07:00
Ralf Herz
e1f518308f asoc: codecs: Use sysfs instead of mixer_ctls for EP92 HDMI
The format change event signaling for EP92 HDMI input is adapted
to provide format information through sysfs nodes.
Chip configuration is done through sysfs as well.

Change-Id: I8c930ca5647899b4434272009699763c32fe9d04
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 14:30:13 +02:00
Surendar Karka
b9caa7f426 asoc: qdsp6v2: latency mode support for transcode loopback
Add metadata to configure latency mode for DSP transcode
loopback to set legacy or low latency path. Userspace API
introduced to configure the same.

Change-Id: I914c68a9e9d8647530b72c42548e571b7508c423
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:18:05 +05:30
Surendar Karka
bcfd6862e4 asoc: volume control support for transcode loopback FE
Add stream volume control support for DSP transcode
loopback to enable mute configuration requirement.

Change-Id: I2003e40c9888245c1b12f0e7fbd364170d5008cf
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:17:55 +05:30
Surendar Karka
33dc09849e asoc: enable app type config for transcode loopback
Add app type configuration support for DSP transcode
loopback to enable the required PP topologies.

Change-Id: I60ee50d78ba3c0edc9df042a2a86e691d62f24b7
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:17:40 +05:30
Surendar Karka
eca0432ffb asoc: mixer control queue handling in sink stream
Mixer control queue handling is required only for
playback. Move mixer control queue handling to be
part of the playback stream in DSP transcode loopback
driver.

Change-Id: Ia8067237f80d509f969cf454f5afa08aaa6b0e52
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:17:31 +05:30
Surendar Karka
a0a952401f asoc: update passthrough mode in transcode loopback driver
Update passthrough mode to pick proper path type for
compressed input data port in transcode loopback driver
to support compressed input in DSP loopback.

Change-Id: Ib2f66b467456787e08265a0da2bd85bb881a5d61
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:15:40 +05:30
Surendar Karka
3ef3d81d0a asoc: add support for Slimbus 9 port
Add support for SLIMBUS_9 Rx and Tx ports for
audio drivers.

Change-Id: If2071983ab38cb0de76c8231ec86d5c662cce2af
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:48:31 -07:00
Surendar Karka
b412979a8c asoc: qcs405: add machine driver support for compress loopback
Add new dailnks in machine driver to support
compress loopback usecase for HDMI and BT sink.

Change-Id: Ie9658b3c06fd8d9a68b9b2317fe2689fa34a96f5
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:46:44 -07:00
Surendar Karka
c1cde37a30 asoc: add new FE dais to support compress loopback
Add new FE dais and their routings to support
compress loopback usecase for HDMI and BT sink.

Change-Id: I95d683ff22cda0e7d52333e7dabbb7694cb254f3
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:45:40 -07:00
Laxminath Kasam
cf0c63d564 asoc: wcd937x: update access for wcd937x registers
Remove page registers from access table. Update
read/write access for registers as per HW spec.

Change-Id: I8c32b79e4f0d4e378df5c83f3934c68f6c72385f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-03 15:15:04 +05:30
Mangesh Kunchamwar
eada51564e asoc: qcs405: add TDM Mics support
Add Quinary TDM support in QCS405 machine driver.

Change-Id: I36dcc27422124f55efb2c19bf0c73963c16c695c
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 13:37:20 +05:30
Ramprasad Katkam
6af0c159a1 asoc: wcd-irq: Use non-sync disable irq api
wcd interrupts can be disabled in the same interrupt
context. So use non-sync disable irq api for disabling the
interrupts to avoid a deadlock.

Change-Id: I82dda8dbcd80ba18674eea00686f6a4f54a3b340
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-02 09:12:57 +05:30
Sudheer Papothi
2498e397f4 ASoC: wcd934x: Avoid soundwire enable when codec is in power collapse
During SSR, when the playback on speaker gets started before codec
is out of digital core power collapse, results in soundwire
register read/write failures. Check for codec power state before
enabling the soundwire during speaker device path enablement for
playback usecase to avoid soundwire register read/write failures.

Change-Id: I3b45ef0c34ad4f97aad89afaf719989ffbda7485
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-10-01 11:50:15 -07:00
Ramprasad Katkam
55ec68ca3c asoc: wcd937x: clear interrupts using regmap irq framework
Add proper way to clear interrupts using regmap irq framework,
to avoid mismatch between interrupts handled and interrupts
cleared. wcd937x requires writing '1' and then '0' to clear
interrupt. Set a new regmap irq flag 'clear_ack' to indicate this.

Change-Id: I1346dc66735d3b5788e1cc0cfef772c9deacbfc1
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-01 11:38:23 +05:30
Laxminath Kasam
638b56027e asoc: codecs: add ignore suspend for bolero and wcd937x widgets
Update ignore suspend for AIF in/out and dapm input/output
widgets for bolero and wcd937x codecs to avoid suspend
of codec during active usecase running even after APSS
goes to suspend.

CRs-Fixed: 2321226
Change-Id: I277129e8e657485c56414a385150c4da55382770
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-01 11:31:22 +05:30
Mangesh Kunchamwar
52a8c3f76f asoc: msm: routing: add support TDM Mics in routing driver
Add Quinary TDM support to enable TDM Mics in QCS405.

Change-Id: I7ce8f4e53bc37c4cf88eb0d15f8233db94ab4c63
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-09-28 19:49:01 +05:30
Mangesh Kunchamwar
f4feb27287 asoc: add support for TDM mics on QCS405
Add Quinary TDM for enabling TDM mics.

Change-Id: I4a4c74fc38c3c44ae594399103622ffa008d9566
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-09-28 19:48:50 +05:30
Laxminath Kasam
7b9cdb66e6 asoc: bolero: Fix slow playback on HPH
After switching from native to non-native clip,
observe slowness in clip playback content heard
on headphones. Update mclk_mux for enable sequence
based on native flag and for disable sequence
use the same setting done during enable.

CRs-Fixed: 2322232
Change-Id: I795e0620e0239b53cdfdadaf2d57acfb570c4c3b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-28 16:34:26 +05:30
Vignesh Kulothungan
2ce6784865 asoc: update log level to avoid execessive logging
Excessive logging causes throttling during bootup.
Update log level from error to debug in get functions to
avoid excessive logging.

CRs-Fixed: 2321589
Change-Id: If2a23144adf76cdd9bb2d9048a967b63186d7f6e
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-09-27 09:56:25 -07:00
Linux Build Service Account
ea24d6da52 Merge "asoc: sm6150: Add support for audio over display port" 2018-09-26 21:37:09 -07:00
Linux Build Service Account
eaf72d3218 Merge "asoc: fix routing error during switch from non-adm to adm path" 2018-09-26 21:37:07 -07:00
Linux Build Service Account
e5b3489f2f Merge "asoc: sm6150: Add SND event FWK support for talos" 2018-09-26 21:37:01 -07:00
Linux Build Service Account
649cf8acaa Merge "asoc: wcd934x: add SSR events to trigger to new swr master controller" 2018-09-26 21:37:00 -07:00
Linux Build Service Account
a984bd8837 Merge "asoc: sm6150: Add proper checks for ch_num" 2018-09-25 19:17:44 -07:00
Siddeswar Aluganti
85e9e16065 audio-lnx: ANDROID_BUILD_TOP is deprecated.
ANDROID_BUILD_TOP variable is deprecated and thus all paths are
assumed to be relative to the top directory.

Change-Id: Ifc1bba67bf47092a37336581990d4bcce82a72f5
2018-09-25 19:03:00 -07:00
Dhananjay Kumar
3d8cc2ed33 asoc: fix routing error during switch from non-adm to adm path
Fix routing error from incorrect usage of passthrough mode
while switching LSM session from direct AFE connection to
path using ADM before AFE connection.
Issue is due to loss of passthrough mode for an FE not opened
with ADM during initial session setup or while moving the FE
from one BE port to another BE port, i.e. device switch usecases.
Since passthrough mode for an FE is supposed to be same for all
the BEs connecting to the FE and is directly decided from FE
driver having single value, decouple passthrough mode from BE
and store the required mode in an FE config independent of BE usage.
This allows storing passthrough mode for future usage irrespective
of initial setup path which can be with or without ADM.

Change-Id: I53106b49effd9b267363aedd77477eed103b317c
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-09-25 15:34:41 +05:30
Vaishnavi Kommaraju
9a3d5ebc7c asoc: sm6150: Add SND event FWK support for talos
Add snd_event support for talos required for SSR.

Change-Id: If689d9cda131324b99e0dda0b91f237b495eeadc
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
2018-09-25 12:00:13 +05:30
Laxminath Kasam
1aab2c064a asoc: wcd937x: add SSR changes for wcd937x codec driver
Add changes to recover audio after SSR on wcd937x driver.

Change-Id: I661605e9b1bd71f08f331d14ae52f89ba8423d4f
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-25 11:59:29 +05:30
Laxminath Kasam
fb0d683b37 asoc: bolero: add SSR changes support on bolero codec
Add changes for audio SSR and PDR on bolero codec
and respective macro drivers.

Change-Id: I146de15022cebb788ccb52ed6b8ab85b7cba2ba0
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-25 11:57:49 +05:30
Laxminath Kasam
d7262ae1e0 asoc: wcd934x: add SSR events to trigger to new swr master controller
For new swr master controller to recover WSA on wcd934x variant,
trigger events from wcd934x driver for ssr down and up.

Change-Id: I8f0163178708760ef3ad2a765a80682611693e9b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-25 11:35:35 +05:30
Laxminath Kasam
497a651ef8 asoc: codecs: Add parent child relation for bolero and tanggu
In bolero and tanggu combination, make bolero parent of tanggu.
Bolero and tanggu can communicate mutually using notifier and
plat_data callback APIs.

Change-Id: Iecd119df7f0ad1ba225c0427f3f42f217146b092
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-25 11:31:37 +05:30
Linux Build Service Account
53f339b53b Merge "asoc: codecs: Add proper null checks and initialize variables" 2018-09-24 19:22:03 -07:00
Rohit kumar
e5a1d4f094 asoc: sm6150: Add support for audio over display port
Fix condition to register display port dai link as
part of soundcard registration.

CRs-Fixed: 2321275
Change-Id: I196163599299fa4aea21c930c0bfe3f8e5425223
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-09-24 18:36:50 +05:30
Aditya Bavanari
4f3d5643bd asoc: codecs: Add support for BCL feature
Add mixer widgets, routing and mixer controls in order
to support BCL feature on WSA and RX macros
of bolero codec.

CRs-Fixed: 2225097
Change-Id: I463f89a517bb3878e51a6aca0c1d73bc652ab8c5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-09-23 08:38:00 +05:30
Linux Build Service Account
7d2fdc9f05 Merge "ASoC: wcd934x: check sound card state to avoid pointer dereference" 2018-09-21 08:30:42 -07:00
Linux Build Service Account
1562ec4f76 Merge "asoc: wcd937x: add support for disable HPH compander" 2018-09-21 08:30:40 -07:00
Linux Build Service Account
884e5ee2e5 Merge "ASoC: wcd937x: Reduce latency in case of impedance detection" 2018-09-19 22:52:46 -07:00
Tanya Dixit
d85e6f3384 asoc: sm6150: Add proper checks for ch_num
Check the value of ch_num and return if
less than zero to avoid out of bound access
in cdc_dma_cfg arrays.

Change-Id: Ie59f5e7ed063d65a61033a142acd2bcf2287c39b
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-09-19 15:26:04 +05:30
Laxminath Kasam
33367f849a asoc: wcd937x: add support for disable HPH compander
On wcd937x, add controls for HPH compander.
Handle sequences for headphone path based on
compander enabled or disabled.

Change-Id: I2ebdd03a4f79dc6156327d0613fab2f26710393f
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-18 20:55:25 +05:30
Meng Wang
567bcd3b7a ASoC: wcd934x: check sound card state to avoid pointer dereference
When codec probe is not correctly completed and ADSP SSR happens
before sound card is registered, calling SSR callback may result
into NULL pointer dereference and kernel panic happens.
Check sound card state when calling device_down and post_reset to
avoid NULL pointer dereference.

Change-Id: I35fd84af51edf45db6fd451dc68dbcaaed11fee7
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-09-18 15:33:31 +08:00
Linux Build Service Account
24eb5b4c0b Merge "ASoC: wcd937x: Add alias for in2p clamp register" 2018-09-17 20:47:31 -07:00
Vatsal Bucha
34b5181903 ASoC: wcd937x: Reduce latency in case of impedance detection
Bulk read api does not work properly for swr regmap,
causing failure/delay in impedance detection.
Use regmap read api to avoid the issue.

CRs-Fixed: 2301798
Change-Id: I5727cfcb7846f40f5b0f75b7976b492e2a2bfde0
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-09-17 19:20:54 +05:30
Tanya Dixit
8530fb9b5d asoc: codecs: Add proper null checks and initialize variables
Add proper null checks and initialize variables
in rx-macro, tx-macro, va-macro and wcd937x drivers.

Change-Id: I90899c84d3391305b9a24d4b043adc08b7c0332a
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-09-17 06:25:33 -07:00
Linux Build Service Account
4c5c88d4f3 Merge "asoc: bolero: add support for native playback" 2018-09-17 05:14:38 -07:00
Linux Build Service Account
5b663c71f0 Merge "asoc: codecs: add missing mbhc register for wcd9335" 2018-09-17 05:14:37 -07:00
Linux Build Service Account
f4f71439c4 Merge "dsp: add support for mic break detection" 2018-09-17 05:14:36 -07:00
Linux Build Service Account
bae047aa0f Merge "ASoC: codecs: Fix slim_tx port configuration for wcd9335" 2018-09-17 05:14:34 -07:00
Linux Build Service Account
bf14da227b Merge "asoc: return when memory allocation fails" 2018-09-17 05:14:33 -07:00
Laxminath Kasam
ac396d5734 asoc: bolero: add support for native playback
On bolero rx macro, add support to switch
mclk frequency based on native usecase active.

Change-Id: I2f915475dcfdadf1027507b7ed83a4a852ece1c7
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-12 11:39:32 +05:30
Xiaojun Sang
f27e351051 ASoC: msm: remove unnecessary error log in audio kernel
PP event queue is not used by capture path. Initialize PP
event queue for playback path only to remove unnecessary log.
Change log level from error to debug when no matching afe
cal block is found.

Change-Id: Ibc323449f2fdc74cccd350ae30ac76d937898ffa
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-09-11 18:03:19 -07:00
Vaishnavi Kommaraju
3b0d43d89e ASoC: codecs: Fix slim_tx port configuration for wcd9335
Add check for valid dai_id in slim_tx_mixer_put().

Change-Id: Ic231c81c2cba02ad25fc07783169601dedd352c0
Signed-off-by: Vaishnavi Kommaraju <vkommara@codeaurora.org>
2018-09-11 00:49:00 -07:00
Vatsal Bucha
9bdadace52 ASoC: wcd937x: Add alias for in2p clamp register
Add alias for in2p clamp register to check in2p
clamp state in insertion irq and ignore the interrupt
if the clamp is already set.

Change-Id: Ibd4ff2cef8690894a01072e74ce130f824656f5d
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-09-10 15:24:00 +05:30
Vignesh Kulothungan
169ac5878b asoc: return when memory allocation fails
Return with ENOMEM error when memory allocation fails to avoid
NULL pointer access failure.
Add NULL check before accessing dai driver pointer.

CRs-Fixed: 2296013
Change-Id: I1c513d6550587216d338957b07c4b72475709f44
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-09-06 17:08:58 -07:00
Vignesh Kulothungan
6905ecf027 dsp: add support for mic break detection
Add capability to receive notifications from voice service
when there is a change in mic break status during a voice call.
On receiving notification, send an uevent with mic status to userspace.

CRs-Fixed: 2211324
Change-Id: Ie55bd1490fd8cead7261b70169ae36eba95e4011
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-09-06 16:33:54 -07:00
Linux Build Service Account
93ce3defb5 Merge "asoc: wcd937x: set default power level as ULP for wcd937x headphones" 2018-09-05 04:55:01 -07:00
Linux Build Service Account
024c3ca40e Merge "asoc: bolero: fix pop issue at start of record" 2018-09-04 12:48:36 -07:00
Linux Build Service Account
c9d7f26700 Merge "ASoC: wcd937x: Add fix to enable button detection" 2018-09-04 09:41:55 -07:00
Linux Build Service Account
a69dbed411 Merge "asoc: wcd937x: fix wcd9375 widgets override issue" 2018-09-04 06:17:53 -07:00
Linux Build Service Account
56f65ecca2 Merge "asoc: mbhc: fix for fake ins irq" 2018-09-04 03:35:19 -07:00
Vatsal Bucha
302075bb10 ASoC: wcd937x: Add fix to enable button detection
Add notifier call chain to enable button detection.

Change-Id: Ibd432691e4b820b8b2e86ebc8e8c2015bb26d2b1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-09-04 14:59:19 +05:30
Laxminath Kasam
5f713097e1 asoc: wcd937x: set default power level as ULP for wcd937x headphones
For headphone playback, update default power level
to Ultra_Low_Power(ULP) on wcd9370.

Change-Id: Ic5e76d8f8fca1806780a4dbc679166a68c31edf3
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-09-04 11:42:45 +05:30
Linux Build Service Account
37e3245375 Merge "ASoC: bolero: Change params for vi feedback" 2018-09-03 07:25:00 -07:00