Lines Matching defs:runtime
343 .rates = 0, /* set at runtime */
372 static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime)
375 runtime->hw = snd_bt87x_digital_hw;
376 runtime->hw.rates = snd_pcm_rate_to_rate_bit(chip->board.dig_rate);
377 runtime->hw.rate_min = chip->board.dig_rate;
378 runtime->hw.rate_max = chip->board.dig_rate;
382 static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime)
396 runtime->hw = snd_bt87x_analog_hw;
397 return snd_pcm_hw_constraint_ratnums(runtime, 0, SNDRV_PCM_HW_PARAM_RATE,
404 struct snd_pcm_runtime *runtime = substream->runtime;
411 err = snd_bt87x_set_digital_hw(chip, runtime);
413 err = snd_bt87x_set_analog_hw(chip, runtime);
417 err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
466 struct snd_pcm_runtime *runtime = substream->runtime;
471 decimation = (ANALOG_CLOCK + runtime->rate / 4) / runtime->rate;
473 if (runtime->format == SNDRV_PCM_FORMAT_S8)
522 struct snd_pcm_runtime *runtime = substream->runtime;
524 return (snd_pcm_uframes_t)bytes_to_frames(runtime, chip->current_line * chip->line_bytes);