diff options
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/Kconfig | 2 | ||||
-rw-r--r-- | sound/soc/pxa/brownstone.c | 7 | ||||
-rw-r--r-- | sound/soc/pxa/hx4700.c | 9 | ||||
-rw-r--r-- | sound/soc/pxa/palm27x.c | 8 | ||||
-rw-r--r-- | sound/soc/pxa/poodle.c | 1 | ||||
-rw-r--r-- | sound/soc/pxa/pxa-ssp.c | 3 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-pcm.c | 2 | ||||
-rw-r--r-- | sound/soc/pxa/ttc-dkb.c | 4 |
8 files changed, 12 insertions, 24 deletions
diff --git a/sound/soc/pxa/Kconfig b/sound/soc/pxa/Kconfig index 6473052b6899..6acb225ec6fd 100644 --- a/sound/soc/pxa/Kconfig +++ b/sound/soc/pxa/Kconfig | |||
@@ -140,7 +140,7 @@ config SND_PXA910_SOC | |||
140 | 140 | ||
141 | config SND_SOC_TTC_DKB | 141 | config SND_SOC_TTC_DKB |
142 | bool "SoC Audio support for TTC DKB" | 142 | bool "SoC Audio support for TTC DKB" |
143 | depends on SND_PXA910_SOC && MACH_TTC_DKB | 143 | depends on SND_PXA910_SOC && MACH_TTC_DKB && I2C=y |
144 | select PXA_SSP | 144 | select PXA_SSP |
145 | select SND_PXA_SOC_SSP | 145 | select SND_PXA_SOC_SSP |
146 | select SND_MMP_SOC | 146 | select SND_MMP_SOC |
diff --git a/sound/soc/pxa/brownstone.c b/sound/soc/pxa/brownstone.c index 08acdc236bf8..c8dd53f9c35d 100644 --- a/sound/soc/pxa/brownstone.c +++ b/sound/soc/pxa/brownstone.c | |||
@@ -50,11 +50,6 @@ static int brownstone_wm8994_init(struct snd_soc_pcm_runtime *rtd) | |||
50 | struct snd_soc_codec *codec = rtd->codec; | 50 | struct snd_soc_codec *codec = rtd->codec; |
51 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 51 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
52 | 52 | ||
53 | snd_soc_dapm_enable_pin(dapm, "Ext Spk"); | ||
54 | snd_soc_dapm_enable_pin(dapm, "Headset Stereophone"); | ||
55 | snd_soc_dapm_enable_pin(dapm, "Headset Mic"); | ||
56 | snd_soc_dapm_enable_pin(dapm, "Main Mic"); | ||
57 | |||
58 | /* set endpoints to not connected */ | 53 | /* set endpoints to not connected */ |
59 | snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); | 54 | snd_soc_dapm_nc_pin(dapm, "HPOUT2P"); |
60 | snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); | 55 | snd_soc_dapm_nc_pin(dapm, "HPOUT2N"); |
@@ -70,8 +65,6 @@ static int brownstone_wm8994_init(struct snd_soc_pcm_runtime *rtd) | |||
70 | snd_soc_dapm_nc_pin(dapm, "IN2RP:VXRP"); | 65 | snd_soc_dapm_nc_pin(dapm, "IN2RP:VXRP"); |
71 | snd_soc_dapm_nc_pin(dapm, "IN2LN"); | 66 | snd_soc_dapm_nc_pin(dapm, "IN2LN"); |
72 | 67 | ||
73 | snd_soc_dapm_sync(dapm); | ||
74 | |||
75 | return 0; | 68 | return 0; |
76 | } | 69 | } |
77 | 70 | ||
diff --git a/sound/soc/pxa/hx4700.c b/sound/soc/pxa/hx4700.c index dcc9b04bd92c..05559a725bec 100644 --- a/sound/soc/pxa/hx4700.c +++ b/sound/soc/pxa/hx4700.c | |||
@@ -152,6 +152,13 @@ static int hx4700_ak4641_init(struct snd_soc_pcm_runtime *rtd) | |||
152 | return err; | 152 | return err; |
153 | } | 153 | } |
154 | 154 | ||
155 | static int hx4700_card_remove(struct snd_soc_card *card) | ||
156 | { | ||
157 | snd_soc_jack_free_gpios(&hs_jack, 1, &hs_jack_gpio); | ||
158 | |||
159 | return 0; | ||
160 | } | ||
161 | |||
155 | /* hx4700 digital audio interface glue - connects codec <--> CPU */ | 162 | /* hx4700 digital audio interface glue - connects codec <--> CPU */ |
156 | static struct snd_soc_dai_link hx4700_dai = { | 163 | static struct snd_soc_dai_link hx4700_dai = { |
157 | .name = "ak4641", | 164 | .name = "ak4641", |
@@ -170,6 +177,7 @@ static struct snd_soc_dai_link hx4700_dai = { | |||
170 | static struct snd_soc_card snd_soc_card_hx4700 = { | 177 | static struct snd_soc_card snd_soc_card_hx4700 = { |
171 | .name = "iPAQ hx4700", | 178 | .name = "iPAQ hx4700", |
172 | .owner = THIS_MODULE, | 179 | .owner = THIS_MODULE, |
180 | .remove = hx4700_card_remove, | ||
173 | .dai_link = &hx4700_dai, | 181 | .dai_link = &hx4700_dai, |
174 | .num_links = 1, | 182 | .num_links = 1, |
175 | .dapm_widgets = hx4700_dapm_widgets, | 183 | .dapm_widgets = hx4700_dapm_widgets, |
@@ -206,7 +214,6 @@ static int hx4700_audio_probe(struct platform_device *pdev) | |||
206 | 214 | ||
207 | static int hx4700_audio_remove(struct platform_device *pdev) | 215 | static int hx4700_audio_remove(struct platform_device *pdev) |
208 | { | 216 | { |
209 | snd_soc_jack_free_gpios(&hs_jack, 1, &hs_jack_gpio); | ||
210 | snd_soc_unregister_card(&snd_soc_card_hx4700); | 217 | snd_soc_unregister_card(&snd_soc_card_hx4700); |
211 | 218 | ||
212 | gpio_set_value(GPIO92_HX4700_HP_DRIVER, 0); | 219 | gpio_set_value(GPIO92_HX4700_HP_DRIVER, 0); |
diff --git a/sound/soc/pxa/palm27x.c b/sound/soc/pxa/palm27x.c index 3284c4b901cb..17f9521ff6ea 100644 --- a/sound/soc/pxa/palm27x.c +++ b/sound/soc/pxa/palm27x.c | |||
@@ -79,14 +79,6 @@ static int palm27x_ac97_init(struct snd_soc_pcm_runtime *rtd) | |||
79 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 79 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
80 | int err; | 80 | int err; |
81 | 81 | ||
82 | /* connected pins */ | ||
83 | if (machine_is_palmld()) | ||
84 | snd_soc_dapm_enable_pin(dapm, "MIC1"); | ||
85 | snd_soc_dapm_enable_pin(dapm, "HPOUTL"); | ||
86 | snd_soc_dapm_enable_pin(dapm, "HPOUTR"); | ||
87 | snd_soc_dapm_enable_pin(dapm, "LOUT2"); | ||
88 | snd_soc_dapm_enable_pin(dapm, "ROUT2"); | ||
89 | |||
90 | /* not connected pins */ | 82 | /* not connected pins */ |
91 | snd_soc_dapm_nc_pin(dapm, "OUT3"); | 83 | snd_soc_dapm_nc_pin(dapm, "OUT3"); |
92 | snd_soc_dapm_nc_pin(dapm, "MONOOUT"); | 84 | snd_soc_dapm_nc_pin(dapm, "MONOOUT"); |
diff --git a/sound/soc/pxa/poodle.c b/sound/soc/pxa/poodle.c index c6bdc6c0eff6..21f340065318 100644 --- a/sound/soc/pxa/poodle.c +++ b/sound/soc/pxa/poodle.c | |||
@@ -230,7 +230,6 @@ static int poodle_wm8731_init(struct snd_soc_pcm_runtime *rtd) | |||
230 | 230 | ||
231 | snd_soc_dapm_nc_pin(dapm, "LLINEIN"); | 231 | snd_soc_dapm_nc_pin(dapm, "LLINEIN"); |
232 | snd_soc_dapm_nc_pin(dapm, "RLINEIN"); | 232 | snd_soc_dapm_nc_pin(dapm, "RLINEIN"); |
233 | snd_soc_dapm_enable_pin(dapm, "MICIN"); | ||
234 | 233 | ||
235 | return 0; | 234 | return 0; |
236 | } | 235 | } |
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index a3119a00d8fa..199a8b377553 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c | |||
@@ -34,8 +34,6 @@ | |||
34 | #include <sound/pxa2xx-lib.h> | 34 | #include <sound/pxa2xx-lib.h> |
35 | #include <sound/dmaengine_pcm.h> | 35 | #include <sound/dmaengine_pcm.h> |
36 | 36 | ||
37 | #include <mach/hardware.h> | ||
38 | |||
39 | #include "../../arm/pxa2xx-pcm.h" | 37 | #include "../../arm/pxa2xx-pcm.h" |
40 | #include "pxa-ssp.h" | 38 | #include "pxa-ssp.h" |
41 | 39 | ||
@@ -810,6 +808,7 @@ static const struct snd_soc_component_driver pxa_ssp_component = { | |||
810 | #ifdef CONFIG_OF | 808 | #ifdef CONFIG_OF |
811 | static const struct of_device_id pxa_ssp_of_ids[] = { | 809 | static const struct of_device_id pxa_ssp_of_ids[] = { |
812 | { .compatible = "mrvl,pxa-ssp-dai" }, | 810 | { .compatible = "mrvl,pxa-ssp-dai" }, |
811 | {} | ||
813 | }; | 812 | }; |
814 | #endif | 813 | #endif |
815 | 814 | ||
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index d58b09f4f7a4..42f2f0175981 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -15,6 +15,8 @@ | |||
15 | #include <linux/dmaengine.h> | 15 | #include <linux/dmaengine.h> |
16 | #include <linux/of.h> | 16 | #include <linux/of.h> |
17 | 17 | ||
18 | #include <mach/dma.h> | ||
19 | |||
18 | #include <sound/core.h> | 20 | #include <sound/core.h> |
19 | #include <sound/soc.h> | 21 | #include <sound/soc.h> |
20 | #include <sound/pxa2xx-lib.h> | 22 | #include <sound/pxa2xx-lib.h> |
diff --git a/sound/soc/pxa/ttc-dkb.c b/sound/soc/pxa/ttc-dkb.c index 0b535b570622..9d7c5b7e9539 100644 --- a/sound/soc/pxa/ttc-dkb.c +++ b/sound/soc/pxa/ttc-dkb.c | |||
@@ -78,10 +78,6 @@ static int ttc_pm860x_init(struct snd_soc_pcm_runtime *rtd) | |||
78 | struct snd_soc_codec *codec = rtd->codec; | 78 | struct snd_soc_codec *codec = rtd->codec; |
79 | struct snd_soc_dapm_context *dapm = &codec->dapm; | 79 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
80 | 80 | ||
81 | /* connected pins */ | ||
82 | snd_soc_dapm_enable_pin(dapm, "Ext Speaker"); | ||
83 | snd_soc_dapm_enable_pin(dapm, "Ext Mic 1"); | ||
84 | snd_soc_dapm_enable_pin(dapm, "Ext Mic 3"); | ||
85 | snd_soc_dapm_disable_pin(dapm, "Headset Mic 2"); | 81 | snd_soc_dapm_disable_pin(dapm, "Headset Mic 2"); |
86 | snd_soc_dapm_disable_pin(dapm, "Headset Stereophone"); | 82 | snd_soc_dapm_disable_pin(dapm, "Headset Stereophone"); |
87 | 83 | ||