• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/ice1712/

Lines Matching defs:runtime

586 	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;
602 outl(runtime->dma_addr, ice->ddma_port + 0);
619 struct snd_pcm_runtime *runtime = substream->runtime;
625 if (snd_pcm_format_width(runtime->format) == 16)
627 if (runtime->channels == 2)
629 rate = (runtime->rate * 8192) / 375;
633 ice->playback_con_virt_addr[substream->number] = runtime->dma_addr;
636 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR0, runtime->dma_addr);
638 snd_ice1712_ds_write(ice, chn, ICE1712_DSC_ADDR1, runtime->dma_addr + (runtime->periods > 1 ? period_size + 1 : 0));
643 if (runtime->channels == 2) {
654 struct snd_pcm_runtime *runtime = substream->runtime;
661 if (snd_pcm_format_width(runtime->format) == 16)
663 if (runtime->channels == 2)
666 outl(ice->capture_con_virt_addr = runtime->dma_addr, ICEREG(ice, CONCAP_ADDR));
672 snd_ac97_set_rate(ice->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
679 struct snd_pcm_runtime *runtime = substream->runtime;
684 ptr = runtime->buffer_size - inw(ice->ddma_port + 4);
685 if (ptr == runtime->buffer_size)
687 return bytes_to_frames(substream->runtime, ptr);
704 if (ptr == substream->runtime->buffer_size)
706 return bytes_to_frames(substream->runtime, ptr);
717 if (ptr == substream->runtime->buffer_size)
719 return bytes_to_frames(substream->runtime, ptr);
783 struct snd_pcm_runtime *runtime = substream->runtime;
787 runtime->hw = snd_ice1712_playback;
793 struct snd_pcm_runtime *runtime = substream->runtime;
798 runtime->hw = snd_ice1712_playback_ds;
808 struct snd_pcm_runtime *runtime = substream->runtime;
812 runtime->hw = snd_ice1712_capture;
813 runtime->hw.rates = ice->ac97->rates[AC97_RATES_ADC];
814 if (!(runtime->hw.rates & SNDRV_PCM_RATE_8000))
815 runtime->hw.rate_min = 48000;
1069 outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR));
1092 outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR));
1116 if (ptr == substream->runtime->buffer_size)
1118 return bytes_to_frames(substream->runtime, ptr);
1129 if (ptr == substream->runtime->buffer_size)
1131 return bytes_to_frames(substream->runtime, ptr);
1176 struct snd_pcm_runtime *runtime = substream->runtime;
1180 runtime->hw = snd_ice1712_playback_pro;
1182 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1183 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);
1194 struct snd_pcm_runtime *runtime = substream->runtime;
1197 runtime->hw = snd_ice1712_capture_pro;
1199 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
1200 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_rates);