mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 02:32:08 +03:00
asoc: tegra-alt: add prod support
This change is for adding prod settings for i2s dmic devices through device tree. bug 200059617 bug 200062746 Change-Id: I905743de44f556d7b5f02289545f0c472e540eb1 Signed-off-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-on: http://git-master/r/682790 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
This commit is contained in:
committed by
Sameer Pujar
parent
5923b73016
commit
9fb4155740
@@ -31,12 +31,14 @@
|
||||
#include <sound/pcm_params.h>
|
||||
#include <sound/soc.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/pinctrl/pinconf-tegra.h>
|
||||
#include <linux/regulator/consumer.h>
|
||||
#include <linux/of_device.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/debugfs.h>
|
||||
#include <linux/tegra-powergate.h>
|
||||
|
||||
|
||||
#include "tegra210_xbar_alt.h"
|
||||
#include "tegra210_i2s_alt.h"
|
||||
|
||||
@@ -780,7 +782,7 @@ static int tegra210_i2s_platform_probe(struct platform_device *pdev)
|
||||
struct property *prop;
|
||||
void __iomem *regs;
|
||||
int ret = 0, count = 0, num_supplies;
|
||||
const char *supply;
|
||||
const char *supply, *prod_name;
|
||||
|
||||
match = of_match_device(tegra210_i2s_of_match, &pdev->dev);
|
||||
if (!match) {
|
||||
@@ -892,6 +894,9 @@ static int tegra210_i2s_platform_probe(struct platform_device *pdev)
|
||||
of_property_read_bool(pdev->dev.of_node,
|
||||
"enable-cya");
|
||||
|
||||
if (of_property_read_string(np, "prod-name", &prod_name) == 0)
|
||||
tegra_pinctrl_config_prod(&pdev->dev, prod_name);
|
||||
|
||||
num_supplies = of_property_count_strings(np, "regulator-supplies");
|
||||
if (num_supplies > 0) {
|
||||
i2s->num_supplies = num_supplies;
|
||||
|
||||
Reference in New Issue
Block a user