Lines Matching defs:state
581 int state;
592 state = snd_pcm_state(direct->spcm);
593 if (state != SND_PCM_STATE_XRUN && state != SND_PCM_STATE_SUSPENDED) {
606 if (state == SND_PCM_STATE_SUSPENDED)
611 * when a device has RESUME flag and is in SUSPENDED state, resume
612 * here but immediately drop to bring it to a sane active state.
614 if (state == SND_PCM_STATE_SUSPENDED &&
663 * enter xrun or suspended state, if slave xrun occurred or suspended
672 direct->state = SNDRV_PCM_STATE_DISCONNECTED;
683 if (direct->state == SND_PCM_STATE_XRUN)
685 else if (direct->state == SND_PCM_STATE_SUSPENDED)
700 direct->state = SND_PCM_STATE_SUSPENDED;
703 direct->state = SND_PCM_STATE_XRUN;
713 * state of substream in kernel by intention.
718 * In contrast poll() on pcm hardware checks ALSA state and will immediately
722 * detected we add a state check here which may trigger the xrun sequence.
740 /* this will also evaluate slave state and enter xrun if necessary */
1137 dmix->state = SND_PCM_STATE_PREPARED;