Home
last modified time | relevance | path

Searched refs:alsa_rt (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/sound/usb/6fire/
Dpcm.c203 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()
[all …]
/Linux-v4.19/sound/usb/hiface/
Dpcm.c263 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in hiface_pcm_playback() local
268 WARN_ON(alsa_rt->format != SNDRV_PCM_FORMAT_S32_LE); in hiface_pcm_playback()
277 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback()
289 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback()
292 source = alsa_rt->dma_area; in hiface_pcm_playback()
301 if (sub->period_off >= alsa_rt->period_size) { in hiface_pcm_playback()
302 sub->period_off %= alsa_rt->period_size; in hiface_pcm_playback()
359 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open() local
366 alsa_rt->hw = pcm_hw; in hiface_pcm_open()
379 alsa_rt->hw.rates |= SNDRV_PCM_RATE_KNOT; in hiface_pcm_open()
[all …]