Lines Matching refs:rt
398 struct snd_pcm_runtime *rt = ss->runtime;
409 h->st.rate = snd_harmony_rate_bits(rt->rate);
410 h->st.format = snd_harmony_set_data_format(h, rt->format, 0);
412 if (rt->channels == 2)
419 h->pbuf.addr = rt->dma_addr;
428 struct snd_pcm_runtime *rt = ss->runtime;
439 h->st.rate = snd_harmony_rate_bits(rt->rate);
440 h->st.format = snd_harmony_set_data_format(h, rt->format, 0);
442 if (rt->channels == 2)
449 h->cbuf.addr = rt->dma_addr;
457 struct snd_pcm_runtime *rt = ss->runtime;
480 return bytes_to_frames(rt, played);
486 struct snd_pcm_runtime *rt = ss->runtime;
509 return bytes_to_frames(rt, caught);
516 struct snd_pcm_runtime *rt = ss->runtime;
520 rt->hw = snd_harmony_playback;
521 snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_RATE,
524 err = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS);
535 struct snd_pcm_runtime *rt = ss->runtime;
539 rt->hw = snd_harmony_capture;
540 snd_pcm_hw_constraint_list(rt, 0, SNDRV_PCM_HW_PARAM_RATE,
543 err = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS);