Lines Matching refs:runtime
215 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_prepare() local
224 rate_index = snd_pmac_rate_index(chip, rec, runtime->rate); in snd_pmac_pcm_prepare()
231 astr->cur_formats = 1 << runtime->format; in snd_pmac_pcm_prepare()
233 chip->format = runtime->format; in snd_pmac_pcm_prepare()
252 offset = runtime->dma_addr; in snd_pmac_pcm_prepare()
340 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer()
588 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_open() local
592 runtime->hw.rates = 0; in snd_pmac_pcm_open()
595 runtime->hw.rates |= in snd_pmac_pcm_open()
601 runtime->hw.rate_max = chip->freq_table[i]; in snd_pmac_pcm_open()
607 runtime->hw.rate_min = chip->freq_table[i]; in snd_pmac_pcm_open()
611 runtime->hw.formats = chip->formats_ok; in snd_pmac_pcm_open()
614 runtime->hw.info |= SNDRV_PCM_INFO_HALF_DUPLEX; in snd_pmac_pcm_open()
615 runtime->hw.info |= SNDRV_PCM_INFO_JOINT_DUPLEX; in snd_pmac_pcm_open()
617 runtime->private_data = rec; in snd_pmac_pcm_open()
621 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_pmac_pcm_open()
623 snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FORMAT, in snd_pmac_pcm_open()
627 runtime->hw.periods_max = rec->cmd.size - 1; in snd_pmac_pcm_open()
630 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in snd_pmac_pcm_open()
656 subs->runtime->hw = snd_pmac_playback; in snd_pmac_playback_open()
664 subs->runtime->hw = snd_pmac_capture; in snd_pmac_capture_open()