Currently we are using random prefix names for widgets and mixer controls.
These are not very descriptive and not consistent across platforms. For
example 40-pin header has prefix "x" on TX2 and "y" on Xavier.
For better readability this patch updates prefix names for above. Following
guideline is proposed to have consistency in the naming:
1. Shorter prefix is preferrable, at the same time keep it meaningful.
It should be noted that maximum allowed size, including prefix, for a
control name is "44" characters.
2. Prefix is preferred to have an indication about the I/O it sits on and
the codec it belongs to. If there are multiple instances of the codec
on the same I/O, these can be differentiated by L/R or A/B/C/... or
1/2/3... suffix, whichever suits best for the board.
3. On-board codec can use combination of "CVB" and codec initials. If
there are multiple instances of the codec then additionally suffix
mentioned in [2] can be used.
4. Prefix for 40-pin header is used as "H40". Similarly other I/O ports
can use similar syntax or specific names can be used to indicate the
I/O port. One such example would be "M2.E" which is more descriptive
than just "Hxx".
As per above "H40-SGTL" prefix is used for Fe-Pi card.
Bug 200575695
Change-Id: I667d27e2cde4416de75798e1374be1e7fb170b70
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2290938
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Machine DAPM widgets are currently defined in the driver. Since the same
driver is used on multiple platforms, all these widgets are not always
used. If any platform requires additional widget, machine driver patch is
required to update the DAPM widget list.
This patch avoids above by moving all machine DAPM widgets to the platform
DTs and the driver can just parse these. Any platform can declare required
number of widgets and thus create a corresponding audio routing map.
Bug 200503387
Change-Id: I62c31b67e43da850dba91607690763d61ddc39c7
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2257382
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Current 'sound' node does not describe all the DAI links that Tegra sound
card uses. Most of the links are statically declared in the driver code
and only few codec links are exposed from the DT. As the plan is to move
towards DT based binding for all DAI links, the sound node is removed
from 'tegra-platforms-audio-dai-links.dtsi'. This file currently enables
audio nodes of APE/AHUB and populates plugin related info for ADSP. Going
ahead this file either needs to be removed or renamed for better clarity
with naming of files. Though it is present in common path, it is used on
Tegra194 platforms only.
As part of the new approach following dtsi files are proposed.
* tegra210-audio-dai-links.dtsi : This includes all the DAI links needed
for Tegra210 based platforms.
* tegra186-audio-dai-links.dtsi : This includes all the DAI links needed
for Tegra186 based platforms. Since AHUB architecture of Tegra194 is
similar to Tegra186, platforms based on Tegra194 can use the same dtsi
file.
This patch also updates audio routing property name to be similar in style
with upstream DT binding for simple card.
Bug 200538260
Change-Id: If80b1de9baea572882c6ffb37d9a643d224c7088
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2209424
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
The Mic Bias is not being enabled for the SGTL5000 codec on the FE-PI
Audio Z V2 board which prevents audio being captured from the microphone
input. Fix this by adding the a route to enable the Mic Bias when the
ADC is enabled.
Bug 2414131
Change-Id: Ie48ee5afd401b4a22fb29fc7f0317fe844fd7e95
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2220929
(cherry picked from commit 2e2c25c179e5b4b9dfdad6a49310344317bf43bb)
Reviewed-on: https://git-master.nvidia.com/r/2224179
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Add the following device-tree overlay templates for the Jetson
platforms.
1. ADAFRUIT SPH0645LM4H (I2S MEMS Microphone)
2. FE-PI Audio Z V2 (SGTL5000 Audio Codec)
Note that these templates cannot be compiled as-is because they include
definitions that are defined in the corresponding
'dt-bindings/platform/jetson/<board>.h'. Therefore, to use these
templates they need to be compiled along with the appropriate include
file.
These have been created to avoid duplicating nodes that are common to
all Jetson platforms for using these add-on modules.
Bug 2414131
Change-Id: I60b29bb72fdd206786fd76cd1676ed6d6f3c9f1b
Signed-off-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2202471
(cherry picked from commit 3ca13ed86364fe2b606e470870ffa778f36a03c9)
Reviewed-on: https://git-master.nvidia.com/r/2217432
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>