Commit Graph

89 Commits

Author SHA1 Message Date
Derek Chen
b0f16ac9da ASoC: Add mixer control for DTMF module enabling
Mixer controls are added to enable and disable
DTMF ADSP modules.

Change-Id: Ic04c4696b31f77488cb2047829b823255872f7ac
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2020-03-25 22:58:07 -07:00
Manisha Agarwal
f6990bb349 dsp: Bit rate mode support for aac codec
Add variable bit rate mode support for aac codec.

Change-Id: Iedd9fe0df2d3a12e3d4e6c2916305399da10873f
Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
2020-03-18 19:10:14 -07:00
Ralf Herz
43c0abd0c0 dsp: Add support for META MI2S ports
QCS405 can group data lines of several MI2S interfaces.
This feature is used with new META MI2S ports.

Change-Id: I0d8c2de742e04d7348e40e1026b1640c3f987479
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-08-23 20:12:48 +02:00
qctecmdr
4a362cedcb Merge "asoc: add support for custom channel map" 2019-08-19 23:58:20 -07:00
Chaithanya Krishna Bacharaju
a442b0e3a2 dsp: update DOA param id values
Direction of Arrival  param ids are modified in ADSP Fluence Version9
as currently used params overlap with CVD range values.
Update DOA param id values to avoid mismatch.

Change-Id: I70c779c5a7fc3da3ccdf3ddcd988a20a4908ca81
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-08-12 21:30:24 -07:00
qctecmdr
5467317e15 Merge "dsp: q6afe: add tws mono switch for aptx adaptive encoder" 2019-08-11 03:14:55 -07:00
Surendar Karka
597695312d asoc: add support for custom channel map
In a stream we need to add support for downmixed stereo channel
along with the left and right channels. Add custom channel map
to support downmixed stereo channels.

Change-Id: Icb7fa226a6f07ee4f7d00b8f55fe578c27719c86
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-08-06 04:21:08 -07:00
Zhou Song
450ee1b712 dsp: q6afe: add tws mono switch for aptx adaptive encoder
Add support to switch tws channel mode for aptx adaptive
encoder.

Change-Id: Ife4170be56b152d34758a1cfd20fa4ec203742db
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-08-06 10:17:23 +08:00
Cong Tang
04a6cfa44e audio-driver: update to support 32 channels
update asm/adm/afe drivers to support 32 channels.

Change-Id: Ia231eb6a0fb545569f0f8e1f2442432d761866e9
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-07-19 14:28:47 -07:00
qctecmdr
fa9e9c3ac9 Merge "ASoC: enable dynamic FFECNS effect control" 2019-07-17 05:37:36 -07:00
Xiaojun Sang
dc9e8c2006 ASoC: enable dynamic FFECNS effect control
Add interface for userspace to control FFECNS effect.

Change-Id: I78010899e6c193726a79d74e86f13a1546106eff
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-07-09 15:43:04 +08:00
Romed Schur
b0fe92c09f asoc: Add DSD over PCM support for csra66x0 codec
Configuration added to support stereo DSD over PCM
for csra66x0 codec via I2S interface.

Change-Id: Ibed333e44961a9eb87ef69bfb1e302f5837357d9
Signed-off-by: Romed Schur <rschur@codeaurora.org>
2019-07-04 11:22:59 +02:00
qctecmdr
5df0e02847 Merge "asoc: dsp: do extention to support aptx adaptive R2" 2019-05-27 20:10:02 -07:00
qctecmdr
cbadda916f Merge "dsp: add senary MI2S and TDM port IDs" 2019-05-21 20:36:44 -07:00
qctecmdr
4d046667df Merge "ASoC: Add mixer control to configure port specific channel map" 2019-05-21 20:31:27 -07:00
Zhou Song
cde71a9c9c asoc: dsp: do extention to support aptx adaptive R2
Extend the encoder configuration to support aptx
adaptive R2.

Change-Id: I17d7adb62539d9f59222fd0c992424ba98395383
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-05-10 17:30:44 +08:00
Karthikeyan Mani
3bbd2ee907 dsp: add senary MI2S and TDM port IDs
Add MI2S/TDM AFE senary port IDs for Kona target.

Change-Id: I8dafa4516c31040aad0bca30cfdc9acbdf460bf1
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-06 11:19:29 -07:00
Dhananjay Kumar
3d61b368d7 dsp: adm: add check for mfc channel count
Add check for mfc channel count before issuing mfc
media format command.

Change-Id: I0541d6651ecfcc90562ec0d9a632d039e34658cf
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-05-05 23:12:11 +05:30
Rohit kumar
63ffaa76d5 ASoC: Add mixer control to configure port specific channel map
Add mixer control to configure multi channel map for
each backend separately.

Change-Id: Ie114fa38ee5ce47841cda4cd7f31349905f5c2c7
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
2019-04-30 17:29:26 +08:00
qctecmdr
c38cf58d38 Merge "asoc: dsp: add support for aptx adaptive speech" 2019-04-25 06:48:14 -07:00
Zhou Song
caa541d688 asoc: dsp: add support for aptx adaptive speech
Add support for speech codec which is similar to a2dp aptx adaptive.

Change-Id: Ibfbcf086f009fdb561e26aaf92cefc92f1bd16ca
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2019-04-22 14:43:00 +08:00
Cong Tang
b84eea3768 audio-driver: support tdm multi lane for sa8155
Support group tdm multi lane configuration for TDM interface.
With valid lane mask tdm interface support delivery audio channels
through different data lines.

Change-Id: I63e8ba1106b89c6bcaca0a8359a1def696c334ad
Signed-off-by: Cong Tang <congt@codeaurora.org>
2019-04-15 02:42:21 -07:00
Aditya Bavanari
740b4839cb dsp: afe: Implement get param for excursion logging parameters
Implement get param for AFE_PARAM_ID_SP_RX_TMAX_XMAX_LOGGING
in order to get excursion params from DSP.

Change-Id: I5129938c51c6f6ede9d4703d13be60d04d26f5e3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-03-15 15:56:01 +08:00
Laxminath Kasam
2e13d95506 dsp: q6afe: Add v-validation support for speaker
With speaker protection in v-validation mode, speaker
samples can be tested in early factory mode. Add
support for v-validation feature from driver.

Change-Id: I92493d6d2784cf4dd58021746bffe01180f89d23
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-03-13 19:53:30 -07:00
Dhananjay Kumar
4303439281 dsp: add support to configure MFC in ec ref path
Add support to process ec at channel count other than the
playback channel count by providing ability to set downmixed
channel count and downmixing weights to be used to downmix
ec ref data obtained from playback path.
These configs would be used to explicitly configure MFC module
present in ec ref path, for usecases where ec processing cannot
be done at playback channel count due to algorithmic or resource
limitations.

Change-Id: Iaa80a0f0da3697c55751b2201578252d6466d3b5
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-03-12 22:04:58 -07:00
Ralf Herz
fba2a8270a dsp: Handle media fmt update events
Handle media format update events from ADSP in case of DSP loopback.

Change-Id: I4004759cc77a05f46106d359417f97f0326af19d
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:22:03 -08:00
Ralf Herz
fb81b6e796 dsp: Add new channel ID to mark unused channel map slots
Allow to mark entries in a channel map as unused to prevent mixing other
channels in that slot.

Change-Id: I06f7de932dec4d30b2d6cfe04460d07ddad89049
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-03-04 21:21:01 -08:00
Linux Build Service Account
16470427d0 Merge "asoc: Add support for Aptx Adaptive decoder" 2019-02-27 01:15:33 -08:00
Chaithanya Krishna Bacharaju
4a466532e4 dsp: Add support for Aptx Adaptive decoder
Add support for Aptx Adaptive decoder. Introduce flag
to indicate ABR feedback decoder configuration to
differentiate from regular decoder configuration.

Change-Id: I272e0a9572a56e878f7ad1385514b3be7010145a
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-02-20 19:05:55 +08:00
kunleiz
1529b55bb8 dsp: adm: change sample rate for FLUENCE_EF module
FLUENCE_EF module in COPreP topology doesn't support
44.1Khz sample rate. Set sample rate to 16Khz for
VPM_TX_DM_FLUENCE_EF_COPP_TOPOLOGY, which contains
FLUENCE_EF module.

Change-Id: I527da1a70cacba1014b2a706216172d12066b909
Signed-off-by: kunleiz <kunleiz@codeaurora.org>
2019-02-20 02:59:09 -08:00
Linux Build Service Account
1ec5816c0b Merge "dsp: Add frame size control parameter for AAC encoder" 2019-01-08 05:32:06 -08:00
Xiaoyu Ye
a83ad85054 asoc: msm-dai-q6-v2: add a new VA macro DMA TX CPU DAI
VA macro in Kona has three DMA TX ports. Add a new VA
DMA TX CPU DAI in the DSP DAI driver to use it on Kona.

Change-Id: Ic144dbed1bd63af6f0150f854fdb74d57e156839
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 12:12:26 -08:00
Aniket Kumar Lata
be83735305 dsp: Add frame size control parameter for AAC encoder
BT sink devices have a limitation on the packet sizes
they can receive and handle from BT sources. AAC encoder
can produce output frames which can vary in size based on
content being encoded. If frame size exceeds MTU size of
BT sink device, it will lead to incorrect decoding of
frames in BT sink.
Add a frame configuration parameter (MTU/Peak bitrate)
for AAC encoder to solve this problem.

Change-Id: Ia7795049e982400b0b3657b0b3a8990fc6920e38
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2019-01-02 17:28:08 +08:00
Linux Build Service Account
af3c54713f Merge "ASoC: Add TWS+ mono mode support" 2018-12-12 08:52:01 -08:00
Linux Build Service Account
bed688a58c Merge "asoc: add support to get Direction of Arrival target scores" 2018-12-12 08:51:56 -08:00
Chaithanya Krishna Bacharaju
8c6a184189 dsp: add support to get Direction of Arrival target scores
Add support to get DOA tracking monitor data.
This is required to support SVA LED display feature with
FFECNS/FFNS enabled.

Change-Id: I7e39c2f3998fcc3f9ed0767c0090f862e1ba7539
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2018-12-11 00:02:27 -08:00
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
Manisha Agarwal
d99fac0210 ASoC: Add TWS+ mono mode support
Add support to enable mono mode when one TWS+ earbud is
connected. Change the encoder config when device switches from two
earbuds to single earbud.

CRs-Fixed: 2341876
Change-Id: I880aa6a2767d88e99be2d80afff0e5fbec94b8a4
Signed-off-by: Manisha Agarwal <maniagar@codeaurora.org>
2018-12-10 23:36:26 -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
Florian Pfister
f4fd5f33d1 dsp: add SBC support for BT sink mode
Update SBC sample frequency and number of channels
from IPC library to set AFE port accordingly.

Change-Id: Ibca385b0fc0ba4c3122053559b1116bd4c31336d
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
2018-11-15 01:32:22 -08:00
Florian Pfister
f1b8d5bdea dsp: add BT sink support in AFE driver
Add different media format support in AFE decoder.

Change-Id: Icdc3884882c34236f5ab02355dfbabdd2a1becd2
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:03 -07:00
kunleiz
c0cd19e0b6 dsp: adm: change channel number for SMECNS_V2 module
SMECNS_V2 module in COPreP topology doesn't support
stereo input. Update channel number to mono for
VPM_TX_VOICE_SMECNS_V2_COPP_TOPOLOGY, which contains
SMECNS_V2 module.

Change-Id: I04b971b41328f6a32bf0ff42b21496b49bb4140b
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2018-10-22 20:03:58 -07:00
Linux Build Service Account
38b030aa40 Merge "dsp: afe: Add support for sending aptx adaptive encoder mode" 2018-10-10 20:31:27 -07:00
Sharad Sangle
b7eba8f84a dsp: afe: Add support for sending aptx adaptive encoder mode
Add support for sending APTx Adaptive encoder mode,
High Quality or Low latency to LPASS.

CRs-Fixed: 2272343
Change-Id: Ibbe809d5ca4481d3e98931e40213dd16110f6a57
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
2018-10-05 12:22:19 +05:30
Dieter Luecking
fa7687b233 dsp: Update AFE driver to support 16 ch
AFE supports now MI2S interfaces with up to 16 channels.
Add new APR API functions to support this.
Add support for senary PCM/MI2S ports.

Change-Id: I18d48eed4e9a0476363220e959a0f254aa292056
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-04 15:42:53 +02:00
Surendar Karka
b0dd21f1a3 dsp: add support for Slimbus 9 port in AFE
Add support for SLIMBUS_9 Rx and Tx ports in AFE
driver.

Change-Id: I7a21c06fd67984ef60e7d40b61a100ddc48371fc
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
Signed-off-by: Mangesh Kunchamwar <mangeshk@codeaurora.org>
2018-10-03 03:47:47 -07:00
Aniket Kumar Lata
9dce504834 dsp: Do not send ABR parameters if bitrate is fixed
ABR encoder config parameters should be sent to DSP
only when ABR is enabled. Do not send these parameters
for fixed bitrate.

Change-Id: Icf7e4feef65d01c8ae3f6c6123d490cadef46c97
Signed-off-by: Aniket Kumar Lata <alata@codeaurora.org>
2018-09-06 15:16:43 -07:00
Ramprasad Katkam
250075f808 dsp: afe: add support for swr wakeup irq events
Add support for soundwire wakeup irq registration and event
notification from afe.

Change-Id: I97abe0a8bb571b997a52f90e0a0f57a26c714251
Signed-off-by: Ramprasad Katkam <katkam@codeaurora.org>
2018-09-03 10:18:26 -07:00
Vatsal Bucha
e003f502de dsp: Add macro for packed 16B format
CDC DMA TX uses PACKED_16B format if speaker prot
is enabled. Add macro AFE_LINEAR_PCM_DATA_PACKED_16BIT
for proper value of format.

Change-Id: I1070e00d26a18c77e26ff2518ef4a1256a674e20
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2018-08-31 12:38:57 +05:30