Lines Matching refs:runtime

554 	struct snd_pcm_runtime *runtime = substream->runtime;
560 if (snd_pcm_format_width(runtime->format) == 16)
562 if (runtime->channels == 2)
564 rate = (runtime->rate * 8192) / 375;
570 outl(runtime->dma_addr, ice->ddma_port + 0);
587 struct snd_pcm_runtime *runtime = substream->runtime;
592 if (snd_pcm_format_width(runtime->format) == 16)
594 if (runtime->channels == 2)
596 rate = (runtime->rate * 8192) / 375;
600 ice->playback_con_virt_addr[substream->number] = runtime->dma_addr;
603 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr);
605 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0));
610 if (runtime->channels == 2) {
621 struct snd_pcm_runtime *runtime = substream->runtime;
628 if (snd_pcm_format_width(runtime->format) == 16)
630 if (runtime->channels == 2)
633 outl(ice->capture_con_virt_addr = runtime->dma_addr, ICEREG(ice, CONCAP_ADDR));
639 snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
646 struct snd_pcm_runtime *runtime = substream->runtime;
651 ptr = runtime->buffer_size - inw(ice->ddma_port + 4);
652 ptr = bytes_to_frames(substream->runtime, ptr);
653 if (ptr == runtime->buffer_size)
672 ptr = bytes_to_frames(substream->runtime, ptr);
673 if (ptr == substream->runtime->buffer_size)
686 ptr = bytes_to_frames(substream->runtime, ptr);
687 if (ptr == substream->runtime->buffer_size)
750 struct snd_pcm_runtime *runtime = substream->runtime;
754 runtime->hw = snd_ice1712_playback;
760 struct snd_pcm_runtime *runtime = substream->runtime;
765 runtime->hw = snd_ice1712_playback_ds;
775 struct snd_pcm_runtime *runtime = substream->runtime;
779 runtime->hw = snd_ice1712_capture;
780 runtime->hw.rates = ice->ac97->rates[AC97_RATES_ADC];
781 if (!(runtime->hw.rates & SNDRV_PCM_RATE_8000))
782 runtime->hw.rate_min = 48000;
1020 outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR));
1043 outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR));
1067 ptr = bytes_to_frames(substream->runtime, ptr);
1068 if (ptr == substream->runtime->buffer_size)
1081 ptr = bytes_to_frames(substream->runtime, ptr);
1082 if (ptr == substream->runtime->buffer_size)
1127 struct snd_pcm_runtime *runtime = substream->runtime;
1131 runtime->hw = snd_ice1712_playback_pro;
1133 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1134 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1136 runtime->hw.rate_min = PRO_RATE_DEFAULT;
1137 runtime->hw.rate_max = PRO_RATE_DEFAULT;
1149 struct snd_pcm_runtime *runtime = substream->runtime;
1152 runtime->hw = snd_ice1712_capture_pro;
1154 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1155 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1157 runtime->hw.rate_min = PRO_RATE_DEFAULT;
1158 runtime->hw.rate_max = PRO_RATE_DEFAULT;