aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-02-05 00:49:03 -0500
committerOlof Johansson <olof@lixom.net>2013-02-05 00:49:29 -0500
commit5b399db0b7255561e560c7c965703336eeab8b83 (patch)
treedb6513f0e853c6c55dfc2c3ab0924d7d09980df2 /sound
parente1d7ef1cc472de30995a50ecb9c7aa3361f985f9 (diff)
parent3a71c5c375e29fc9c1493b5ead1cf36572139c3e (diff)
Merge branch 'next/cleanup-header' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into next/cleanup
From Kukjin Kim: AS I commented, this makes <mach/*.h> local so that they could be removed. * 'next/cleanup-header' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: (26 commits) ARM: S3C64XX: Fix missing header error with CONFIG_CPU_IDLE enabled ARM: S3C64XX: make regs-syscon-power.h local ARM: S3C64XX: make regs-sys.h local ARM: S3C64XX: make regs-srom.h local ARM: S3C64XX: make regs-modem.h local ARM: S3C64XX: make regs-gpio-memport.h local ARM: S3C64XX: make crag6410.h local ARM: S3C24XX: remove dsc.c and make regs-dsc.h local ARM: S3C24XX: remove idle.h ARM: S3C2412: cleanup regs-s3c2412.h ARM: S3C2416: remove regs-s3c2416-mem.h and regs-s3c2416.h ARM: S3C24XX: make vr1000-cpld.h, vr1000-irq.h and vr1000-map.h local ARM: S3C24XX: make otom-map.h local ARM: S3C24XX: make osiris-cpld.h and osiris-map.h local ARM: S3C24XX: make h1940.h and h1940-latch.h local ARM: S3C24XX: make gta02.h local ARM: S3C24XX: make bast-cpld.h, bast-irq.h and bast-map.h local ARM: S3C24XX: make anubis-cpld, anubis-irq and anubis-map local ARM: SAMSUNG: cleanup mach/gpio-fns.h gpio-track.h and gpio-nrs.h ARM: SAMSUNG: cleanup mach/regs-audss.h file ... Signed-off-by: Olof Johansson <olof@lixom.net>
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 = {