Lines Matching refs:runtime
656 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_playback_hw_params() local
663 runtime->dma_area = (void __force *)(rme32->iobase + in snd_rme32_playback_hw_params()
665 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; in snd_rme32_playback_hw_params()
666 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_playback_hw_params()
711 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_capture_hw_params() local
718 runtime->dma_area = (void __force *)rme32->iobase + in snd_rme32_capture_hw_params()
720 runtime->dma_addr = rme32->port + RME32_IO_DATA_BUFFER; in snd_rme32_capture_hw_params()
721 runtime->dma_bytes = RME32_BUFFER_SIZE; in snd_rme32_capture_hw_params()
742 if ((isadat && runtime->hw.channels_min == 2) || in snd_rme32_capture_hw_params()
743 (!isadat && runtime->hw.channels_min == 8)) { in snd_rme32_capture_hw_params()
831 static void snd_rme32_set_buffer_constraint(struct rme32 *rme32, struct snd_pcm_runtime *runtime) in snd_rme32_set_buffer_constraint() argument
834 snd_pcm_hw_constraint_single(runtime, in snd_rme32_set_buffer_constraint()
837 snd_pcm_hw_constraint_list(runtime, 0, in snd_rme32_set_buffer_constraint()
847 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_playback_spdif_open() local
862 runtime->hw = snd_rme32_spdif_fd_info; in snd_rme32_playback_spdif_open()
864 runtime->hw = snd_rme32_spdif_info; in snd_rme32_playback_spdif_open()
866 runtime->hw.rates |= SNDRV_PCM_RATE_64000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; in snd_rme32_playback_spdif_open()
867 runtime->hw.rate_max = 96000; in snd_rme32_playback_spdif_open()
872 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); in snd_rme32_playback_spdif_open()
873 runtime->hw.rate_min = rate; in snd_rme32_playback_spdif_open()
874 runtime->hw.rate_max = rate; in snd_rme32_playback_spdif_open()
877 snd_rme32_set_buffer_constraint(rme32, runtime); in snd_rme32_playback_spdif_open()
890 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_capture_spdif_open() local
903 runtime->hw = snd_rme32_spdif_fd_info; in snd_rme32_capture_spdif_open()
905 runtime->hw = snd_rme32_spdif_info; in snd_rme32_capture_spdif_open()
907 runtime->hw.rates |= SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000; in snd_rme32_capture_spdif_open()
908 runtime->hw.rate_max = 96000; in snd_rme32_capture_spdif_open()
914 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); in snd_rme32_capture_spdif_open()
915 runtime->hw.rate_min = rate; in snd_rme32_capture_spdif_open()
916 runtime->hw.rate_max = rate; in snd_rme32_capture_spdif_open()
919 snd_rme32_set_buffer_constraint(rme32, runtime); in snd_rme32_capture_spdif_open()
929 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_playback_adat_open() local
944 runtime->hw = snd_rme32_adat_fd_info; in snd_rme32_playback_adat_open()
946 runtime->hw = snd_rme32_adat_info; in snd_rme32_playback_adat_open()
950 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); in snd_rme32_playback_adat_open()
951 runtime->hw.rate_min = rate; in snd_rme32_playback_adat_open()
952 runtime->hw.rate_max = rate; in snd_rme32_playback_adat_open()
955 snd_rme32_set_buffer_constraint(rme32, runtime); in snd_rme32_playback_adat_open()
964 struct snd_pcm_runtime *runtime = substream->runtime; in snd_rme32_capture_adat_open() local
967 runtime->hw = snd_rme32_adat_fd_info; in snd_rme32_capture_adat_open()
969 runtime->hw = snd_rme32_adat_info; in snd_rme32_capture_adat_open()
974 runtime->hw.rates = snd_pcm_rate_to_rate_bit(rate); in snd_rme32_capture_adat_open()
975 runtime->hw.rate_min = rate; in snd_rme32_capture_adat_open()
976 runtime->hw.rate_max = rate; in snd_rme32_capture_adat_open()
989 snd_rme32_set_buffer_constraint(rme32, runtime); in snd_rme32_capture_adat_open()
1145 substream->runtime->dma_area + rec->sw_data, bytes); in snd_rme32_pb_trans_copy()
1169 memcpy_fromio(substream->runtime->dma_area + rec->sw_data, in snd_rme32_cp_trans_copy()