Commit graph

16 commits

Author SHA1 Message Date
Vatsal Bucha
920b58ced9 dsp: q6voice: Check size of shared memory buffer before access
Check buffer size in qdsp_cvs_callback before access in
ul_pkt.

Change-Id: Ic19994b46086709231656ec747d2df988b7a512f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-04-01 04:42:20 -07:00
Timothy Sham
fe515e9936 ASoC: msm: qdsp6v2: Rx DTMF detection via voice stream callback
Allow msm-pcm-voice-v2 driver to enable Rx DTMF detection and
route the DTMF detection event from QDSP6 to a registered
mixer event callback.

Change-Id: I9ffb714d1ec5dd0f4e2c229830d7170324b295bb
Signed-off-by: Timothy Sham <tsham@codeaurora.org>
2018-06-12 14:00:49 -04:00
Derek Chen
481e2be78a ASoC: msm: qdsp6v2: Fix APR packet size for SET_UI_PROPERTY
The APR packet size was incorrect for the API
VSS_ICOMMON_CMD_SET_UI_PROPERTY. Using struct
param_hdr_v1 made the previous calculation for
packet size < 0.

Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I7496e78ad6918251f90fdd5d778b322d4a81c4c0
2018-03-09 18:01:36 -05:00
Aditya Bavanari
36ed1afb56 ASoC: msm: qdsp6v2: Update rtac driver to support Instance ID
Add support to set and get rtac params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: Ic07cb109b9e469dccf510f89ba9917e8c9eccbd8
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:11:41 +05:30
Aditya Bavanari
cd9c139d62 ASoC: msm: qdsp6v2: Update voice driver to support Instance ID
Add support to set and get voice module params with
Instance ID support. Maintain support for non
Instance ID set and get param structures as well.
Use common pack and set param functions to set and
get parameters to DSP instead of handling them at an
individual module level.

CRs-Fixed: 2151551
Change-Id: If18c89ef6e0e98419d271923387eae10d45cb7f3
Signed-off-by: Siena Richard <sienar@codeaurora.org>
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2017-12-21 11:09:15 +05:30
Laxminath Kasam
6e5b040ca4 ASoC: msm: qdsp6v2: Fix voice call and record SSR test
Start voice call and sound recorder app, followed by
ADSP SSR. After SSR, start again voice call and sound recorder
app, and recording usecase fails. Reset recording flag
in vocoder info when RESET_EVENTS callback handled.

CRs-Fixed: 2037587
Change-Id: I232fef3b9ecddeeede559a4cbafa6abf86fc343d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2017-05-03 06:36:36 -07:00
Siena Richard
6445f4d483 msm: qdsp6v2: set device channels on vocproc
Media format data is used only to account for additional buffering
required in vocproc when a fractional sample rate is set. Set device
channels irrespective of the media format info in order to configure
the input no of channels when a custom topology is used.

CRs-Fixed: 1116092
Change-Id: I6eadba65dbed102aec085d99f28c39e66ea4b89b
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2017-01-30 09:58:08 -08:00
Siena Richard
5ccf5cf5f8 ASoC: msm: qdsp6v2: Add support for AFE sidetone
Add support for AFE sidetone whenever USB device or
codec sidetone is not available or supported.

Change-Id: I325ba6448efb4c021a2974ad813be4f8192e9ad1
Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2017-01-11 18:56:31 -08:00
Siena Richard
dd764997fa msm: qdsp6v2: extend media format provided to voice driver
Extend the media format options passed to the voice driver to
include sample rate, bits per sample, and channel mapping in
addition to port ID and the number of channels. Additional media type
information is provide to help avoid additional buffers required in
case of non-fractional sample rate for post processing voice data.

CRs-Fixed: 1065881
Change-Id: Ib69b57dc677b87fecfd689df7f8fc7ec8b4bc59f
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-12-09 10:59:54 -08:00
Siena Richard
ac3242b4ee msm: qdsp6v2: update CVD version
CVD version is updated to 2.3 on ADSP. Update the mapping
table in voice driver to allow CVD version 2.3 to be
recognized and used.

Change-Id: Id6d1c960dc720e8013eb9ba1f07af7662b576e37
CRs-Fixed: 1060201
Signed-off-by: Siena Richard <sienar@codeaurora.org>
2016-08-31 13:56:54 -07:00
Ben Romberger
b65caeaa32 ASoC: msm: qdsp6v2: Change audio drivers to use %pK
Change all qdsp6v2 audio driver to use %pK instead
of %p. %pK hides addresses when the users doesn't
have kernel permissions. If address information
is needed echo 0 > /proc/sys/kernel/kptr_restrict.

Change-Id: I7baa9f127266726fecf9238167a1e0128a258847
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-05-24 11:58:34 -07:00
Shiv Maliyappanahalli
9fcf4e06a0 ASoC: msm: qdsp6v2: Add 32/48KHz sample rate to VoIP driver
Add 32/48KHz sample rate capability to the VoIP driver to
allow VoIP application which uses 32KHz/48KHz sample
rate to take Voice path.

Change-Id: I654b97ffc36b993114899e85706914d99ef44abc
Signed-off-by: Shiv Maliyappanahalli <smaliyap@codeaurora.org>
2016-03-23 21:20:19 -07:00
Venkata Narendra Kumar Gutta
ed41926607 ASoC: msm: qdsp6v2: Don't register to modem for SSR callbacks
Voice driver doesn't create any sessions related to voice call
on modem and hence there is no clean up on APSS is required
when modem SSR is triggered. Cleanup the code in voice driver
which is executed during modem SSR.

CRs-Fixed: 955696
Change-Id: I7536162e49b0eb56f63e7c8e59e0c050123c05fe
Signed-off-by: Venkata Narendra Kumar Gutta <vgutta@codeaurora.org>
2016-03-23 21:18:11 -07:00
Laxminath Kasam
6d4b0deeb6 ASoC: audio: update API name for populate upper 32bits
In audio ion driver, append msm_audio_ to API
populate_upper_32bits to maintain consistency
across other API names in this driver.

Change-Id: I72aace56bf8e80c6dd83f768876253d2c7f334bb
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-03-23 21:13:03 -07:00
Sudheer Papothi
5a20e4b489 ASoC: msm: Update audio drivers for kernel 4.4
Update audio drivers for kernel 4.4

Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 20:11:27 -07:00
Sudheer Papothi
be1a516dcb ASoC: msm: Add Audio drivers for MSM targets
Add snapshot for audio drivers for MSM targets. The code is
migrated from msm-3.18 kernel at the below commit/AU level -

AU_LINUX_ANDROID_LA.HB.1.3.1.06.00.00.187.056
(e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1)
(Promotion of kernel.lnx.3.18-151201.)

Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 20:11:25 -07:00