Commit graph

24357 commits

Author SHA1 Message Date
Preetam Singh Ranawat
1dff02e08e ASoC: msm: fix ULL playback over a2dp
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>
2016-12-15 03:03:12 -08:00
Linux Build Service Account
cbd1483f05 Merge "sound: usb: Handle implicit feedback data endpoint properly" 2016-12-10 23:06:34 -08:00
Linux Build Service Account
a7c2e1aaa5 Merge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data" 2016-12-09 19:59:37 -08:00
Linux Build Service Account
fecbef26fe Merge "ASoC: msm: enable DAP set license logic on 8998" 2016-12-09 19:59:37 -08:00
Linux Build Service Account
1b2ac0c02c Merge "ASoC: soc: add a new dailink for VI recording" 2016-12-09 19:59:35 -08:00
Linux Build Service Account
61c5326381 Merge "ASoC: wcd934x-dsp-cntl: fix the reset sequence" 2016-12-09 19:59:25 -08:00
Linux Build Service Account
14665e2c1d Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds" 2016-12-09 19:59:24 -08:00
Linux Build Service Account
3160351d53 Merge "ASoc: msm: Add changes to support multiple meta key value pairs" 2016-12-09 19:59:01 -08:00
Hemant Kumar
10957dd96e sound: usb: Handle implicit feedback data endpoint properly
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>
2016-12-08 13:37:31 -08:00
Weiyin Jiang
41417b2031 ASoC: msm: enable DAP set license logic on 8998
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>
2016-12-07 16:20:08 +08:00
Bhalchandra Gajare
224cef9688 ASoC: wcd934x-dsp-cntl: fix the reset sequence
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>
2016-12-06 19:04:24 -08:00
Bhalchandra Gajare
5f30ee1cc5 ASoC: wcd-spi: fix clock disable request during shutdown
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>
2016-12-06 19:04:08 -08:00
Rohit Kumar
48cf12d6e4 ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data
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>
2016-12-05 20:52:49 -08:00
Sudheer Papothi
e36bea71e2 ASoC: msm8998: Add support for HiFi amplifier
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>
2016-12-05 10:43:43 -08:00
Xiaojun Sang
713c5979d0 ASoC: soc: add a new dailink for VI recording
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>
2016-12-05 21:50:32 +08:00
Xiaojun Sang
641fb2817f ASoC: soc: qdsp6v2: add support for slimbus VI recording
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>
2016-12-05 21:47:34 +08:00
Linux Build Service Account
79ef4a7206 Merge "ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic" 2016-12-02 09:02:27 -08:00
Linux Build Service Account
eb564015ba Merge "ASoC: msm8998: Update supported sample rates for USB backend." 2016-12-02 09:02:26 -08:00
Linux Build Service Account
89b2746b6f Merge "SoC: msm: q6dspv2: add null check for payload" 2016-12-02 09:02:24 -08:00
Linux Build Service Account
4016e041b2 Merge "ASoC: wcd934x: enable lineout path in codec" 2016-12-02 09:02:23 -08:00
Linux Build Service Account
a12941769a Merge "ASoC: soc-dapm: Invalidate DAPM path during dapm addition of routes" 2016-12-02 09:02:21 -08:00
Linux Build Service Account
4595a01ac7 Merge "misc: qcom: qdsp6v2: register ioctl calls for g711mlaw driver" 2016-12-02 09:02:16 -08:00
Linux Build Service Account
1042c91dfb Merge "ASoC: audio-ext-clk: add new audio ext clock" 2016-12-02 09:02:15 -08:00
Aditya Bavanari
3522bcb2dd ASoc: msm: Add changes to support multiple meta key value pairs
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>
2016-12-01 22:48:24 -08:00
Satish Babu Patakokila
0661cfb2a3 ASoc: msm: qdsp6v2: Add TX app type support in compress driver
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>
2016-12-01 23:08:48 +05:30
Satish Babu Patakokila
160813b82f ASoc: msm: qdsp6v2: Add timestamp support for compress capture
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>
2016-12-01 22:58:18 +05:30
Ashish Jain
1bd74e45a7 ASoC: msm8998: Update supported sample rates for USB backend.
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>
2016-11-28 10:40:40 +05:30
Linux Build Service Account
fdc9a3b7d5 Merge "ASoC: wcd9335: Add dapm ignore suspend for codec dai" 2016-11-25 17:47:03 -08:00
Linux Build Service Account
ef8f297dee Merge "ASoc: msm: qdsp6v2: Add support for compress capture" 2016-11-25 17:47:02 -08:00
Meng Wang
cd2519b7dc ASoC: audio-ext-clk: add new audio ext clock
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>
2016-11-25 09:20:12 +08:00
Arun Kumar Dasari
b23b342e6c ASoC: msm: qdsp6v2: support decode of g711 clips
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>
2016-11-24 21:07:42 +05:30
Surendar karka
49af56584b ASoC: msm: qdsp6v2: support encode of g711 format
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>
2016-11-24 21:05:34 +05:30
Linux Build Service Account
8a70f4e5d7 Merge "ASoC: msm: Update supported sample rates for USB Backend" 2016-11-24 06:13:32 -08:00
Xiaoyu Ye
9001be4187 ASoC: msm: qdsp6v2: Fix an incorrect string comparison logic
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>
2016-11-23 14:17:39 -08:00
Meng Wang
5814025340 SoC: msm: q6dspv2: add null check for payload
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>
2016-11-23 10:08:56 +08:00
Runmin Wang
1289f98375 msm: 8998: Replace cobalt with 8998
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>
2016-11-22 13:07:05 -08:00
Linux Build Service Account
599e3b8615 Merge "ASoC: msm: q6dspv2: fix potentional information leak" 2016-11-18 20:32:05 -08:00
Linux Build Service Account
0f4381183c Merge "ASoC: wcd934x: Fix adie loopback through sidetone src path" 2016-11-18 20:32:05 -08:00
Linux Build Service Account
be8cb4023a Merge "Asoc: clean up bootup errors" 2016-11-18 20:32:04 -08:00
Linux Build Service Account
9ce677c421 Merge "ASoC: wcd-mbhc: correct cross connection check" 2016-11-18 20:31:45 -08:00
Ashish Jain
e74d3aa94a ASoC: msm: Update supported sample rates for USB Backend
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>
2016-11-17 02:21:26 -08:00
Laxminath Kasam
f88f90a547 ASoC: msm: Fix sound card registration failure
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>
2016-11-17 11:23:15 +05:30
Laxminath Kasam
1b29a217c2 ASoC: msm: Add support for USB/WCN/TDM Audio
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>
2016-11-17 11:20:40 +05:30
Bhalchandra Gajare
d5f5c9a58c ASoC: wcd934x: enable lineout path in codec
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>
2016-11-16 10:50:40 -08:00
Xiaojun Sang
0d5d870989 ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds
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>
2016-11-16 22:21:20 +08:00
Satish Babu Patakokila
c4f25275d8 ASoc: msm: qdsp6v2: Add support for compress capture
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>
2016-11-15 23:53:17 +05:30
Linux Build Service Account
525dda257a Merge "ASoC: msm: q6dspv2: use correct variable type to store ION buff size" 2016-11-14 21:54:01 -08:00
Linux Build Service Account
375c04e745 Merge "ASoC: compress: Fix compress capture stream handling" 2016-11-14 21:54:00 -08:00
Linux Build Service Account
3d17c56b28 Merge "ASoC: soc: prevent risk of buffer overflow" 2016-11-14 21:53:59 -08:00
Linux Build Service Account
571ab67930 Merge "ASoC: wcd9335: Add 24bit record support" 2016-11-14 21:53:52 -08:00