Lines Matching defs:state
109 snd_pcm_state_t state;
119 static void _snd_pcm_share_stop(snd_pcm_t *pcm, snd_pcm_state_t state);
152 switch (share->state) {
166 if (share->state != SND_PCM_STATE_RUNNING)
209 // printf("state=%s hw_ptr=%ld appl_ptr=%ld slave appl_ptr=%ld safety=%ld silence=%ld\n", snd_pcm_state_name(share->state), slave->hw_ptr, share->appl_ptr, *slave->pcm->appl_ptr, slave->safety_threshold, slave->silence_frames);
210 switch (share->state) {
223 _snd_pcm_share_stop(pcm, share->state == SND_PCM_STATE_DRAINING ? SND_PCM_STATE_SETUP : SND_PCM_STATE_XRUN);
254 switch (share->state) {
285 SNDERR("invalid shared PCM state %d", share->state);
316 share->state == SND_PCM_STATE_DRAINING &&
672 share->state = SND_PCM_STATE_SETUP;
688 share->state = SND_PCM_STATE_OPEN;
707 if (share->state != SND_PCM_STATE_RUNNING &&
708 share->state != SND_PCM_STATE_DRAINING)
713 if (share->state != SND_PCM_STATE_RUNNING)
722 status->state = share->state;
734 return share->state;
741 switch (share->state) {
765 switch (share->state) {
797 if (share->state == SND_PCM_STATE_RUNNING) {
835 share->state == SND_PCM_STATE_RUNNING) {
849 if (share->state == SND_PCM_STATE_RUNNING) {
887 switch (share->state) {
908 share->state = SND_PCM_STATE_PREPARED;
934 if (share->state != SND_PCM_STATE_PREPARED)
937 share->state = SND_PCM_STATE_RUNNING;
1022 switch (share->state) {
1042 if (share->state == SND_PCM_STATE_RUNNING && frames > 0) {
1080 switch (share->state) {
1099 if (share->state == SND_PCM_STATE_RUNNING && frames > 0) {
1133 static void _snd_pcm_share_stop(snd_pcm_t *pcm, snd_pcm_state_t state)
1159 share->state = state;
1174 switch (share->state) {
1179 share->state = SND_PCM_STATE_SETUP;
1187 switch (share->state) {
1189 share->state = SND_PCM_STATE_SETUP;
1193 share->state = SND_PCM_STATE_DRAINING;
1204 switch (share->state) {
1212 share->state = SND_PCM_STATE_SETUP;
1214 share->state = SND_PCM_STATE_DRAINING;
1232 switch (share->state) {
1240 share->state = SND_PCM_STATE_SETUP;
1250 share->state = SND_PCM_STATE_SETUP;
1339 .state = snd_pcm_share_state,