Commit Graph

37 Commits

Author SHA1 Message Date
LuK1337 18aceede84 Merge tag 'LA.BR.1.3.6-03910-8976.0' of https://source.codeaurora.org/quic/la/kernel/msm-3.10 into HEAD
"LA.BR.1.3.6-03910-8976.0"

Change-Id: I16643fc055aa2965fe5903396a8e5158c42cf1bc
2017-05-26 13:28:48 +02:00
LuK1337 fc9499e55a Import latest Samsung release
* Package version: T713XXU2BQCO

Change-Id: I293d9e7f2df458c512d59b7a06f8ca6add610c99
2017-04-18 03:43:52 +02:00
Alexy Joseph 367fab472d ASoC: qdsp6v2: Remove Eagle code
Eagle driver is not in use any more.
Remove the code and associated calls
to it.

CRs-Fixed: 1103106
Change-Id: Ice5333861beda9538f0783b70b3267523d16fd2b
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2017-04-11 19:13:47 +05:30
Dhananjay Kumar 4956cb3609 ASoC: msm: add support for AudioSphere effects
Add interface to support AudioSphere post
processing commands in DSP.
AudioSphere post processing is supported on
stereo speakers to provide virtualization
effect to audio playback.

Change-Id: I9bb17c220066fca5694079f8c9b5bd6b31efb14c
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2015-05-01 20:24:17 +05:30
Linux Build Service Account 1d0c1d58ed Merge "ASoC: msm: qdsp6v2: add support for source tracking feature" 2015-04-23 06:58:58 -07:00
Narsinga Rao Chella 2de73ba105 ASoC: msm: qdsp6v2: add support for source tracking feature
Fluence module on ADSP is upgraded to support source
tracking, sound focus and audio zoom features. This
change adds support for the same on kernel and is
needed to support the features end-to-end.

Source Tracking is the capability to identify the source of
speech. Sound Focus is the capability to configure which
sectors in the 360 degrees plane to listen to. Audio Zoom
is the capability to combine the sound focus with other
technologies so that a user can listen in on a particular
source in a scene.

Change-Id: Id62ddd3b00eb212969eaf7a0fd7ead690c59137e
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>
2015-04-15 22:34:45 -07:00
Alexy Joseph 35ebbf19be ASoC: msm: qdsp6v2: improve DTS Eagle driver for all possible i/p
Improve DTS Eagle driver to handle all possible inputs during
communications from user space.

CRs-fixed: 791160, 791162
Change-Id: I0d051b8439d85cf6b59d3e245b30051711cda84e
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2015-03-10 11:26:34 -07:00
Patrick Lai 0bf3f41a07 ASoC: msm: qdsp6v2: separate multi channel map for playback and record
During concurrency testing scenario which starting multi channel playback
followed by multi channel recording, it was found that channel map of
recording is over written by channel map of playback. This results in
failure to open ADM COPP as wrong channel mapping is being passed.

Separate multi channel map to playback and recording and make explicit
check to decide on which channel map to use during adm open call.

Change-Id: Ib355b95632f0f20b2062eb38b906c9d17aa827e5
CRs-fixed: 799164
Signed-off-by: Patrick Lai <plai@codeaurora.org>
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2015-03-06 11:40:14 -08:00
Alexy Joseph caeb66d19f ASoC: msm: DTS: integrate DTS TM changes for version 3.1.2.0
Integrate the kernel changes shared by DTS  for the
latest DTS TM release 3.1.2.0. Include DTS_SRS_TM
config for 8994 target to build the feature.

Change-Id: I8d8e28486abac8e40741d7fee98d99dadaf12745
Signed-off-by: Sharad Sangle <assangle@codeaurora.org>
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2014-11-28 20:08:04 -08:00
Pradnya Chaphekar 2264651509 ASoC: msm: qdsp6v2: Add support for mute/latency on passthrough stream
Add support for setting mute/latency on passthrough stream. The latency
and mute value is set on the latency and volume modules present on the
passthrough copp topology.

Change-Id: I06f1bdfb7e943822ec51282b7868cf0f777bb716
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
Signed-off-by: Pradnya Chaphekar <pradnyac@codeaurora.org>
2014-10-23 16:35:09 -07:00
Krishnankutty Kolathappilly 8cc69987dc ASoC: msm: qdsp6v2: Add support for HDMI passthrough
Add support for compressed bitstream passthrough over HDMI
for DD/DDP contents. Use compressed driver to support
passthrough.

Change-Id: I01f9e4fa984a1f45d1f4de5250bed8f95d2a2dd0
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
2014-10-20 12:15:38 -07:00
Amit Shekhar 5eda6fe5c5 ASoC: msm: qdsp6v2: Support adm open at multiple sample rate
Currently, "Audio Stream NN App type Cfg" mixer control receives
acdb id and app type only. Using these info, adm opens at only one
fixed sample rate. By receiving sample rate in mixer control
command, adm topology selection and adm open is done at appropriate
sample rate along with other parameters. Audio calibration is also
sent and queried for the given sample rate.

Change-Id: I51784270c58c881a75e584eb454c8a3317144ace
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2014-08-28 16:36:23 -07:00
Krishnankutty Kolathappilly 78b41fff40 ASoC: msm: qdsp6v2: Routing changes for Dolby DS2 audio processing
ADM driver changes to support Dolby DS2 audio processing includes
ADM apis to get modules in a copp topology, enable/disable a
module in a topology, store and set calibration data on DSP, set
volume and ramp parameters. Routing driver changes include adding
supoort for DS2 custom topology and initialize and de-initialize
ds2 module, support custom stereo processing in DS2 custom topology
and provide acdb device id as input to adm driver.

Change-Id: I5ff2929f4af32bce2aced8775bf67bf6ce815289
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
2014-08-25 13:20:30 -07:00
Amit Shekhar dc31e5a219 Revert "ASoC: msm: qdsp6v2: Support adm open at multiple sample rate"
This reverts commit c7aefc8af9
Reverting this change as there are missing dependencies which
affects audio playback.

Change-Id: I108c7bddd3931cb8ec9aeaecf96e774896b9aab0
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2014-08-25 13:15:17 -07:00
Amit Shekhar c7aefc8af9 ASoC: msm: qdsp6v2: Support adm open at multiple sample rate
Currently, "Audio Stream NN App type Cfg" mixer control receives
acdb id and app type only. Using these info, adm opens at only one
fixed sampling rate. By receiving sample rate in mixer control
command, adm topology selection and adm open is done at appropriate
sample rate along with other parameters. Audio calibration is also
sent and queried for the given sample rate.

Change-Id: I81da6f1a01472016ad420e7e02bb28602e8d518e
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2014-08-15 14:21:39 -07:00
Darren 611fc3bbc1 ASoC: msm: Integrate Eagle framework to support HeadphoneX
Add support to integrate the Eagle framework for HeadphoneX
audio post processing feature

Initial K integration targeting mainlining

Change-Id: I7825605a44f58709beb960a25ab3784c4953c6f4
Git-commit: ec82dc50e620494f2f4022e439c9f000ed67566e
Git-repo: https://github.com/dtsinc/DTS-Eagle-Integration_CAF-Android-kernel
[snariped@codeaurora.org: resolve trivial merge conflicts]
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
2014-07-21 10:41:13 -07:00
Ben Romberger cb9b89a9b9 ASoC: msm: qdsp6v2: Update clients to use new audio cal driver
Update all kernel driver calibration clients to use
new msm_audio_cal audio calibration driver. Remove
old msm_audio_acdb calibration driver.

Change-Id: Ie38c566c5c39546972042257b083cdcf55f08e85
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2014-05-20 14:48:33 -07:00
Jayasena Sangaraboina e24f55b495 ASoC: msm: qdsp6v2: Support multiple ADM session for a backend
The post processing features such as Dolby Audio Processing and
HeadphoneX require streams to go through different set of post
processing modules. Add support for multiple ADM sessions so
that each ADM session supports unique set of modules for post
processing.

Change-Id: I610dabbb85b48c7b9062abd826a6ebdb1914023e
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
2014-03-28 10:42:26 -07:00
Gopikrishnaiah Anandan e1aeb57aa0 ASoC: msm: Cleanup of msm audio drivers
Kernel has defined printk format specifiers and typedefs
for datatypes.
Using the format strings will remove need for typecasting.
This change cleans up audio msm drivers to use the kernel
defined data types and format specifiers for printk.

Change-Id: If6827137f1bfad802cb61aaa9d3e814b45124894
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
2014-02-07 12:44:06 -08:00
Vidyakumar Athota 6e59ce2d61 Revert "ASoC: mpq8092: Add the passthrough support in the compressed driver"
This reverts commit c21b7142bb.
This commit caused audio recording regression so reverting this change.
It needs to be revisted and make sure no regressions.

Change-Id: I9fd35e1aff29e1bc7ce6134a616bdcc0bd1fc71e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2014-01-21 12:59:44 -08:00
Aviral Gupta c21b7142bb ASoC: mpq8092: Add the passthrough support in the compressed driver
Compressed passthrough gives the user the flexibility to decode the audio
data on end device.
Configure the ADSP so that the data gets passthrough without decoding.

Change-Id: I6bd073d55c14d4ed6f7c67829759aef3655eef82
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
2014-01-17 15:43:37 -08:00
Asish Bhattacharya de06bb1c13 msm: qdsp6v2: reorganize kernel driver under misc drivers.
This is needed as the drivers are registering under misc driver
but exists under arch/arm/mach

Change-Id: I9cd75901184a4fdff6f796019152bc6e29eed6c3
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
2013-12-24 11:11:10 +05:30
Krishnankutty Kolathappilly 2a43f73989 ASoC: qdsp6v2: Add support of ULL and LL
Add support for Low latency pcm and Ultra low latency pcm in
legacy pcm driver. A flag, part of device tree is used to
differentiate low latency and ultra low latency.
Only one ULL stream can be be connected to one ULL COPP.
LL stream can be connected to LL or regular COPP.

Change-Id: I2663ccdb641acc4117d1c0e424a57ed942e78f40
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
2013-12-18 11:31:18 -08:00
Ravi Kumar Alamanda 47b1465712 ASoC: qdsp6: Add support for post processing on low latency path
Current implementation does not send audio calibration data to
DSP if the playback goes through low latency path. This results
poor quality audio on Speaker if it needs tuning.
Update ADM and RTAC drivers to send audio calibration data
to DSP and update properly in the QACT tool.

Change-Id: Ib4bf612ffd81b63a5e083cae7d7ded5b8239c582
Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
Signed-off-by: Krishnankutty Kolathappilly <kkolat@codeaurora.org>
2013-12-18 11:22:33 -08:00
Ben Romberger a21190705f ASoC: msm: Change RTAC to use ION memory
Change the RTAC driver to use shared memory for
Q6 communication. This is needed for calibration
parameters that use more then 4k of memory.

Change-Id: Ic6bdbeac04cc73e42139510c66a9ba919280c87a
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2013-09-10 11:56:16 -07:00
Ben Romberger 6fa1d2c185 ASoC: msm: Unmap all ACDB memory with Q6 when ACDB driver closed
Call into all Q6 drivers to unmap all memory being used by Q6.

Change-Id: I971564bc80373877559679a95aab5529637d29a1
CRs-fixed: 505503
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2013-09-04 17:29:22 -07:00
Jitendra Singh Naruka 65fa58ef6a ASoC: msm: Add support for customized stereo mixing in DSP
For the use case of playback through tunnel mode, customized
mixing for stereo content is required for hearing impaired
Add support to enable customized stereo mixing in DSP.
The customized mixing supported is the average of left and
right channel and further duplicating the averaged output to
both left and right channels.

Change-Id: I8639d1e298a24a76a32fffdc2c0e372a48aeeed0
Signed-off-by: Jitendra Singh Naruka <jnaruk@codeaurora.org>
2013-09-04 17:21:25 -07:00
Jitendra Singh Naruka 9767cf8bc5 ASoC: msm: qdsp6: add support to query RMS during recording
Recorder app requires RMS value of the recording when using
tunnel mode AMR-WB encoding. Add mixer control so app can query
the RMS value from DSP

Change-Id: I84127ad35b916d257b0edee260141c34b92742f2
Signed-off-by: Jitendra Singh Naruka <jnaruk@codeaurora.org>
2013-09-04 17:13:13 -07:00
Ravi Kumar Alamanda 37e4fe3c7b ASoC: msm: Add support for EC reference path
In order to use Eco Cancellation audio preprocessing effect on
audio capture path, EC reference should be available. Add a
kControl to set the EC reference path to support this feature.

Change-Id: Idbca32225469f8848cd0d5a5abc2c590210ee310
CRs-fixed: 482297

Signed-off-by: Ravi Kumar Alamanda <ralama@codeaurora.org>
2013-09-04 16:47:16 -07:00
Subhash Chandra Bose Naripeddy c2c56d9c7a ASoC: msm: support NULL topology for low latency playback
For the use case of audio playback such as touch tone which go
through low latency path no post processing are required to
reduce the latency. So, the topology in DSP should be selected
as NULL topology when open the ADM. Add support to select
NULL topology for low latency playback.

Change-Id: I76090058398a259d66f9fbe3df70ce34deb123b2
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
2013-09-04 16:30:45 -07:00
Subhash Chandra Bose Naripeddy e01ce7c53e ASoC: msm: Support DS1 processing controls
Add support to send parameters to enable DS1 processing in LPASS

Change-Id: I22d3f8a4618b69dbc86077acb436f90fc1431c5c
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
2013-09-04 16:17:18 -07:00
Bhalchandra Gajare e5fcc0ad61 ASoC: msm: Add support for 24-bit playback
Update MSM ALSA driver to support 24-bit PCM sample packed into 32-bit
frame. A mixer control is added to allow 24/16 bitwidth selection on
SLIMBUS_0_RX backend

Change-Id: Ib2530159841bf191d4b27d0750db4c4a191bc0e0
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2013-09-04 16:01:04 -07:00
Phani Kumar Uppalapati 9895be718f ASoC: msm: Add low latency playback and capture support
ADSP has support for low latency playback and capture.
Enhance msm alsa drivers for B-family to make use of
low latency mode.

Change-Id: Ie35c4697a5d6e3af12ef6681180b551c080ad182
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>
2013-09-04 16:01:01 -07:00
Subhash Chandra Bose Naripeddy e93f637109 ASoC: msm: Set channel map and CA of HDMI from EDID
For the Multi channel HDMI playback, the channel map and channel
allocation are known fromt he sink capabilities parsed from the
EDID in the userspace
Add controls to set the channel allocaion and channel map of AFE
and ADM accordingly from the EDID values

Change-Id: Ibeb26651e773b8dc74c1c66d9cd80bf7341b5217
Signed-off-by: Subhash Chandra Bose Naripeddy <snariped@codeaurora.org>
2013-09-04 15:50:17 -07:00
Ben Romberger e7a6aafa1e ASoC: msm8974: Add SRS support for 8974
Add function in ADM to send SRS parameters and
add support in msm-pcm-routing to set SRS
parameters.

Change-Id: Ie67232839e894c8abc1e2063f38d20bcaa78f781
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2013-09-04 15:43:44 -07:00
Kiran Kandi 94865c61a7 ASoC: msm8974: Add Support for Quaternary MI2S CPU DIA
Quaternary MI2S block has 4 serial data lines. They can be configured
to either Rx or TX direction. RX and TX paths can share same bit clock
and word select.

Change-Id: Ia963c34840935d931ba6348485b1c13fcec3ad87
Signed-off-by: Kiran Kandi <kkandi@codeaurora.org>
2013-09-04 15:39:36 -07:00
Patrick Lai c43676b7da sound: Add MSM sound drivers
Signed-off-by: Patrick Lai <plai@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2013-09-04 14:53:52 -07:00