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

Lines Matching defs:runtime

337 #define get_ichdev(substream) (substream->runtime->private_data)
895 struct snd_pcm_runtime *runtime = substream->runtime;
900 fill_nocache(runtime->dma_area, runtime->dma_bytes, 0); /* clear */
907 if (runtime->dma_area && ! ichdev->page_attr_changed) {
908 fill_nocache(runtime->dma_area, runtime->dma_bytes, 1);
939 fill_nocache(substream->runtime->dma_area, substream->runtime->dma_bytes, 0);
946 struct snd_pcm_runtime *runtime)
949 int dbl = runtime->rate > 48000;
956 if (runtime->channels == 4 || dbl)
958 else if (runtime->channels == 6)
965 if (runtime->channels == 4 || dbl)
967 else if (runtime->channels == 6)
974 if (runtime->channels == 4 || dbl)
976 else if (runtime->channels == 6)
989 if (runtime->sample_bits > 16)
1001 struct snd_pcm_runtime *runtime = substream->runtime;
1004 ichdev->physbuf = runtime->dma_addr;
1008 snd_intel8x0_setup_pcm_out(chip, runtime);
1010 ichdev->pos_shift = (runtime->sample_bits > 16) ? 2 : 1;
1043 return bytes_to_frames(substream->runtime, ptr);
1090 struct snd_pcm_runtime *runtime = substream->runtime;
1094 runtime->hw = snd_intel8x0_stream;
1095 runtime->hw.rates = ichdev->pcm->rates;
1096 snd_pcm_limit_hw_rates(runtime);
1098 runtime->hw.buffer_bytes_max = 64*1024;
1099 runtime->hw.period_bytes_max = 64*1024;
1101 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
1103 runtime->private_data = ichdev;
1110 struct snd_pcm_runtime *runtime = substream->runtime;
1118 runtime->hw.channels_max = 6;
1119 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
1122 runtime->hw.channels_max = 4;
1123 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS,
1127 snd_ac97_pcm_double_rate_rules(runtime);
1130 runtime->hw.formats |= SNDRV_PCM_FMTBIT_S32_LE;
1131 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 20);
2381 struct snd_pcm_runtime *runtime = ichdev->substream->runtime;
2382 if (runtime->dma_area)
2383 fill_nocache(runtime->dma_area, runtime->dma_bytes, 0);
2454 struct snd_pcm_runtime *runtime = ichdev->substream->runtime;
2455 if (runtime->dma_area)
2456 fill_nocache(runtime->dma_area, runtime->dma_bytes, 1);
2468 snd_intel8x0_setup_pcm_out(chip, ichdev->substream->runtime);