Lines Matching defs:runtime
552 reg = s->runtime->private_data;
770 val = (8 - substream->runtime->channels) >> 1;
773 outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR));
789 substream->runtime->channels,
790 (unsigned int)substream->runtime->dma_addr,
806 if (ptr < substream->runtime->dma_addr) {
810 ptr -= substream->runtime->dma_addr;
811 ptr = bytes_to_frames(substream->runtime, ptr);
812 if (ptr >= substream->runtime->buffer_size) {
814 (int)ptr, (int)substream->runtime->period_size);
820 ptr = bytes_to_frames(substream->runtime, ptr);
823 else if (ptr <= substream->runtime->buffer_size)
824 ptr = substream->runtime->buffer_size - ptr;
827 (int)ptr, (int)substream->runtime->buffer_size);
837 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
840 outl(substream->runtime->dma_addr, ice->profi_port + reg->addr);
852 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
859 ptr -= substream->runtime->dma_addr;
860 return bytes_to_frames(substream->runtime, ptr);
864 ptr = bytes_to_frames(substream->runtime, ptr);
867 else if (ptr <= substream->runtime->buffer_size)
868 ptr = substream->runtime->buffer_size - ptr;
871 (int)ptr, (int)substream->runtime->buffer_size);
989 struct snd_pcm_runtime *runtime = substream->runtime;
991 runtime->hw.rate_min = ice->hw_rates->list[0];
992 runtime->hw.rate_max = ice->hw_rates->list[ice->hw_rates->count - 1];
993 runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
994 return snd_pcm_hw_constraint_list(runtime, 0,
999 /* if the card has the internal rate locked (is_pro_locked), limit runtime
1005 struct snd_pcm_runtime *runtime = substream->runtime;
1009 if (rate >= runtime->hw.rate_min
1010 && rate <= runtime->hw.rate_max) {
1011 runtime->hw.rate_min = rate;
1012 runtime->hw.rate_max = rate;
1025 struct snd_pcm_runtime *runtime = substream->runtime;
1029 runtime->private_data = (void *)&vt1724_playback_pro_reg;
1031 runtime->hw = snd_vt1724_playback_pro;
1033 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1043 runtime->hw.channels_max = chs;
1045 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2);
1047 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1049 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1060 struct snd_pcm_runtime *runtime = substream->runtime;
1062 runtime->private_data = (void *)&vt1724_capture_pro_reg;
1064 runtime->hw = snd_vt1724_2ch_stereo;
1066 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1068 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1070 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1197 update_spdif_rate(ice, substream->runtime->rate);
1204 struct snd_pcm_runtime *runtime = substream->runtime;
1206 runtime->private_data = (void *)&vt1724_playback_spdif_reg;
1209 runtime->hw = snd_vt1724_2ch_stereo;
1212 runtime->hw = snd_vt1724_spdif;
1214 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1215 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1217 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1241 struct snd_pcm_runtime *runtime = substream->runtime;
1243 runtime->private_data = (void *)&vt1724_capture_spdif_reg;
1246 runtime->hw = snd_vt1724_2ch_stereo;
1249 runtime->hw = snd_vt1724_spdif;
1251 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1252 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
1254 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1387 struct snd_pcm_runtime *runtime = substream->runtime;
1396 runtime->private_data = (void *)&vt1724_playback_dma_regs[substream->number];
1398 runtime->hw = snd_vt1724_2ch_stereo;
1400 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);