Commit Graph

219 Commits

Author SHA1 Message Date
Ravindra Lokhande
06888682e6 ALSA: tegra-alt: fix kernel 4.9 build errors
This patch contains changes needed for kernel 4.9 compilation.
Kernel 4.9 has two changes, struct snd_soc_codec_driver is modified
and changed PCM runtime array to a list from struct snd_soc_card.

Bug 1856400

Change-Id: I5d22e7adfd3101cf8a90d02c998ff03fab7ecaa1
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1306168
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2022-09-29 15:30:21 +05:30
Sameer Pujar
f9d280789b ASoC: tegra-alt: expose dspk fifo threshold ctls
Adding more configurability to the dspk driver where,
user can program the thresholds as per the requirement.
If the control is not set, default configuration of
zero threshold is used.

Bug 200283222

Change-Id: I9cbf94c5553e11aeb0b4cc85ceba29fc74ceabc2
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/1319913
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-09-29 15:30:21 +05:30
Shardar Shariff Md
c08f5f701a t18x: drivers: use soc/tegra/chip-id.h for soc header
The soc tegra headers are unified and moved all the content of
linux/tegra-soc.h to the soc/tegra/chip-id.h to have the
single soc header for Tegra.

Change-Id: I67a95258775e50add4ab9872e4525910b14ff99c
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1291661
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2022-09-29 15:30:21 +05:30
Timo Alho
122abbbbab ASoC: tegra-alt: fix compile when CONFIG_PM=n
Bug 1827482

Change-Id: Ibe748f4d67f78f87445e35f3b404b240a9e61026
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/1237107
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
e66ce07df1 ASoC: asrc: clear asrc interrupt twice
As per HW Bug 200208400 we need to clear asrc
interrupt twice to update interrupt status
register.

Bug 200219757

Change-Id: I741f27cca155e45f0112f505eed415852f13e219
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1233840
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
dmitry pervushin
18fdaccd7a t18x: renaming KConfigs & Makefiles to add suffix
Bug 1783210

Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Change-Id: I20c29b4dd5947d296a6ab1e83d47e569e386855b
Reviewed-on: http://git-master/r/1176347
Reviewed-on: http://git-master/r/1177303
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/1183017
2022-09-29 15:30:21 +05:30
dmitry pervushin
335e09749f t18x: add option to point to collapsed kernel
Bug 1783210

Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Change-Id: Iec6456b5ac7bba7e6eca98d84d9ed896092ba717
Reviewed-on: http://git-master/r/1174854
Reviewed-on: http://git-master/r/1177297
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-on: http://git-master/r/1183012
2022-09-29 15:30:21 +05:30
Mohan Kumar
78f9429384 ASoC: tegra-alt: Support dynamic pinmux for dspk
Support dynamic pinmux settings for dspk, this change will help
to runtime configure the pinmux register to use pinmuxed path.

Change-Id: Ie87499a822854d8f077530f49d5516883c987839
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/1181859
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
2c5128e5f8 ASoC: tegra-alt: support all APE interfaces
Driver support for all the APE interfaces. Also cleanup the machine
driver code.

Bug 1782976

Change-Id: Ifdaa3b19de661afd5231d9bface6fc9547f0eb3c
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/1177588
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
a9d4504d52 ASoC: tegra-alt: xbar and afc module fixes
Change fixes cyclic dependency of xbar and afc
module.

Bug 200176091

Change-Id: I43c362388f4383352c301bfe361ba220367fd60f
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1161522
(cherry picked from commit 005fb33d37aaa0785c7f78f42cbf2fca9c30cf9d)
Reviewed-on: http://git-master/r/1167578
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
45037f4a0a ASoC: tegra-alt: arad spew fixes
In lane enable functionality currently
we don't check the existing state of lane.
Change make sure to do nothing if current
state is same as previous state.

Bug 200179285

Change-Id: Ic7492fbc5aabd093d49dba546d0fb17282a30bcf
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
(cherry-picked from commit ebf11df77e0322e473fc4fa6ae0020135f7c6ea9)
Reviewed-on: http://git-master/r/1160156
Reviewed-on: http://git-master/r/1158151

(cherry picked from commit bd562cf6b19bf605f749617335da151baa9f0a71)

Change-Id: I3f61d79ffd88e479fe320e06cd19f7c6183bf112
Reviewed-on: http://git-master/r/1167575
GVS: Gerrit_Virtual_Submit
Tested-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Ravindra Lokhande
5131ed7b89 ASoC: tegra-alt: changes for kernel-4.4
Changes are done as needed for kernel 4.4 transition.

- select SND_SOC_COMPRESS for offload
- register jack at card level
- use snd_soc_dapm_to_codec() to access codec from widget
- use CONFIG_SND_SOC_TEGRA210_ADSP_ALT for adsp code

Bug 200193757

Change-Id: I0adbc9936d9d99f49d05af5def628af4d3c86790
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1154433
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2022-09-29 15:30:21 +05:30
Ravindra Lokhande
a197f2b4d7 ASoC: tegra-alt: replace direct access to codec dapm
The dapm field of the struct snd_soc_codec is removed, to access
dapm field use snd_soc_codec_get_dapm()

Change-Id: I2bf7f89058bd65baf2d89ffa926af9fe1e418927
Signed-off-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-on: http://git-master/r/1157272
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
2022-09-29 15:30:21 +05:30
Sidharth
eb411ec113 ASoC: tegra-alt: add asrc params configurability
Added ability to disable h/w compensation
Disabling h/w compensation would work well
with mem-to-io
Added ability to set WORD_CNT for input and
output thresholds

Bug 200194803

Change-Id: Iea8942105e61ce307ad394d75de59836796f3fbb
Signed-off-by: Sidharth <svarier@nvidia.com>
Reviewed-on: http://git-master/r/1135127
(cherry picked from commit 1b25a112a33b249696a87b8527afc1d132a9cbba)
Reviewed-on: http://git-master/r/1142696
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
db23cd7e8a ASoC: tegra-alt: asrc frac part fix
Changing frac max to unsigned int as
mask for asrc frac is 0xffffffff.

Bug 200185841
Change-Id: Ic47896b47fa5e4a5e4eb7320a69d6b94747715a5
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1113391
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
023f83496c ASoC: tegra-alt: build sound card module
Changes releated to building machine driver
as module.

Bug 200176091

Change-Id: I5180861343e21b1e2275292d6bf11c8d5d9166e7
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1020182
Reviewed-by: Hyong Bin Kim <hyongbink@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
0f10c0cf2c tegra-alt: asrc: sw-reset asrc before disabling
To make sure last transaction on stream
was clean we soft reset the lane before
closing it.

Bug 1736992
Bug 200181219

Change-Id: I0df111d8d535a574e021a459b7d0c2c37a2c6345
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/1112188
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nor Cho <ncho@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Sidharth
93187aba56 ASoC: tegra-alt: handle arad ratio update INTR
- Unmasked ratio update interrupt
- Handle ratio update interrupt in ISR

Bug 200180677

Change-Id: I3c360c1dba8ee0ab8aac5e67eb08c84d0a332bca
Signed-off-by: Sidharth <svarier@nvidia.com>
Reviewed-on: http://git-master/r/1029435
Reviewed-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Amit Sharma
bf142c83e5 sound: soc: tegra-alt: fix sparse warnings
Fixed the following sparse warnings:
- warning: symbol 'tegra186_asrc_ahc_cb' was not declared.
           Should it be static?
- warning: symbol 'tegra186_arad_ahc_cb' was not declared.
           Should it be static?
- warning: Using plain integer as NULL pointer

Bug 200088648

Change-Id: I26ca06f95517269840248b703969fb79e2c43c91
Signed-off-by: Amit Sharma <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/1011362
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2022-09-29 15:30:21 +05:30
Uday Gupta
f2b5343db2 ASoC: tegra-alt: Move register store/restore
Move register store/restore from pm API's to
runtime API's for platforms, with CONFIG_PM_SLEEP
not enabled, to work.

Bug 200166409

Change-Id: I0c7cda13ebf7318bb9d27549fc856d20ebd41cdc
Signed-off-by: Uday Gupta <udayg@nvidia.com>
Reviewed-on: http://git-master/r/932646
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Gaurav Tendolkar
d451956f83 tegra-alt: asrc: request ratio packet from arad
If ARAD lane gets locked before ASRC is enabled
the ASRC misses the ratio packet from ARAD and does
not lock. Requesting ratio packet again from ARAD
enables ASRC to lock in such cases.

Bug 200158741

Change-Id: I63841b46eec832f3f16be9fc78fa51d723d9e825
Signed-off-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
(cherry-picked from commit 88eac6a1ffa5452c170756c1266eae388795689d)
Reviewed-on: http://git-master/r/842381
Tested-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Sumit Singh
829c39db5c ASoC: tegra-alt: Enable Werror for tegra files
Enable Werror for all the files under sound/soc/tegra-alt files,
so that all the warnings are treated as errors.

Bug 1454125

Change-Id: I71b761edeb5de94004b5f9868ca3c2f6fd2636f8
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/925848
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
9bf25d9f38 ASoC: tegra-alt: add check pointer before access
add check for context pointer before accessing it in suspend.
Also move setting of driver data at the end of probe function.

Bug 200160608

Change-Id: I7ebee91b5f825575f1d8d84f3246b2e9f86da3ed
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/923079
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
GVS: Gerrit_Virtual_Submit
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
675497468f ASoC: tegra-alt: Mark lock register volatile
Marking ASRC_STREAM_LOCK_STATUS as volatile.
When asrc configured in HW mode, we want read
on ASRC_STREAM_LOCK_STATUS from hardware.

In SW mode we use ASRC_STREAM_LOCK_STATUS as
R/W register.

Bug Bug 200163397

Change-Id: I2960e9b7417c5c3017c87b4494b252e9668c4444
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/926833
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
eceb04d76a ASoC: tegra-alt: add check pointer before access
add check for context pointer before accessing
it in suspend for asrc and arad.

Bug 200160608

Change-Id: If549bf77e8d2a2ab66507127930bfa7c474ea782
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/923558
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
2022-09-29 15:30:21 +05:30
Sidharth
21823baa4b ASoC: tegra-alt: Fix asrc sw ratio update steps
Fixed the procedure for sw ratio update
Removed the steps of setting of asrc in UNLOCK state
and waiting it to go in UNLOCK state.
In UNLOCK state asrc stops sending samples which was
leading to audio glitches.

Bug 200154554

Change-Id: Idf7fe685709afcf4f72c3aab95dd5ee812871b92
Signed-off-by: Sidharth <svarier@nvidia.com>
(cherry picked from commit adbe2553c993327edd44408544628e8a7864ad51)
Reviewed-on: http://git-master/r/838743
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Shashank Sinha <shsinha@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
1cd212a9b9 ASoC: tegra-alt: machine driver for bali
Bug 200133225
Bug 1701860
Bug 1698137

Change-Id: I1e484f771d43f0d35a8a2406c803ae92d797e46f
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Signed-off-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
Reviewed-on: http://git-master/r/834987
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Sumit Singh
4be8236080 ASoC: tegra-alt: Fix build warnings
Fix below build warnings:-
- 'tegra186_arad_get_lane_ratio_change_status' defined but not used
- 'struct tegra210_xbar_cif_conf' declared inside parameter list, its
   scope is only this definition or declaration, which is probably not what
   you want

Bug 1454125

Change-Id: I14375bad93b3b1f8cf79e5e8efcbe96166b5de37
Signed-off-by: Sumit Singh <sumsingh@nvidia.com>
Reviewed-on: http://git-master/r/838920
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
3c9d319ae3 ASoC: tegra-alt: arad dapm fixes
Adding fixes related to arad runtime
& dapm policy via xbar.

Bug 200133225
Bug 200150306

Change-Id: Ic5f0ef66ecadd18c64ea1d684f28eed2eacc2b39
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/836450
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Sameer Pujar
88883c5d26 ASoC: tegra-alt: t18x: stereo support with dspk
Exposing multiple CIFs and DAPs in dspk driver to
support stereo playback. Required support is added
in machine driver too.

Bug 200143864

Change-Id: Ie02bb6bf778c5a8ecc9f924820586891174a7dfd
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: http://git-master/r/838574
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2022-09-29 15:30:21 +05:30
Gaurav Tendolkar
43432df799 tegra-alt: arad: mixer controls to set prescalars
Added mixer controls to set numerator and denominator
prescalar registes. This allows the corresponding
clocks to be scaled down before ratio calculation

Bug 1684121

Change-Id: I0f8769ed0f61722785ecaa2afec689bdb357e02f
Signed-off-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
Reviewed-on: http://git-master/r/835222
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
b74ed9932e tegra-alt: asrc: runtime pm fix
1) fixing asrc runtime pm.
2) moving scratch address and global
 enable mask to runtime_resume.

Bug 200150306
Bug 200124772
Change-Id: If0dfc3c93ee431b43e36a7b934498177caad6ddd
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/829018
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Ajay Nandakumar
b2767ab554 tegra-alt: arad: make AGIC as interrupt parent
Making AGIC as interrupt parent to ARAD and hence by making this change,
the driver directly receives the virq, since the task of getting the virq
is handled by the gic drivers.

Also, for GIC PPI interrupts, the irq number that should be mentioned
should be irq - 32.

Bug 200146854

Change-Id: Ic3feb0f4ea46226f53a72c5789c69b5d6d7cdf01
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
Reviewed-on: http://git-master/r/818988
(cherry picked from commit d35e14d26e55723be46d929d046610c05445165c)
Reviewed-on: http://git-master/r/830798
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
2022-09-29 15:30:21 +05:30
Asha T
8ca4925751 ASoC: tegra-alt: Fix sparse warning
This change fixes warnings highlighted
for unused variables and labels

Bug 200088648

Change-Id: I0db87d6b4f7ca9c6714610d15dfd93ef96a7a30a
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/827396
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2022-09-29 15:30:21 +05:30
Gaurav Tendolkar
11708b6d8b ASoC: tegra-alt: add ahub interrupt handling
Add interrupt handling for ARAD and ASRC

Change-Id: I5f6c8c0946604b6961554f2c1309f15dc4a6e58d
Signed-off-by: Gaurav Tendolkar <gtendolkar@nvidia.com>
Reviewed-on: http://git-master/r/812122
(cherry picked from commit 2c288b8a3b9af03ac591424715788c38396bc1cb)
Reviewed-on: http://git-master/r/824504
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
34b3cc18d3 ASoC: tegra-alt: audio fixes
fixes for:
a) asrc
b) arad
c) machine driver

List of CL's:
http://git-master/r/799350
http://git-master/r/799941
http://git-master/r/801101

Bug 200133225

Change-Id: Icbec3b988e134c47dc13cbf64bbef394bc31b0a6
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/823283
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Nitin Pai <npai@nvidia.com>
2022-09-29 15:30:21 +05:30
Asha T
eb7dacf7ea ASoC: tegra-alt: Update dev-t18x-bringup to main
Updated machine and platform drivers from
dev-t18x-bringup branch.
List of CL's
http://git-master/r/787398
http://git-master/r/791132
http://git-master/r/792130
http://git-master/r/799230
http://git-master/r/800417
http://git-master/r/800419
http://git-master/r/800920
http://git-master/r/801539
http://git-master/r/802367
http://git-master/r/802548
http://git-master/r/810462
http://git-master/r/792743
http://git-master/r/798829
http://git-master/r/800921

Change-Id: I16799b8b34d9ca37221cbefb7bd3f5b0dcec5412
Signed-off-by: Asha T <atalambedu@nvidia.com>
Reviewed-on: http://git-master/r/820944
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2022-09-29 15:30:21 +05:30
Amit Sharma (SW-TEGRA)
e87333c909 isound: soc: tegra-alt: remove static storage class from definition
Fixed the following sparse warning:
- warning: useless storage class specifier in empty declaration

Instance variable may be a static, but the definition doesn't need
the static storage specifier attached to it.

Bug 200088648

Change-Id: Id709a1d205987d19d8c415a18c03b8e24eb9d7b8
Signed-off-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-on: http://git-master/r/799165
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
e68d6bd942 ASoC: tegra-alt: Add Machine Driver for T186 based 2382.
Change-Id: I4c112ed761de3a252243c86924e1068e84ef2c77
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/776622
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Nitin Pai <npai@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
182bc1927b ASoC: tegra-alt: Add Machine driver for Quill
Add the Machine driver support for Quill board which has rt5658 codec
on it.

Bug 200127320

Change-Id: I871d436438dc5830eabe1e0616648bd05886ed6c
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/781091
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
21c45bba08 ASoC: tegra-alt: WAR for ARAD/ASRC
Issue is seen with ARAD/ASRC when it goes to
UNLOCK->LOCK.
- ASRC may not check for buffer thresholds once it
restarts processing after an UNLOCK->LOCK.
- ARAD will not get locked after an unlock

Bug 200118889

Change-Id: Ia16187df6955e79f93f3a7cb9061ea64a61c1d36
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/764096
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Tested-by: Sumit Bhattacharya <sumitb@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
29630055e7 ASoC: tegra-alt: Add ADSP dai link
Add dai links for ADSP support for t18x

Bug 200111966

Change-Id: I12b38e2046e55aeb867da40c2a1ef514d9143745
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/764630
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2022-09-29 15:30:21 +05:30
Dipesh Gandhi
a23ad9f725 ASoC: tegra-alt: update ARAM address in asrc
ASRC requires 36KB of ARAM for intermediate data.
Updating the start address of ARAM as per
the partion reserved for ASRC and ADSP usage
of ARAM.

Bug 200092561

Change-Id: Ifd4b9b866d518bbe3f6f94cdb974eddc0d1ef1ac
Signed-off-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-on: http://git-master/r/766620
Reviewed-by: Nitin Pai <npai@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
fed7c5fc0c ASoC: tegra-alt: add dspk prod support
Add the driver changes for  dspk prod settings
through device tree.

Bug 200090272

Change-Id: Idaca6f6d44756d6d716919c9b622d65ae6104c8d
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/767002
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
2022-09-29 15:30:21 +05:30
Mohan Kumar
2b1b763e5c ASoC: tegra-alt: T186 DSPK driver support
Add DSPK driver support for T186 chip

Bug 200120467

Change-Id: I805e68c6ea4c4989d392e0bfdb65fb273b47bbb8
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: http://git-master/r/755129
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Tested-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
2022-09-29 15:30:21 +05:30
Adeel Raza
307f0f0001 DNI: fix kernel paths
The path to the main kernel repo is subject to change. Therefore, don't
hardcode the path. Instead use the $(srctree) macro.

Change-Id: Id1b3ffab668142addbc1a3a38e098b0bbf0e4cef
Signed-off-by: Adeel Raza <araza@nvidia.com>
Reviewed-on: http://git-master/r/763205
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Tested-by: Alexander Van Brunt <avanbrunt@nvidia.com>
2022-09-29 15:30:21 +05:30
Junghyun Kim
606239daf9 ASoC: tegra-alt: create the new drivers for T186
1. Create T186 machine driver
2. Create ASRC/ARAD codec driver
3. Create header files of ahub_unit_fpga_clock,
  machine utility, afc, xbar, admaif for T186
4. Create files for additional T186 features of
  machine utility, afc, xbar

Bug 1582514
Bug 1582510

Change-Id: I505e0af612c4399c675e39185879612ac1992768
Signed-off-by: Junghyun Kim <juskim@nvidia.com>
Reviewed-on: http://git-master/r/751592
Reviewed-by: Dipesh Gandhi <dipeshg@nvidia.com>
Reviewed-by: Alexander Van Brunt <avanbrunt@nvidia.com>
Reviewed-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
2022-09-29 15:30:21 +05:30
Thomas Gleixner
e69072642b treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license version 2 as
  published by the free software foundation this program is
  distributed in the hope that it will be useful but without any
  warranty without even the implied warranty of merchantability or
  fitness for a particular purpose see the gnu general public license
  for more details you should have received a copy of the gnu general
  public license along with this program if not write to the free
  software foundation inc 51 franklin st fifth floor boston ma 02110
  1301 usa

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 246 file(s).

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexios Zavras <alexios.zavras@intel.com>
Reviewed-by: Allison Randal <allison@lohutok.net>
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190530000436.674189849@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-29 15:30:21 +05:30
Rasmus Villemoes
2ac8157eb2 ASoC: tegra: Fix typo in include guard
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2022-09-29 15:30:21 +05:30
Stephen Warren
dec9a5adbd ASoC: tegra: support new register layouts in Tegra124
Tegra124 introduces some small changes to the layout of some registers.
Modify the affected drivers to program those registers appropriately
based on which SoC they're running on.

Tegra124 also introduced some new modules on the AHUB configlink register
bus. These will require new entries in configlink_clocks[] in the AHUB
driver. However, supporting that change likely relies on switching Tegra
to the common reset framework, so I'll defer that change for now.

Based-on-work-by: Arun Shamanna Lakshmi <aruns@nvidia.com>
Based-on-work-by: Songhee Baek <sbaek@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
2022-09-29 15:30:21 +05:30