• Home
  • Raw
  • Download

Lines Matching refs:subs

429 static int snd_mixart_trigger(struct snd_pcm_substream *subs, int cmd)  in snd_mixart_trigger()  argument
431 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger()
436 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_START\n"); in snd_mixart_trigger()
453 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_TRIGGER_STOP\n"); in snd_mixart_trigger()
460 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_PUSH\n"); in snd_mixart_trigger()
465 dev_dbg(subs->pcm->card->dev, "SNDRV_PCM_PAUSE_RELEASE\n"); in snd_mixart_trigger()
490 static int snd_mixart_prepare(struct snd_pcm_substream *subs) in snd_mixart_prepare() argument
492 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare()
493 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_prepare()
504 chip->mgr->sample_rate = subs->runtime->rate; in snd_mixart_prepare()
508 if( mixart_set_clock(chip->mgr, stream->pipe, subs->runtime->rate) ) in snd_mixart_prepare()
603 static int snd_mixart_hw_params(struct snd_pcm_substream *subs, in snd_mixart_hw_params() argument
606 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_params()
608 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_hw_params()
624 if( subs->stream == SNDRV_PCM_STREAM_PLAYBACK ) in snd_mixart_hw_params()
625 mixart_update_playback_stream_level(chip, is_aes, subs->number); in snd_mixart_hw_params()
640 err = snd_pcm_lib_malloc_pages(subs, params_buffer_bytes(hw)); in snd_mixart_hw_params()
644 …PER_CARD) + (stream->pcm_number * (MIXART_PLAYBACK_STREAMS+MIXART_CAPTURE_STREAMS)) + subs->number; in snd_mixart_hw_params()
645 if( subs->stream == SNDRV_PCM_STREAM_CAPTURE ) { in snd_mixart_hw_params()
650 bufferinfo[i].buffer_address = subs->runtime->dma_addr; in snd_mixart_hw_params()
651 bufferinfo[i].available_length = subs->runtime->dma_bytes; in snd_mixart_hw_params()
658 subs->number); in snd_mixart_hw_params()
665 static int snd_mixart_hw_free(struct snd_pcm_substream *subs) in snd_mixart_hw_free() argument
667 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_free()
668 snd_pcm_lib_free_pages(subs); in snd_mixart_hw_free()
721 static int snd_mixart_playback_open(struct snd_pcm_substream *subs) in snd_mixart_playback_open() argument
723 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_playback_open()
725 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_playback_open()
726 struct snd_pcm *pcm = subs->pcm; in snd_mixart_playback_open()
744 chip->chip_idx, pcm_number, subs->number); in snd_mixart_playback_open()
747 stream = &(chip->playback_stream[pcm_number][subs->number]); in snd_mixart_playback_open()
753 chip->chip_idx, pcm_number, subs->number); in snd_mixart_playback_open()
778 stream->substream = subs; in snd_mixart_playback_open()
800 static int snd_mixart_capture_open(struct snd_pcm_substream *subs) in snd_mixart_capture_open() argument
802 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_capture_open()
804 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_capture_open()
805 struct snd_pcm *pcm = subs->pcm; in snd_mixart_capture_open()
825 chip->chip_idx, pcm_number, subs->number); in snd_mixart_capture_open()
834 chip->chip_idx, pcm_number, subs->number); in snd_mixart_capture_open()
859 stream->substream = subs; in snd_mixart_capture_open()
882 static int snd_mixart_close(struct snd_pcm_substream *subs) in snd_mixart_close() argument
884 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_close()
886 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_close()
891 chip->chip_idx, stream->pcm_number, subs->number); in snd_mixart_close()
915 static snd_pcm_uframes_t snd_mixart_stream_pointer(struct snd_pcm_substream *subs) in snd_mixart_stream_pointer() argument
917 struct snd_pcm_runtime *runtime = subs->runtime; in snd_mixart_stream_pointer()
950 struct snd_pcm_substream *subs; in preallocate_buffers()
955 for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++) in preallocate_buffers()
957 subs->dma_device.id = subs->pcm->device << 16 | in preallocate_buffers()
958 subs->stream << 8 | (subs->number + 1) | in preallocate_buffers()