Lines Matching refs:runtime
68 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usbtv_pcm_open() local
71 runtime->hw = snd_usbtv_digital_hw; in snd_usbtv_pcm_open()
102 struct snd_pcm_runtime *runtime = substream->runtime; in usbtv_audio_urb_received() local
125 frame_bytes = runtime->frame_bits >> 3; in usbtv_audio_urb_received()
135 if (buffer_pos + chunk_length >= runtime->buffer_size) { in usbtv_audio_urb_received()
136 size_t cnt = (runtime->buffer_size - buffer_pos) * in usbtv_audio_urb_received()
138 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
140 memcpy(runtime->dma_area, urb_current + cnt, in usbtv_audio_urb_received()
143 memcpy(runtime->dma_area + buffer_pos * frame_bytes, in usbtv_audio_urb_received()
150 if (buffer_pos >= runtime->buffer_size) in usbtv_audio_urb_received()
151 buffer_pos -= runtime->buffer_size; in usbtv_audio_urb_received()
153 if (period_pos >= runtime->period_size) { in usbtv_audio_urb_received()
154 period_pos -= runtime->period_size; in usbtv_audio_urb_received()