Commit 9d400d6d authored by Jaroslav Kysela's avatar Jaroslav Kysela

[ALSA] Fix descriptions about suspend/resume callbacks

Documentation
Fixed the descriptions about suspend/resume callbacks.
The suspend callback takes pm_message_t argument, and resume takes no
extra argument now.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f285aed4
...@@ -5162,12 +5162,12 @@ struct _snd_pcm_runtime { ...@@ -5162,12 +5162,12 @@ struct _snd_pcm_runtime {
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int snd_my_suspend(snd_card_t *card, unsigned int state) static int snd_my_suspend(snd_card_t *card, pm_message_t state)
{ {
.... // do things for suspsend .... // do things for suspsend
return 0; return 0;
} }
static int snd_my_resume(snd_card_t *card, unsigned int state) static int snd_my_resume(snd_card_t *card)
{ {
.... // do things for suspsend .... // do things for suspsend
return 0; return 0;
...@@ -5196,7 +5196,7 @@ struct _snd_pcm_runtime { ...@@ -5196,7 +5196,7 @@ struct _snd_pcm_runtime {
<informalexample> <informalexample>
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
static int mychip_suspend(snd_card_t *card, unsigned int state) static int mychip_suspend(snd_card_t *card, pm_message_t state)
{ {
/* (1) */ /* (1) */
mychip_t *chip = card->pm_private_data; mychip_t *chip = card->pm_private_data;
......
...@@ -236,8 +236,8 @@ set the codec->patch_ops field. This is defined as below: ...@@ -236,8 +236,8 @@ set the codec->patch_ops field. This is defined as below:
void (*free)(struct hda_codec *codec); void (*free)(struct hda_codec *codec);
void (*unsol_event)(struct hda_codec *codec, unsigned int res); void (*unsol_event)(struct hda_codec *codec, unsigned int res);
#ifdef CONFIG_PM #ifdef CONFIG_PM
int (*suspend)(struct hda_codec *codec, unsigned int state); int (*suspend)(struct hda_codec *codec, pm_message_t state);
int (*resume)(struct hda_codec *codec, unsigned int state); int (*resume)(struct hda_codec *codec);
#endif #endif
}; };
......
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