• Home
  • Raw
  • Download

Lines Matching refs:subs

417 static int snd_mixart_trigger(struct snd_pcm_substream *subs, int cmd)  in snd_mixart_trigger()  argument
419 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger()
424 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger()
441 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger()
448 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger()
453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger()
478 static int snd_mixart_prepare(struct snd_pcm_substream *subs) in snd_mixart_prepare() argument
480 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare()
481 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare()
492 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare()
496 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) in snd_mixart_prepare()
591 static int snd_mixart_hw_params(struct snd_pcm_substream *subs, in snd_mixart_hw_params() argument
594 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_params()
596 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_hw_params()
612 if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) in snd_mixart_hw_params()
613 mixart_update_playback_stream_level(chip, is_aes, subs->number); in snd_mixart_hw_params()
627 if (subs->runtime->buffer_changed) { in snd_mixart_hw_params()
629 …PER_CARD) + (stream->pcm_number * (MIXART_PLAYBACK_STREAMS+MIXART_CAPTURE_STREAMS)) + subs->number; in snd_mixart_hw_params()
630 if( subs->stream == SNDRV_PCM_STREAM_CAPTURE ) { in snd_mixart_hw_params()
635 bufferinfo[i].buffer_address = subs->runtime->dma_addr; in snd_mixart_hw_params()
636 bufferinfo[i].available_length = subs->runtime->dma_bytes; in snd_mixart_hw_params()
643 subs->number); in snd_mixart_hw_params()
650 static int snd_mixart_hw_free(struct snd_pcm_substream *subs) in snd_mixart_hw_free() argument
652 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_free()
705 static int snd_mixart_playback_open(struct snd_pcm_substream *subs) in snd_mixart_playback_open() argument
707 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_playback_open()
709 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_playback_open()
710 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open()
728 chip->chip_idx, pcm_number, subs->number); in snd_mixart_playback_open()
731 stream = &(chip->playback_stream[pcm_number][subs->number]); in snd_mixart_playback_open()
737 chip->chip_idx, pcm_number, subs->number); in snd_mixart_playback_open()
762 stream->substream = subs; in snd_mixart_playback_open()
784 static int snd_mixart_capture_open(struct snd_pcm_substream *subs) in snd_mixart_capture_open() argument
786 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_capture_open()
788 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_capture_open()
789 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open()
809 chip->chip_idx, pcm_number, subs->number); in snd_mixart_capture_open()
818 chip->chip_idx, pcm_number, subs->number); in snd_mixart_capture_open()
843 stream->substream = subs; in snd_mixart_capture_open()
866 static int snd_mixart_close(struct snd_pcm_substream *subs) in snd_mixart_close() argument
868 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_close()
870 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_close()
875 chip->chip_idx, stream->pcm_number, subs->number); in snd_mixart_close()
899 static snd_pcm_uframes_t snd_mixart_stream_pointer(struct snd_pcm_substream *subs) in snd_mixart_stream_pointer() argument
901 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_stream_pointer()
932 struct snd_pcm_substream *subs; in preallocate_buffers()
937 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers()
939 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers()
940 subs->stream << 8 | (subs->number + 1) | in preallocate_buffers()