summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2013-03-13 22:25:37 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:03:01 -0700
commit1b98d785aa3380e27d765fe54ea6dff9691e0e29 (patch)
tree7750c9c31e1f5dc8ed6fe79a65997a479659e6cc /sound/pci
parent7c5e9b1739a220685ba9ebcfecd81865f3b0a31a (diff)
video: tegra: dc: fix the logic for dis ref-count.
Use simple logic to meet the requirement of use cases. All logic is implemented in powergate module. Dependency of dis partitions are transparent to client. Change-Id: I6649dc8bf704fcb763dd5b038f947ed0da2c84c4 Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/200652 Reviewed-by: Harshada Kale <hkale@nvidia.com> Tested-by: Harshada Kale <hkale@nvidia.com>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_intel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e65988de3330..4e85d74e907e 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1516,7 +1516,7 @@ static void azx_platform_enable_clocks(struct azx *chip)
int i;
#ifdef CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC)
+#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_3x_SOC)
tegra_unpowergate_partition(TEGRA_POWERGATE_DISB);
#endif
#endif
@@ -1539,7 +1539,7 @@ static void azx_platform_disable_clocks(struct azx *chip)
clk_disable(chip->platform_clks[i]);
#ifdef CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA
-#if defined(CONFIG_ARCH_TEGRA_11x_SOC)
+#if !defined(CONFIG_ARCH_TEGRA_2x_SOC) && !defined(CONFIG_ARCH_TEGRA_3x_SOC)
tegra_powergate_partition(TEGRA_POWERGATE_DISB);
#endif
#endif