Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316189
b: refs/heads/master
c: 14df415
h: refs/heads/master
i:
  316187: 6bcf437
v: v3
  • Loading branch information
Stephen Warren authored and Mark Brown committed Jun 3, 2012
1 parent 36f4100 commit 04d20b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 9f6328d910ef8df8176ed433aa2de037eba1f656
refs/heads/master: 14df415a38234aa483219335bc6c1ee899b85e10
4 changes: 2 additions & 2 deletions trunk/sound/soc/tegra/tegra_wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ static int tegra_wm8903_event_int_spk(struct snd_soc_dapm_widget *w,
struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
struct tegra_wm8903_platform_data *pdata = &machine->pdata;

if (!(machine->gpio_requested & GPIO_SPKR_EN))
if (!gpio_is_valid(pdata->gpio_spkr_en))
return 0;

gpio_set_value_cansleep(pdata->gpio_spkr_en,
Expand All @@ -170,7 +170,7 @@ static int tegra_wm8903_event_hp(struct snd_soc_dapm_widget *w,
struct tegra_wm8903 *machine = snd_soc_card_get_drvdata(card);
struct tegra_wm8903_platform_data *pdata = &machine->pdata;

if (!(machine->gpio_requested & GPIO_HP_MUTE))
if (!gpio_is_valid(pdata->gpio_hp_mute))
return 0;

gpio_set_value_cansleep(pdata->gpio_hp_mute,
Expand Down

0 comments on commit 04d20b3

Please sign in to comment.