Commit graph

290 commits

Author SHA1 Message Date
Banajit Goswami
65b73c8f02 audio: uapi: create audio_kernel_headers target
Create a audio_kernel_headers target so that all audio UAPI
header files can be copied to the right target specific OUT
directory and make it easy for clients to mark dependency on
the header files.

Change-Id: I09ca422cbdd067e6e56fff13deaa4e92de3de1fc
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-22 21:57:01 -08:00
Meng Wang
028ed8cc95 ASoC: msm: add support for quinary mi2s
Add support for quinary mi2s/auxpcm/tdm for msmnile target.

Change-Id: I0cbfa98129e6181662f7555735173eded12a0bf7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-22 13:29:09 -08:00
Linux Build Service Account
ac2dc56aaf Merge "ASoC: AQT1000: Fix return value and add config to include files" 2018-02-22 09:37:36 -08:00
Linux Build Service Account
f8f1924bad Merge "ASoC: msm-cdc-pinctrl: Add stub function for pinctrl get function" 2018-02-22 09:37:35 -08:00
Linux Build Service Account
505012f314 Merge "ASoC: msm: add dailinks for msmnile machine driver" 2018-02-22 09:37:34 -08:00
Sudheer Papothi
90d7b490c9 ASoC: AQT1000: Fix return value and add config to include files
Fix return value in aqt_codec_info_create_codec_entry function
to return proper value and add target config to include files

Change-Id: I063e199b1bf0e672b5afc20ed7de8447eed35dd4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-22 15:48:39 +05:30
Meng Wang
e161119e92 ASoC: msm: add dailinks for msmnile machine driver
Add ALSA dailinks for supporting various audio/voice
use cases for msmnile target.

Change-Id: If300b2c94e72414a657f30691cdfcb0d0a3b9a13
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-22 02:01:01 -08:00
Sudheer Papothi
14a1fecf2f ASoC: msm-cdc-pinctrl: Add stub function for pinctrl get function
Add stub function for msm pinctrl get function
when msm pinctrl configuration is not defined.

Change-Id: I5229dd804025e328471f0fd35cff33a69d47b2dd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-22 11:42:12 +05:30
Linux Build Service Account
0c21e3a68a Merge "ASoC: AQT1000: DLKM support for AQT1000 driver" 2018-02-21 19:32:58 -08:00
Sudheer Papothi
085a654371 ASoC: AQT1000: DLKM support for AQT1000 driver
Add build configuration to compile AQT1000 driver for
msmnile target.

Change-Id: Ia5b43544a2247c53458fd5585d62152d0e9fd3a7
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-21 04:59:47 +05:30
Banajit Goswami
d511059f31 ipc: update UAPI header install location
Update UAPI header install location from PRODUCT_OUT
to OUT.

Change-Id: I6a1d3b14ae77317f1fc2069a33865ceed190c200
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-20 13:07:20 -08:00
Linux Build Service Account
e6cc518da8 Merge "ASoC: AQT1000: Add support for MBHC hardware in AQT1000 codec" 2018-02-16 16:05:52 -08:00
Linux Build Service Account
b7da83b2b8 Merge "ASoC: AQT1000: Add API for adjusting the micbias voltage on AQT1000" 2018-02-16 16:05:51 -08:00
Linux Build Service Account
c7e057204d Merge "ASoC: enable audio modules for msmnile" 2018-02-16 09:31:35 -08:00
Sudheer Papothi
40270c4787 ASoC: AQT1000: Add support for MBHC hardware in AQT1000 codec
AQT1000 codec supports MBHC(Multi Button Headset controller)
functionality. Add driver support for MBHC hardware in AQT1000 codec.

Change-Id: Ia21a5bda304d42b2aedcf54f6df92ed29dd23a41
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 06:21:46 -08:00
Sudheer Papothi
8c9bd0f7d0 ASoC: wcd9xxx: Add new callback for headset pull up current
AQT1000 supports different headset detect pull up current source
values in MBHC. Add a callback function to handle new current
source values in MBHC driver.

Change-Id: I060af1aff3fe7c4dfd4aa4c480542efa54c2777c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 06:20:33 -08:00
Sudheer Papothi
7c53cb5010 ASoC: AQT1000: Add API for adjusting the micbias voltage on AQT1000
AQT1000 codec supports multiple micbias voltage settings. Add an
API to client modules to adjust the micbias voltage based on their
desire voltage requirements.

Change-Id: If89b836ab60b66e9ec1000fe6d07f4b1a8484b01
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-16 19:41:09 +05:30
Linux Build Service Account
db20f92cb3 Merge "ASoC: AQT1000: Add Interrupt controller support for AQT codec" 2018-02-16 03:33:39 -08:00
Linux Build Service Account
b51bf58343 Merge "ASoC: AQT1000: add codec entry for AQT1000 codec" 2018-02-16 03:33:39 -08:00
Linux Build Service Account
b0ed99ddc6 Merge "ASoC: disable source tracking get functionality for sdm855" 2018-02-15 17:52:29 -08:00
Linux Build Service Account
7b9999b538 Merge "ipc: wcd-dsp-glink: move wdsp ipc to rpmsg" 2018-02-15 17:52:26 -08:00
Linux Build Service Account
9fafcd2913 Merge "asoc: codecs: re-factor audio-ext-clk driver" 2018-02-15 17:52:26 -08:00
Linux Build Service Account
b8dbde55e5 Merge "codecs: add wcd9360 driver support in wcd9xxx core" 2018-02-15 17:52:23 -08:00
Linux Build Service Account
bbb2154a37 Merge "ASoC: change OUT_DIR to PRODUCT_OUT for wcd9360" 2018-02-15 17:52:22 -08:00
Linux Build Service Account
ec22137f6c Merge "dsp: add cache operations for dma_buf" 2018-02-15 17:52:20 -08:00
Linux Build Service Account
95e93157f4 Merge "dsp: update MSM Audio ION wrappers to align with upstream" 2018-02-15 17:52:20 -08:00
Linux Build Service Account
6fb217c329 Merge "ASoC: uapi: Export the audio header file to userspace" 2018-02-15 17:52:19 -08:00
Linux Build Service Account
632032dd78 Merge "SoC: msm: add machine driver for SDM855" 2018-02-15 17:52:16 -08:00
Linux Build Service Account
89e0000fa2 Merge "dsp: fix low volume in audio recording" 2018-02-15 17:52:15 -08:00
Meng Wang
5fddb8d532 ASoC: enable audio modules for msmnile
Add audio config files and Change Android.mk, Makefile
and Kbuild to enable audio modules for msmnile target.

Change-Id: If6acabe2cd2074d688b810de3f48e6c60dfe9d22
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-15 16:39:58 -08:00
Meng Wang
85b6208522 ASoC: disable source tracking get functionality for sdm855
Disable source tracking get functionality for sdm855 till
feature is completely enabled

Change-Id: Id644fa46d95bd1091502b1c5ae4cce3bb64d633e
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 17:15:03 -08:00
Meng Wang
ac5bb48a83 SoC: msm: add machine driver for SDM855
Add machine driver for SDM855 with stub codec.

Change-Id: I3203250f838147b626ad3edfb3edbdd9894022f7
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-08 09:04:42 +08:00
Meng Wang
08d48d49eb ASoC: AQT1000: add codec entry for AQT1000 codec
Add codec entry for AQT1000 codec to support ADIE calibration.
Add new hwdep node AQT1000_CODEC_HWDEP_NODE to store ANC/MBHC
calibration data.

Change-Id: I8b5ff9a2cfe2a0a8ac593b63b20b28697dc975bf
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 16:05:30 +08:00
Sudheer Papothi
22e868b3b0 ASoC: AQT1000: Add Interrupt controller support for AQT codec
AQT codec has MBHC(Multi Button Headset Controller) and other
headset interrupts. Add interrupt controller driver to handle
AQT codec interrupts.

Change-Id: Ic8eb6b0ca24aa82c9adeb9f0fa0bf8768b424787
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-07 11:33:37 +05:30
Meng Wang
7ba0a82262 ASoC: change OUT_DIR to PRODUCT_OUT for wcd9360
OUT_DIR folder doesn't point to the right out folder. It would
not delete the right Module.symvers for wcd9360.
Change OUT_DIR to PRODUCT_OUT to delete the right wcd9360 module
symbol.

Change-Id: I6ad376e1cad8416d8eefeefe41e0933813d64997
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-07 12:29:41 +08:00
Sudheer Papothi
3e42fefa2f ASoC: AQT1000: Add driver for AQT1000 codec
AQT1000 codec is a hifi headset that supports audio
playback and recording on headset. It also supports
playback of fractional sampling rates. Audio playback
and recording is transferred through I2S interface.
Add driver for AQT1000 codec

Change-Id: Iba163e9203d67216cdbf87727b06801356a001e3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-02-07 04:09:53 +05:30
Meng Wang
9cb7bc20c7 ASoC: change OUT to PRODUCT_OUT
Change OUT to PRODUCT_OUT in Android.mk to fit new Android.

Change-Id: Idf64784eb2ab2b350872efbe04305bee2a47dd86
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-06 10:12:57 +08:00
Banajit Goswami
0f1f3f6d04 dsp: add cache operations for dma_buf
Add support for querying ION flags for dma_buf and for cache ops
on dma_buf with CACHED Flag on.

Change-Id: I219e564c477af8ba3b8676db1c9555a2b5b9ebab
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-04 03:43:17 -08:00
Banajit Goswami
08bb73698a dsp: update MSM Audio ION wrappers to align with upstream
Between Linux-4.9 and Linux-4.14, upstream has updated the
ION APIs significantly to make ION ready to bring out of
staging folder. This has changed the way ION and dma_buf
APIs used to work together for allocating, mapping and
deallocating ION buffers.
Update MSM Audio ION wrapper functions used by audio drivers
to reflect these ION API changes as per upstream ION.

Change-Id: I63097e147a397aa3a538f69ac88b6fb10871c3dc
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2018-02-04 03:41:06 -08:00
Vidyakumar Athota
130934724f codecs: add wcd9360 driver support in wcd9xxx core
Add changes to support wcd9360 audio codec driver in
wcd9xxx common files.

Change-Id: I5b9f9d592b6843d7887eb3954d079776ddf15764
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 17:25:18 -08:00
Vidyakumar Athota
9cbeb97832 codecs: add wcd9360 audio codec driver
Initial commit to add wcd9360 audio codec driver.

Change-Id: Ib4e5e41ce7e540e4426c9ca26db8e834edc3d4da
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 17:24:19 -08:00
Meng Wang
ac147b705e ASoC: update snd_pcm_ops copy interface in platform drivers
snd_pcm_ops copy interface used by msm platform drivers is replaced
with copy_user in msm-4.14. Unit of two input variables is changed
from frame count to byte.
Update all the related msm platform drivers to adapt to this change.

Change-Id: Icecd0454c7a80e5ee90407c64aaf1ca76d2d9815
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-02-03 08:36:32 +08:00
Vidyakumar Athota
7206c72494 ipc: wcd-dsp-glink: move wdsp ipc to rpmsg
Add support for wdsp communication over rpmsg to enable
inter process communication between application processor
and codec DSP.

Change-Id: I6679e9d8b104bbd41e19bbf788a41129dc97da88
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 16:07:24 -08:00
Vidyakumar Athota
cd2fa5348e codecs: add on-demand supply support
Add new APIs to enable/disable on-demand codec supplies
to msm-cdc-supply driver.

Change-Id: Iaf33ac40165832595c875e26179dc036b62b36f8
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-02 11:26:40 -08:00
Vidyakumar Athota
ecc4edaf83 asoc: codecs: re-factor audio-ext-clk driver
Re-factor audio clock driver to register one clock at a time
and remove duplicate lpass clocks.

Change-Id: I63ddf4b65ec7e9cda0dcad4e0167cd8636e89e1a
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-02-01 21:39:29 -08:00
Aditya Bavanari
5106b5627c dsp: fix low volume in audio recording
ADM calibration is not sent in audio recording
use case which leads to low volume issue.
Since the LSM port ID is same as audio recording
port ID in case of internal codec, driver tries to
send LSM calibration for non LSM use case in which case
no calibration will be sent.
Instead of using port ID, use the pass_thr mode to
differentiate between LSM and non LSM use cases.

CRs-Fixed: 2167317
Change-Id: I1b6ea51d83330f6439791cf1bb6170306f6895b0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-01-29 21:36:26 -08:00
Meng Wang
9bc1532306 ASoC: uapi: Export the audio header file to userspace
Audio driver requires that exported header files should
be placed in uapi folder. Change adds the audio header
files to uapi folder.

Change-Id: Ifb47492507a482b1b2f5caa00af4268e08e64803
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-01-29 17:50:11 +08:00
Shiv Maliyappanahalli
723548296f ipc: Add support for apr over rpmsg
Add support for apr communication over rpmsg to enable
inter processor comuunication b/w APPS and ADSP for
audio usecases.

Change-Id: I834ded7f1dd709e1d9e835b852c2edc25e8607e0
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2018-01-24 21:38:06 -08:00
Meng Wang
3c88f61439 ASoC: update softlink for internal.h, core.h and pinctrl-utils.h
update softlink for internal.h, core.h and pinctrl-utils.h for sdm855

Change-Id: I3e92e8da1ab1bbfce7fbb92c6997af22777925dc
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-01-23 14:39:15 +08:00
Linux Build Service Account
b05cd67f29 Merge "dsp: fix NULL pointer exception in core driver" 2018-01-15 13:27:10 -08:00