• Home
  • Raw
  • Download

Lines Matching refs:runtime

108 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_sb8_playback_prepare()  local
111 unsigned char stereo = runtime->channels > 1; in snd_sb8_playback_prepare()
114 rate = runtime->rate; in snd_sb8_playback_prepare()
117 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_playback_prepare()
126 if (runtime->channels > 1) { in snd_sb8_playback_prepare()
172 runtime->dma_area[0] = 0x80; in snd_sb8_playback_prepare()
173 snd_dma_program(dma, runtime->dma_addr, 1, DMA_MODE_WRITE); in snd_sb8_playback_prepare()
181 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_playback_prepare()
190 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_playback_prepare()
201 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_playback_prepare()
225 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_playback_trigger() local
227 if (runtime->channels > 1) { in snd_sb8_playback_trigger()
258 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_capture_prepare() local
261 unsigned char stereo = runtime->channels > 1; in snd_sb8_capture_prepare()
264 rate = runtime->rate; in snd_sb8_capture_prepare()
267 if (runtime->format == SNDRV_PCM_FORMAT_S16_LE) { in snd_sb8_capture_prepare()
276 if (runtime->channels > 1) { in snd_sb8_capture_prepare()
318 snd_sbdsp_command(chip, 256 - runtime->rate_den / 2); in snd_sb8_capture_prepare()
327 snd_sbdsp_command(chip, 256 - runtime->rate_den); in snd_sb8_capture_prepare()
338 snd_dma_program(dma, runtime->dma_addr, in snd_sb8_capture_prepare()
362 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_capture_trigger() local
364 if (runtime->channels > 1) { in snd_sb8_capture_trigger()
384 struct snd_pcm_runtime *runtime; in snd_sb8dsp_interrupt() local
394 runtime = substream->runtime; in snd_sb8dsp_interrupt()
405 runtime = substream->runtime; in snd_sb8dsp_interrupt()
427 return bytes_to_frames(substream->runtime, ptr); in snd_sb8_playback_pointer()
443 return bytes_to_frames(substream->runtime, ptr); in snd_sb8_capture_pointer()
495 struct snd_pcm_runtime *runtime = substream->runtime; in snd_sb8_open() local
507 runtime->hw = snd_sb8_playback; in snd_sb8_open()
510 runtime->hw = snd_sb8_capture; in snd_sb8_open()
515 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S16_LE; in snd_sb8_open()
516 runtime->hw.rates |= SNDRV_PCM_RATE_8000_48000; in snd_sb8_open()
517 runtime->hw.rate_min = 4000; in snd_sb8_open()
518 runtime->hw.rate_max = 50000; in snd_sb8_open()
519 runtime->hw.channels_max = 2; in snd_sb8_open()
522 runtime->hw.rate_max = 44100; in snd_sb8_open()
523 runtime->hw.channels_max = 2; in snd_sb8_open()
524 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_sb8_open()
528 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in snd_sb8_open()
534 runtime->hw.rate_max = 44100; in snd_sb8_open()
536 runtime->hw.rate_max = 15000; in snd_sb8_open()
541 snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_sb8_open()
544 snd_pcm_hw_constraint_step(runtime, 0, in snd_sb8_open()
546 snd_pcm_hw_constraint_step(runtime, 0, in snd_sb8_open()
548 runtime->hw.buffer_bytes_max = 128 * 1024 * 1024; in snd_sb8_open()
549 runtime->hw.period_bytes_max = 128 * 1024 * 1024; in snd_sb8_open()