summaryrefslogtreecommitdiff
path: root/sound/soc/tegra/tegra_wm8903.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/tegra/tegra_wm8903.c')
-rw-r--r--sound/soc/tegra/tegra_wm8903.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/sound/soc/tegra/tegra_wm8903.c b/sound/soc/tegra/tegra_wm8903.c
index 24f69e40f7d2..5ccf73223d6d 100644
--- a/sound/soc/tegra/tegra_wm8903.c
+++ b/sound/soc/tegra/tegra_wm8903.c
@@ -803,16 +803,21 @@ static __devinit int tegra_wm8903_driver_probe(struct platform_device *pdev)
if (ret)
goto err_free_machine;
- machine->spk_reg = regulator_get(&pdev->dev, "vdd_spk_amp");
- if (IS_ERR(machine->spk_reg)) {
- dev_info(&pdev->dev, "No speaker regulator found\n");
- machine->spk_reg = 0;
+ if (machine_is_cardhu() || machine_is_ventana()) {
+ machine->spk_reg = regulator_get(&pdev->dev, "vdd_spk_amp");
+ if (IS_ERR(machine->spk_reg)) {
+ dev_info(&pdev->dev, "No speaker regulator found\n");
+ machine->spk_reg = 0;
+ }
}
- machine->dmic_reg = regulator_get(&pdev->dev, "vdd_dmic");
- if (IS_ERR(machine->dmic_reg)) {
- dev_info(&pdev->dev, "No digital mic regulator found\n");
- machine->dmic_reg = 0;
+ if (machine_is_ventana()) {
+ machine->dmic_reg = regulator_get(&pdev->dev, "vdd_dmic");
+ if (IS_ERR(machine->dmic_reg)) {
+ dev_info(&pdev->dev, "No digital mic"
+ " regulator found\n");
+ machine->dmic_reg = 0;
+ }
}
if (machine_is_cardhu()) {