Lines Matching defs:runtime

94 	struct snd_pcm_runtime *runtime = substream->runtime;
97 unsigned char stereo = runtime->channels > 1;
100 rate = runtime->rate;
103 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) {
112 if (runtime->channels > 1) {
158 runtime->dma_area[0] = 0x80;
159 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE);
167 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2);
176 snd_sbdsp_command(chip, 256 - runtime->rate_den);
187 snd_dma_program(dma, runtime->dma_addr,
211 struct snd_pcm_runtime *runtime = substream->runtime;
213 if (runtime->channels > 1) {
232 struct snd_pcm_runtime *runtime = substream->runtime;
235 unsigned char stereo = runtime->channels > 1;
238 rate = runtime->rate;
241 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) {
250 if (runtime->channels > 1) {
292 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2);
301 snd_sbdsp_command(chip, 256 - runtime->rate_den);
312 snd_dma_program(dma, runtime->dma_addr,
336 struct snd_pcm_runtime *runtime = substream->runtime;
338 if (runtime->channels > 1) {
398 return bytes_to_frames(substream->runtime, ptr);
414 return bytes_to_frames(substream->runtime, ptr);
466 struct snd_pcm_runtime *runtime = substream->runtime;
478 runtime->hw = snd_sb8_playback;
481 runtime->hw = snd_sb8_capture;
486 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S16_LE;
487 runtime->hw.rates |= SNDRV_PCM_RATE_8000_48000;
488 runtime->hw.rate_min = 4000;
489 runtime->hw.rate_max = 50000;
490 runtime->hw.channels_max = 2;
493 runtime->hw.rate_max = 44100;
494 runtime->hw.channels_max = 2;
495 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
499 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
505 runtime->hw.rate_max = 44100;
507 runtime->hw.rate_max = 15000;
513 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
516 snd_pcm_hw_constraint_step(runtime, 0,
518 snd_pcm_hw_constraint_step(runtime, 0,
520 runtime->hw.buffer_bytes_max = 128 * 1024 * 1024;
521 runtime->hw.period_bytes_max = 128 * 1024 * 1024;