İşleme Grafiği

438 İşleme

Yazar SHA1 Mesaj Tarih
Vignesh Kulothungan
2c6dccdf91 dsp: update parameter header type in ADM
Update parameter header type in ADM programmable channel
mixer function.

CRs-Fixed: 2209691
Change-Id: Iae0f5f832d14a111e1da75f85cf766d768b64a4b
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-04-03 11:18:32 -07:00
Linux Build Service Account
d100585a8a Merge "ASoC: fix compilation warnings after enabling LLVM" 2018-04-03 01:01:10 -07:00
Linux Build Service Account
525b9e1daf Merge "ipc: wcd-dsp-glink: prevent potential NULL pointer dereference" 2018-04-03 01:01:09 -07:00
Xiaojun Sang
992b2f0fa1 ASoC: codecs: wcd: avoid redundant component unbind
Component unbind happens in component_bind_all, if component
bind fails. There is no need to call extra component_unbind_all.

Change-Id: I4ff2aececc5e10c5c4cfbe71778630c621768349
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2018-04-01 17:55:45 -07:00
Linux Build Service Account
d370eb7911 Merge "asoc: codecs: probe defer till mclk is available for wcd9360" 2018-03-30 18:20:42 -07:00
Linux Build Service Account
b9b740446e Merge "ipc: make APR driver a platform driver" 2018-03-30 18:20:41 -07:00
Linux Build Service Account
018c7c029e Merge "dsp: msm_audio_ion: add ION support for targets without SMMU" 2018-03-30 18:20:40 -07:00
Xiaoyu Ye
7c54a1801d ipc: wcd-dsp-glink: prevent potential NULL pointer dereference
The current logic that checks pointer "rpdev" for NULL is not
correct. Fix it to prevent potential NULL pointer dereference.

Change-Id: Ieaad98396ff43b66b0dd41efbfbf9f6ae923a2bb
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-03-29 19:12:01 -07:00
Vidyakumar Athota
c3b3df985d asoc: codecs: probe defer till mclk is available for wcd9360
Sometimes codec enumerates before APPS APR communication happens
with ADSP. Since wcd9360 MCLK request goes through APR, defer the
codec probe till mclk is available.

Change-Id: Ief5bb80f4c62fcf58a8cc93f11a9b4536f883d1e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-03-29 18:46:32 -07:00
Meng Wang
249b1f9bf1 ASoC: fix compilation warnings after enabling LLVM
After enabling compilation with LLVM for audio drivers,
some assignment warnings are reported. Add this change
to resolve the compilation warnings.

Change-Id: I571b2e210053bc0b80d65cd272ce1751e0ed10fb
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-03-30 09:32:16 +08:00
Banajit Goswami
3d99f7a130 ipc: make APR driver a platform driver
Change APR driver to platform driver and add any child
device only after ADSP up notification is received.
The idea is to have machine driver as a child device
under APR, and add the platform device for machine
driver only after ADSP is up. This will help invoke
audio drivers waiting with deferred probe and eventually
should help sound card registers successfully.

Change-Id: Ib0c0f7ec1d7dd93a1b54a9a66260861223d55c67
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-03-28 18:49:56 -07:00
Banajit Goswami
f6077636ee dsp: msm_audio_ion: add ION support for targets without SMMU
ION memory allocator is used for audio use cases even on targets
without SMMU. Add support for ION on those targets where ADSP
might not have an SMMU in front of it.

Change-Id: Iaacbd66edb32c8ee7c14a5ab291abe54960725b8
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-03-28 12:48:25 -07:00
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