Lines Matching refs:runtime

58 	struct snd_pcm_runtime *runtime = substream->runtime;  in bf5xx_mmap_copy()  local
59 struct sport_device *sport = runtime->private_data; in bf5xx_mmap_copy()
60 unsigned int chan_mask = ac97_chan_mask[runtime->channels - 1]; in bf5xx_mmap_copy()
63 sport->tx_pos, (__u16 *)runtime->dma_area + sport->tx_pos * in bf5xx_mmap_copy()
64 runtime->channels, count, chan_mask); in bf5xx_mmap_copy()
65 sport->tx_pos += runtime->period_size; in bf5xx_mmap_copy()
66 if (sport->tx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
67 sport->tx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
71 sport->rx_pos, (__u16 *)runtime->dma_area + sport->rx_pos * in bf5xx_mmap_copy()
72 runtime->channels, count); in bf5xx_mmap_copy()
73 sport->rx_pos += runtime->period_size; in bf5xx_mmap_copy()
74 if (sport->rx_pos >= runtime->buffer_size) in bf5xx_mmap_copy()
75 sport->rx_pos %= runtime->buffer_size; in bf5xx_mmap_copy()
84 struct snd_pcm_runtime *runtime = pcm->runtime; in bf5xx_dma_irq() local
85 struct sport_device *sport = runtime->private_data; in bf5xx_dma_irq()
86 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
90 bf5xx_mmap_copy(pcm, runtime->period_size); in bf5xx_dma_irq()
132 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_hw_free() local
133 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_hw_free()
137 if (runtime->dma_area) in bf5xx_pcm_hw_free()
138 memset(runtime->dma_area, 0, runtime->buffer_size); in bf5xx_pcm_hw_free()
139 memset(sport->tx_dma_buf, 0, runtime->buffer_size * in bf5xx_pcm_hw_free()
142 memset(sport->rx_dma_buf, 0, runtime->buffer_size * in bf5xx_pcm_hw_free()
151 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_prepare() local
152 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_prepare()
160 sport_config_tx_dma(sport, sport->tx_dma_buf, runtime->periods, in bf5xx_pcm_prepare()
161 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
164 sport_config_rx_dma(sport, sport->rx_dma_buf, runtime->periods, in bf5xx_pcm_prepare()
165 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
170 sport_config_tx_dma(sport, runtime->dma_area, runtime->periods, in bf5xx_pcm_prepare()
171 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
174 sport_config_rx_dma(sport, runtime->dma_area, runtime->periods, in bf5xx_pcm_prepare()
175 runtime->period_size * sizeof(struct ac97_frame)); in bf5xx_pcm_prepare()
183 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_trigger() local
184 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_trigger()
192 bf5xx_mmap_copy(substream, runtime->period_size); in bf5xx_pcm_trigger()
222 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_pointer() local
223 struct sport_device *sport = runtime->private_data; in bf5xx_pcm_pointer()
247 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_open() local
253 ret = snd_pcm_hw_constraint_integer(runtime, in bf5xx_pcm_open()
259 runtime->private_data = sport_handle; in bf5xx_pcm_open()
274 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_mmap() local
276 vma->vm_start = (unsigned long)runtime->dma_area; in bf5xx_pcm_mmap()
286 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_copy() local
287 unsigned int chan_mask = ac97_chan_mask[runtime->channels - 1]; in bf5xx_pcm_copy()
292 bf5xx_pcm_to_ac97((struct ac97_frame *)runtime->dma_area + pos, in bf5xx_pcm_copy()
295 bf5xx_ac97_to_pcm((struct ac97_frame *)runtime->dma_area + pos, in bf5xx_pcm_copy()