Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5313
b: refs/heads/master
c: ff6fdc3
h: refs/heads/master
i:
  5311: 2bbe03d
v: v3
  • Loading branch information
Matt authored and Jaroslav Kysela committed Jul 28, 2005
1 parent 82080c1 commit c649459
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c7d4b2fa3169a1206450bc445d1997a17479644f
refs/heads/master: ff6fdc37fbe66e24ef9ad7c23a278ff757480dda
21 changes: 21 additions & 0 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,11 +828,32 @@ static void stac92xx_free(struct hda_codec *codec)
kfree(spec);
}

#ifdef CONFIG_PM
static int stac92xx_resume(struct hda_codec *codec)
{
struct sigmatel_spec *spec = codec->spec;
int i;

stac92xx_init(codec);
for (i = 0; i < spec->num_mixers; i++)
snd_hda_resume_ctls(codec, spec->mixers[i]);
if (spec->multiout.dig_out_nid)
snd_hda_resume_spdif_out(codec);
if (spec->dig_in_nid)
snd_hda_resume_spdif_in(codec);

return 0;
}
#endif

static struct hda_codec_ops stac92xx_patch_ops = {
.build_controls = stac92xx_build_controls,
.build_pcms = stac92xx_build_pcms,
.init = stac92xx_init,
.free = stac92xx_free,
#ifdef CONFIG_PM
.resume = stac92xx_resume,
#endif
};

static int patch_stac9200(struct hda_codec *codec)
Expand Down

0 comments on commit c649459

Please sign in to comment.