Lines Matching refs:alsa_rt
203 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in usb6fire_pcm_capture() local
205 u32 *dest = (u32 *) (alsa_rt->dma_area + sub->dma_off in usb6fire_pcm_capture()
206 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_capture()
207 u32 *dest_end = (u32 *) (alsa_rt->dma_area + alsa_rt->buffer_size in usb6fire_pcm_capture()
208 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_capture()
209 int bytes_per_frame = alsa_rt->channels << 2; in usb6fire_pcm_capture()
220 if (alsa_rt->format == SNDRV_PCM_FORMAT_S24_LE) in usb6fire_pcm_capture()
222 else if (alsa_rt->format == SNDRV_PCM_FORMAT_S32_LE) in usb6fire_pcm_capture()
230 dest += alsa_rt->channels; in usb6fire_pcm_capture()
236 dest = (u32 *) alsa_rt->dma_area; in usb6fire_pcm_capture()
250 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in usb6fire_pcm_playback() local
251 u32 *src = (u32 *) (alsa_rt->dma_area + sub->dma_off in usb6fire_pcm_playback()
252 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_playback()
253 u32 *src_end = (u32 *) (alsa_rt->dma_area + alsa_rt->buffer_size in usb6fire_pcm_playback()
254 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_playback()
256 int bytes_per_frame = alsa_rt->channels << 2; in usb6fire_pcm_playback()
258 if (alsa_rt->format == SNDRV_PCM_FORMAT_S32_LE) in usb6fire_pcm_playback()
260 else if (alsa_rt->format == SNDRV_PCM_FORMAT_S24_LE) in usb6fire_pcm_playback()
278 src += alsa_rt->channels; in usb6fire_pcm_playback()
283 src = (u32 *) alsa_rt->dma_area; in usb6fire_pcm_playback()
394 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_open() local
400 alsa_rt->hw = pcm_hw; in usb6fire_pcm_open()
404 alsa_rt->hw.rates = rates_alsaid[rt->rate]; in usb6fire_pcm_open()
405 alsa_rt->hw.channels_max = OUT_N_CHANNELS; in usb6fire_pcm_open()
409 alsa_rt->hw.rates = rates_alsaid[rt->rate]; in usb6fire_pcm_open()
410 alsa_rt->hw.channels_max = IN_N_CHANNELS; in usb6fire_pcm_open()
469 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_prepare() local
483 if (alsa_rt->rate == rates[rt->rate]) in usb6fire_pcm_prepare()
489 alsa_rt->rate); in usb6fire_pcm_prepare()