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

Lines Matching defs:subs

454 	struct snd_pcm_substream *subs = stream->substream;
455 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
457 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE);
458 stream_num = is_capture ? 0 : subs->number;
460 snd_printdd("pcxhr_update_r_buffer(pcm%c%d) : addr(%p) bytes(%zx) subs(%d)\n",
462 chip->chip_idx, (void*)subs->runtime->dma_addr,
463 subs->runtime->dma_bytes, subs->number);
468 snd_assert(subs->runtime->dma_bytes < 0x200000); /* max buffer size is 2 MByte */
469 rmh.cmd[1] = subs->runtime->dma_bytes * 8; /* size in bits */
470 rmh.cmd[2] = subs->runtime->dma_addr >> 24; /* most significant byte */
472 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; /* least 3 significant bytes */
620 static int pcxhr_trigger(struct snd_pcm_substream *subs, int cmd)
628 if (snd_pcm_stream_linked(subs)) {
629 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
630 snd_pcm_group_for_each_entry(s, subs) {
634 snd_pcm_trigger_done(s, subs);
638 stream = subs->runtime->private_data;
654 snd_pcm_group_for_each_entry(s, subs) {
659 snd_pcm_trigger_done(s, subs);
691 static int pcxhr_prepare(struct snd_pcm_substream *subs)
693 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
696 struct pcxhr_stream *stream = (pcxhr_stream_t*)subs->runtime->private_data;
701 subs->runtime->period_size, subs->runtime->periods,
702 subs->runtime->buffer_size);
705 if(subs->runtime->period_size <= PCXHR_GRANULARITY) {
707 (unsigned int)subs->runtime->period_size);
728 if (mgr->sample_rate != subs->runtime->rate) {
729 err = pcxhr_set_clock(mgr, subs->runtime->rate);
735 mgr->sample_rate = subs->runtime->rate;
748 static int pcxhr_hw_params(struct snd_pcm_substream *subs,
751 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
753 struct pcxhr_stream *stream = subs->runtime->private_data;
778 err = snd_pcm_lib_malloc_pages(subs, params_buffer_bytes(hw));
790 static int pcxhr_hw_free(struct snd_pcm_substream *subs)
792 snd_pcm_lib_free_pages(subs);
823 static int pcxhr_open(struct snd_pcm_substream *subs)
825 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
827 struct snd_pcm_runtime *runtime = subs->runtime;
836 if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) {
837 snd_printdd("pcxhr_open playback chip%d subs%d\n",
838 chip->chip_idx, subs->number);
840 stream = &chip->playback_stream[subs->number];
842 snd_printdd("pcxhr_open capture chip%d subs%d\n",
843 chip->chip_idx, subs->number);
849 stream = &chip->capture_stream[subs->number];
853 snd_printk(KERN_ERR "pcxhr_open chip%d subs%d in use\n",
854 chip->chip_idx, subs->number);
879 stream->substream = subs;
894 static int pcxhr_close(struct snd_pcm_substream *subs)
896 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
898 struct pcxhr_stream *stream = subs->runtime->private_data;
902 snd_printdd("pcxhr_close chip%d subs%d\n", chip->chip_idx, subs->number);
919 static snd_pcm_uframes_t pcxhr_stream_pointer(struct snd_pcm_substream *subs)
924 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs);
925 struct snd_pcm_runtime *runtime = subs->runtime;