Skip to contentSkip to conversation

SigmaTel HDA resume support

PATCH In review Matt 2 participants 2 messages Jun 27, 2005

lore
Share & tools
lore

Matt

author
#0 lore raw

PATCH 1/1 SigmaTel HDA resume support

Adds resume support to the SigmaTel HDA patch. Please apply.

pci/hda/patch_sigmatel.c +21 -0
diff -u alsa-kernel/pci/hda/patch_sigmatel.c alsa-kernel/pci/hda/patch_sigmatel.c
@@ -828,11 +828,32 @@
 	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)

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

#1 lore raw

At Sun, 26 Jun 2005 18:22:34 -0700,

Quoted 4 lines · Matt

Adds resume support to the SigmaTel HDA patch. Please apply.

Thanks, both patches are applied to CVS now.

Takashi

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click