Commit Graph

25 Commits

Author SHA1 Message Date
Surendar Karka
d47fda4407 asoc: add support for afe_loopback_tx BE dai
Add dai driver and routing driver changes for
afe loopback BE. This BE is used to capture
EC reference data.

Change-Id: Ia57f335bde5f8a47de0030fbf1cdb784c8821e17
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-12-10 23:58:04 -08:00
Meng Wang
43bbb87652 asoc: Update file header to GPL-2.0-only
Update file header to GPL-2.0-only.

Change-Id: Ic1542a3209a5fe73c937a5b36491ede4a451936d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-10 14:49:34 +08:00
Meng Wang
61af6849e9 ASoC: switch audio drivers to SPDX identifier
Switch audio drivers to SPDX identifier on msm-4.19.

Change-Id: Ic3f0230a516db251b8d81e8a7e73dbc04d66fe1b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-07 15:47:32 +08: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
Surendar Karka
3ef3d81d0a asoc: add support for Slimbus 9 port
Add support for SLIMBUS_9 Rx and Tx ports for
audio drivers.

Change-Id: If2071983ab38cb0de76c8231ec86d5c662cce2af
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:48:31 -07:00
Surendar Karka
c1cde37a30 asoc: add new FE dais to support compress loopback
Add new FE dais and their routings to support
compress loopback usecase for HDMI and BT sink.

Change-Id: I95d683ff22cda0e7d52333e7dabbb7694cb254f3
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:45:40 -07:00
Dhananjay Kumar
3d8cc2ed33 asoc: fix routing error during switch from non-adm to adm path
Fix routing error from incorrect usage of passthrough mode
while switching LSM session from direct AFE connection to
path using ADM before AFE connection.
Issue is due to loss of passthrough mode for an FE not opened
with ADM during initial session setup or while moving the FE
from one BE port to another BE port, i.e. device switch usecases.
Since passthrough mode for an FE is supposed to be same for all
the BEs connecting to the FE and is directly decided from FE
driver having single value, decouple passthrough mode from BE
and store the required mode in an FE config independent of BE usage.
This allows storing passthrough mode for future usage irrespective
of initial setup path which can be with or without ADM.

Change-Id: I53106b49effd9b267363aedd77477eed103b317c
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2018-09-25 15:34:41 +05:30
Linux Build Service Account
c4b03a5490 Merge "asoc: add multimedia21 frontend and routing support" 2018-08-08 23:32:15 -07:00
Aditya Bavanari
1e84a93ac4 asoc: msm: routing: Add support for Rx and Tx codec dma interfaces
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add support routing for RX and TX
codec dma interface backends and their corresponding front ends.

CRs-Fixed: 2281591
Change-Id: I625c66352c61176cd82b801e97e9d565919e2715
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2018-07-31 11:19:10 +05:30
Derek Chen
07c6d1cd5f asoc: add multimedia21 frontend and routing support
Add multimedia21 frontend dai as well as capture
and playback routing support from/to AUXPCM and
TDM interfaces.

CRs-fixed: 2273671
Change-Id: I5c1e3a2a549015636f7160c3cfc3f15420c9727c
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-07-30 14:12:29 -07:00
Ralf Herz
c8701f776a asoc: Add support to handle SPDIF input and output interfaces
Support two SPDIF input and two SPDIF output interfaces in AFE.

Change-Id: Ie2eb97e85c3b21cb112282dbdf0049a271e7cc93
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2018-07-25 21:35:45 +05:30
Linux Build Service Account
81e65923e6 Merge "asoc: msm-pcm-routing: Add TDM ext ec ref route" 2018-07-06 16:13:00 -07:00
Karthikeyan Mani
bfba054b89 asoc: msm-pcm-routing: Add TDM ext ec ref route
Add SEC TDM interface TX to external echo
reference routing.

Change-Id: I79c62cd21e88de67f6f896cb6b7c8651bf1fb3e0
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-06-28 10:34:33 -07:00
Bhalchandra Gajare
3b1c926e42 asoc: msm-pcm-routing: add msm_pcm_routing_get_pp_ch_cnt
Based on the type of pre/post processing, it is possible that
the processed channel count could be different from the input
channel count. As an example, the FFECNS processing block
could accept 3 channel input and has the ability to output
upto 9 channels of processed data. In cases like these, the
stream side needs to know the processed channel count to set
up its own configuration. Change adds functionality in
routing driver to read the processed channel count.

Change-Id: I06c365f8c53270712709631bc23649d37434f405
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 18:46:04 -07:00
Bhalchandra Gajare
eed46bd521 ASoC: msm: qdsp6v2: Add dynamic chmix config support
Add support to dynamically configure channel mixing weightage
coefficients for both ASM and LSM sessions.
Currently the code is executed only for LSM session and can be
extended to ASM as well.

Change-Id: I727ea6fa2d3a99bbf6811005c5733535f680891b
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 18:45:52 -07:00
Bhalchandra Gajare
3693b6559c asoc: msm-pcm-routing: add Listen app type config v2 mixer control
It is required to know the number of output channels for any
particular app_type so that channel mixing can be performed
if the channels do not match as that of the listen stream.
Add new Listen app type config V2 mixer control that reads the
num_out_channels field along with the others.

Change-Id: I49a74004e12dfa5a4c1ebaac4ac065acc6ff5bc3
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2018-06-19 15:52:24 -07:00
Mangesh Kunchamwar
a21bef610b asoc: msm: routing: Add support for codec dma interfaces in routing driver
New codec dma interfaces have been introduced to connect LPASS and
Codec macros. This change is to add support routing for codec dma
interface backends and their corresponding front ends.

Change-Id: I8145921559457c50408d35c90b13d018e1c32c8a
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-06-11 14:09:28 +05:30
Karthikeyan Mani
5755008e6d asoc: msm-pcm-routing: add audio routes for DP MST
Add audio routes to support Display Port audio MST.
Each end device controller stream adds a route.

Change-Id: Ifb2ea38ad38efaff17e0a9502e03b5b6a0c2de45
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2018-05-17 11:46:14 -07:00
Sachin Mohan Gadag
7c944235ae asoc: Add new dais to support compress record
Add new dais to support compress record usecase.
Update media_encoder_format api to v4 version in
compress driver.

CRs-Fixed: 2167556
Change-Id: I8a2f8a4cdcec4bb31ad94730eb4f1259e800c70c
Signed-off-by: Sachin Mohan Gadag <sgadag@codeaurora.org>
2018-03-04 18:54:41 -08:00
Aditya Bavanari
2a627ae4bb dsp: add support for new ADM LSM cal types
Add support for new ADM LSM cal types in order
to avoid topology and cal block overriding during
concurrent use cases like SVA with speaker
protection.

CRs-Fixed: 2085865
Change-Id: I155d29ff0b77b069aa5970408332064c5c2aebd7
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-12 12:22:09 +05:30
kunleiz
8a60b82da9 ASoC: msm: qdsp6v2: Remove unused FE DAIs
Clean up unused FE DAIs and remove duplicate
routings from dapm routing map for MI2S_RX_VOICE
Mixer.

CRs-Fixed: 2001153
Change-Id: I2c9bd1255331d83b1901915259fe61d287f682fc
Signed-off-by: kunleiz <kunleiz@codeaurora.org>
2017-11-16 02:51:40 -08:00
Linux Build Service Account
c876a3cd4b Merge "ASoC: Modify name for Tertiary MI2S RX and TX" 2017-10-10 11:39:19 -07:00
Vatsal Bucha
8968c5f2a2 ASoC: Modify name for Tertiary MI2S RX and TX
Change name from "TERTIARY_MI2S" to "TERT_MI2S" for RX and TX
in order to maintain consistency with other Mi2S back-ends.

CRs-Fixed: 2075701
Change-Id: I52116df27a780e42de4a6b3d74249f77d311d8d4
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2017-09-28 15:53:19 +05:30
Rohit Kumar
a507793028 asoc: msm: add support for quinary interfaces in dai and routing driver
Add support for dais and routing for Quinary MI2S, AUXPCM and TDM
interfaces.

Change-Id: I50c3099a658998bab805c4c6a5aa447e85f3e7c6
Signed-off-by: Rohit Kumar <rohitkr@codeaurora.org>
2017-09-26 01:37:41 -07:00
Laxminath Kasam
605b42f92c audio-lnx: Rename folders to new flat structure.
Kernel audio drivers can be categorised into below folders.
asoc - ALSA based drivers,
asoc/codecs - codec drivers,
ipc - APR IPC communication drivers,
dsp - DSP low level drivers/Audio ION/ADSP Loader,
dsp/codecs - Native encoders and decoders,
soc - SoC based drivers(pinctrl/regmap/soundwire)

Restructure drivers to above folder format.
Include directories also follow above format.

Change-Id: I8fa0857baaacd47db126fb5c1f1f5ed7e886dbc0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-08-18 16:56:12 -06:00