Home
last modified time | relevance | path

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

/linux-6.12.1/sound/usb/6fire/
Dpcm.c199 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in usb6fire_pcm_capture() local
201 u32 *dest = (u32 *) (alsa_rt->dma_area + sub->dma_off in usb6fire_pcm_capture()
202 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_capture()
203 u32 *dest_end = (u32 *) (alsa_rt->dma_area + alsa_rt->buffer_size in usb6fire_pcm_capture()
204 * (alsa_rt->frame_bits >> 3)); in usb6fire_pcm_capture()
205 int bytes_per_frame = alsa_rt->channels << 2; in usb6fire_pcm_capture()
216 if (alsa_rt->format == SNDRV_PCM_FORMAT_S24_LE) in usb6fire_pcm_capture()
218 else if (alsa_rt->format == SNDRV_PCM_FORMAT_S32_LE) in usb6fire_pcm_capture()
226 dest += alsa_rt->channels; in usb6fire_pcm_capture()
232 dest = (u32 *) alsa_rt->dma_area; in usb6fire_pcm_capture()
[all …]
/linux-6.12.1/sound/usb/hiface/
Dpcm.c257 struct snd_pcm_runtime *alsa_rt = sub->instance->runtime; in hiface_pcm_playback() local
262 WARN_ON(alsa_rt->format != SNDRV_PCM_FORMAT_S32_LE); in hiface_pcm_playback()
271 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback()
283 source = alsa_rt->dma_area + sub->dma_off; in hiface_pcm_playback()
286 source = alsa_rt->dma_area; in hiface_pcm_playback()
295 if (sub->period_off >= alsa_rt->period_size) { in hiface_pcm_playback()
296 sub->period_off %= alsa_rt->period_size; in hiface_pcm_playback()
353 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open() local
360 alsa_rt->hw = pcm_hw; in hiface_pcm_open()
373 alsa_rt->hw.rates |= SNDRV_PCM_RATE_KNOT; in hiface_pcm_open()
[all …]