Commit graph

12829 commits

Author SHA1 Message Date
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
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
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
Yeleswarapu Nagaradhesh
bcbd7e0f16 ASoC: wcd-mbhc: correct cross connection check
Schmitt trigger result is wrong if PA is enabled.
So, don't check for cross connection when PA is enabled.

CRs-Fixed: 1061507
Change-Id: Iad71abbed72aa40b5c839260f5c297a885f7d128
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-11-14 01:44:45 -08:00
Satish Babu Patakokila
bef46b317c ASoC: compress: Fix compress capture stream handling
Compress framework considers the stream as PLAYBACK
always irrespective of the direction.
Derive substream based on the tx/rx direction from
compressed stream.

CRs-fixed: 1072067
Change-Id: I62c51c23a47f26b221dccef6f83c03aef9f095a7
Signed-off-by: Satish Babu Patakokila <sbpata@codeaurora.org>
2016-11-11 21:28:08 -08:00
Linux Build Service Account
1242c04867 Merge "ASoC: msm: qdsp6v2: add support for tx app type config" 2016-11-10 15:14:38 -08:00
Linux Build Service Account
369bd9844d Merge "ASoC: Change info logs to debug" 2016-11-10 15:14:27 -08:00
Linux Build Service Account
1681e23d60 Merge "ASoC: msmcobalt: clean up bootup errors" 2016-11-10 15:14:26 -08:00
Linux Build Service Account
73ab51e35d Merge "ASoC: msm: refactor machine driver for msmfalcon" 2016-11-10 15:14:24 -08:00
Derek Chen
c8c289d328 ASoC: msm: qdsp6v2: add support for tx app type config
Add support for TX path COPP calibration according to
app type configuration

CRs-fixed: 1015476
Change-Id: I0bcbfadb0c1a22529863a5c4b8cc5c53a1028915
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2016-11-10 08:05:08 -08:00
Dhanalakshmi Siddani
e27a72cc03 ASoC: wcd9335: Add 24bit record support
Update tasha DAI for 24bit record support.

CRs-Fixed: 1084375
Change-Id: I6d04b6343713a91d97ff18631141772f92f4ed00
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2016-11-09 18:10:22 -08:00
Linux Build Service Account
0352bfd3f3 Merge "ASoC: wcd934x: Change SIDO reference to internal" 2016-11-09 16:25:03 -08:00
Karthikeyan Mani
6c8569cecc ASoC: wcd934x: Fix adie loopback through sidetone src path
Interpolator clock is not being enabled for codec adie loopback through
sidetone src path. Fix the issue by enabling interpolator clock in
DAPM PRE_PMU and disable the clock in the POST_PMD callback function.

Change-Id: I822d6280b301b2db6194c845098c935e612ca61c
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2016-11-09 13:42:59 -08:00
Meng Wang
8164972a6c ASoC: msm: q6dspv2: fix potentional information leak
The heap buffer pointed to out_buffer and in_buffer are allocated
but uninitlalized. It may cause information leak.
Change to kzalloc instead of kmalloc when allocating kernel buffers
to avoid information leak.

CRs-Fixed: 1087020
Change-Id: I6f9b7a630158355a7f920dcf9cfffe537b1c6a85
Signed-off-by: Meng Wang <mwang@codeaurora.org>
2016-11-09 11:15:27 +08:00
Linux Build Service Account
27df8e4425 Merge "ASoC: wcd934x: Fix fake button press for headset insertion" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
9d893fc136 Merge "ASoC: wcd9335: Fix AANC click and pop in voice call" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
087bcf1fcf Merge "ASoC: wcd934x: Fix AANC click and pop in voice call" 2016-11-08 11:19:08 -08:00
Linux Build Service Account
97f85929b6 Merge "ASoC: wcd934x: fix MAD enable sequence for ADC2" 2016-11-08 11:18:58 -08:00
Linux Build Service Account
f2a510bc7a Merge "ASoC: wcd934x: Update surge recovery for version 1.1" 2016-11-08 11:18:42 -08:00
Linux Build Service Account
ec7b10c39a Merge "ASoC: msm: q6dspv2: wake up tasks when ADSP goes down" 2016-11-07 22:29:09 -08:00
Xiaojun Sang
1aa5df9246 ASoC: soc: prevent risk of buffer overflow
In case of large value for bufcnt_t or bufcnt,
cmd_size may overflow. Buffer size allocated by cmd_size might
be not as expected.
Possible buffer overflow could happen.

CRs-Fixed: 1084210
Change-Id: I9556f18dd6a9fdf3f76c133ae75c04ecce171f08
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2016-11-08 13:58:49 +08:00