Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120467
b: refs/heads/master
c: c6798d2
h: refs/heads/master
i:
  120465: c52e2e0
  120463: a370604
v: v3
  • Loading branch information
Matthew Ranostay authored and Takashi Iwai committed Nov 19, 2008
1 parent 61d172f commit be57e98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 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: 9c8641e8ee438273079337c86f4d739fbfdd8b33
refs/heads/master: c6798d2bd1805e32a92ba8db168ec51cdbb534b0
21 changes: 13 additions & 8 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4185,6 +4185,16 @@ static int stac92xx_resume(struct hda_codec *codec)
(STAC_HP_EVENT | spec->autocfg.hp_pins[0]) << 26);
return 0;
}

static int stac92xx_suspend(struct hda_codec *codec, pm_message_t state)
{
struct sigmatel_spec *spec = codec->spec;
if (spec->eapd_mask)
stac_gpio_set(codec, spec->gpio_mask,
spec->gpio_dir, spec->gpio_data &
~spec->eapd_mask);
return 0;
}
#endif

static struct hda_codec_ops stac92xx_patch_ops = {
Expand All @@ -4194,6 +4204,7 @@ static struct hda_codec_ops stac92xx_patch_ops = {
.free = stac92xx_free,
.unsol_event = stac92xx_unsol_event,
#ifdef SND_HDA_NEEDS_RESUME
.suspend = stac92xx_suspend,
.resume = stac92xx_resume,
#endif
};
Expand Down Expand Up @@ -4598,14 +4609,8 @@ static int stac92hd71xx_resume(struct hda_codec *codec)

static int stac92hd71xx_suspend(struct hda_codec *codec, pm_message_t state)
{
struct sigmatel_spec *spec = codec->spec;

stac92hd71xx_set_power_state(codec, AC_PWRST_D3);
if (spec->eapd_mask)
stac_gpio_set(codec, spec->gpio_mask,
spec->gpio_dir, spec->gpio_data &
~spec->eapd_mask);
return 0;
return stac92xx_suspend(codec, state);
};

#endif
Expand All @@ -4617,8 +4622,8 @@ static struct hda_codec_ops stac92hd71bxx_patch_ops = {
.free = stac92xx_free,
.unsol_event = stac92xx_unsol_event,
#ifdef SND_HDA_NEEDS_RESUME
.resume = stac92hd71xx_resume,
.suspend = stac92hd71xx_suspend,
.resume = stac92hd71xx_resume,
#endif
};

Expand Down

0 comments on commit be57e98

Please sign in to comment.