Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316188
b: refs/heads/master
c: 9f6328d
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 3, 2012
1 parent 6bcf437 commit 36f4100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 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: aef9a37c01a63a132d43d65d231dfe515d0f918a
refs/heads/master: 9f6328d910ef8df8176ed433aa2de037eba1f656
11 changes: 2 additions & 9 deletions trunk/sound/soc/tegra/tegra_alc5632.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@

#define DRV_NAME "tegra-alc5632"

#define GPIO_HP_DET BIT(0)

struct tegra_alc5632 {
struct tegra_asoc_utils_data util_data;
int gpio_requested;
int gpio_hp_det;
};

Expand Down Expand Up @@ -123,7 +120,6 @@ static int tegra_alc5632_asoc_init(struct snd_soc_pcm_runtime *rtd)
snd_soc_jack_add_gpios(&tegra_alc5632_hs_jack,
1,
&tegra_alc5632_hp_jack_gpio);
machine->gpio_requested |= GPIO_HP_DET;
}

snd_soc_dapm_force_enable_pin(dapm, "MICBIAS1");
Expand Down Expand Up @@ -236,11 +232,8 @@ static int __devexit tegra_alc5632_remove(struct platform_device *pdev)
struct snd_soc_card *card = platform_get_drvdata(pdev);
struct tegra_alc5632 *machine = snd_soc_card_get_drvdata(card);

if (machine->gpio_requested & GPIO_HP_DET)
snd_soc_jack_free_gpios(&tegra_alc5632_hs_jack,
1,
&tegra_alc5632_hp_jack_gpio);
machine->gpio_requested = 0;
snd_soc_jack_free_gpios(&tegra_alc5632_hs_jack, 1,
&tegra_alc5632_hp_jack_gpio);

snd_soc_unregister_card(card);

Expand Down

0 comments on commit 36f4100

Please sign in to comment.