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 {
<programlisting>
<![CDATA[
#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
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
return 0;
......@@ -5196,7 +5196,7 @@ struct _snd_pcm_runtime {
<informalexample>
<programlisting>
<![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) */
mychip_t *chip = card->pm_private_data;
......
......@@ -236,8 +236,8 @@ set the codec->patch_ops field. This is defined as below:
void (*free)(struct hda_codec *codec);
void (*unsol_event)(struct hda_codec *codec, unsigned int res);
#ifdef CONFIG_PM
int (*suspend)(struct hda_codec *codec, unsigned int state);
int (*resume)(struct hda_codec *codec, unsigned int state);
int (*suspend)(struct hda_codec *codec, pm_message_t state);
int (*resume)(struct hda_codec *codec);
#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