• Home
  • Raw
  • Download

Lines Matching refs:status

558 	if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED)  in snd_pcm_set_state()
559 substream->runtime->status->state = state; in snd_pcm_set_state()
649 switch (runtime->status->state) { in snd_pcm_hw_params()
776 switch (runtime->status->state) { in snd_pcm_hw_free()
804 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_sw_params()
863 struct snd_pcm_status *status) in snd_pcm_status() argument
869 snd_pcm_unpack_audio_tstamp_config(status->audio_tstamp_data, in snd_pcm_status()
885 status->state = runtime->status->state; in snd_pcm_status()
886 status->suspended_state = runtime->status->suspended_state; in snd_pcm_status()
887 if (status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_status()
889 status->trigger_tstamp = runtime->trigger_tstamp; in snd_pcm_status()
893 status->tstamp = runtime->status->tstamp; in snd_pcm_status()
894 status->driver_tstamp = runtime->driver_tstamp; in snd_pcm_status()
895 status->audio_tstamp = in snd_pcm_status()
896 runtime->status->audio_tstamp; in snd_pcm_status()
899 snd_pcm_pack_audio_tstamp_report(&status->audio_tstamp_data, in snd_pcm_status()
900 &status->audio_tstamp_accuracy, in snd_pcm_status()
908 snd_pcm_gettime(runtime, &status->tstamp); in snd_pcm_status()
911 status->appl_ptr = runtime->control->appl_ptr; in snd_pcm_status()
912 status->hw_ptr = runtime->status->hw_ptr; in snd_pcm_status()
914 status->avail = snd_pcm_playback_avail(runtime); in snd_pcm_status()
915 if (runtime->status->state == SNDRV_PCM_STATE_RUNNING || in snd_pcm_status()
916 runtime->status->state == SNDRV_PCM_STATE_DRAINING) { in snd_pcm_status()
917 status->delay = runtime->buffer_size - status->avail; in snd_pcm_status()
918 status->delay += runtime->delay; in snd_pcm_status()
920 status->delay = 0; in snd_pcm_status()
922 status->avail = snd_pcm_capture_avail(runtime); in snd_pcm_status()
923 if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) in snd_pcm_status()
924 status->delay = status->avail + runtime->delay; in snd_pcm_status()
926 status->delay = 0; in snd_pcm_status()
928 status->avail_max = runtime->avail_max; in snd_pcm_status()
929 status->overrange = runtime->overrange; in snd_pcm_status()
941 struct snd_pcm_status status; in snd_pcm_status_user() local
944 memset(&status, 0, sizeof(status)); in snd_pcm_status_user()
950 if (ext && get_user(status.audio_tstamp_data, in snd_pcm_status_user()
953 res = snd_pcm_status(substream, &status); in snd_pcm_status_user()
956 if (copy_to_user(_status, &status, sizeof(status))) in snd_pcm_status_user()
970 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) { in snd_pcm_channel_info()
1169 if (runtime->status->state != SNDRV_PCM_STATE_PREPARED) in snd_pcm_pre_start()
1199 runtime->status->state = state; in snd_pcm_post_start()
1239 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_pre_stop()
1256 if (runtime->status->state != state) { in snd_pcm_post_stop()
1258 runtime->status->state = state; in snd_pcm_post_stop()
1332 if (runtime->status->state != SNDRV_PCM_STATE_RUNNING) in snd_pcm_pre_pause()
1334 } else if (runtime->status->state != SNDRV_PCM_STATE_PAUSED) in snd_pcm_pre_pause()
1371 runtime->status->state = SNDRV_PCM_STATE_PAUSED; in snd_pcm_post_pause()
1376 runtime->status->state = SNDRV_PCM_STATE_RUNNING; in snd_pcm_post_pause()
1402 switch (runtime->status->state) { in snd_pcm_pre_suspend()
1430 runtime->status->suspended_state = runtime->status->state; in snd_pcm_post_suspend()
1431 runtime->status->state = SNDRV_PCM_STATE_SUSPENDED; in snd_pcm_post_suspend()
1523 if (runtime->status->suspended_state != SNDRV_PCM_STATE_RUNNING && in snd_pcm_do_resume()
1524 (runtime->status->suspended_state != SNDRV_PCM_STATE_DRAINING || in snd_pcm_do_resume()
1541 runtime->status->state = runtime->status->suspended_state; in snd_pcm_post_resume()
1577 switch (runtime->status->state) { in snd_pcm_xrun()
1597 switch (runtime->status->state) { in snd_pcm_pre_reset()
1615 runtime->hw_ptr_interrupt = runtime->status->hw_ptr - in snd_pcm_do_reset()
1616 runtime->status->hw_ptr % runtime->period_size; in snd_pcm_do_reset()
1617 runtime->silence_start = runtime->status->hw_ptr; in snd_pcm_do_reset()
1625 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_reset()
1650 if (runtime->status->state == SNDRV_PCM_STATE_OPEN || in snd_pcm_pre_prepare()
1651 runtime->status->state == SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_pre_prepare()
1671 runtime->control->appl_ptr = runtime->status->hw_ptr; in snd_pcm_post_prepare()
1699 switch (substream->runtime->status->state) { in snd_pcm_prepare()
1720 switch (runtime->status->state) { in snd_pcm_pre_drain_init()
1734 switch (runtime->status->state) { in snd_pcm_do_drain_init()
1741 runtime->status->state = SNDRV_PCM_STATE_SETUP; in snd_pcm_do_drain_init()
1745 runtime->status->state = SNDRV_PCM_STATE_DRAINING; in snd_pcm_do_drain_init()
1748 runtime->status->state = SNDRV_PCM_STATE_SETUP; in snd_pcm_do_drain_init()
1755 if (runtime->status->state == SNDRV_PCM_STATE_RUNNING) { in snd_pcm_do_drain_init()
1763 if (runtime->status->state == SNDRV_PCM_STATE_DRAINING && in snd_pcm_do_drain_init()
1804 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_drain()
1816 if (runtime->status->state == SNDRV_PCM_STATE_PAUSED) in snd_pcm_drain()
1842 if (runtime->status->state == SNDRV_PCM_STATE_DRAINING) { in snd_pcm_drain()
1872 if (substream->runtime->status->state == SNDRV_PCM_STATE_SUSPENDED) in snd_pcm_drain()
1905 if (runtime->status->state == SNDRV_PCM_STATE_OPEN || in snd_pcm_drop()
1906 runtime->status->state == SNDRV_PCM_STATE_DISCONNECTED) in snd_pcm_drop()
1911 if (runtime->status->state == SNDRV_PCM_STATE_PAUSED) in snd_pcm_drop()
1960 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN || in snd_pcm_link()
1961 substream->runtime->status->state != substream1->runtime->status->state || in snd_pcm_link()
2373 substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in snd_pcm_release_substream()
2567 switch (substream->runtime->status->state) { in do_pcm_hwsync()
2740 volatile struct snd_pcm_mmap_status *status; in snd_pcm_sync_ptr() local
2749 status = runtime->status; in snd_pcm_sync_ptr()
2771 sync_ptr.s.status.state = status->state; in snd_pcm_sync_ptr()
2772 sync_ptr.s.status.hw_ptr = status->hw_ptr; in snd_pcm_sync_ptr()
2773 sync_ptr.s.status.tstamp = status->tstamp; in snd_pcm_sync_ptr()
2774 sync_ptr.s.status.suspended_state = status->suspended_state; in snd_pcm_sync_ptr()
2775 sync_ptr.s.status.audio_tstamp = status->audio_tstamp; in snd_pcm_sync_ptr()
2802 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_xferi_frames_ioctl()
2824 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_xfern_frames_ioctl()
3055 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_read()
3079 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_write()
3105 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_readv()
3141 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_writev()
3180 switch (runtime->status->state) { in snd_pcm_playback_poll()
3219 switch (runtime->status->state) { in snd_pcm_capture_poll()
3263 vmf->page = virt_to_page(runtime->status); in snd_pcm_mmap_status_fault()
3500 if (runtime->status->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_mmap_data()
3705 return (unsigned long)runtime->status; in snd_pcm_get_unmapped_area()