Commit graph

24322 commits

Author SHA1 Message Date
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
Linux Build Service Account
8a70f4e5d7 Merge "ASoC: msm: Update supported sample rates for USB Backend" 2016-11-24 06:13:32 -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
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
f87432168b Merge "sound: usb: Add support to handle QMI client disconnect" 2016-11-08 11:18:59 -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
Linux Build Service Account
cd30687897 Merge "ASoC: add 352800Hz into the pcm known rates" 2016-11-07 22:28:58 -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
Phani Kumar Uppalapati
6db3939dbf ASoC: wcd934x: Fix fake button press for headset insertion
Fix fake button press when headset is inserted by properly
disabling micbias after the detection is completed.

CRs-Fixed: 1086418
Change-Id: I241a49dd36746c083b410a58c8c899ee0e9390ad
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-11-07 19:16:42 -08:00
Vidyakumar Athota
b1a6c6f3a7 ASoC: wcd9335: Fix AANC click and pop in voice call
Currently ANC output is connected to speaker path before PA
is enabled. This is causing click sound during voice call
when adaptive ANC is enabled. Fix this issue by connecting ANC
output to speaker path after PA is enabled.

Change-Id: I5f381b1e0c0222b8ae81d923da0b86d742b3cccd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-11-07 13:36:56 -08:00
Bhalchandra Gajare
a26e74323e ASoC: wcd934x: fix MAD enable sequence for ADC2
Microphone Activity Detection (MAD) hardware block in codec needs to
be in micbias mode and bandgap must be enabled whenever the input
to the MAD block is from ADC2. Change updates the codec register
sequence for MAD Input mixer control accordingly.

CRs-Fixed: 1085214
Change-Id: Ic57b1db8688ff634ed7d62279baa7c042d126550
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-11-07 11:22:14 -08:00
Vidyakumar Athota
9a52c21164 ASoC: wcd934x: Fix AANC click and pop in voice call
Currently ANC output is connected to speaker path before PA
is enabled. This is causing click sound during voice call
when adaptive ANC is enabled. Fix this issue by connecting ANC
output to speaker path after PA is enabled.

Change-Id: I2103773a17e7d9ee5acb3f21dc955e2da493b3b4
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-11-07 11:11:37 -08:00
Laxminath Kasam
6b3ed52a63 ASoC: msm: refactor machine driver for msmfalcon
Combine the common code of both external and internal
codec machine drivers. Provide config support for
independent compilation of internal and external
codecs.

CRs-Fixed: 1083537
Change-Id: Ia63f8baf02b0ceee0960e208b976d7b573c39d52
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 16:15:00 +05:30
Laxminath Kasam
adb1d031d0 ASoC: msm8x16-wcd: update mbhc config type
Update internal codec driver to use new
mbhc config structure.

CRs-Fixed: 1083537
Change-Id: I0ff5b7ba83f2fec89562337ec63e062b50abc589
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 11:55:54 +05:30
Laxminath Kasam
8452fff703 ASoC: msm: Add support for INTx ports and clocks
Add support for new DSP INTx MCLK, INTx IBIT CLK
and INTx MI2S ports. New internal codec and msm
based soundwire codec use these clocks and port_ids.

CRs-Fixed: 1083537
Change-Id: I72e0a15c8a283c68a3ed10cfd02a4e3d9526c312
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-11-07 11:54:50 +05:30
Linux Build Service Account
68afff6f34 Merge "ASoC: msmcobalt: Update ignore suspend for MAD_CPE out widgets" 2016-11-04 22:22:01 -07:00
Linux Build Service Account
8e9e0fd780 Merge "Merge remote-tracking branch 'msm4.4/tmp-da9a92f' into msm-4.4" 2016-11-04 22:22:00 -07:00
Siena Richard
94c9d333eb ASoC: Change info logs to debug
Change ASoC info logs to debug to reduce excessive logging during
bootup.

Change-Id: I142b35901e8ba7724d3ba74ae8c58be3bc8dc44a
CRs-fixed: 1073250
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-11-04 13:40:34 -07:00
Phani Kumar Uppalapati
492e06c8a0 ASoC: wcd934x: Change SIDO reference to internal
Add support to change SIDO reference to internal mode
during rock bottom sleep mode.

CRs-Fixed: 1080507
Change-Id: I8d70ad663f3476e1c81cc2126b1229a3c7c80265
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-11-04 12:42:19 -07:00
Walter Yang
e69b06911e ASoC: add 352800Hz into the pcm known rates
Add 352800Hz into pcm known rates to match with the sound
sample rate macro definitions.

CRs-Fixed: 1082850
Change-Id: Iedd78288f71ddcaa9fcb2f63bd3b73be2c0006dd
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-11-03 23:28:30 -07:00
Banajit Goswami
b003c8d540 ASoC: msm: q6dspv2: use correct variable type to store ION buff size
The size of the physical memory allocated for ION buffers
are of type size_t. Change updates the type of variables
sent to ION drivers to size_t to avoid any mismatch.

Change-Id: I3d33ed922b979652c64027e6f1c6f0a8ed4850a3
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
2016-11-03 19:18:07 -07:00
Hemant Kumar
f054b81fba sound: usb: Add support to handle QMI client disconnect
In case of remote QMI client restart, QMI client disconnect
is notified to qmi server. Handle this notification by going
over all the active usb audio devices and issue set alt 0
on corresponding active interfaces of device. After this
perform usb audio device clean up to unmap iova.

Change-Id: Ie89b06d821c1f968ecc30333654bc3a1466f74e3
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-03 16:54:19 -07:00