Lines Matching refs:subs

627 	struct snd_pcm_substream *subs = stream->substream;  in pcxhr_update_r_buffer()  local
628 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_update_r_buffer()
630 is_capture = (subs->stream == SNDRV_PCM_STREAM_CAPTURE); in pcxhr_update_r_buffer()
631 stream_num = is_capture ? 0 : subs->number; in pcxhr_update_r_buffer()
636 chip->chip_idx, (void *)(long)subs->runtime->dma_addr, in pcxhr_update_r_buffer()
637 subs->runtime->dma_bytes, subs->number); in pcxhr_update_r_buffer()
644 snd_BUG_ON(subs->runtime->dma_bytes >= 0x200000); in pcxhr_update_r_buffer()
646 rmh.cmd[1] = subs->runtime->dma_bytes * 8; in pcxhr_update_r_buffer()
648 rmh.cmd[2] = subs->runtime->dma_addr >> 24; in pcxhr_update_r_buffer()
652 rmh.cmd[3] = subs->runtime->dma_addr & MASK_DSP_WORD; in pcxhr_update_r_buffer()
825 static int pcxhr_trigger(struct snd_pcm_substream *subs, int cmd) in pcxhr_trigger() argument
829 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_trigger()
834 if (snd_pcm_stream_linked(subs)) { in pcxhr_trigger()
835 snd_pcm_group_for_each_entry(s, subs) { in pcxhr_trigger()
841 snd_pcm_trigger_done(s, subs); in pcxhr_trigger()
845 stream = subs->runtime->private_data; in pcxhr_trigger()
862 snd_pcm_group_for_each_entry(s, subs) { in pcxhr_trigger()
867 snd_pcm_trigger_done(s, subs); in pcxhr_trigger()
901 static int pcxhr_prepare(struct snd_pcm_substream *subs) in pcxhr_prepare() argument
903 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_prepare()
909 subs->runtime->period_size, subs->runtime->periods, in pcxhr_prepare()
910 subs->runtime->buffer_size); in pcxhr_prepare()
917 if (mgr->sample_rate != subs->runtime->rate) { in pcxhr_prepare()
918 err = pcxhr_set_clock(mgr, subs->runtime->rate); in pcxhr_prepare()
924 mgr->sample_rate = subs->runtime->rate; in pcxhr_prepare()
937 static int pcxhr_hw_params(struct snd_pcm_substream *subs, in pcxhr_hw_params() argument
940 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_hw_params()
942 struct pcxhr_stream *stream = subs->runtime->private_data; in pcxhr_hw_params()
987 static int pcxhr_open(struct snd_pcm_substream *subs) in pcxhr_open() argument
989 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_open()
991 struct snd_pcm_runtime *runtime = subs->runtime; in pcxhr_open()
1000 if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) { in pcxhr_open()
1002 chip->chip_idx, subs->number); in pcxhr_open()
1003 stream = &chip->playback_stream[subs->number]; in pcxhr_open()
1006 chip->chip_idx, subs->number); in pcxhr_open()
1011 stream = &chip->capture_stream[subs->number]; in pcxhr_open()
1016 chip->chip_idx, subs->number); in pcxhr_open()
1054 stream->substream = subs; in pcxhr_open()
1064 snd_pcm_set_sync(subs); in pcxhr_open()
1073 static int pcxhr_close(struct snd_pcm_substream *subs) in pcxhr_close() argument
1075 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_close()
1077 struct pcxhr_stream *stream = subs->runtime->private_data; in pcxhr_close()
1082 chip->chip_idx, subs->number); in pcxhr_close()
1099 static snd_pcm_uframes_t pcxhr_stream_pointer(struct snd_pcm_substream *subs) in pcxhr_stream_pointer() argument
1103 struct snd_pcxhr *chip = snd_pcm_substream_chip(subs); in pcxhr_stream_pointer()
1104 struct snd_pcm_runtime *runtime = subs->runtime; in pcxhr_stream_pointer()