Commit Graph

695 Commits

Author SHA1 Message Date
Tanya Dixit
ab8eba8711 asoc: codecs: Add proper NULL checks and initialize variables
Add null checks and initialize unintialized variables in
wsa macro, wcd937x and wcd937x_slave drivers.

CRs-Fixed: 2328286
Change-Id: I76b8d262e42d2b06ece3a6ecba28ed26b13d4447
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-22 15:06:48 +05:30
Linux Build Service Account
df791f4d5b Merge "asoc: bolero: Increase timeout for session down during ssr" 2018-10-20 00:23:54 -07:00
Linux Build Service Account
4384fe6966 Merge "asoc: msm: routing: remove WARN() log messages" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
82113d6cac Merge "ASoC: wcd934x: enable MAD fs_cntr by default" 2018-10-16 20:46:44 -07:00
Linux Build Service Account
1af19d2b71 Merge "ASoC: sm6150: Use FSA for USBC gnd-mic swap" 2018-10-16 20:46:40 -07:00
Linux Build Service Account
0f70258551 Merge "msm: featurize support for 32channels from QDSP6" 2018-10-16 01:49:01 -07:00
Linux Build Service Account
6acb6a2f4d Merge "ASoC: add dai links for tert tdm tx7 and sec rx7" 2018-10-15 21:21:34 -07:00
Linux Build Service Account
1929529772 Merge "asoc: qcs405: Use changed clock for SPDIF interfaces" 2018-10-15 21:21:25 -07:00
Vatsal Bucha
6cb17a0a3f ASoC: sm6150: Use FSA for USBC gnd-mic swap
USBC gnd mic swap is taken care of by FSA4480.
Gpio does not need to be swapped for this purpose.

CRs-Fixed: 2323772
Change-Id: Ida490995761ec5361ff2302b990d3c6fe1f32f85
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-15 16:35:35 +05:30
Derek Chen
85599d7787 ASoC: add dai links for tert tdm tx7 and sec rx7
Add hostless FE and TDM BE DAI links for
TERT TDM TX7 and SEC TDM RX7 ports.

Change-Id: I57fed1162c5dc175475e7990f57d4a010a9057f2
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-12 17:11:34 -07:00
Ramprasad Katkam
f83634eead asoc: bolero: Increase timeout for session down during ssr
Sometimes observed that session is taken more time to teardown
after ssr. Increase timeout to allow more time for session
to be tear down.

Change-Id: I3f1b4d8f583ad5b9c8f5e1b90af9c576ae6bd2b2
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-12 22:31:39 +05:30
Mangesh Kunchamwar
9f295c71fe msm: featurize support for 32channels from QDSP6
Add configuration flag to make use of 32channel support from
QDSP6.

Change-Id: I1e491b1ec870234140e914add4f177e5351b9953
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-12 13:12:29 +05:30
Vidyakumar Athota
7b3952d3ce asoc: msm: routing: remove WARN() log messages
Replace WARN() log messages with pr_warn() to avoid
exposing call stack in logs.

Change-Id: I3485a28f18431ae48ad0efbe49635a8cff9f40cd
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2018-10-11 15:01:59 -07:00
Bhalchandra Gajare
077589df00 ASoC: wcd934x: enable MAD fs_cntr by default
Currently, the fs_cntr for MAD is enabled whenever the MAD
audio path is enabled. But, a new issue is reported where
MAD fs_cntr is required even for some of the non-MAD paths.
As per hardware requirements, enable the MAD fs_cntr always
from the codec default registers.

Change-Id: I6fe8f663b82e711b4194aa51a3e21150aa98cf02
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-10-11 11:08:04 -07:00
Derek Chen
fdcc0985a2 asoc: routing: add tdm loopback from tert tx7 to sec rx7
Add hostless loopback routing from TERT TDM
TX 7 to SEC TDM RX 7.

Change-Id: Id6737b0f292ec3ff541d988338db8ad4f8cf6ee9
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-10-11 10:38:43 -07:00
Linux Build Service Account
c4a3ea6151 Merge "ASoC: wcd9xxx: Add gpio control for micbias-supply for SXR1120" 2018-10-11 08:04:58 -07:00
Linux Build Service Account
6fe3f835a5 Merge "asoc: sm6150: add configuration for adaptive bitrate" 2018-10-11 08:04:57 -07:00
Linux Build Service Account
a25f9ecc66 Merge "ASoC: wcd934x: Set micbias curr to higher value when micb is enabled" 2018-10-11 08:04:55 -07:00
Linux Build Service Account
274bedc587 Merge "asoc: qdsp6v2: latency mode support for transcode loopback" 2018-10-11 08:04:53 -07:00
Sharad Sangle
493a1b3ea9 asoc: sm6150: add configuration for adaptive bitrate
Add mixer ctrls to independently configure
TX and RX sample rates for BT RX and TX backends.

Change-Id: I011d3bfb85448605717e2c1a20c19a2fc86dac3f
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2018-10-10 12:31:52 +05:30
Linux Build Service Account
a8be987232 Merge "asoc: wcd937x: Reset mbhc detection type after ssr" 2018-10-08 23:04:40 -07:00
Linux Build Service Account
ce49ef9363 Merge "asoc: wcd937x: Make vdd-buck as on-demand supply" 2018-10-08 23:04:34 -07:00
Linux Build Service Account
516aa8be7c Merge "asoc: wcd937x: Fix pop on headphone playback start" 2018-10-08 23:04:31 -07:00
Linux Build Service Account
38db822619 Merge "ASoC: wcd934x: Avoid soundwire enable when codec is in power collapse" 2018-10-08 23:04:23 -07:00
Vatsal Bucha
8148b998ed ASoC: wcd9xxx: Add gpio control for micbias-supply for SXR1120
SXR1120 has additional gpio for micbias supply to be
enabled. Add control for this gpio and enable it.

Change-Id: Ica4ea9765db9bd48a1f8eb010d82d2687c8abbb9
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-08 14:23:42 +05:30
Vatsal Bucha
78607e4927 ASoC: wcd934x: Set micbias curr to higher value when micb is enabled
When micbias is enabled set curr to higher value for
vreg bob bypass and when it is disabled set it
to default value for sm6150.

CRs-Fixed: 2315478
Change-Id: I451506002f382e666d47bc83944bdc8dbbedcad8
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-10-08 14:10:23 +05:30
Linux Build Service Account
4073cd77cd Merge "asoc: csra66x0: Fix interrupt in multichannel case" 2018-10-07 21:19:48 -07:00
Linux Build Service Account
72a52601a1 Merge "asoc: codecs: Use sysfs instead of mixer_ctls for EP92 HDMI" 2018-10-07 21:19:47 -07:00
Linux Build Service Account
3bd2246b42 Merge "asoc: wcd937x: update access for wcd937x registers" 2018-10-07 21:19:46 -07:00
Linux Build Service Account
82cd1e425e Merge "asoc: add support for Slimbus 9 port" 2018-10-07 21:19:42 -07:00
Laxminath Kasam
248273c949 asoc: wcd937x: Fix pop on headphone playback start
Pop is observed on HPH playback start. Enable SWR port
config setup before HPH PA enable.

Change-Id: I2253be1c7e4d8df2bffd7bd0396ceb72a5018637
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-10-05 22:14:05 +05:30
Tanya Dixit
6c13f05fb4 asoc: wcd937x: Make vdd-buck as on-demand supply
Add widget and routing support for vdd-buck supply
as dynamic for all rx usecases.

Change-Id: I1e67e7e950e33a0d98900ee0b20e0dc818a7936d
Signed-off-by: Tanya Dixit <tdixit@codeaurora.org>
2018-10-05 18:36:18 +05:30
Romed Schur
c9f4551452 asoc: csra66x0: Fix interrupt in multichannel case
If interrupt indicates a fault in multichannel case,
reset all cluster devices in a specific order.

Change-Id: I077ff65c5f2b5e656fcdf6533fde04eba426e322
Signed-off-by: Romed Schur <rschur@codeaurora.org>
2018-10-04 16:54:36 +02:00
Linux Build Service Account
e91a85258f Merge "asoc: wcd-irq: Use non-sync disable irq api" 2018-10-04 07:47:04 -07:00
Linux Build Service Account
8b4e56f2c4 Merge "asoc: volume control support for transcode loopback FE" 2018-10-04 07:47:03 -07:00
Linux Build Service Account
f1de3e72f3 Merge "asoc: enable app type config for transcode loopback" 2018-10-04 07:47:02 -07:00
Linux Build Service Account
39ed36f371 Merge "asoc: qcs405: add machine driver support for compress loopback" 2018-10-04 07:46:58 -07:00
Linux Build Service Account
9501b03fb1 Merge "asoc: bolero: Fix slow playback on HPH" 2018-10-04 07:46:56 -07:00
Linux Build Service Account
3933347f55 Merge "asoc: codecs: add ignore suspend for bolero and wcd937x widgets" 2018-10-04 07:46:54 -07:00
Linux Build Service Account
5ff58d1a5d Merge "asoc: update log level to avoid execessive logging" 2018-10-04 07:46:53 -07:00
Ramprasad Katkam
c49a9d541d asoc: wcd937x: Reset mbhc detection type after ssr
If headset is connected during SSR, after recovery mbhc
driver expects a new detection event as the driver is reinitialized.
Reset detection type to insertion to retrigger a hw interrupt
for mbhc driver.

Change-Id: I55705eb6b6a289deb5dc16a4b9ef6252082a3d9a
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-10-04 20:09:17 +05:30
Ralf Herz
3cd7e58eca asoc: qcs405: Use changed clock for SPDIF interfaces
ADSP only supports 163.84MHz for SPDIF input interface clock.

Change-Id: Ib228dea0508a77d8194b348b50801624b678022f
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:38:09 -07:00
Ralf Herz
900bd738dd asoc: Add sysfs attr for SPDIF interfaces
The format change event signaling for SPDIF input interfaces
is adapted to provide format information through sysfs nodes.

Change-Id: Ifab1074a0e4b13e08813e27f8694023c2c47bfe1
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:37:49 -07:00
Dieter Luecking
ceef9afb23 asoc: msm-compress: Add support for up to 32 channels
Compressed streams now do support up to 32 channels.
Use new ADSP API for 32 channels if ADSP supports this.
If not fall back to 8 channel API.

Change-Id: Ief6fe189a6a34f15cfb96bfb9cb7d97b03633b95
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 16:34:57 +02:00
Dieter Luecking
1bf7c9038e asoc: qcs405: Upgrade for 16ch and senary AIFs
AFE MI2S interfaces now support up to 8 data lines
(16 channels). Add support for the same.
Make senary PCM and MI2S ports available.

Change-Id: I810dbe1c12ff091b3b4604d9e59f7015e3a55c98
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:53 -07:00
Dieter Luecking
92c6a5fcfb dai: Add support for 16ch MI2S
AFE MI2S interfaces now support up to 8 data lines
(16 channels). Add DAI support for the same.

Change-Id: I7c507c0161733094c1260731c7a046561fb63200
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:31 -07:00
Dieter Luecking
70668fcb8d asoc: msm: Add support for 32 ch
PCM streams do now support up to 32 channels.
Extend Playback Channel Map mixer control to 32
channels. Use new DSP 32 channel API if DSP version
supports it. If not fall back to 8 channels API.

Change-Id: I74c4f91b0c9fab2a963690ba8143ebea36ad23dd
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 07:14:00 -07:00
Ralf Herz
e1f518308f asoc: codecs: Use sysfs instead of mixer_ctls for EP92 HDMI
The format change event signaling for EP92 HDMI input is adapted
to provide format information through sysfs nodes.
Chip configuration is done through sysfs as well.

Change-Id: I8c930ca5647899b4434272009699763c32fe9d04
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 14:30:13 +02:00
Surendar Karka
b9caa7f426 asoc: qdsp6v2: latency mode support for transcode loopback
Add metadata to configure latency mode for DSP transcode
loopback to set legacy or low latency path. Userspace API
introduced to configure the same.

Change-Id: I914c68a9e9d8647530b72c42548e571b7508c423
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:18:05 +05:30
Surendar Karka
bcfd6862e4 asoc: volume control support for transcode loopback FE
Add stream volume control support for DSP transcode
loopback to enable mute configuration requirement.

Change-Id: I2003e40c9888245c1b12f0e7fbd364170d5008cf
Signed-off-by: Siddartha Shaik <sshaik@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-04 11:17:55 +05:30