aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-08-22 09:28:52 -0400
committerMark Brown <broonie@linaro.org>2013-08-22 09:28:52 -0400
commit840f0e43782ed132da0db00982a41b003ff6a179 (patch)
treeaeea5e732afbf453a0777edcd4ee82a0eda7fd76 /sound/soc/tegra
parent049d41409d7089a7a128950231642055b963f0e4 (diff)
parentb4345006423d45622bc17198a598baefcea27c93 (diff)
Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next
Diffstat (limited to 'sound/soc/tegra')
-rw-r--r--sound/soc/tegra/Kconfig14
-rw-r--r--sound/soc/tegra/tegra20_ac97.c8
-rw-r--r--sound/soc/tegra/tegra_alc5632.c2
-rw-r--r--sound/soc/tegra/tegra_rt5640.c1
-rw-r--r--sound/soc/tegra/tegra_wm8753.c2
-rw-r--r--sound/soc/tegra/trimslice.c2
6 files changed, 8 insertions, 21 deletions
diff --git a/sound/soc/tegra/Kconfig b/sound/soc/tegra/Kconfig
index 995b120c2cd0..8fc653ca3ab4 100644
--- a/sound/soc/tegra/Kconfig
+++ b/sound/soc/tegra/Kconfig
@@ -1,8 +1,8 @@
1config SND_SOC_TEGRA 1config SND_SOC_TEGRA
2 tristate "SoC Audio for the Tegra System-on-Chip" 2 tristate "SoC Audio for the Tegra System-on-Chip"
3 depends on ARCH_TEGRA && TEGRA20_APB_DMA 3 depends on (ARCH_TEGRA && TEGRA20_APB_DMA) || COMPILE_TEST
4 select REGMAP_MMIO 4 select REGMAP_MMIO
5 select SND_SOC_GENERIC_DMAENGINE_PCM if TEGRA20_APB_DMA 5 select SND_SOC_GENERIC_DMAENGINE_PCM
6 help 6 help
7 Say Y or M here if you want support for SoC audio on Tegra. 7 Say Y or M here if you want support for SoC audio on Tegra.
8 8
@@ -61,7 +61,7 @@ config SND_SOC_TEGRA30_I2S
61 61
62config SND_SOC_TEGRA_RT5640 62config SND_SOC_TEGRA_RT5640
63 tristate "SoC Audio support for Tegra boards using an RT5640 codec" 63 tristate "SoC Audio support for Tegra boards using an RT5640 codec"
64 depends on SND_SOC_TEGRA && I2C 64 depends on SND_SOC_TEGRA && I2C && GPIOLIB
65 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC 65 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
66 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC 66 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
67 select SND_SOC_RT5640 67 select SND_SOC_RT5640
@@ -71,7 +71,7 @@ config SND_SOC_TEGRA_RT5640
71 71
72config SND_SOC_TEGRA_WM8753 72config SND_SOC_TEGRA_WM8753
73 tristate "SoC Audio support for Tegra boards using a WM8753 codec" 73 tristate "SoC Audio support for Tegra boards using a WM8753 codec"
74 depends on SND_SOC_TEGRA && I2C 74 depends on SND_SOC_TEGRA && I2C && GPIOLIB
75 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC 75 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
76 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC 76 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
77 select SND_SOC_WM8753 77 select SND_SOC_WM8753
@@ -81,7 +81,7 @@ config SND_SOC_TEGRA_WM8753
81 81
82config SND_SOC_TEGRA_WM8903 82config SND_SOC_TEGRA_WM8903
83 tristate "SoC Audio support for Tegra boards using a WM8903 codec" 83 tristate "SoC Audio support for Tegra boards using a WM8903 codec"
84 depends on SND_SOC_TEGRA && I2C 84 depends on SND_SOC_TEGRA && I2C && GPIOLIB
85 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC 85 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
86 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC 86 select SND_SOC_TEGRA30_I2S if ARCH_TEGRA_3x_SOC
87 select SND_SOC_WM8903 87 select SND_SOC_WM8903
@@ -92,7 +92,7 @@ config SND_SOC_TEGRA_WM8903
92 92
93config SND_SOC_TEGRA_WM9712 93config SND_SOC_TEGRA_WM9712
94 tristate "SoC Audio support for Tegra boards using a WM9712 codec" 94 tristate "SoC Audio support for Tegra boards using a WM9712 codec"
95 depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC 95 depends on SND_SOC_TEGRA && ARCH_TEGRA_2x_SOC && GPIOLIB
96 select SND_SOC_TEGRA20_AC97 96 select SND_SOC_TEGRA20_AC97
97 select SND_SOC_WM9712 97 select SND_SOC_WM9712
98 help 98 help
@@ -110,7 +110,7 @@ config SND_SOC_TEGRA_TRIMSLICE
110 110
111config SND_SOC_TEGRA_ALC5632 111config SND_SOC_TEGRA_ALC5632
112 tristate "SoC Audio support for Tegra boards using an ALC5632 codec" 112 tristate "SoC Audio support for Tegra boards using an ALC5632 codec"
113 depends on SND_SOC_TEGRA && I2C 113 depends on SND_SOC_TEGRA && I2C && GPIOLIB
114 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC 114 select SND_SOC_TEGRA20_I2S if ARCH_TEGRA_2x_SOC
115 select SND_SOC_ALC5632 115 select SND_SOC_ALC5632
116 help 116 help
diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c
index 6c486625321b..ae27bcd586d2 100644
--- a/sound/soc/tegra/tegra20_ac97.c
+++ b/sound/soc/tegra/tegra20_ac97.c
@@ -334,12 +334,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
334 } 334 }
335 335
336 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); 336 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
337 if (!mem) {
338 dev_err(&pdev->dev, "No memory resource\n");
339 ret = -ENODEV;
340 goto err_clk_put;
341 }
342
343 regs = devm_ioremap_resource(&pdev->dev, mem); 337 regs = devm_ioremap_resource(&pdev->dev, mem);
344 if (IS_ERR(regs)) { 338 if (IS_ERR(regs)) {
345 ret = PTR_ERR(regs); 339 ret = PTR_ERR(regs);
@@ -432,8 +426,6 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev)
432 426
433 return 0; 427 return 0;
434 428
435err_unregister_pcm:
436 tegra_pcm_platform_unregister(&pdev->dev);
437err_unregister_component: 429err_unregister_component:
438 snd_soc_unregister_component(&pdev->dev); 430 snd_soc_unregister_component(&pdev->dev);
439err_asoc_utils_fini: 431err_asoc_utils_fini:
diff --git a/sound/soc/tegra/tegra_alc5632.c b/sound/soc/tegra/tegra_alc5632.c
index 48d05d9e1002..c61ea3a1030f 100644
--- a/sound/soc/tegra/tegra_alc5632.c
+++ b/sound/soc/tegra/tegra_alc5632.c
@@ -13,8 +13,6 @@
13 * published by the Free Software Foundation. 13 * published by the Free Software Foundation.
14 */ 14 */
15 15
16#include <asm/mach-types.h>
17
18#include <linux/module.h> 16#include <linux/module.h>
19#include <linux/platform_device.h> 17#include <linux/platform_device.h>
20#include <linux/slab.h> 18#include <linux/slab.h>
diff --git a/sound/soc/tegra/tegra_rt5640.c b/sound/soc/tegra/tegra_rt5640.c
index 08794f915a94..4511c5a875ec 100644
--- a/sound/soc/tegra/tegra_rt5640.c
+++ b/sound/soc/tegra/tegra_rt5640.c
@@ -99,6 +99,7 @@ static struct snd_soc_jack_gpio tegra_rt5640_hp_jack_gpio = {
99static const struct snd_soc_dapm_widget tegra_rt5640_dapm_widgets[] = { 99static const struct snd_soc_dapm_widget tegra_rt5640_dapm_widgets[] = {
100 SND_SOC_DAPM_HP("Headphones", NULL), 100 SND_SOC_DAPM_HP("Headphones", NULL),
101 SND_SOC_DAPM_SPK("Speakers", NULL), 101 SND_SOC_DAPM_SPK("Speakers", NULL),
102 SND_SOC_DAPM_MIC("Mic Jack", NULL),
102}; 103};
103 104
104static const struct snd_kcontrol_new tegra_rt5640_controls[] = { 105static const struct snd_kcontrol_new tegra_rt5640_controls[] = {
diff --git a/sound/soc/tegra/tegra_wm8753.c b/sound/soc/tegra/tegra_wm8753.c
index f87fc53e9b8c..8e774d1a243c 100644
--- a/sound/soc/tegra/tegra_wm8753.c
+++ b/sound/soc/tegra/tegra_wm8753.c
@@ -28,8 +28,6 @@
28 * 28 *
29 */ 29 */
30 30
31#include <asm/mach-types.h>
32
33#include <linux/module.h> 31#include <linux/module.h>
34#include <linux/platform_device.h> 32#include <linux/platform_device.h>
35#include <linux/slab.h> 33#include <linux/slab.h>
diff --git a/sound/soc/tegra/trimslice.c b/sound/soc/tegra/trimslice.c
index 05c68aab5cf0..734bfcd21148 100644
--- a/sound/soc/tegra/trimslice.c
+++ b/sound/soc/tegra/trimslice.c
@@ -24,8 +24,6 @@
24 * 24 *
25 */ 25 */
26 26
27#include <asm/mach-types.h>
28
29#include <linux/module.h> 27#include <linux/module.h>
30#include <linux/of.h> 28#include <linux/of.h>
31#include <linux/platform_device.h> 29#include <linux/platform_device.h>