Lines Matching defs:runtime

306 #define get_ichdev(substream) (substream->runtime->private_data)
918 struct snd_pcm_runtime *runtime)
921 int dbl = runtime->rate > 48000;
928 if (runtime->channels == 4 || dbl)
930 else if (runtime->channels == 6)
937 if (runtime->channels == 4 || dbl)
939 else if (runtime->channels == 6)
946 if (runtime->channels == 4 || dbl)
948 else if (runtime->channels == 6)
950 else if (runtime->channels == 8)
963 if (runtime->sample_bits > 16)
975 struct snd_pcm_runtime *runtime = substream->runtime;
978 ichdev->physbuf = runtime->dma_addr;
982 snd_intel8x0_setup_pcm_out(chip, runtime);
984 ichdev->pos_shift = (runtime->sample_bits > 16) ? 2 : 1;
1042 return bytes_to_frames(substream->runtime, ptr);
1099 struct snd_pcm_runtime *runtime = substream->runtime;
1103 runtime->hw = snd_intel8x0_stream;
1104 runtime->hw.rates = ichdev->pcm->rates;
1105 snd_pcm_limit_hw_rates(runtime);
1107 runtime->hw.buffer_bytes_max = 64*1024;
1108 runtime->hw.period_bytes_max = 64*1024;
1110 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
1113 runtime->private_data = ichdev;
1120 struct snd_pcm_runtime *runtime = substream->runtime;
1128 runtime->hw.channels_max = 8;
1129 snd_pcm_hw_constraint_list(runtime, 0,
1133 runtime->hw.channels_max = 6;
1134 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
1137 runtime->hw.channels_max = 4;
1138 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
1142 snd_ac97_pcm_double_rate_rules(runtime);
1145 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE;
1146 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20);
2619 snd_intel8x0_setup_pcm_out(chip, ichdev->substream->runtime);