Lines Matching refs:runtime

589 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_ice1712_playback_prepare()  local
595 if (snd_pcm_format_width(runtime->format) == 16) in snd_ice1712_playback_prepare()
597 if (runtime->channels == 2) in snd_ice1712_playback_prepare()
599 rate = (runtime->rate * 8192) / 375; in snd_ice1712_playback_prepare()
605 outl(runtime->dma_addr, ice->ddma_port + 0); in snd_ice1712_playback_prepare()
622 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_ds_prepare() local
627 if (snd_pcm_format_width(runtime->format) == 16) in snd_ice1712_playback_ds_prepare()
629 if (runtime->channels == 2) in snd_ice1712_playback_ds_prepare()
631 rate = (runtime->rate * 8192) / 375; in snd_ice1712_playback_ds_prepare()
635 ice->playback_con_virt_addr[substream->number] = runtime->dma_addr; in snd_ice1712_playback_ds_prepare()
638 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr); in snd_ice1712_playback_ds_prepare()
640 …snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? peri… in snd_ice1712_playback_ds_prepare()
645 if (runtime->channels == 2) { in snd_ice1712_playback_ds_prepare()
656 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_capture_prepare() local
663 if (snd_pcm_format_width(runtime->format) == 16) in snd_ice1712_capture_prepare()
665 if (runtime->channels == 2) in snd_ice1712_capture_prepare()
668 outl(ice->capture_con_virt_addr = runtime->dma_addr, ICEREG(ice, CONCAP_ADDR)); in snd_ice1712_capture_prepare()
674 snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate); in snd_ice1712_capture_prepare()
681 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_pointer() local
686 ptr = runtime->buffer_size - inw(ice->ddma_port + 4); in snd_ice1712_playback_pointer()
687 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_pointer()
688 if (ptr == runtime->buffer_size) in snd_ice1712_playback_pointer()
707 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_ds_pointer()
708 if (ptr == substream->runtime->buffer_size) in snd_ice1712_playback_ds_pointer()
721 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_capture_pointer()
722 if (ptr == substream->runtime->buffer_size) in snd_ice1712_capture_pointer()
785 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_open() local
789 runtime->hw = snd_ice1712_playback; in snd_ice1712_playback_open()
795 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_ds_open() local
800 runtime->hw = snd_ice1712_playback_ds; in snd_ice1712_playback_ds_open()
810 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_capture_open() local
814 runtime->hw = snd_ice1712_capture; in snd_ice1712_capture_open()
815 runtime->hw.rates = ice->ac97->rates[AC97_RATES_ADC]; in snd_ice1712_capture_open()
816 if (!(runtime->hw.rates & SNDRV_PCM_RATE_8000)) in snd_ice1712_capture_open()
817 runtime->hw.rate_min = 48000; in snd_ice1712_capture_open()
1064 outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR)); in snd_ice1712_playback_pro_prepare()
1087 outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR)); in snd_ice1712_capture_pro_prepare()
1111 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_pro_pointer()
1112 if (ptr == substream->runtime->buffer_size) in snd_ice1712_playback_pro_pointer()
1125 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_capture_pro_pointer()
1126 if (ptr == substream->runtime->buffer_size) in snd_ice1712_capture_pro_pointer()
1171 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_playback_pro_open() local
1175 runtime->hw = snd_ice1712_playback_pro; in snd_ice1712_playback_pro_open()
1177 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); in snd_ice1712_playback_pro_open()
1178 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates); in snd_ice1712_playback_pro_open()
1180 runtime->hw.rate_min = PRO_RATE_DEFAULT; in snd_ice1712_playback_pro_open()
1181 runtime->hw.rate_max = PRO_RATE_DEFAULT; in snd_ice1712_playback_pro_open()
1193 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ice1712_capture_pro_open() local
1196 runtime->hw = snd_ice1712_capture_pro; in snd_ice1712_capture_pro_open()
1198 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24); in snd_ice1712_capture_pro_open()
1199 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates); in snd_ice1712_capture_pro_open()
1201 runtime->hw.rate_min = PRO_RATE_DEFAULT; in snd_ice1712_capture_pro_open()
1202 runtime->hw.rate_max = PRO_RATE_DEFAULT; in snd_ice1712_capture_pro_open()