Commit ff6fdc37 authored by Matt's avatar Matt Committed by Jaroslav Kysela

[ALSA] hda-codec - SigmaTel HDA resume support

HDA Codec driver
Adds resume support to the SigmaTel HDA patch. Please apply.
Signed-off-by: default avatarMatt <matt@embeddedalley.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c7d4b2fa
...@@ -828,11 +828,32 @@ static void stac92xx_free(struct hda_codec *codec) ...@@ -828,11 +828,32 @@ static void stac92xx_free(struct hda_codec *codec)
kfree(spec); 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 = { static struct hda_codec_ops stac92xx_patch_ops = {
.build_controls = stac92xx_build_controls, .build_controls = stac92xx_build_controls,
.build_pcms = stac92xx_build_pcms, .build_pcms = stac92xx_build_pcms,
.init = stac92xx_init, .init = stac92xx_init,
.free = stac92xx_free, .free = stac92xx_free,
#ifdef CONFIG_PM
.resume = stac92xx_resume,
#endif
}; };
static int patch_stac9200(struct hda_codec *codec) static int patch_stac9200(struct hda_codec *codec)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment