Lines Matching refs:runtime

115 	struct sst_module_runtime *runtime;  member
474 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_hw_params() local
613 ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, in hsw_pcm_hw_params()
614 runtime->dma_bytes, rtd->cpu_dai->id); in hsw_pcm_hw_params()
621 if (runtime->dma_bytes % PAGE_SIZE) in hsw_pcm_hw_params()
622 pages = (runtime->dma_bytes / PAGE_SIZE) + 1; in hsw_pcm_hw_params()
624 pages = runtime->dma_bytes / PAGE_SIZE; in hsw_pcm_hw_params()
628 pages, runtime->dma_bytes, 0, in hsw_pcm_hw_params()
644 pcm_data->runtime); in hsw_pcm_hw_params()
682 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_trigger() local
704 pos = runtime->control->appl_ptr % runtime->buffer_size; in hsw_pcm_trigger()
719 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_notify_pointer() local
725 snd_pcm_uframes_t position = bytes_to_frames(runtime, in hsw_notify_pointer()
727 unsigned char *dma_area = runtime->dma_area; in hsw_notify_pointer()
729 bytes_to_frames(runtime, runtime->dma_bytes); in hsw_notify_pointer()
733 pos = frames_to_bytes(runtime, in hsw_notify_pointer()
734 (runtime->control->appl_ptr % runtime->buffer_size)); in hsw_notify_pointer()
751 samples = SST_SAMPLES(runtime, position - old_position); in hsw_notify_pointer()
752 snd_pcm_format_set_silence(runtime->format, in hsw_notify_pointer()
754 runtime, old_position), in hsw_notify_pointer()
760 samples = SST_SAMPLES(runtime, in hsw_notify_pointer()
762 snd_pcm_format_set_silence(runtime->format, in hsw_notify_pointer()
764 runtime, old_position), in hsw_notify_pointer()
769 samples = SST_SAMPLES(runtime, position); in hsw_notify_pointer()
770 snd_pcm_format_set_silence(runtime->format, in hsw_notify_pointer()
785 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_pointer() local
799 offset = bytes_to_frames(runtime, position); in hsw_pcm_pointer()
896 pcm_data->runtime = sst_hsw_runtime_module_create(hsw, in hsw_pcm_create_modules()
898 if (pcm_data->runtime == NULL) in hsw_pcm_create_modules()
901 pcm_data->runtime->persistent_offset; in hsw_pcm_create_modules()
917 sst_hsw_runtime_module_free(pcm_data->runtime); in hsw_pcm_create_modules()
931 if (pcm_data->runtime){ in hsw_pcm_free_modules()
932 sst_hsw_runtime_module_free(pcm_data->runtime); in hsw_pcm_free_modules()
933 pcm_data->runtime = NULL; in hsw_pcm_free_modules()
1328 err = sst_module_runtime_restore(pcm_data->runtime, in hsw_pcm_complete()
1376 err = sst_module_runtime_save(pcm_data->runtime, in hsw_pcm_prepare()