• 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

345 		reg = s->runtime->private_data;
547 val = (8 - substream->runtime->channels) >> 1;
550 outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR));
563 // printk("pro prepare: ch = %d, addr = 0x%x, buffer = 0x%x, period = 0x%x\n", substream->runtime->channels, (unsigned int)substream->runtime->dma_addr, snd_pcm_lib_buffer_bytes(substream), snd_pcm_lib_period_bytes(substream));
576 ptr = bytes_to_frames(substream->runtime, ptr);
579 else if (ptr <= substream->runtime->buffer_size)
580 ptr = substream->runtime->buffer_size - ptr;
583 (int)ptr, (int)substream->runtime->buffer_size);
592 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
595 outl(substream->runtime->dma_addr, ice->profi_port + reg->addr);
607 const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
614 ptr = bytes_to_frames(substream->runtime, ptr);
617 else if (ptr <= substream->runtime->buffer_size)
618 ptr = substream->runtime->buffer_size - ptr;
621 (int)ptr, (int)substream->runtime->buffer_size);
707 struct snd_pcm_runtime *runtime = substream->runtime;
710 runtime->hw.rate_min = ice->hw_rates->list[0];
711 runtime->hw.rate_max = ice->hw_rates->list[ice->hw_rates->count - 1];
712 runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
713 return snd_pcm_hw_constraint_list(runtime, 0,
721 return snd_pcm_hw_constraint_list(runtime, 0,
725 runtime->hw.rates = SNDRV_PCM_RATE_KNOT |
727 runtime->hw.rate_max = 96000;
728 return snd_pcm_hw_constraint_list(runtime, 0,
734 runtime->hw.rate_max = 48000;
735 runtime->hw.rates = SNDRV_PCM_RATE_KNOT | SNDRV_PCM_RATE_8000_48000;
736 return snd_pcm_hw_constraint_list(runtime, 0,
750 struct snd_pcm_runtime *runtime = substream->runtime;
754 runtime->private_data = (void *)&vt1724_playback_pro_reg;
756 runtime->hw = snd_vt1724_playback_pro;
758 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
767 runtime->hw.channels_max = chs;
769 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2);
771 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
773 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
781 struct snd_pcm_runtime *runtime = substream->runtime;
783 runtime->private_data = (void *)&vt1724_capture_pro_reg;
785 runtime->hw = snd_vt1724_2ch_stereo;
787 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
789 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
791 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
925 update_spdif_rate(ice, substream->runtime->rate);
932 struct snd_pcm_runtime *runtime = substream->runtime;
934 runtime->private_data = (void *)&vt1724_playback_spdif_reg;
937 runtime->hw = snd_vt1724_2ch_stereo;
940 runtime->hw = snd_vt1724_spdif;
942 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
943 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
945 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
964 struct snd_pcm_runtime *runtime = substream->runtime;
966 runtime->private_data = (void *)&vt1724_capture_spdif_reg;
969 runtime->hw = snd_vt1724_2ch_stereo;
972 runtime->hw = snd_vt1724_spdif;
974 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);
975 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES,
977 snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
1108 struct snd_pcm_runtime *runtime = substream->runtime;
1117 runtime->private_data = (void *)&vt1724_playback_dma_regs[substream->number];
1119 runtime->hw = snd_vt1724_2ch_stereo;
1121 snd_pcm_hw_constraint_msbits(runtime, 0, 32, 24);