diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-03-05 09:30:53 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-05 19:03:00 -0500 |
commit | 3c77c29c49c6213c55ad8dacc687817b3568c0ce (patch) | |
tree | aa2470aafbd4434d3d7429265ed70e163d45b7f8 | |
parent | 3bc34a6143359d2bf19a5e79b9017aeffc6660ad (diff) |
ASoC: imx: move audmux driver into sound/soc/imx
As audmux becomes a platform driver and its callers are all ASoC
machine drivers, there is no reason to keep it in arch folder, so
move it to sound/soc/imx.
One bonus point would be those ASoC machine drivers stop including
mach/audmux.h, since it's been moved to sound/soc/imx/imx-audmux.h.
This should be a move to the right direction in terms of single kernel
image goal.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | arch/arm/mach-imx/Kconfig | 6 | ||||
-rw-r--r-- | arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c | 1 | ||||
-rw-r--r-- | arch/arm/plat-mxc/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/plat-mxc/Makefile | 1 | ||||
-rw-r--r-- | sound/soc/imx/Kconfig | 7 | ||||
-rw-r--r-- | sound/soc/imx/Makefile | 2 | ||||
-rw-r--r-- | sound/soc/imx/eukrea-tlv320.c | 2 | ||||
-rw-r--r-- | sound/soc/imx/imx-audmux.c (renamed from arch/arm/plat-mxc/audmux.c) | 3 | ||||
-rw-r--r-- | sound/soc/imx/imx-audmux.h (renamed from arch/arm/plat-mxc/include/mach/audmux.h) | 6 | ||||
-rw-r--r-- | sound/soc/imx/mx27vis-aic32x4.c | 2 | ||||
-rw-r--r-- | sound/soc/imx/phycore-ac97.c | 3 | ||||
-rw-r--r-- | sound/soc/imx/wm1133-ev1.c | 3 |
12 files changed, 19 insertions, 20 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index 495a8543e71e..3919fba52ac8 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -46,7 +46,6 @@ config SOC_IMX21 | |||
46 | bool | 46 | bool |
47 | select MACH_MX21 | 47 | select MACH_MX21 |
48 | select CPU_ARM926T | 48 | select CPU_ARM926T |
49 | select ARCH_MXC_AUDMUX | ||
50 | select IMX_HAVE_DMA_V1 | 49 | select IMX_HAVE_DMA_V1 |
51 | select IMX_HAVE_IOMUX_V1 | 50 | select IMX_HAVE_IOMUX_V1 |
52 | select MXC_AVIC | 51 | select MXC_AVIC |
@@ -55,7 +54,6 @@ config SOC_IMX25 | |||
55 | bool | 54 | bool |
56 | select ARCH_MX25 | 55 | select ARCH_MX25 |
57 | select CPU_ARM926T | 56 | select CPU_ARM926T |
58 | select ARCH_MXC_AUDMUX | ||
59 | select ARCH_MXC_IOMUX_V3 | 57 | select ARCH_MXC_IOMUX_V3 |
60 | select MXC_AVIC | 58 | select MXC_AVIC |
61 | 59 | ||
@@ -63,7 +61,6 @@ config SOC_IMX27 | |||
63 | bool | 61 | bool |
64 | select MACH_MX27 | 62 | select MACH_MX27 |
65 | select CPU_ARM926T | 63 | select CPU_ARM926T |
66 | select ARCH_MXC_AUDMUX | ||
67 | select IMX_HAVE_DMA_V1 | 64 | select IMX_HAVE_DMA_V1 |
68 | select IMX_HAVE_IOMUX_V1 | 65 | select IMX_HAVE_IOMUX_V1 |
69 | select MXC_AVIC | 66 | select MXC_AVIC |
@@ -72,7 +69,6 @@ config SOC_IMX31 | |||
72 | bool | 69 | bool |
73 | select CPU_V6 | 70 | select CPU_V6 |
74 | select IMX_HAVE_PLATFORM_MXC_RNGA | 71 | select IMX_HAVE_PLATFORM_MXC_RNGA |
75 | select ARCH_MXC_AUDMUX | ||
76 | select MXC_AVIC | 72 | select MXC_AVIC |
77 | select SMP_ON_UP if SMP | 73 | select SMP_ON_UP if SMP |
78 | 74 | ||
@@ -80,7 +76,6 @@ config SOC_IMX35 | |||
80 | bool | 76 | bool |
81 | select CPU_V6 | 77 | select CPU_V6 |
82 | select ARCH_MXC_IOMUX_V3 | 78 | select ARCH_MXC_IOMUX_V3 |
83 | select ARCH_MXC_AUDMUX | ||
84 | select HAVE_EPIT | 79 | select HAVE_EPIT |
85 | select MXC_AVIC | 80 | select MXC_AVIC |
86 | select SMP_ON_UP if SMP | 81 | select SMP_ON_UP if SMP |
@@ -89,7 +84,6 @@ config SOC_IMX5 | |||
89 | select CPU_V7 | 84 | select CPU_V7 |
90 | select MXC_TZIC | 85 | select MXC_TZIC |
91 | select ARCH_MXC_IOMUX_V3 | 86 | select ARCH_MXC_IOMUX_V3 |
92 | select ARCH_MXC_AUDMUX | ||
93 | select ARCH_HAS_CPUFREQ | 87 | select ARCH_HAS_CPUFREQ |
94 | select ARCH_MX5 | 88 | select ARCH_MX5 |
95 | bool | 89 | bool |
diff --git a/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c b/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c index d817fc80b986..aaa592fdb9ce 100644 --- a/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimxsd-baseboard.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/common.h> | 38 | #include <mach/common.h> |
39 | #include <mach/iomux-mx51.h> | 39 | #include <mach/iomux-mx51.h> |
40 | #include <mach/audmux.h> | ||
41 | 40 | ||
42 | #include "devices-imx51.h" | 41 | #include "devices-imx51.h" |
43 | 42 | ||
diff --git a/arch/arm/plat-mxc/Kconfig b/arch/arm/plat-mxc/Kconfig index 0461d16e5ca6..c722f9ce6918 100644 --- a/arch/arm/plat-mxc/Kconfig +++ b/arch/arm/plat-mxc/Kconfig | |||
@@ -88,9 +88,6 @@ config IMX_HAVE_IOMUX_V1 | |||
88 | config ARCH_MXC_IOMUX_V3 | 88 | config ARCH_MXC_IOMUX_V3 |
89 | bool | 89 | bool |
90 | 90 | ||
91 | config ARCH_MXC_AUDMUX | ||
92 | bool | ||
93 | |||
94 | config IRAM_ALLOC | 91 | config IRAM_ALLOC |
95 | bool | 92 | bool |
96 | select GENERIC_ALLOCATOR | 93 | select GENERIC_ALLOCATOR |
diff --git a/arch/arm/plat-mxc/Makefile b/arch/arm/plat-mxc/Makefile index 530c81dfd9be..e81290c27c65 100644 --- a/arch/arm/plat-mxc/Makefile +++ b/arch/arm/plat-mxc/Makefile | |||
@@ -14,7 +14,6 @@ obj-$(CONFIG_IRAM_ALLOC) += iram_alloc.o | |||
14 | obj-$(CONFIG_MXC_PWM) += pwm.o | 14 | obj-$(CONFIG_MXC_PWM) += pwm.o |
15 | obj-$(CONFIG_MXC_ULPI) += ulpi.o | 15 | obj-$(CONFIG_MXC_ULPI) += ulpi.o |
16 | obj-$(CONFIG_MXC_USE_EPIT) += epit.o | 16 | obj-$(CONFIG_MXC_USE_EPIT) += epit.o |
17 | obj-$(CONFIG_ARCH_MXC_AUDMUX) += audmux.o | ||
18 | obj-$(CONFIG_MXC_DEBUG_BOARD) += 3ds_debugboard.o | 17 | obj-$(CONFIG_MXC_DEBUG_BOARD) += 3ds_debugboard.o |
19 | obj-$(CONFIG_CPU_FREQ_IMX) += cpufreq.o | 18 | obj-$(CONFIG_CPU_FREQ_IMX) += cpufreq.o |
20 | ifdef CONFIG_SND_IMX_SOC | 19 | ifdef CONFIG_SND_IMX_SOC |
diff --git a/sound/soc/imx/Kconfig b/sound/soc/imx/Kconfig index aa4294bf49b2..d3b716663d1d 100644 --- a/sound/soc/imx/Kconfig +++ b/sound/soc/imx/Kconfig | |||
@@ -16,11 +16,15 @@ config SND_MXC_SOC_MX2 | |||
16 | select SND_SOC_DMAENGINE_PCM | 16 | select SND_SOC_DMAENGINE_PCM |
17 | tristate | 17 | tristate |
18 | 18 | ||
19 | config SND_SOC_IMX_AUDMUX | ||
20 | tristate | ||
21 | |||
19 | config SND_MXC_SOC_WM1133_EV1 | 22 | config SND_MXC_SOC_WM1133_EV1 |
20 | tristate "Audio on the the i.MX31ADS with WM1133-EV1 fitted" | 23 | tristate "Audio on the the i.MX31ADS with WM1133-EV1 fitted" |
21 | depends on MACH_MX31ADS_WM1133_EV1 && EXPERIMENTAL | 24 | depends on MACH_MX31ADS_WM1133_EV1 && EXPERIMENTAL |
22 | select SND_SOC_WM8350 | 25 | select SND_SOC_WM8350 |
23 | select SND_MXC_SOC_FIQ | 26 | select SND_MXC_SOC_FIQ |
27 | select SND_SOC_IMX_AUDMUX | ||
24 | help | 28 | help |
25 | Enable support for audio on the i.MX31ADS with the WM1133-EV1 | 29 | Enable support for audio on the i.MX31ADS with the WM1133-EV1 |
26 | PMIC board with WM8835x fitted. | 30 | PMIC board with WM8835x fitted. |
@@ -30,6 +34,7 @@ config SND_SOC_MX27VIS_AIC32X4 | |||
30 | depends on MACH_IMX27_VISSTRIM_M10 && I2C | 34 | depends on MACH_IMX27_VISSTRIM_M10 && I2C |
31 | select SND_SOC_TLV320AIC32X4 | 35 | select SND_SOC_TLV320AIC32X4 |
32 | select SND_MXC_SOC_MX2 | 36 | select SND_MXC_SOC_MX2 |
37 | select SND_SOC_IMX_AUDMUX | ||
33 | help | 38 | help |
34 | Say Y if you want to add support for SoC audio on Visstrim SM10 | 39 | Say Y if you want to add support for SoC audio on Visstrim SM10 |
35 | board with TLV320AIC32X4 codec. | 40 | board with TLV320AIC32X4 codec. |
@@ -40,6 +45,7 @@ config SND_SOC_PHYCORE_AC97 | |||
40 | select SND_SOC_AC97_BUS | 45 | select SND_SOC_AC97_BUS |
41 | select SND_SOC_WM9712 | 46 | select SND_SOC_WM9712 |
42 | select SND_MXC_SOC_FIQ | 47 | select SND_MXC_SOC_FIQ |
48 | select SND_SOC_IMX_AUDMUX | ||
43 | help | 49 | help |
44 | Say Y if you want to add support for SoC audio on Phytec phyCORE | 50 | Say Y if you want to add support for SoC audio on Phytec phyCORE |
45 | and phyCARD boards in AC97 mode | 51 | and phyCARD boards in AC97 mode |
@@ -53,6 +59,7 @@ config SND_SOC_EUKREA_TLV320 | |||
53 | depends on I2C | 59 | depends on I2C |
54 | select SND_SOC_TLV320AIC23 | 60 | select SND_SOC_TLV320AIC23 |
55 | select SND_MXC_SOC_FIQ | 61 | select SND_MXC_SOC_FIQ |
62 | select SND_SOC_IMX_AUDMUX | ||
56 | help | 63 | help |
57 | Enable I2S based access to the TLV320AIC23B codec attached | 64 | Enable I2S based access to the TLV320AIC23B codec attached |
58 | to the SSI interface | 65 | to the SSI interface |
diff --git a/sound/soc/imx/Makefile b/sound/soc/imx/Makefile index d6d609ba7e24..5c40541b8315 100644 --- a/sound/soc/imx/Makefile +++ b/sound/soc/imx/Makefile | |||
@@ -2,10 +2,12 @@ | |||
2 | snd-soc-imx-objs := imx-ssi.o | 2 | snd-soc-imx-objs := imx-ssi.o |
3 | snd-soc-imx-fiq-objs := imx-pcm-fiq.o | 3 | snd-soc-imx-fiq-objs := imx-pcm-fiq.o |
4 | snd-soc-imx-mx2-objs := imx-pcm-dma-mx2.o | 4 | snd-soc-imx-mx2-objs := imx-pcm-dma-mx2.o |
5 | snd-soc-imx-audmux-objs := imx-audmux.o | ||
5 | 6 | ||
6 | obj-$(CONFIG_SND_IMX_SOC) += snd-soc-imx.o | 7 | obj-$(CONFIG_SND_IMX_SOC) += snd-soc-imx.o |
7 | obj-$(CONFIG_SND_MXC_SOC_FIQ) += snd-soc-imx-fiq.o | 8 | obj-$(CONFIG_SND_MXC_SOC_FIQ) += snd-soc-imx-fiq.o |
8 | obj-$(CONFIG_SND_MXC_SOC_MX2) += snd-soc-imx-mx2.o | 9 | obj-$(CONFIG_SND_MXC_SOC_MX2) += snd-soc-imx-mx2.o |
10 | obj-$(CONFIG_SND_SOC_IMX_AUDMUX) += snd-soc-imx-audmux.o | ||
9 | 11 | ||
10 | # i.MX Machine Support | 12 | # i.MX Machine Support |
11 | snd-soc-eukrea-tlv320-objs := eukrea-tlv320.o | 13 | snd-soc-eukrea-tlv320-objs := eukrea-tlv320.o |
diff --git a/sound/soc/imx/eukrea-tlv320.c b/sound/soc/imx/eukrea-tlv320.c index bfcb6d9768b8..b375ed4541f6 100644 --- a/sound/soc/imx/eukrea-tlv320.c +++ b/sound/soc/imx/eukrea-tlv320.c | |||
@@ -23,10 +23,10 @@ | |||
23 | #include <sound/pcm.h> | 23 | #include <sound/pcm.h> |
24 | #include <sound/soc.h> | 24 | #include <sound/soc.h> |
25 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
26 | #include <mach/audmux.h> | ||
27 | 26 | ||
28 | #include "../codecs/tlv320aic23.h" | 27 | #include "../codecs/tlv320aic23.h" |
29 | #include "imx-ssi.h" | 28 | #include "imx-ssi.h" |
29 | #include "imx-audmux.h" | ||
30 | 30 | ||
31 | #define CODEC_CLOCK 12000000 | 31 | #define CODEC_CLOCK 12000000 |
32 | 32 | ||
diff --git a/arch/arm/plat-mxc/audmux.c b/sound/soc/imx/imx-audmux.c index a8c9e04771bf..7b162662fe6b 100644 --- a/arch/arm/plat-mxc/audmux.c +++ b/sound/soc/imx/imx-audmux.c | |||
@@ -24,7 +24,8 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
26 | #include <linux/slab.h> | 26 | #include <linux/slab.h> |
27 | #include <mach/audmux.h> | 27 | |
28 | #include "imx-audmux.h" | ||
28 | 29 | ||
29 | #define DRIVER_NAME "imx-audmux" | 30 | #define DRIVER_NAME "imx-audmux" |
30 | 31 | ||
diff --git a/arch/arm/plat-mxc/include/mach/audmux.h b/sound/soc/imx/imx-audmux.h index 6fda788ed0e9..5136d9483f46 100644 --- a/arch/arm/plat-mxc/include/mach/audmux.h +++ b/sound/soc/imx/imx-audmux.h | |||
@@ -1,5 +1,5 @@ | |||
1 | #ifndef __MACH_AUDMUX_H | 1 | #ifndef __IMX_AUDMUX_H |
2 | #define __MACH_AUDMUX_H | 2 | #define __IMX_AUDMUX_H |
3 | 3 | ||
4 | #define MX27_AUDMUX_HPCR1_SSI0 0 | 4 | #define MX27_AUDMUX_HPCR1_SSI0 0 |
5 | #define MX27_AUDMUX_HPCR2_SSI1 1 | 5 | #define MX27_AUDMUX_HPCR2_SSI1 1 |
@@ -57,4 +57,4 @@ int mxc_audmux_v1_configure_port(unsigned int port, unsigned int pcr); | |||
57 | int mxc_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, | 57 | int mxc_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, |
58 | unsigned int pdcr); | 58 | unsigned int pdcr); |
59 | 59 | ||
60 | #endif /* __MACH_AUDMUX_H */ | 60 | #endif /* __IMX_AUDMUX_H */ |
diff --git a/sound/soc/imx/mx27vis-aic32x4.c b/sound/soc/imx/mx27vis-aic32x4.c index 155899c08c0c..dbfad0f62511 100644 --- a/sound/soc/imx/mx27vis-aic32x4.c +++ b/sound/soc/imx/mx27vis-aic32x4.c | |||
@@ -32,11 +32,11 @@ | |||
32 | #include <sound/soc-dapm.h> | 32 | #include <sound/soc-dapm.h> |
33 | #include <sound/tlv.h> | 33 | #include <sound/tlv.h> |
34 | #include <asm/mach-types.h> | 34 | #include <asm/mach-types.h> |
35 | #include <mach/audmux.h> | ||
36 | #include <mach/iomux-mx27.h> | 35 | #include <mach/iomux-mx27.h> |
37 | 36 | ||
38 | #include "../codecs/tlv320aic32x4.h" | 37 | #include "../codecs/tlv320aic32x4.h" |
39 | #include "imx-ssi.h" | 38 | #include "imx-ssi.h" |
39 | #include "imx-audmux.h" | ||
40 | 40 | ||
41 | #define MX27VIS_AMP_GAIN 0 | 41 | #define MX27VIS_AMP_GAIN 0 |
42 | #define MX27VIS_AMP_MUTE 1 | 42 | #define MX27VIS_AMP_MUTE 1 |
diff --git a/sound/soc/imx/phycore-ac97.c b/sound/soc/imx/phycore-ac97.c index a59692e740b4..7dab077f9c30 100644 --- a/sound/soc/imx/phycore-ac97.c +++ b/sound/soc/imx/phycore-ac97.c | |||
@@ -18,7 +18,8 @@ | |||
18 | #include <sound/pcm.h> | 18 | #include <sound/pcm.h> |
19 | #include <sound/soc.h> | 19 | #include <sound/soc.h> |
20 | #include <asm/mach-types.h> | 20 | #include <asm/mach-types.h> |
21 | #include <mach/audmux.h> | 21 | |
22 | #include "imx-audmux.h" | ||
22 | 23 | ||
23 | static struct snd_soc_card imx_phycore; | 24 | static struct snd_soc_card imx_phycore; |
24 | 25 | ||
diff --git a/sound/soc/imx/wm1133-ev1.c b/sound/soc/imx/wm1133-ev1.c index 37480c90e997..15056d6a1643 100644 --- a/sound/soc/imx/wm1133-ev1.c +++ b/sound/soc/imx/wm1133-ev1.c | |||
@@ -21,10 +21,9 @@ | |||
21 | #include <sound/pcm_params.h> | 21 | #include <sound/pcm_params.h> |
22 | #include <sound/soc.h> | 22 | #include <sound/soc.h> |
23 | 23 | ||
24 | #include <mach/audmux.h> | ||
25 | |||
26 | #include "imx-ssi.h" | 24 | #include "imx-ssi.h" |
27 | #include "../codecs/wm8350.h" | 25 | #include "../codecs/wm8350.h" |
26 | #include "imx-audmux.h" | ||
28 | 27 | ||
29 | /* There is a silicon mic on the board optionally connected via a solder pad | 28 | /* There is a silicon mic on the board optionally connected via a solder pad |
30 | * SP1. Define this to enable it. | 29 | * SP1. Define this to enable it. |