aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 17:58:40 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 17:58:40 -0500
commitb274776c54c320763bc12eb035c0e244f76ccb43 (patch)
treec75b70d0824a7ae029229b19d61884039abf2127 /sound
parentb24174b0cbbe383c5bb6097aeb24480b8fd2d338 (diff)
parent3b1209e7994c4d31ff9932a7f566ae1c96b3c443 (diff)
Merge tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC cleanups from Arnd Bergmann: "A large number of cleanups, all over the platforms. This is dominated largely by the Samsung platforms (s3c, s5p, exynos) and a few of the others moving code out of arch/arm into more appropriate subsystems. The clocksource and irqchip drivers are now abstracted to the point where platforms that are already cleaned up do not need to even specify the driver they use, it can all get configured from the device tree as we do for normal device drivers. The clocksource changes basically touch every single platform in the process. We further clean up the use of platform specific header files here, with the goal of turning more of the platforms over to being "multiplatform" enabled, which implies that they cannot expose their headers to architecture independent code any more. It is expected that no functional changes are part of the cleanup. The overall reduction in total code lines is mostly the result of removing broken and obsolete code." * tag 'cleanup' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (133 commits) ARM: mvebu: correct gated clock documentation ARM: kirkwood: add missing include for nsa310 ARM: exynos: move exynos4210-combiner to drivers/irqchip mfd: db8500-prcmu: update resource passing drivers/db8500-cpufreq: delete dangling include ARM: at91: remove NEOCORE 926 board sunxi: Cleanup the reset code and add meaningful registers defines ARM: S3C24XX: header mach/regs-mem.h local ARM: S3C24XX: header mach/regs-power.h local ARM: S3C24XX: header mach/regs-s3c2412-mem.h local ARM: S3C24XX: Remove plat-s3c24xx directory in arch/arm/ ARM: S3C24XX: transform s3c2443 subirqs into new structure ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs ARM: S3C24XX: move s3c2443 irq code to irq.c ARM: S3C24XX: transform s3c2416 irqs into new structure ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs ARM: S3C24XX: move s3c2416 irq init to common irq code ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property ARM: S3C24XX: Move irq syscore-ops to irq-pm clocksource: always define CLOCKSOURCE_OF_DECLARE ...
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/samsung/h1940_uda1380.c13
-rw-r--r--sound/soc/samsung/neo1973_wm8753.c8
2 files changed, 10 insertions, 11 deletions
diff --git a/sound/soc/samsung/h1940_uda1380.c b/sound/soc/samsung/h1940_uda1380.c
index 3870e9678b5d..15a3817aa5c8 100644
--- a/sound/soc/samsung/h1940_uda1380.c
+++ b/sound/soc/samsung/h1940_uda1380.c
@@ -21,7 +21,6 @@
21#include <sound/jack.h> 21#include <sound/jack.h>
22 22
23#include <plat/regs-iis.h> 23#include <plat/regs-iis.h>
24#include <mach/h1940-latch.h>
25#include <asm/mach-types.h> 24#include <asm/mach-types.h>
26 25
27#include "s3c24xx-i2s.h" 26#include "s3c24xx-i2s.h"
@@ -147,9 +146,9 @@ static int h1940_spk_power(struct snd_soc_dapm_widget *w,
147 struct snd_kcontrol *kcontrol, int event) 146 struct snd_kcontrol *kcontrol, int event)
148{ 147{
149 if (SND_SOC_DAPM_EVENT_ON(event)) 148 if (SND_SOC_DAPM_EVENT_ON(event))
150 gpio_set_value(H1940_LATCH_AUDIO_POWER, 1); 149 gpio_set_value(S3C_GPIO_END + 9, 1);
151 else 150 else
152 gpio_set_value(H1940_LATCH_AUDIO_POWER, 0); 151 gpio_set_value(S3C_GPIO_END + 9, 0);
153 152
154 return 0; 153 return 0;
155} 154}
@@ -233,11 +232,11 @@ static int __init h1940_init(void)
233 return -ENODEV; 232 return -ENODEV;
234 233
235 /* configure some gpios */ 234 /* configure some gpios */
236 ret = gpio_request(H1940_LATCH_AUDIO_POWER, "speaker-power"); 235 ret = gpio_request(S3C_GPIO_END + 9, "speaker-power");
237 if (ret) 236 if (ret)
238 goto err_out; 237 goto err_out;
239 238
240 ret = gpio_direction_output(H1940_LATCH_AUDIO_POWER, 0); 239 ret = gpio_direction_output(S3C_GPIO_END + 9, 0);
241 if (ret) 240 if (ret)
242 goto err_gpio; 241 goto err_gpio;
243 242
@@ -258,7 +257,7 @@ static int __init h1940_init(void)
258err_plat: 257err_plat:
259 platform_device_put(s3c24xx_snd_device); 258 platform_device_put(s3c24xx_snd_device);
260err_gpio: 259err_gpio:
261 gpio_free(H1940_LATCH_AUDIO_POWER); 260 gpio_free(S3C_GPIO_END + 9);
262 261
263err_out: 262err_out:
264 return ret; 263 return ret;
@@ -269,7 +268,7 @@ static void __exit h1940_exit(void)
269 platform_device_unregister(s3c24xx_snd_device); 268 platform_device_unregister(s3c24xx_snd_device);
270 snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios), 269 snd_soc_jack_free_gpios(&hp_jack, ARRAY_SIZE(hp_jack_gpios),
271 hp_jack_gpios); 270 hp_jack_gpios);
272 gpio_free(H1940_LATCH_AUDIO_POWER); 271 gpio_free(S3C_GPIO_END + 9);
273} 272}
274 273
275module_init(h1940_init); 274module_init(h1940_init);
diff --git a/sound/soc/samsung/neo1973_wm8753.c b/sound/soc/samsung/neo1973_wm8753.c
index c7e965f80d2e..a301d8cfaa34 100644
--- a/sound/soc/samsung/neo1973_wm8753.c
+++ b/sound/soc/samsung/neo1973_wm8753.c
@@ -237,7 +237,7 @@ static int lm4853_set_spk(struct snd_kcontrol *kcontrol,
237{ 237{
238 gta02_speaker_enabled = ucontrol->value.integer.value[0]; 238 gta02_speaker_enabled = ucontrol->value.integer.value[0];
239 239
240 gpio_set_value(GTA02_GPIO_HP_IN, !gta02_speaker_enabled); 240 gpio_set_value(S3C2410_GPJ(2), !gta02_speaker_enabled);
241 241
242 return 0; 242 return 0;
243} 243}
@@ -252,7 +252,7 @@ static int lm4853_get_spk(struct snd_kcontrol *kcontrol,
252static int lm4853_event(struct snd_soc_dapm_widget *w, 252static int lm4853_event(struct snd_soc_dapm_widget *w,
253 struct snd_kcontrol *k, int event) 253 struct snd_kcontrol *k, int event)
254{ 254{
255 gpio_set_value(GTA02_GPIO_AMP_SHUT, SND_SOC_DAPM_EVENT_OFF(event)); 255 gpio_set_value(S3C2410_GPJ(1), SND_SOC_DAPM_EVENT_OFF(event));
256 256
257 return 0; 257 return 0;
258} 258}
@@ -396,8 +396,8 @@ static struct snd_soc_codec_conf neo1973_codec_conf[] = {
396}; 396};
397 397
398static const struct gpio neo1973_gta02_gpios[] = { 398static const struct gpio neo1973_gta02_gpios[] = {
399 { GTA02_GPIO_HP_IN, GPIOF_OUT_INIT_HIGH, "GTA02_HP_IN" }, 399 { S3C2410_GPJ(2), GPIOF_OUT_INIT_HIGH, "GTA02_HP_IN" },
400 { GTA02_GPIO_AMP_SHUT, GPIOF_OUT_INIT_HIGH, "GTA02_AMP_SHUT" }, 400 { S3C2410_GPJ(1), GPIOF_OUT_INIT_HIGH, "GTA02_AMP_SHUT" },
401}; 401};
402 402
403static struct snd_soc_card neo1973 = { 403static struct snd_soc_card neo1973 = {