Name
snd_card_set_pm_callback —
set the PCI power-management callbacks
Synopsis
int snd_card_set_pm_callback ( | snd_card_t * | card, |
| int (* | suspend)
( snd_card_t *, pm_message_t) , |
| int (* | resume)
( snd_card_t *) , |
| void * | private_data) ; |
Arguments
card
soundcard structure
suspend
suspend callback function
resume
resume callback function
private_data
private data to pass to the callback functions
Description
Sets the power-management callback functions of the card.
These callbacks are called from ALSA's common PCI suspend/resume
handler and from the control API.