Commit Graph

426 Commits

Author SHA1 Message Date
Linux Build Service Account
7b0ae02b27 Merge "dsp: Initialize variable before use" 2018-03-28 08:08:44 -07:00
Vignesh Kulothungan
13d5a9666a dsp: Initialize variable before use
Initialize variable before use in voice driver.

CRs-Fixed: 2209691
Change-Id: I84b51262b5c3cb12ea23372eb7c7109c6ff844b4
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-03-26 14:47:17 -07:00
Vignesh Kulothungan
865440767a rtac: add error check for misc_register in init
Add error check to validate the return value of misc_register.
Clean up memory on an error to avoid memory leak.

CRs-Fixed: 2204093
Change-Id: I8b94bacdc312fa410a7825c7e25764517469c19b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-03-26 10:21:03 -07:00
Linux Build Service Account
52810d665e Merge "asoc: wcd-mbhc: enable mbhc clk based on L_DET" 2018-03-24 03:43:14 -07:00
Linux Build Service Account
b168f4b2f5 Merge "dsp: correct comparison condition for VSS_ICOMMON_RSP_GET_PARAM_V3" 2018-03-23 21:46:20 -07:00
Linux Build Service Account
2df0d1fedc Merge "asoc: msm: assign mic gnd swap function" 2018-03-23 21:46:19 -07:00
Karthikeyan Mani
8d772b0efb asoc: wcd-mbhc: enable mbhc clk based on L_DET
Enable or disable mbhc clk in sync with L_DET
so that L_DET interrupt is not raised for
false positives for usbc analog.

Change-Id: I69792e8dc82cdc80751f2c1c705f603074cb9a2f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-23 10:35:59 -07:00
Karthikeyan Mani
24be60db0c asoc: msm: assign mic gnd swap function
Assign mic gnd swap function if usbc analog is
enabled. This is irrespective of whether us_euro
gpio is defined.

Change-Id: I6cf5beadca18682a7488db2286986883dbbcdf3d
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-22 10:13:45 -07:00
Vidyakumar Athota
e6c80a9d09 asoc: codecs: update wcd routing to fix warnings
WCD9360 audio routing map is updated to avoid boot up
warning logs. Also updated on-demand supply name.

Change-Id: I66b8a4e28ec31a5337bfe2aede9b347edb94b291
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-21 18:30:03 -07:00
Vidyakumar Athota
4e6f1e37db asoc: msmnile: update audio mic widgets
Remove unused mic widgets and add new mic widgets
required for msmnile target.

Change-Id: I5e5ed56a80324b48599a00a196d99ed4ab386412
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-21 18:28:13 -07:00
Linux Build Service Account
257abe3e99 Merge "asoc: codecs: set boost state to MAX_STATE_2 for WSA8815" 2018-03-21 10:17:17 -07:00
Linux Build Service Account
cfaa87458b Merge "ipc: delete apr tal over glink" 2018-03-21 10:17:15 -07:00
Linux Build Service Account
6438447c30 Merge "dsp: Mark cal block after use" 2018-03-21 04:07:39 -07:00
Linux Build Service Account
ed523bc624 Merge "asoc: wcd934x: update register default values before post SSR" 2018-03-21 01:40:57 -07:00
Linux Build Service Account
4a46b4ca0a Merge "soc: soundwire: use pm runtime function to tear down soundwire master" 2018-03-21 01:40:56 -07:00
Linux Build Service Account
3cf90f9a08 Merge "asoc: codecs: add null pointer check for swr control data" 2018-03-21 01:40:55 -07:00
Linux Build Service Account
443e3c2544 Merge "asoc: wcd-mbhc: disable button current source after removal" 2018-03-21 01:40:54 -07:00
Linux Build Service Account
c0f79e7211 Merge "ASoC: wcd9360-dsp-cntl: Limit array size of val" 2018-03-21 01:40:51 -07:00
Linux Build Service Account
d4ba1285d1 Merge "asoc: codecs: update wcd9360 interrupt table size" 2018-03-21 01:40:50 -07:00
Meng Wang
e60843d16c dsp: correct comparison condition for VSS_ICOMMON_RSP_GET_PARAM_V3
VSS_ICOMMON_RSP_GET_PARAM_V3 should be compared with opcode. Otherwise the
if condition would always be true. Correct the comparison for
VSS_ICOMMON_RSP_GET_PARAM_V3.

Change-Id: I204c8c71e06b13332fd5b418a40b10618e19a901
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-21 13:50:17 +08:00
Xiaojun Sang
09cd2ac5e9 asoc: codecs: set boost state to MAX_STATE_2 for WSA8815
WSA8815 requires default boost state of MAX_STATE_2, when
speaker protection feature is disabled. Set boost state to
MAX_STATE_2 in all cases for WSA8815.

Change-Id: Ic700d9a206e94a4cdd1d99f8547bed9df1e759e8
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-03-21 10:36:31 +08:00
Vidyakumar Athota
b41e711b68 asoc: codecs: update wcd9360 interrupt table size
WCD9360 interrupt table size is invalid. Update it to
correct size.

Change-Id: Ie2ec848d8a75b6889957954c9444d261a70f4c4e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-19 18:17:54 -07:00
Linux Build Service Account
c1ef711380 Merge "dsp: msm_audio_ion: update logic to pass pointer by reference" 2018-03-19 03:05:09 -07:00
Linux Build Service Account
c002ec2d3b Merge "asoc: codecs: remove devm clean up functions" 2018-03-17 06:06:26 -07:00
Banajit Goswami
293afe4ad4 dsp: msm_audio_ion: update logic to pass pointer by reference
Update logic for pointer meant to hold virtual address of ION
buffers allocated, so that the pointer is available across
function boundary.

Change-Id: I7849498b9ccf0cbd7c357fa926eea6c4b65a194f
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-03-16 23:40:30 -07:00
Vikram Panduranga
770b8383d2 dsp: Mark cal block after use
After applying calibration on DSP, cal block
is marked stale to ensure same calibration is not
reused for future usecase.

Change-Id: I9f446c0602f4ab34ca71b9d2611319624fb19cd2
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-03-16 17:54:53 -07:00
Karthikeyan Mani
6bcd94a7ce asoc: wcd-mbhc: disable button current source after removal
After headset removal disable button current source
to not have any voltages output in micbias after
headset removal from extension cable.

Change-Id: I2a751c16c704176381bb26f375aebf351686e911
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-16 14:48:59 -07:00
Karthikeyan Mani
24afb6e390 asoc: codecs: add null pointer check for swr control data
Null check is needed before accessing swr control data
to ensure proper error handling in case speaker path
is issued when swr is not enabled.

Change-Id: I5037a912652189b3ae58f1119d0534777a9c264a
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-16 14:46:33 -07:00
Vidyakumar Athota
98464a25ea dsp: add export symbol for adm_param_enable_v2
Export symbol is added for adm_param_enable_v2 function
so that it can be used by other modules.

Change-Id: I373bb91c014a669b16d5e578eeaa82f9aae39332
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-15 20:39:37 -07:00
Vidyakumar Athota
a347bbd7c8 asoc: codecs: remove devm clean up functions
Devm clean up functions are removed to avoid calling twice
as these are excuted during removal of device.

Change-Id: Ifddde69d189b59456ef7627f32532198654e40d3
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-15 19:20:14 -07:00
Linux Build Service Account
dd3e130abe Merge "ipc: wcd-dsp-glink: fix channels name property" 2018-03-15 17:00:26 -07:00
Linux Build Service Account
36e4ab0361 Merge "asoc: codecs: register pahu codec with slimbus" 2018-03-15 17:00:24 -07:00
Linux Build Service Account
a28bde15f0 Merge "dsp: msm_audio_ion: use dma_buf_vmap for mapping dma_buf to kernel" 2018-03-14 19:49:03 -07:00
Linux Build Service Account
4ccd0ee676 Merge "dsp: update dma_buf cache ops" 2018-03-14 17:14:31 -07:00
Vidyakumar Athota
7dcd2d585f asoc: codecs: register pahu codec with slimbus
Add pahu-slim-ngd under wcd_slim_device_id list to
register pahu codec with slimbus driver.

Change-Id: I87a9a56087fd1520fe592b39eb142297c2f176e0
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-14 16:55:30 -07:00
Vidyakumar Athota
e75ea78848 ipc: wcd-dsp-glink: fix channels name property
Parse the right channel name property to get the number
of wdsp channels supported.

Change-Id: I77d367aeab759c3eaf4a42b56f8fcb1261fe6e44
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-14 16:54:45 -07:00
Linux Build Service Account
5d5790373e Merge "ASoC: Change PRODUCT_OUT to OUT in Kbuild" 2018-03-12 12:13:54 -07:00
Linux Build Service Account
175101e705 Merge "asoc: msmnile: add usbc analog handle parsing" 2018-03-09 22:40:01 -08:00
Banajit Goswami
80b67f4e39 dsp: msm_audio_ion: use dma_buf_vmap for mapping dma_buf to kernel
Use the newly added dma_buf_vmap API for mapping a dma_buf
to kernel address space.

Change-Id: Idacada71eb827b4af96a793a180456ae910e30e8
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-03-09 16:40:36 -08:00
Linux Build Service Account
c33373ce6a Merge "asoc: wcd-mbhc: add support for usbc analog audio on msmnile" 2018-03-09 07:37:55 -08:00
Linux Build Service Account
cc4844484e Merge "ASoC: Add Euro usb-c analog support for sdm670 internal codec" 2018-03-09 07:37:54 -08:00
Linux Build Service Account
841136de69 Merge "asoc: sdm660: Add new dais for multiple record session" 2018-03-09 03:24:45 -08:00
Linux Build Service Account
15751124fa Merge "asoc: Add new dais to support compress record" 2018-03-09 03:24:44 -08:00
Meng Wang
bb4029020d asoc: wcd934x: update register default values before post SSR
Update register default values before post SSR to avoid codec nack issue.

Change-Id: Ibf1e3275d27c4b65ab179b9ddc5a51621c89eab7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-08 20:34:24 -08:00
Xiaojun Sang
f7dd63a169 soc: soundwire: use pm runtime function to tear down soundwire master
Use pm_runtime_put_sync_suspend to tear down soundwire master.
It makes sure the process is synced with the autosuspend call
flow.

Change-Id: Ib4feccd905bcbf046e58bd5eaffde40ee391feda
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-03-08 15:20:55 -08:00
Karthikeyan Mani
a29178a08e asoc: msmnile: add usbc analog handle parsing
Add change to parse fsa handle in machine driver
to use it to call gnd/mic swap api of fsa driver.

Change-Id: Ie9c2aede45138b0d4e3bf94f11feccab47874223
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-03-08 12:06:27 -08:00
Phani Kumar Uppalapati
8fe02478b7 asoc: wcd-mbhc: add support for usbc analog audio on msmnile
Add support for usbc analog audio for msmnile platform
by adding fsa driver calls in mbhc driver to make
any switching orientation changes of gnd/mic.

Change-Id: Iab7511907325a24345734402c10a4cf5f8ebfa23
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2018-03-08 12:02:18 -08:00
Linux Build Service Account
d6a2b8187f Merge "ASoC: Update config of SND_HWDEP" 2018-03-08 04:02:54 -08:00
Linux Build Service Account
f1ed0f04bf Merge "ASoC: Fix WSA enumeration failure" 2018-03-08 04:02:53 -08:00
Linux Build Service Account
c074832bff Merge "asoc: wcd934x: optimize ANC enablement logic for Tavil codec" 2018-03-08 04:02:52 -08:00