Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248299
b: refs/heads/master
c: 3eb25f9
h: refs/heads/master
i:
  248297: 451da90
  248295: 311c163
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Apr 18, 2011
1 parent 8e0fc00 commit 9b0346f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2ba9471b34f48eab9f6e097ef305746b33e12f85
refs/heads/master: 3eb25f998d3aede5f0011ba236e7586351e450bf
18 changes: 8 additions & 10 deletions trunk/sound/soc/tegra/tegra_wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,11 @@ static struct snd_soc_jack_pin tegra_wm8903_hp_jack_pins[] = {
},
};

static struct snd_soc_jack_gpio tegra_wm8903_hp_jack_gpios[] = {
{
.name = "headphone detect",
.report = SND_JACK_HEADPHONE,
.debounce_time = 150,
.invert = 1,
}
static struct snd_soc_jack_gpio tegra_wm8903_hp_jack_gpio = {
.name = "headphone detect",
.report = SND_JACK_HEADPHONE,
.debounce_time = 150,
.invert = 1,
};

static struct snd_soc_jack tegra_wm8903_mic_jack;
Expand Down Expand Up @@ -241,15 +239,15 @@ static int tegra_wm8903_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_dapm_add_routes(dapm, harmony_audio_map,
ARRAY_SIZE(harmony_audio_map));

tegra_wm8903_hp_jack_gpios[0].gpio = pdata->gpio_hp_det;
tegra_wm8903_hp_jack_gpio.gpio = pdata->gpio_hp_det;
snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE,
&tegra_wm8903_hp_jack);
snd_soc_jack_add_pins(&tegra_wm8903_hp_jack,
ARRAY_SIZE(tegra_wm8903_hp_jack_pins),
tegra_wm8903_hp_jack_pins);
snd_soc_jack_add_gpios(&tegra_wm8903_hp_jack,
ARRAY_SIZE(tegra_wm8903_hp_jack_gpios),
tegra_wm8903_hp_jack_gpios);
1,
&tegra_wm8903_hp_jack_gpio);

snd_soc_jack_new(codec, "Mic Jack", SND_JACK_MICROPHONE,
&tegra_wm8903_mic_jack);
Expand Down

0 comments on commit 9b0346f

Please sign in to comment.