Lines Matching defs:state

150 phase between application and library. The actual state can be determined
154 The PCM device is in the open state. After the #snd_pcm_open() open call,
155 the device is in this state. Also, when #snd_pcm_hw_params() call fails,
156 then this state is entered to force application calling
179 to determine this state without checking
180 the actual state via #snd_pcm_state() call. It is recommended to use
181 the helper function #snd_pcm_recover() to recover from this state, but you can also use #snd_pcm_prepare(),
185 The device is in this state when application using the capture mode
189 then the device stays in this state.
192 The device is in this state when application called
198 The device is in the suspend state provoked with the power management
204 to leave this state.
207 The device is physicaly disconnected. It does not accept any I/O calls in this state.
287 This error means that the device is in a bad state. It means that
318 the running state as well.
353 any time including the running state.
403 These parameters can be obtained: the current stream state -
414 \subsection pcm_status_fast Obtaining stream state fast and update r/w pointer
423 only when an interrupt occurs. If you want to get accurate stream state,
435 only when the stream is in the running or draining (playback only) state.
445 \section pcm_action Managing the stream state
447 The following functions directly and indirectly affect the stream state:
450 The #snd_pcm_hw_params() function brings the stream state
452 if successfully finishes, otherwise the state #SND_PCM_STATE_OPEN
454 When it is brought to SETUP state, this function automatically
455 calls #snd_pcm_prepare() function to bring to the PREPARED state
468 #SND_PCM_STATE_SETUP state.
474 #SND_PCM_STATE_SETUP state is entered.
500 function is called, all operations managing the stream state for these two
686 static int pcm_state_to_error(snd_pcm_state_t state)
688 switch (state) {
707 /* check whether the PCM is in the unexpected state */
711 snd_pcm_state_t state;
716 state = snd_pcm_state(pcm);
717 if (noop_states & (1U << state))
719 if (supported_states & (1U << state))
721 err = pcm_state_to_error(state);
942 * the stream is brought to \c #SND_PCM_STATE_PREPARED state.
1070 * \brief Return PCM state
1072 * \return PCM state #snd_pcm_state_t of given PCM handle
1074 * This is a faster way to obtain only the PCM state without calling
1085 snd_pcm_state_t state;
1089 state = __snd_pcm_state(pcm);
1091 return state;
1174 * This function can be used when the stream is in the suspend state
1175 * to do the fine resume from this state. Not all hardware supports
1557 * \retval -EBADFD PCM is not in the right state (#SND_PCM_STATE_PREPARED or #SND_PCM_STATE_RUNNING)
1596 * \retval -EBADFD PCM is not in the right state (#SND_PCM_STATE_PREPARED or #SND_PCM_STATE_RUNNING)
1635 * \retval -EBADFD PCM is not in the right state (#SND_PCM_STATE_PREPARED or #SND_PCM_STATE_RUNNING)
1674 * \retval -EBADFD PCM is not in the right state (#SND_PCM_STATE_PREPARED or #SND_PCM_STATE_RUNNING)
2304 * \brief get name of PCM state
2305 * \param state PCM state
2306 * \return ascii name of PCM state
2308 const char *snd_pcm_state_name(const snd_pcm_state_t state)
2310 if (state > SND_PCM_STATE_LAST)
2312 return snd_pcm_state_names[state];
2411 snd_output_printf(out, " state : %s\n", snd_pcm_state_name((snd_pcm_state_t) status->state));
4973 * \brief Extract resample state from a configuration space
5038 * check the state of the ring buffer and refill it apropriately.
6718 * \param val returned period event state
6809 * PCM is automatically stopped in #SND_PCM_STATE_XRUN state when available
6831 * PCM is automatically stopped in #SND_PCM_STATE_XRUN state when available
6999 * \brief Get state from a PCM status container (see #snd_pcm_state)
7001 * \return PCM state
7006 return obj->state;
7014 * Trigger means a PCM state transition (from stopped to running or
7030 * Trigger means a PCM state transition (from stopped to running or
7596 snd_pcm_state_t state;
7606 state = __snd_pcm_state(pcm);
7607 switch (state) {
7622 err = pcm_state_to_error(state);
7633 if (state == SND_PCM_STATE_DRAINING)
7670 snd_pcm_state_t state;
7680 state = __snd_pcm_state(pcm);
7681 switch (state) {
7691 err = pcm_state_to_error(state);
7701 if (state == SND_PCM_STATE_RUNNING &&
7732 if (state == SND_PCM_STATE_PREPARED) {
7736 state = __snd_pcm_state(pcm);
7737 if (state == SND_PCM_STATE_PREPARED &&
8722 * \brief Recover the stream state from an error or suspend