Lines Matching defs:runtime

560 	struct snd_pcm_runtime *runtime = substream->runtime;
566 if (snd_pcm_format_width(runtime->format) == 16)
568 if (runtime->channels == 2)
570 rate = (runtime->rate * 8192) / 375;
576 outl(runtime->dma_addr, ice->ddma_port + 0);
593 struct snd_pcm_runtime *runtime = substream->runtime;
598 if (snd_pcm_format_width(runtime->format) == 16)
600 if (runtime->channels == 2)
602 rate = (runtime->rate * 8192) / 375;
606 ice->playback_con_virt_addr[substream->number] = runtime->dma_addr;
609 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr);
611 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0));
616 if (runtime->channels == 2) {
627 struct snd_pcm_runtime *runtime = substream->runtime;
634 if (snd_pcm_format_width(runtime->format) == 16)
636 if (runtime->channels == 2)
639 outl(ice->capture_con_virt_addr = runtime->dma_addr, ICEREG(ice, CONCAP_ADDR));
645 snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
652 struct snd_pcm_runtime *runtime = substream->runtime;
657 ptr = runtime->buffer_size - inw(ice->ddma_port + 4);
658 ptr = bytes_to_frames(substream->runtime, ptr);
659 if (ptr == runtime->buffer_size)
678 ptr = bytes_to_frames(substream->runtime, ptr);
679 if (ptr == substream->runtime->buffer_size)
692 ptr = bytes_to_frames(substream->runtime, ptr);
693 if (ptr == substream->runtime->buffer_size)
756 struct snd_pcm_runtime *runtime = substream->runtime;
760 runtime->hw = snd_ice1712_playback;
766 struct snd_pcm_runtime *runtime = substream->runtime;
771 runtime->hw = snd_ice1712_playback_ds;
781 struct snd_pcm_runtime *runtime = substream->runtime;
785 runtime->hw = snd_ice1712_capture;
786 runtime->hw.rates = ice->ac97->rates[AC97_RATES_ADC];
787 if (!(runtime->hw.rates & SNDRV_PCM_RATE_8000))
788 runtime->hw.rate_min = 48000;
1026 outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR));
1049 outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR));
1073 ptr = bytes_to_frames(substream->runtime, ptr);
1074 if (ptr == substream->runtime->buffer_size)
1087 ptr = bytes_to_frames(substream->runtime, ptr);
1088 if (ptr == substream->runtime->buffer_size)
1133 struct snd_pcm_runtime *runtime = substream->runtime;
1137 runtime->hw = snd_ice1712_playback_pro;
1139 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1140 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1142 runtime->hw.rate_min = PRO_RATE_DEFAULT;
1143 runtime->hw.rate_max = PRO_RATE_DEFAULT;
1155 struct snd_pcm_runtime *runtime = substream->runtime;
1158 runtime->hw = snd_ice1712_capture_pro;
1160 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1161 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1163 runtime->hw.rate_min = PRO_RATE_DEFAULT;
1164 runtime->hw.rate_max = PRO_RATE_DEFAULT;