Commit graph

564 commits

Author SHA1 Message Date
Linux Build Service Account
deb6842fb9 Merge "asoc: bolero: Add bolero clock changes" into audio-drivers.lnx.3.0 2018-06-06 15:43:41 -07:00
Linux Build Service Account
184c49be26 Merge "asoc: bolero: Add support for bolero codec" into audio-drivers.lnx.3.0 2018-06-06 15:43:40 -07:00
Linux Build Service Account
bfe7780775 Merge "ipc: apr: remove unused dsp-wait waitqueue" into audio-drivers.lnx.3.0 2018-06-06 15:43:39 -07:00
Linux Build Service Account
8af506f8d2 Merge "dsp: msm_audio_ion: store device pointer locally for all cases" into audio-drivers.lnx.3.0 2018-06-05 21:58:28 -07:00
Vikram Panduranga
3f030f19f9 asoc: sm8150: Add MultiMedia17 FE with capture support
Add MultiMedia17 FE to support compress capture usecase.
This can be used to enable recording on compress offload path.

Change-Id: I2a570ec9f4950128aba77a257e98569c714c778c
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-06-05 12:57:49 -07:00
Vikram Panduranga
c712c17ab0 dsp: Add support for custom encoder
Add support to set custom encoder in ASM which
can be enabled through compress capture path.

Change-Id: I563c59eb3a0213c26ce69d3c2f8d650cf3c7d32d
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
2018-06-05 12:57:23 -07:00
Laxminath Kasam
2df2d61851 asoc: bolero: Add bolero clock changes
Add support for bolero clock changes for
all macros.

Change-Id: Ib7b238ffd9595b6fd2236f4a3d2bcfe545b3c5fb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-04 22:01:54 +05:30
Laxminath Kasam
e562a364d1 asoc: bolero: Add support for bolero codec
Add bolero driver to provide interface to all
macros and represent as a single codec to ASoC
framework.

Change-Id: Ie4cd3b9422ff9691dd37b40fc243573d7536860c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-06-04 22:00:16 +05:30
Meng Wang
a6092aff59 ipc: apr: remove unused dsp-wait waitqueue
waitqueue dsp_wait is not used anymore.
Remove it from apr driver.

Change-Id: Iab16d37cdc8dd495e2289acec3ee5625421465e4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-06-04 15:32:11 +08:00
Vidyakumar Athota
f1cba4d4b2 dsp: add audio event notifier support
Add support for audio event notifier framework to
send/receive events across audio drivers.

CRs-Fixed: 2244131
Change-Id: I1e36703a91625cd52333596d66dc21a0e8876738
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2018-06-01 16:09:22 -07:00
Karthikeyan Mani
743a507eb0 asoc: msm: add workqueue to handle SSR/PDR UP notification
Use workqueue in machine driver to handle sending AFE
configuration to DSP during SSR/PDR UP notification,
so that the response to the notification is not delayed
because of AVS not up or sound card not up.

Change-Id: If537d214cfbbe7f85b66425cbd6a762f383c05ab
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-06-01 10:45:30 -07:00
Linux Build Service Account
45e64b92bb Merge "dsp: Add support for setting USB packet service interval" into audio-drivers.lnx.3.0 2018-06-01 10:34:41 -07:00
Linux Build Service Account
63d524f082 Merge "asoc: codecs: wcd934x: add stub functions for codec APIs" into audio-drivers.lnx.3.0 2018-06-01 10:34:40 -07:00
Garmond Leung
6b3f418d7e dsp: Add support for setting USB packet service interval
Add support for setting packet service interval for usb
AFE Port.

Change-Id: I2221c659f967deaccb9031a9a61b51fd475a0e22
2018-05-31 17:56:21 -07:00
Linux Build Service Account
79b77626b3 Merge "asoc: codecs: add wcd9360 objects for kernel build option" into audio-drivers.lnx.3.0 2018-05-30 19:41:24 -07:00
Linux Build Service Account
fbc1f4eb40 Merge "ASoC: wsa881x: Avoid query temp during suspend" into audio-drivers.lnx.3.0 2018-05-30 19:41:23 -07:00
Karthikeyan Mani
d27acb3622 asoc: codecs: add wcd9360 objects for kernel build option
wcd9360 also has to be compiled if kernel build option is
true for the case where modules are in y option.

Change-Id: Ie3cea21d65ccc7e680cac675720bab52411ac492
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-05-29 17:36:48 -07:00
Linux Build Service Account
5f1a17ddee Merge "ipc: apr: use of_platform_populate to add child node of apr" into audio-drivers.lnx.3.0 2018-05-29 16:46:46 -07:00
Linux Build Service Account
9b51424a82 Merge "asoc: codecs: wcd9360: add stub functions for codec APIs" into audio-drivers.lnx.3.0 2018-05-29 16:46:44 -07:00
Xiaoyu Ye
f0ec686d3b asoc: msm-lsm-client: add support for ADSP Generic Detection Event
ADSP detection engine module can raise Generic Detection Event to
provide variable payload data based on the information requested by
userspace. Adding new API/interface to provide support for Generic
Detection Event in LSM drivers.

Change-Id: Id5541f959ecdcf862dcfa1de1c1a1b3a796f260c
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-22 23:36:37 -07:00
Linux Build Service Account
65049fbf9d Merge "uapi: add support for ADSP Generic Detection Event" into audio-drivers.lnx.3.0 2018-05-22 20:47:44 -07:00
Meng Wang
eab9a2b762 ipc: apr: use of_platform_populate to add child node of apr
Use of_platform_populate to add child node of apr.

Change-Id: I9f0ded5e39deaf37c79ecda4d960d64c9c14eec9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-05-22 09:26:19 +08:00
Linux Build Service Account
d3070abcbe Merge "Configure CONFIG_ARCH to enable compilation" into audio-drivers.lnx.3.0 2018-05-21 13:50:24 -07:00
Karthikeyan Mani
f0e329cb51 asoc: codecs: wcd9360: add stub functions for codec APIs
If wcd9360 config is removed, need to stub out the
APIs to load any dependent audio modules and enumerate
sound card.

Change-Id: I821938c68849984ee04565167488abe5fe15af40
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-21 12:03:28 -07:00
Sudheer Papothi
c9dd3be3c3 ASoC: wsa881x: Avoid query temp during suspend
Runtime suspend in slimbus driver makes QMI call which takes
wakelock and result in first system suspend to fail. As a result
of first suspend fail, POST_PM_SUSPEND event is dispatched to
thermal core which registered to pm notifier. WSA being one
of registered thermal zone gets query for temperature, and makes
slimbus reads/writes which will result in runtime resume of
slimbus driver to happen. System suspend fails again continuously
in this endless loop as slimbus runtime suspend will make QMI call
again.
Update wsa temp sensor to handle suspend event by registering to
pm notifier and ignore the temperature request from thermal core
at resume. This will avoid slimbus reads/writes during suspend in
progress and allow XO shutdown to happen.

Change-Id: Id13a9701cffb1231ef7d563cbc30756fd71d5868
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2018-05-21 11:53:21 -07:00
Karthikeyan Mani
dbfc6a776a asoc: codecs: wcd934x: add stub functions for codec APIs
If wcd934x config is removed, need to stub out the
APIs to load any dependent audio modules and enumerate
sound card.

Change-Id: If885d4d1f0ee83448ac41ed66b51f078978cb7d1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-05-21 11:16:45 -07:00
Karthikeyan Mani
29dfffc4b2 asoc: sm8150: add dai link for dp audio multi stream transport
Add dai link with the newly added BE codec dai and
the same AFE CPU dai to support another stream for
dp audio.

Change-Id: I747107441a310e5e768dc9757093c7bba424a0d7
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:46:26 -07:00
Karthikeyan Mani
5755008e6d asoc: msm-pcm-routing: add audio routes for DP MST
Add audio routes to support Display Port audio MST.
Each end device controller stream adds a route.

Change-Id: Ifb2ea38ad38efaff17e0a9502e03b5b6a0c2de45
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:46:14 -07:00
Karthikeyan Mani
fc1e972139 asoc: codecs: add MST support for dp audio driver
Add DP codec DAIs to support multiple streams that
audio can be routed to dp controllers with
multiple streams in them.

Change-Id: Id28e6b8cc2989797dd07252cdc8913bc3b403f19
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:45:12 -07:00
Karthikeyan Mani
44d588893a asoc: dai-q6: set dp audio stream index
Add mixer control to update ctl index and stream index
to set to display port audio AFE port. Use the index to
set AFE params for the same.

Change-Id: If83b5b0802bb82a0e01fb01c7175472d2b1bb94e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:44:00 -07:00
Salendarsingh Gaud
ad978894b9 Configure CONFIG_ARCH to enable compilation
Use CONFIG_ARCH_SM6150 for Talos to enable
proper compilation.

Change-Id: I14e06122116c431bf4b99da3a061d165f68e0d4f
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-05-16 17:48:18 +05:30
Karthikeyan Mani
16b697200c dsp: afe: add interface to update dp audio stream index
For DP audio Multi Stream Transport, add an interface
to set DP controller and DP stream index for display
port audio AFE port.

Change-Id: I6efbb6937a7849e5840a93541961414eb9049863
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-10 13:43:23 -07:00
Linux Build Service Account
65538ee5e9 Merge "asoc: fix error handling logic to avoid potential deadlock" 2018-05-09 01:20:37 -07:00
Xiaoyu Ye
7f3f59a70a uapi: add support for ADSP Generic Detection Event
ADSP detection engine module can raise Generic Detection Event to
provide variable payload data based on the information requested by
userspace. Adding required structs and macros in the LSM UAPI header
file to expose them to userspace.

Change-Id: I454fb26b53f821310b5138a0ed9f1cbe516e63c3
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-08 14:39:58 -07:00
Xiaoyu Ye
7e2bf00784 asoc: fix error handling logic to avoid potential deadlock
IOCTL command "SNDRV_LSM_EVENT_STATUS_V3_32" in msm_lsm_ioctl_compat
has an incorrect error handling logic which can cause mutex deadlock.
Change this logic to avoid potential mutex deadlock.

Change-Id: I19b3509b5d40cff555536e4615132ea8c477d451
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-05-08 14:37:10 -07:00
Aniket Kumar Lata
4da5250568 asoc: msmnile: add configuration for adaptive bitrate
Add hostless front end DAI to trigger backend
configuration of BT backend dai required for
configuring BT ABR statistics. Add mixer ctrls
to independently configure TX and RX sample
rates to allow BT RX and TX backends.

Change-Id: Iba274253bca510e3899658306787e2ba15324bf2
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-05-02 11:46:01 -07:00
Linux Build Service Account
40bf8e8940 Merge "asoc: dsp: Add support for adaptive bitrate" 2018-05-01 13:18:05 -07:00
Linux Build Service Account
eb01e25c29 Merge "uapi: audio: update maximum number of channels supported" 2018-05-01 01:41:43 -07:00
Linux Build Service Account
4a91aba041 Merge "Initial Android target definition for msmsteppe" 2018-04-29 22:23:26 -07:00
Vidyakumar Athota
ddd20a414f uapi: audio: update maximum number of channels supported
Audio calibration data supports 32 channels now so update
maximum number of channels supported to 32.

Change-Id: I0b94e23fe88c4382d78db85014a81e440f720660
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-04-29 19:30:03 -07:00
Aniket Kumar Lata
c0c314765f asoc: dsp: Add support for adaptive bitrate
Add support for adaptive bitrate with A2DP offload.
Set up Tx feedback path on SLIMBUS_7_TX from BT SoC
to LPASS. Configure AFE encoder and decoder for ABR.
Add bit width support to configure AFE port with
32bit for BT A2DP.

Change-Id: I8e0afaf52561e5dc70318240ba238fc42844501f
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-04-29 15:59:32 -07:00
Linux Build Service Account
dce5ddbc21 Merge "asoc: msm: remove machine driver trivial boot up logs" 2018-04-29 08:44:14 -07:00
Linux Build Service Account
502df59d03 Merge "asoc: codecs: remove audio codec core trivial boot up logs" 2018-04-29 08:44:12 -07:00
Linux Build Service Account
a953a60095 Merge "asoc: msm: update names of MI2S and TDM pinctrl states" 2018-04-29 08:44:09 -07:00
Linux Build Service Account
d4afb8cabf Merge "ASoC: add missing mixer control and routings for MI2S" 2018-04-29 08:44:05 -07:00
Linux Build Service Account
e827db3ee0 Merge "asoc: Fix read offset for compress capture with timestamp" 2018-04-29 08:44:00 -07:00
Linux Build Service Account
67c380df81 Merge "dsp: avtimer: add __user attribute to identify userspace address" 2018-04-28 06:46:36 -07:00
Meng Wang
92edfde1e9 Revert "ASoC: disable source tracking get functionality for sdm855"
This reverts commit 85b6208522
(ASoC: disable source tracking get functionality for sm8150).
Enable source tracking get functionality as the feature is
completely enabled.

Change-Id: I099fae3155f486f1fe89dbdad97c8cb1029f14df
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2018-04-27 14:30:07 +08:00
Xiaoyu Ye
b424e05893 dsp: avtimer: add __user attribute to identify userspace address
Add __user attribute for avtimer_ioctl's input parameter ioctl_param
to explicitly identify user space pointer in copy_to_user.

Change-Id: I59fa9d39e5ec3ff9cde3a06af9da2d38e36d557d
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2018-04-26 15:31:12 -07:00
Karthikeyan Mani
2c346abb3c asoc: codecs: remove audio codec core trivial boot up logs
Change info logs to debug logs for all trivial
audio codec core logs that appear in boot up.

Change-Id: I797b876f2a9d72a72c3378acac0d8d7f11b5c4a5
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-04-26 14:51:57 -07:00