Lines Matching refs:rt
411 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() local
422 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_playback_prepare()
423 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_playback_prepare()
425 if (rt->channels == 2) in snd_harmony_playback_prepare()
432 h->pbuf.addr = rt->dma_addr; in snd_harmony_playback_prepare()
441 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_prepare() local
452 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_capture_prepare()
453 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_capture_prepare()
455 if (rt->channels == 2) in snd_harmony_capture_prepare()
462 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare()
470 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_pointer() local
493 return bytes_to_frames(rt, played); in snd_harmony_playback_pointer()
499 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_pointer() local
522 return bytes_to_frames(rt, caught); in snd_harmony_capture_pointer()
529 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_open() local
533 rt->hw = snd_harmony_playback; in snd_harmony_playback_open()
534 snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_harmony_playback_open()
537 err = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in snd_harmony_playback_open()
548 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_open() local
552 rt->hw = snd_harmony_capture; in snd_harmony_capture_open()
553 snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_RATE, in snd_harmony_capture_open()
556 err = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in snd_harmony_capture_open()