Lines Matching refs:substream
426 #define get_pcmhwdev(substream) (struct pcmhw *)(substream->runtime->private_data) argument
1091 struct snd_pcm_substream *substream[PLAYBACK_SUBSTREAMS + 1]; in riptide_handleirq() local
1103 substream[i] = chip->playback_substream[i]; in riptide_handleirq()
1104 substream[i] = chip->capture_substream; in riptide_handleirq()
1106 if (substream[i] && in riptide_handleirq()
1107 (runtime = substream[i]->runtime) && in riptide_handleirq()
1147 snd_pcm_period_elapsed(substream[i]); in riptide_handleirq()
1358 *substream) in snd_riptide_pointer()
1360 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_pointer()
1361 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_pointer()
1362 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_pointer()
1391 static int snd_riptide_trigger(struct snd_pcm_substream *substream, int cmd) in snd_riptide_trigger() argument
1394 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_trigger()
1395 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_trigger()
1453 static int snd_riptide_prepare(struct snd_pcm_substream *substream) in snd_riptide_prepare() argument
1455 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_prepare()
1456 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_prepare()
1457 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_prepare()
1517 addr = snd_pcm_sgbuf_get_addr(substream, ofs) + pt; in snd_riptide_prepare()
1554 snd_riptide_hw_params(struct snd_pcm_substream *substream, in snd_riptide_hw_params() argument
1557 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_hw_params()
1558 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_hw_params()
1576 return snd_pcm_lib_malloc_pages(substream, in snd_riptide_hw_params()
1580 static int snd_riptide_hw_free(struct snd_pcm_substream *substream) in snd_riptide_hw_free() argument
1582 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_hw_free()
1583 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_hw_free()
1599 return snd_pcm_lib_free_pages(substream); in snd_riptide_hw_free()
1602 static int snd_riptide_playback_open(struct snd_pcm_substream *substream) in snd_riptide_playback_open() argument
1604 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_playback_open()
1605 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_playback_open()
1607 int sub_num = substream->number; in snd_riptide_playback_open()
1609 chip->playback_substream[sub_num] = substream; in snd_riptide_playback_open()
1626 static int snd_riptide_capture_open(struct snd_pcm_substream *substream) in snd_riptide_capture_open() argument
1628 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_capture_open()
1629 struct snd_pcm_runtime *runtime = substream->runtime; in snd_riptide_capture_open()
1632 chip->capture_substream = substream; in snd_riptide_capture_open()
1649 static int snd_riptide_playback_close(struct snd_pcm_substream *substream) in snd_riptide_playback_close() argument
1651 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_playback_close()
1652 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_playback_close()
1653 int sub_num = substream->number; in snd_riptide_playback_close()
1655 substream->runtime->private_data = NULL; in snd_riptide_playback_close()
1661 static int snd_riptide_capture_close(struct snd_pcm_substream *substream) in snd_riptide_capture_close() argument
1663 struct snd_riptide *chip = snd_pcm_substream_chip(substream); in snd_riptide_capture_close()
1664 struct pcmhw *data = get_pcmhwdev(substream); in snd_riptide_capture_close()
1666 substream->runtime->private_data = NULL; in snd_riptide_capture_close()