Name

snd_power_wait — wait until the power-state is changed.

Synopsis

int snd_power_wait (struct snd_card *  card,
 unsigned int  power_state,
 struct file *  file);

Arguments

card

soundcard structure

power_state

expected power state

file

file structure for the O_NONBLOCK check (optional)

Description

Waits until the power-state is changed.

Note

the power lock must be active before call.