Name

snd_card_set_generic_pm_callback — set the generic power-management callbacks

Synopsis

int snd_card_set_generic_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

Registers the power-management and sets the lowlevel callbacks for the given card. These callbacks are called from the ALSA's common PM handler and from the control API.