Lines Matching defs:runtime

533 			reg = s->runtime->private_data;
751 val = (8 - substream->runtime->channels) >> 1;
754 outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR));
770 substream->runtime->channels,
771 (unsigned int)substream->runtime->dma_addr,
787 if (ptr < substream->runtime->dma_addr) {
791 ptr -= substream->runtime->dma_addr;
792 ptr = bytes_to_frames(substream->runtime, ptr);
793 if (ptr >= substream->runtime->buffer_size) {
795 (int)ptr, (int)substream->runtime->period_size);
801 ptr = bytes_to_frames(substream->runtime, ptr);
804 else if (ptr <= substream->runtime->buffer_size)
805 ptr = substream->runtime->buffer_size - ptr;
808 (int)ptr, (int)substream->runtime->buffer_size);
818 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
821 outl(substream->runtime->dma_addr, ice->profi_port + reg->addr);
833 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
840 ptr -= substream->runtime->dma_addr;
841 return bytes_to_frames(substream->runtime, ptr);
845 ptr = bytes_to_frames(substream->runtime, ptr);
848 else if (ptr <= substream->runtime->buffer_size)
849 ptr = substream->runtime->buffer_size - ptr;
852 (int)ptr, (int)substream->runtime->buffer_size);
970 struct snd_pcm_runtime *runtime = substream->runtime;
972 runtime->hw.rate_min = ice->hw_rates->list[0];
973 runtime->hw.rate_max = ice->hw_rates->list[ice->hw_rates->count - 1];
974 runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
975 return snd_pcm_hw_constraint_list(runtime, 0,
980 /* if the card has the internal rate locked (is_pro_locked), limit runtime
986 struct snd_pcm_runtime *runtime = substream->runtime;
990 if (rate >= runtime->hw.rate_min
991 && rate <= runtime->hw.rate_max) {
992 runtime->hw.rate_min = rate;
993 runtime->hw.rate_max = rate;
1006 struct snd_pcm_runtime *runtime = substream->runtime;
1010 runtime->private_data = (void *)&vt1724_playback_pro_reg;
1012 runtime->hw = snd_vt1724_playback_pro;
1014 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1024 runtime->hw.channels_max = chs;
1026 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2);
1028 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1030 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1041 struct snd_pcm_runtime *runtime = substream->runtime;
1043 runtime->private_data = (void *)&vt1724_capture_pro_reg;
1045 runtime->hw = snd_vt1724_2ch_stereo;
1047 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1049 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1051 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1178 update_spdif_rate(ice, substream->runtime->rate);
1185 struct snd_pcm_runtime *runtime = substream->runtime;
1187 runtime->private_data = (void *)&vt1724_playback_spdif_reg;
1190 runtime->hw = snd_vt1724_2ch_stereo;
1193 runtime->hw = snd_vt1724_spdif;
1195 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1196 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1198 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1222 struct snd_pcm_runtime *runtime = substream->runtime;
1224 runtime->private_data = (void *)&vt1724_capture_spdif_reg;
1227 runtime->hw = snd_vt1724_2ch_stereo;
1230 runtime->hw = snd_vt1724_spdif;
1232 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1233 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1235 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1368 struct snd_pcm_runtime *runtime = substream->runtime;
1377 runtime->private_data = (void *)&vt1724_playback_dma_regs[substream->number];
1379 runtime->hw = snd_vt1724_2ch_stereo;
1381 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);