İşleme Grafiği

85 İşleme

Yazar SHA1 Mesaj Tarih
Viraja Kommaraju
5fdef1b590 ASoC: msm: Support different POPPs to single COPP
For multi COPP feature it could only allow POPPs with same app_type
to connect single COPP. But it's possible to connect different POPPs
with different app_type to single COPP, to achieve this, it should
skip the app_type check when create copp_idx.

Change-Id: I9da6e84b8ef4a5e13d29d71c016b114ea759b94f
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2020-07-15 01:33:26 +05:30
qctecmdr
59e150f829 Merge "dsp: don't reset rx ec ref channel after adm open" 2020-06-29 11:21:31 -07:00
qctecmdr
7284897e35 Merge "asoc:support for DSD on MI2S interface" 2020-06-16 20:17:02 -07:00
Zhou Song
d8005c664b dsp: don't reset rx ec ref channel after adm open
Remove reset of rx ec ref channel for adm after using,
if the channel value is not changed, user space won't
set it to driver again, then causing adm opening failed.
2020-06-15 20:46:17 +08:00
Avinash Chandra
5638ecaf5d dsp: q6adm: Update the proper param_hdr for offset
For Source Tracking adm_get_param, param_hdr (struct param_hdr_v3) size
being sent was different as param_hdr(struct param_hdr_v1)size used for
offset of virtual memory to copy the param data in out-band case get_param.

Change-Id: I01dd4f704cc5b6994f1203a0e28199a6936cba7f
Signed-off-by: Avinash Chandra <avicha@codeaurora.org>
2020-06-11 07:02:18 -07:00
Sanjana B
02d1c6dc11 asoc:support for DSD on MI2S interface
Add support for DSD in MI2S interface and corresponding api updates
from ADSP.

Change-Id: I494205763fa429f95e43497ed5b8f91332f5a2a3
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2020-06-09 23:41:10 -07:00
qctecmdr
f90e291bfd Merge "dsp: adm: change channel number for FLUENCE_SM module" 2020-06-05 01:54:02 -07:00
qctecmdr
1db5a7d432 Merge "asoc: remove asound.h from include list" 2020-06-01 10:27:02 -07:00
Kunlei Zhang
b466b00787 dsp: adm: change channel number for FLUENCE_SM module
FLUENCE_SM module in COPreP topology doesn't support
stereo input. Update channel number to mono for
VPM_TX_VOICE_FLUENCE_SM_COPP_TOPOLOGY.

Change-Id: I7de7b49706387b09031f67e1a0271db1825cb81d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-05-27 17:58:10 +08:00
Meng Wang
5865f8c182 asoc: remove asound.h from include list
There's no need to include sound/asound.h directly.
Remove it to work with KERNEL_HEADER_TEST and
UAPI_HEADER_TEST.

Change-Id: If09b58f683ad224b549f6f53dd34157ba0956ea4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-05-01 15:33:17 +08:00
Ramlal Karra
34a11c755a dsp: q6adm: add ADM_AUDPROC_PERSISTENT cal type
ADM supports certain modules that can have very large calibration sizes,
in such cases the calibration is expected to be persistent in memory.
Add new cal type for this purpose.

Change-Id: I2d1fb219a3748d0ead5ca2199da2b55669f2550e
Signed-off-by: Ramlal Karra <rkarra@codeaurora.org>
2020-04-22 19:19:37 -07:00
qctecmdr
457a39d314 Merge "dsp: Avoid configuring PSPD channel mixer if PSPD is already configured" 2020-04-08 21:02:08 -07:00
qctecmdr
14f4f909da Merge "dsp: Add FFECNS Freeze event support" 2020-04-08 21:02:07 -07:00
Ramu Gottipati
f2438f0d93 dsp: Avoid configuring PSPD channel mixer if PSPD is already configured
Observing audio glitch issue while trying to apply PSPD
channel mixer coefficients for already applied COPP port.
To fix this, added check condition to retun 0 without
applying PSPD.

Change-Id: I3825cacfd888f153144cc5d73eb274f4fbf5d8bc
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-04-02 23:51:34 -07:00
Ramu Gottipati
f36ffb140a dsp: Add FFECNS Freeze event support
Add support to send ffecns freeze event

Change-Id: I73bc6ff8c091427ddb398ae11c95f19c36e904b6
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2020-04-01 13:03:54 -07:00
Meng Wang
d114234b61 dsp: adm: increase the length of timeout in adm_open to 2 seconds
Currently, the length of timeout in adm_open for waiting response
from ADSP is 1 second. To prevent unnecessary timeout that results
adm_open failure, increase the length of timeout to 2 seconds.

Change-Id: I670f44964538c3176130c4bb5f8b7a3b3eaf8d8b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2020-04-01 13:02:15 -07:00
Yunfei Zhang
af3faf2ae3 dsp: adm: use default rate for unsupported sample rates
Some ECNS topologies can't support sample rate of 48KHZ,
reset it to 16KHZ for such use cases.

Change-Id: I5d0457feb2e74929546746fd4b184f2d7e065fbb
Signed-off-by: Yunfei Zhang <yunfeiz@codeaurora.org>
2019-09-15 16:07:45 +08:00
qctecmdr
06dc54de05 Merge "audio-driver: update to support 32 channels" 2019-07-29 02:36:40 -07:00
qctecmdr
ce22ebd4f8 Merge "dsp: adm: Obtain path type from session type" 2019-07-29 02:22:57 -07:00
qctecmdr
e360832ef6 Merge "dsp: Revert featurization of 32 channel support in DSP" 2019-07-24 03:01:07 -07:00
qctecmdr
8ee45b38bd Merge "dsp: Reset ec ref port id after use" 2019-07-24 00:42:29 -07:00
Chaithanya Krishna Bacharaju
6bd4088d76 dsp: adm: Obtain path type from session type
In programable channel mixer, path type is derived based on
afe port id. Due to this, wrong path type is obtained in case
of loopback usecase where Rx port is used to capture ec ref
signals. This leads to wrong channel map being set in channel
mixer. Instead use session type to obtain path type.

Change-Id: I5292ed5eed1366ac28d72e4ca0815ab62e91fa60
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-21 20:03:01 -07: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
Chaithanya Krishna Bacharaju
757f0d29a2 dsp: Reset ec ref port id after use
Reset ec ref port id to invalid port after use to ensure
it is not picked for other adm sessions.

Change-Id: I802326122ad6dc63c7f2df16169da3f50559202f
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-07-09 21:44:29 -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
Dieter Luecking
9fb7c8c43e dsp: Revert featurization of 32 channel support in DSP
Remove the dependency on dedicated config flag for the
use of new API versions in ASM and ADM open commands.
Dependency is now on ADSP service version only.

Change-Id: I2e7bcec675bafb9ad9e2a10df4ccc1e52bb72c92
Signed-off-by: Dieter Luecking <dieterl@codeaurora.org>
2019-07-09 08:41:04 +02:00
qctecmdr
9ad54a5373 Merge "dsp: Define channel map for 14channels" 2019-06-17 21:01:33 -07:00
Chaithanya Krishna Bacharaju
3dd8fdf8a5 dsp: Define channel map for 14channels
Define channel map for channel count 14 for adm and asm to
support capture usecases for this configuration.

Change-Id: Ieb43dafd05f88bf34fa512fd7268258163e9ac92
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-06-16 17:30:32 -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
2054b690a9 dsp: adm: Add support for port specific channel map
Add multi channel map support per afe port.

Change-Id: Ib032d1c81d918417f516131f11c500e4f6668b39
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-30 02:14:23 -07:00
Vignesh Kulothungan
4965b8d670 dsp: adm: modify adm callback payload size checks
Validate payload size before accessing data from ADSP.
Modify payload size checks to accommodate for variable
payloads, payload size vary from size of one integer to
many based on opcode and other variables.

CRs-Fixed: 2380694
Change-Id: Ic5e0eb72441da8f29cf645968c9df09e7803701a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-04-04 11:35:25 -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
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
34b11a32b1 Merge "adm: undo echo reference rx value reset after open" 2019-03-04 11:44:13 -08:00
Linux Build Service Account
ddb358dfd7 Merge "dsp: adm: validate ADSP payload size before access" 2019-03-04 11:44:06 -08:00
Xiaojun Sang
f2f68463a7 adm: undo echo reference rx value reset after open
echo reference value reset after open leads to second SVA session
without echo. Undo the value reset.

Change-Id: Ie6ae357108beed0c8f034a3408c494475376e486
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-02-28 17:11:20 +08:00
Linux Build Service Account
8c40496013 Merge "dsp: adm: change sample rate for FLUENCE_EF module" 2019-02-26 19:38:40 -08:00
Vignesh Kulothungan
3552462ec5 dsp: adm: validate ADSP payload size before access
Check the size of ADSP payload before accessing it.

CRs-Fixed: 2380694
Change-Id: Ib0c0f0bf6c7f7cf659df0eb70a3f66cee580cb66
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-02-26 19:05:27 -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
Chaithanya Krishna Bacharaju
8b0abba9d7 dsp: Check ec ref rx port against AFE_PORT_INVALID
ec ref rx port is defined as integer and it is
set to 0xFFFF (AFE_PORT_INVALID) when ec controls are reset.
Due to this the current check against -1 (0xFFFFFFFF) in
adm open will always return true even after controls are reset.
This leads to adm open failures in case no ec ref channels are
set as part of record usecase. Avoid this by checking ec ref rx
port against AFE_PORT_INVALID.

Change-Id: I0d52bbe2a980d495933239315e6bba193a18567e
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-02-20 16:51:01 +08:00
Meng Wang
688a867091 asoc: Update file header to GPL-2.0-only
Update file header to GPL-2.0-only.

Change-Id: If16bf92f951c6d7521f56a3e9b91da2ca2ccf6f8
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-01-29 13:43:33 +08:00
Dhananjay Kumar
defd81b1a5 dsp: add support to set custom channel mixer coefficients
Enhance Channel Mixer control for MultiMedia Frontends to
get custom channel mixer coefficients from userspace and
use it during device routings to control stream to device
channel mappings.

Change-Id: Ifedac25de5ae6bad1092b66ec405bba66a80f608
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-01-21 20:58:22 -08:00
Linux Build Service Account
9cdd3ad6f9 Merge "asoc: dsp: ipc: Reduce wait timeout to 1 second" 2019-01-06 06:32:24 -08:00
Surendar Karka
de79a06acf dsp: update EC reference port only if channels are configured
ADM open is failed due to payload size not getting updated
with ec reference size. Update EC reference port only if
EC reference channels are configured.

Change-Id: Ic2dd6a3cf805c1ea40d71d0b62b6e867167d169e
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2019-01-02 17:23:23 +08:00
Vignesh Kulothungan
0fcf2af3df asoc: dsp: ipc: Reduce wait timeout to 1 second
Reduce the amount of time driver waits to get a response from ADSP.
Current wait time in some cases is 5 secconds, which might cause
user space crashes in Android P. So reducing the timeout to
1 second.

CRs-Fixed: 2318751
Change-Id: I6b6789aa5b408659dd57f8f6b017df52d14b28aa
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-01-02 16:04:27 +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
Surendar Karka
e7507516c4 asoc: set AFE_LOOPBACK_TX port id to EC ref port
- AFE_LOOPBACK_TX BE is the dummy backend created to
  establish the EC reference capture path. While
  opening COPP pass playback port id instead of
  AFE_LOOPBACK_TX to get reference stream data from
  AFE RX port.
- Add session type support in creating new COPP and
  while checking for existing COPP.

CRs-Fixed: 2080421
Change-Id: I979f3ce1009cc18ff14130bebb8bd51a78fbe5ac
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-12-11 17:07:01 +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
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
Linux Build Service Account
506d3c19c6 Merge "dsp: fix configuration of EC reference" 2018-11-22 20:08:56 -08:00