Lines Matching refs:runtime

431 	struct mixart_stream *stream = subs->runtime->private_data;  in snd_mixart_trigger()
493 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare()
504 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare()
508 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) in snd_mixart_prepare()
608 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_hw_params()
650 bufferinfo[i].buffer_address = subs->runtime->dma_addr; in snd_mixart_hw_params()
651 bufferinfo[i].available_length = subs->runtime->dma_bytes; in snd_mixart_hw_params()
725 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_playback_open() local
736 runtime->hw = snd_mixart_analog_caps; in snd_mixart_playback_open()
740 runtime->hw = snd_mixart_digital_caps; in snd_mixart_playback_open()
781 runtime->private_data = stream; in snd_mixart_playback_open()
783 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); in snd_mixart_playback_open()
784 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64); in snd_mixart_playback_open()
789 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; in snd_mixart_playback_open()
804 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_capture_open() local
815 runtime->hw = snd_mixart_analog_caps; in snd_mixart_capture_open()
819 runtime->hw = snd_mixart_digital_caps; in snd_mixart_capture_open()
822 runtime->hw.channels_min = 2; /* for instance, no mono */ in snd_mixart_capture_open()
862 runtime->private_data = stream; in snd_mixart_capture_open()
864 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 32); in snd_mixart_capture_open()
865 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 64); in snd_mixart_capture_open()
870 runtime->hw.rate_min = runtime->hw.rate_max = mgr->sample_rate; in snd_mixart_capture_open()
886 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_close()
917 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_stream_pointer() local
918 struct mixart_stream *stream = runtime->private_data; in snd_mixart_stream_pointer()
920 return (snd_pcm_uframes_t)((stream->buf_periods * runtime->period_size) + stream->buf_period_frag); in snd_mixart_stream_pointer()