Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316187
b: refs/heads/master
c: aef9a37
h: refs/heads/master
i:
  316185: 57d61be
  316183: 5dc68c4
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 3, 2012
1 parent 026b817 commit 6bcf437
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: e44fbbd45896e684d44391aaf881dd3e36bd1a16
refs/heads/master: aef9a37c01a63a132d43d65d231dfe515d0f918a
10 changes: 6 additions & 4 deletions trunk/sound/soc/tegra/tegra_alc5632.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* tegra_alc5632.c -- Toshiba AC100(PAZ00) machine ASoC driver
* tegra_alc5632.c -- Toshiba AC100(PAZ00) machine ASoC driver
*
* Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.lauchpad.net>
* Copyright (C) 2012 - NVIDIA, Inc.
Expand Down Expand Up @@ -110,7 +110,6 @@ static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd)
{
struct snd_soc_codec *codec = rtd->codec;
struct snd_soc_dapm_context *dapm = &codec->dapm;
struct device_node *np = codec->card->dev->of_node;
struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(codec->card);

snd_soc_jack_new(codec, "Headset Jack", SND_JACK_HEADSET,
Expand All @@ -119,8 +118,6 @@ static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd)
ARRAY_SIZE(tegra_alc5632_hs_jack_pins),
tegra_alc5632_hs_jack_pins);

machine->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0);

if (gpio_is_valid(machine->gpio_hp_det)) {
tegra_alc5632_hp_jack_gpio.gpio = machine->gpio_hp_det;
snd_soc_jack_add_gpios(&tegra_alc5632_hs_jack,
Expand Down Expand Up @@ -159,6 +156,7 @@ static struct snd_soc_card snd_soc_tegra_alc5632 = {

static __devinit int tegra_alc5632_probe(struct platform_device *pdev)
{
struct device_node *np = pdev->dev.of_node;
struct snd_soc_card *card = &snd_soc_tegra_alc5632;
struct tegra_alc5632 *alc5632;
int ret;
Expand All @@ -181,6 +179,10 @@ static __devinit int tegra_alc5632_probe(struct platform_device *pdev)
goto err;
}

alc5632->gpio_hp_det = of_get_named_gpio(np, "nvidia,hp-det-gpios", 0);
if (alc5632->gpio_hp_det == -ENODEV)
return -EPROBE_DEFER;

ret = snd_soc_of_parse_card_name(card, "nvidia,model");
if (ret)
goto err;
Expand Down

0 comments on commit 6bcf437

Please sign in to comment.