Lines Matching refs:subs

179 …nd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs)  in snd_pmac_pcm_prepare()  argument
183 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_prepare()
188 rec->dma_size = snd_pcm_lib_buffer_bytes(subs); in snd_pmac_pcm_prepare()
189 rec->period_size = snd_pcm_lib_period_bytes(subs); in snd_pmac_pcm_prepare()
244 struct snd_pcm_substream *subs, int cmd) in snd_pmac_pcm_trigger() argument
254 command = (subs->stream == SNDRV_PCM_STREAM_PLAYBACK ? in snd_pmac_pcm_trigger()
292 struct snd_pcm_substream *subs) in snd_pmac_pcm_pointer() argument
308 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer()
315 static int snd_pmac_playback_prepare(struct snd_pcm_substream *subs) in snd_pmac_playback_prepare() argument
317 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_prepare()
318 return snd_pmac_pcm_prepare(chip, &chip->playback, subs); in snd_pmac_playback_prepare()
321 static int snd_pmac_playback_trigger(struct snd_pcm_substream *subs, in snd_pmac_playback_trigger() argument
324 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_trigger()
325 return snd_pmac_pcm_trigger(chip, &chip->playback, subs, cmd); in snd_pmac_playback_trigger()
328 static snd_pcm_uframes_t snd_pmac_playback_pointer(struct snd_pcm_substream *subs) in snd_pmac_playback_pointer() argument
330 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_pointer()
331 return snd_pmac_pcm_pointer(chip, &chip->playback, subs); in snd_pmac_playback_pointer()
339 static int snd_pmac_capture_prepare(struct snd_pcm_substream *subs) in snd_pmac_capture_prepare() argument
341 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_capture_prepare()
342 return snd_pmac_pcm_prepare(chip, &chip->capture, subs); in snd_pmac_capture_prepare()
345 static int snd_pmac_capture_trigger(struct snd_pcm_substream *subs, in snd_pmac_capture_trigger() argument
348 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_capture_trigger()
349 return snd_pmac_pcm_trigger(chip, &chip->capture, subs, cmd); in snd_pmac_capture_trigger()
352 static snd_pcm_uframes_t snd_pmac_capture_pointer(struct snd_pcm_substream *subs) in snd_pmac_capture_pointer() argument
354 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_capture_pointer()
355 return snd_pmac_pcm_pointer(chip, &chip->capture, subs); in snd_pmac_capture_pointer()
554 struct snd_pcm_substream *subs) in snd_pmac_pcm_open() argument
556 struct snd_pcm_runtime *runtime = subs->runtime; in snd_pmac_pcm_open()
586 rec->substream = subs; in snd_pmac_pcm_open()
603 struct snd_pcm_substream *subs) in snd_pmac_pcm_close() argument
620 static int snd_pmac_playback_open(struct snd_pcm_substream *subs) in snd_pmac_playback_open() argument
622 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_open()
624 subs->runtime->hw = snd_pmac_playback; in snd_pmac_playback_open()
625 return snd_pmac_pcm_open(chip, &chip->playback, subs); in snd_pmac_playback_open()
628 static int snd_pmac_capture_open(struct snd_pcm_substream *subs) in snd_pmac_capture_open() argument
630 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_capture_open()
632 subs->runtime->hw = snd_pmac_capture; in snd_pmac_capture_open()
633 return snd_pmac_pcm_open(chip, &chip->capture, subs); in snd_pmac_capture_open()
636 static int snd_pmac_playback_close(struct snd_pcm_substream *subs) in snd_pmac_playback_close() argument
638 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_close()
640 return snd_pmac_pcm_close(chip, &chip->playback, subs); in snd_pmac_playback_close()
643 static int snd_pmac_capture_close(struct snd_pcm_substream *subs) in snd_pmac_capture_close() argument
645 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_capture_close()
647 return snd_pmac_pcm_close(chip, &chip->capture, subs); in snd_pmac_capture_close()