Lines Matching defs:runtime
344 .rates = 0, /* set at runtime */
373 static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime)
376 runtime->hw = snd_bt87x_digital_hw;
377 runtime->hw.rates = snd_pcm_rate_to_rate_bit(chip->board.dig_rate);
378 runtime->hw.rate_min = chip->board.dig_rate;
379 runtime->hw.rate_max = chip->board.dig_rate;
383 static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime)
397 runtime->hw = snd_bt87x_analog_hw;
398 return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
405 struct snd_pcm_runtime *runtime = substream->runtime;
412 err = snd_bt87x_set_digital_hw(chip, runtime);
414 err = snd_bt87x_set_analog_hw(chip, runtime);
418 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
467 struct snd_pcm_runtime *runtime = substream->runtime;
472 decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate;
474 if (runtime->format == SNDRV_PCM_FORMAT_S8)
523 struct snd_pcm_runtime *runtime = substream->runtime;
525 return (snd_pcm_uframes_t)bytes_to_frames(runtime, chip->current_line * chip->line_bytes);