Commit Graph

236 Commits

Author SHA1 Message Date
Xiaojun Sang
53cd13a1ab ASoC: hide bind/unbind in sysfs
Exposure of driver bind/unbind to userspace via sysfs may
lead to unexpected behavior.
Hide bind and unbind by driver attribute.

Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2019-05-17 15:00:33 +08:00
Vignesh Kulothungan
1572b9f03f asoc: routing: clean up bootup errors
Fix errors shown during bootup to enable cleaner bootup process.

CRs-Fixed: 2455248
Change-Id: I239d366674cc33276deda8dc61e1daa102a49ca7
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-05-16 16:16:48 -07:00
Chaithanya Krishna Bacharaju
166ccaeb1e asoc: Add control to set AFE Tx loopback port
AFE TX loopback is used to capture playback data from RX port
and use it for echo reference. Add new control to configure
Rx port to read data from in this case. Existing control was
re-using EC Ref rx port control and can lead to far end
configuration in undesired cases. Extend existing
MultiMedia1 Output Channel control to support 10channels.

Change-Id: I98f11d315e97d761ac2c8f8bf3ef387568c85082
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2019-05-14 16:48:20 +08:00
Karthikeyan Mani
c37007527e asoc: msm: add support for senary interfaces in dai and routing driver
Add support for dais and routing for Senary MI2S, AUXPCM and TDM
interfaces.

Change-Id: Ifa4a9c7163330a18d22d3a5c7d75fe99d189ba49
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-06 12:00:44 -07:00
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
qctecmdr
7f1e0397b5 Merge "asoc: Add route from Voice to PRI_TDM interface" 2019-04-25 06:43:16 -07:00
qctecmdr
59a545b691 Merge "asoc: add voice routing for QUAT and QUIN MI2S interfaces" 2019-04-25 06:38:38 -07:00
Derek Chen
b9048cb1dd ASoC: msm: add quat tdm tx_7 to rx_7 loopback
Add Quaternary TDM TX 7 to RX 7 AFE loopback
routing support.

Signed-off-by: Derek Chen <chenche@codeaurora.org>
Change-Id: I0f6cf7cff1a0250f85f73f4ad63641b7364d4f7d
2019-04-24 18:41:18 -07:00
qctecmdr
be76b8d458 Merge "ASoC: msm: qdsp6v2: Add back dapm routes needed for SDA845" 2019-04-23 20:45:28 -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
qctecmdr
ac479df607 Merge "asoc: routing: set/clear FE/BE route for lsm" 2019-04-18 02:05:55 -07:00
qctecmdr
ec7ab4c45b Merge "asoc: Fix invalid size pointer access in routing driver" 2019-04-16 07:58:50 -07:00
qctecmdr
3ae061be3d Merge "asoc: support source tracking with TDM interface" 2019-04-16 07:56:01 -07:00
Aditya Bavanari
1e9d40595f asoc: Add route from Voice to PRI_TDM interface
Add dai-links in routing driver to support voice call over
Primary TDM interface.

Change-Id: I6dc53905b595d31979e0706718d857230f32497c
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
Signed-off-by: Chinkit Kumar,Kirti Kumar Parmar <parma@codeaurora.org>
Signed-off-by: Sundara Vinayagam <sundvi@codeaurora.org>
2019-04-16 02:01:50 -07:00
Aditya Bavanari
1e349b853d asoc: add voice routing for QUAT and QUIN MI2S interfaces
Add Tx mixer routes for Quaternary and Quinary MI2S
to support voice call over these interfaces.

CRs-Fixed: 2194204
Change-Id: I33b0c0528fbbfe8cf17ce3fe14dbf2230f05d860
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-04-15 21:55:04 -07:00
Bala Kishore Pati
bdc425e0da asoc: msm: clean up bootup errors
Fix errors shown during bootup to ensure robustness and enable
cleaner bootup process.

Change-Id: I6d705afc3dbed9ae34ab8473c6b4ae402f7a0df2
Signed-off-by: Bala Kishore Pati <balakishorepati@codeaurora.org>
2019-04-15 17:15:03 -07:00
Sachin Mohan Gadag
d34b26d821 asoc: support source tracking with TDM interface
Add mixer controls and port id for PRIMARY_TDM interface
to support source tracking with TDM mics.

CRs-Fixed: 2193330
Change-Id: I62fd250e0feb3fbc190fb63d1398fc3082506f47
Signed-off-by: Surendar karka <sukark@codeaurora.org>
2019-04-15 17:13:06 -07:00
Aditya Bavanari
af708a82d1 asoc: Fix invalid size pointer access in routing driver
If data size is not greater than required size
while getting topology in routing driver, it leads
to invalid size pointer access. Add proper
size check to avoid this.

CRs-Fixed: 2384972
Change-Id: I8cd71a4ae866aca57c6d711cfd07e20c5edee3ae
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-04-15 02:43:22 -07:00
Josh Kirsch
9d7693030e ASoC: msm: qdsp6v2: Add back dapm routes needed for SDA845
Add back dapm voice stub and voice stub 2 routes.
Needed for SDA845.

Change-Id: Iacf680461fe7e2364ec1333dcbb0a6c3b671c9aa
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2019-04-15 01:47:08 -07:00
Meng Wang
6d8ecddd3c asoc: routing: set/clear FE/BE route for lsm
Set/clear correct FE/BE route for LSM in LSM put funtion
to avoid mixer control initial value is not set from userspace
after audio server restart.

Change-Id: Ic415bb51cbaf887c4ddacf9e7062ec28a36674e4
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-04-11 14:51:22 +08:00
Linux Build Service Account
7b786004c0 Merge "asoc: Reorder list used in topology search" 2019-03-14 06:55:20 -07:00
Haynes Mathew George
4728d6b2b5 asoc: Reorder list used in topology search
Routing driver searches CAL_TYPE list for a matching
topology and then searches the LSM_CAL_TYPE list if
no entry is found in the first list.
If it so happens that a capture type cal block is
present in the CAL_TYPE list, it will be picked even
though the correct entry is present in the LSM_CAL_TYPE list.
Flip the order to give priority to LSM_CAL_TYPE list.
We expect only LSM clients to populate this list and
also enforce exact match for LSM clients.

CRs-Fixed: 2250684
Change-Id: I2ab3481b43a5d8b059a20cb919ff097fc8cf2774
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
2019-03-12 22:38:33 -07:00
Dhananjay Kumar
242b5b060a asoc: 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.
Also increase the ec ref channel count support to Sixteen from
current max of Eight.

Change-Id: I2297508aedd177580b1c9b2bed3c7c8421507629
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-03-12 22:05:45 -07:00
Linux Build Service Account
cc79d879b8 Merge "asoc: routing: add widget connection for FM playback" 2019-03-04 21:40:01 -08:00
Meng Wang
bbf7792327 asoc: routing: add widget connection for FM playback
Add connection for RX_CDC_DMA_RX_0 and WSA_CDC_DMA_RX_0
to suppport FM playback.

Change-Id: I406faecd089e063848e9e8b507b1e1a0d1c21454
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-03-01 13:24:14 +08:00
Dhananjay Kumar
807f7e9521 asoc: 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: Icf950377dede46b097c8656174af5eb311bf719a
Signed-off-by: Cong Tang <congt@codeaurora.org>
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
2019-02-28 08:57:51 +08:00
Linux Build Service Account
d60c66330d Merge "asoc: Add sources to dai links for concurrent audio record" 2019-02-27 01:15:35 -08:00
Linux Build Service Account
6e9de554df Merge "asoc: update be_name and adm_programable_channel_mixer parameters" 2019-02-26 19:38:37 -08:00
Ralf Herz
a70027da2c asoc: Add sources to dai links for concurrent audio record
Add SEC_MI2S, PRI_SPDIF and SEC_SPDIF as source to dai links for
concurrent audio recordings.

Change-Id: I9c4a46fa4657222ce80b21fd4320715b8c89f36a
Signed-off-by: Ralf Herz <rherz@codeaurora.org>
2019-02-20 03:18:58 -08:00
Meng Wang
f016d3089f asoc: update be_name and adm_programable_channel_mixer parameters
Some new backends are added and update be_name for channel mixer.
Update adm_programable_channel_mixer parameter to support record
echo from RX.

Change-Id: I628292112f558eca9301c67b36e6de41924f27d5
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-20 18:32:11 +08:00
Samyak Jain
810e42a354 asoc: Add routing controls for SLIM_1_TX
Add routing controls for SLIM_1_TX for compress capture.

Change-Id: I8d350ebc60cc081e7027352ddd77ebbb59294189
Signed-off-by: Samyak Jain <samyjain@codeaurora.org>
2019-02-20 02:24:16 -08:00
Linux Build Service Account
726f8d0cf7 Merge "ASoC: msm: add VA Macro's BE DAI links for bolero" 2019-01-08 05:32:02 -08:00
Xiaoyu Ye
f439aedf1f asoc: msm: routing: add support for VA macro DMA interface
VA macro on Kona has three DMA TX ports. Add support routing
for the third VA macro DMA TX port to add backend and the
corresponding front ends.

Change-Id: I07298045292443af1220d9b95f4cd7aee0b79c66
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
2019-01-02 16:40:01 -08:00
Josh Kirsch
ea69fedaa3 audio-kernel: asoc: Remove extra const def
Remove extra const definition. Causing compilation
error on ARM compiler.

Change-Id: I56961168c8a4fc1248d5d43661159b9cf1ff2d98
Signed-off-by: Josh Kirsch <jkirsch@codeaurora.org>
2019-01-02 16:23:11 +08:00
Linux Build Service Account
d130426de6 Merge "asoc: routing: add afe loopback for FM on kona" 2018-12-17 21:17:20 -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
779b11e499 asoc: 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: I819cdd2971195653a955b22597d35b0fe521ec51
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2018-12-11 00:07:46 -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
Meng Wang
3f8ba5480b asoc: routing: add afe loopback for FM on kona
Add support for AFE loopback between DMA backends
and tertiary mi2s tx on Kona.
This is required for FM playback usecase.

Change-Id: Idc0a1afc522365d15f3cdf28f01ea49f5c399850
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-10 15:43:21 +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
ee084a068e ASoC: Change platform driver to component driver
snd_soc_platform_driver is removed in kernel-4.19.
Update snd_soc_platform_driver to snd_soc_component_driver.

Change-Id: I434b6fd173d1f4365a610d9164342d5d04d6c5bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-08 03:15:41 -08:00
Linux Build Service Account
355332ce80 Merge "ASoC: switch audio drivers to SPDX identifier" 2018-12-07 13:20:51 -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
Meng Wang
adbca4f654 asoc: routing: update app type config get function
Update app type config get function and userspace can
get the app type config with mixer control.

Change-Id: I78eda2963161936ae1dbf90dad1bfb64cb079e8d
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-12-06 13:42:40 +08:00
Linux Build Service Account
42a69eda3d Merge "asoc: qcs405: add A2DP sink support in machine driver" 2018-11-02 02:54:25 -07:00
Derek Chen
2bb55777d4 ASoC: msm: routing: add ec ref for sec and tert tdm
Add ec reference support for SEC_TDM_TX_0 and
TERT_TDM_RX_2 ports.

Change-Id: I3116b942fbd3c6c7bea14a77fdcd840dcab059aa
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2018-11-01 09:26:27 -07:00
Florian Pfister
522073c370 asoc: add A2DP sink support in dai-driver
Add decoder config support for split A2DP sink.

Change-Id: If71a2b2ae7f0f0500f196b0552ab185c9f37b778
Signed-off-by: Florian Pfister <fpfister@codeaurora.org>
Signed-off-by: Surendar Karka <skarka@codeaurora.org>
2018-10-31 23:14:59 -07:00
Linux Build Service Account
1563894fb6 Merge "asoc: add limit checks for copp index" 2018-10-25 19:21:06 -07:00