ULL playback is not working over a2dp.
Add DAPM widget in routing driver for ULL playback
over SLIM_7_RX backend.
CRs-Fixed: 1101825
Change-Id: I9a9bcbf52ccb1f48b4e37e674a29c8c312b5ba1a
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
For the devices supporting implicit feedback over data endpoint
usb audio driver instantiates snd_usb_endpoint as sync_endpoint
even though there is no real usb sync endpoint exists. QMI driver
looks for usb endpoint if sync_endpoint is instantiated and bails
out if endpoint related context does not exist. This causes such
devices to not work. Hence do not bail out if sync ep context
does not exist and continue preparing the QMI response.
Change-Id: I7d96555573cfd6cca1ca56c877d78fde943f8100
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Since we move to GEF implementation for Dolby post processing,
disabling DAP/DAX2 driver logic on msm8998 target except for
license validation.
CRs-Fixed: 1094027
Change-Id: I33c5625026611856f6cdd8c6e0b5d7ef229ba8c7
Signed-off-by: Weiyin Jiang <wjiang@codeaurora.org>
Currently, whenever the codec DSP is reset, the CPAR hardware block
is not reset. This causes failure to boot DSP in good state. Update
CPAR reset sequence to ensure CPAR is put to reset when not in use.
CRs-fixed: 1091032
Change-Id: I77fea396fda6ee0eaaf0c68b11cf90f268ac1481
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
It is possible that there could be pending delayed request to disable
the clock while the manager driver has already raised shutdown event.
In such cases, the delayed clock disable request will be made after
shutdown, resulting in unclocked access on the SPI bus. Fix this by
intercepting the shutdown event to flush the clock votes and disable
the clock.
CRs-Fixed: 1091032
Change-Id: I53a3a9aa540c10932eed7fa29ce7c6050504a9a0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
Add mutex_lock in afe_map_cal_data around afe_cmd_memory_map to
avoid update of this_afe.status by afe_set_lpass_clk_cfg afe callback.
This fixes the failure of afe_cmd_memory_map waitqueue to enter into
sleep when wait_event_timeout is called as this_afe.status is already
zero leading to invalid map_handle.
CRs-Fixed: 1094151
Change-Id: I4833253803c162c98578ba7ce599ea1edafc1724
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
HiFi amplifier uses lineout path and routed to headphones.
This is used for better quality of audio on headphones. Add
support to enable HiFi amplifier on msm8998.
Change-Id: I3f2cadbb74b3a68d91938f20afff2ab0ab42b4bd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
SLIMBUS 4 TX is used for speaker protection. To enable VI
recording without breaking speaker protection, a new dailink
is added as non-hostless.
CRs-Fixed: 1087025
Change-Id: I440b7826fb5fd4fbd55831c1e89b9b010f3b948c
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add a new dailink for slimbus VI sense recording.
SLIMBUS_TX_VI and SLIMBUS_4_TX can coexist.
VI recording and speaker protection cannot work
simultaneoulsy due to shared physical afe port.
CRs-Fixed: 1087025
Change-Id: If074b7042e09d1e69147546461e6fa42d427350e
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add changes to get the cal_block on the basis of meta key
and set the license in core with the obtained cal_block
CRs-Fixed: 1093003
Change-Id: I7c931ca0ad4eed4da9252a05ee426d2ef4bd10b1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add TX app type support in compress driver to support different
post processing modules per COPP in the TX path
CRs-fixed: 1072067
Change-Id: I8e84577b5aff5e932632c4612a88808615d764ae
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Add timestamp support for compress driver.
Modify ASM driver to read the buffer from predefined offset.
CRs-fixed: 1072067
Change-Id: I1c46befc223285495b3c0650e6c3eaae81f58771
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
Add entries for 88.2kHZ, 176.4kHz and 352.8kHz to supported
sample list for USB RX and TX backend.
Change-Id: I78261addaa84d1239b92e1528e77bbfcaa09105f
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
In common clock framework, API for registering clk
provider for a node is changed to of_clk_add_provider.
Add new audio ext clock file to use new API to register
audio clk provider.
Crs-Fixed: 1090500
Change-Id: I1d7ecc6a3d4c48d0de9645043d5e5bfdfa1d1f5f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Add support in audio stream manager to configure decode
of g711 related clips.
CRs-Fixed: 1094107
Change-Id: Ie90fd68e24e7e793aaac64290e3c1e41682d6d5a
Signed-off-by: Yamit Mehta <ymehta@codeaurora.org>
Signed-off-by: Surendar karka <sukark@codeaurora.org>
Add support in audio stream manager to configure encode
of g711 format
CRs-Fixed: 1094107
Change-Id: I496a975e427f68d7bb5cc2789bfc9bb949658233
Signed-off-by: Surendar karka <sukark@codeaurora.org>
A conditional branch is skipped due to incorrect string comparison.
It is fixed by using "strcmp" to perform string comparison.
CRs-fixed: 1085889
Change-Id: I12be44ac272fc5079230feb6ae24c68ccde99cf2
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
In debug message, payload could be NULL and cause panic. Remove
payload from debug message.
Add null check for payload to avoid panic.
CRs-Fixed: 1087543
Change-Id: I3e2fffdddfb7822a4eb3e142738363f1e80522d8
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Update the code name from msmcobalt to msm8998. As a result, update
the filename containing "cobalt" and files content containing "cobalt".
CRs-Fixed: 1070840
Change-Id: I2c7b95e3e2a2fec7730724da9eeb86a39a77faf1
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Signed-off-by: Kyle Yan <kyan@codeaurora.org>
Signed-off-by: Jeevan Shriram <jshriram@codeaurora.org>
Add entries for 88.2kHZ, 176.4kHz and 352.8kHz to supported
sample list for USB backend.
Change-Id: I96406588062da4997851eff8524c53699f1063eb
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
In external codec machine driver, register
SSR notifier after sound card register. Also,
add separate snd_soc_card variables for tavil
and tasha since same machine driver is used
for both codecs.
CRs-Fixed: 1083537
Change-Id: I73fc02b812f2e6694e2a6aa8bdad2381a5f19406
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Add required machine driver support for
USB Audio, BT, FM, TDM interfaces both
for internal and external codecs.
CRs-Fixed: 1083537
Change-Id: I3d2765535793d6ef9153cfcab4b44a9adad67e15
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Lineout path in codec supports differential output that can be
routed to headphones or speakers. Add required register sequence
changes to enable both the lineout paths on the codec. Either of
the lineouts can be used in mono playback or both can be used for
stereo playback.
Change-Id: I32aa42ceef069241e00e734dc4d84f5d5277bda4
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
In case of memory allocation failure, _vol_cmd_cnt is not reset.
In _volume_cmds_free, null pointer dereference would happen for
_vol_cmds[i].
To prevent it, reset _vol_cmd_cnt when memory allocation fails.
CRs-Fixed: 1089598
Change-Id: Icb998549cdb999c6db2fd52aef505f200e630da5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add support for compress capture in compress driver.
Add audio record support through compress driver.
CRs-fixed: 1072067
Change-Id: I7c6ab8bc0e88010eb221788cf8ce4c182e3128d9
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>