substream         154 arch/arm/mach-pxa/mainstone.c static int mst_audio_startup(struct snd_pcm_substream *substream, void *priv)
substream         156 arch/arm/mach-pxa/mainstone.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         161 arch/arm/mach-pxa/mainstone.c static void mst_audio_shutdown(struct snd_pcm_substream *substream, void *priv)
substream         163 arch/arm/mach-pxa/mainstone.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         121 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_pcm_substream *substream;
substream         272 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_pcm_substream *substream;
substream         281 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	substream = dw->substream;
substream         282 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	if (stat & HDMI_IH_AHBDMAAUD_STAT0_DONE && substream) {
substream         283 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		snd_pcm_period_elapsed(substream);
substream         286 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		if (dw->substream)
substream         318 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_open(struct snd_pcm_substream *substream)
substream         320 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         321 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_dw_hdmi *dw = substream->private_data;
substream         343 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 					   0, substream->dma_buffer.bytes);
substream         372 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_close(struct snd_pcm_substream *substream)
substream         374 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_dw_hdmi *dw = substream->private_data;
substream         385 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_hw_free(struct snd_pcm_substream *substream)
substream         387 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         390 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_hw_params(struct snd_pcm_substream *substream,
substream         394 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         398 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_prepare(struct snd_pcm_substream *substream)
substream         400 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         401 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_dw_hdmi *dw = substream->private_data;
substream         452 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	dw->buf_dst  = substream->dma_buffer.area;
substream         453 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	dw->buf_addr = substream->dma_buffer.addr;
substream         454 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	dw->buf_period = snd_pcm_lib_period_bytes(substream);
substream         455 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	dw->buf_size = snd_pcm_lib_buffer_bytes(substream);
substream         460 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static int dw_hdmi_trigger(struct snd_pcm_substream *substream, int cmd)
substream         462 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_dw_hdmi *dw = substream->private_data;
substream         470 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		dw->substream = substream;
substream         474 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		substream->runtime->delay = substream->runtime->period_size;
substream         479 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 		dw->substream = NULL;
substream         493 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c static snd_pcm_uframes_t dw_hdmi_pointer(struct snd_pcm_substream *substream)
substream         495 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         496 drivers/gpu/drm/bridge/synopsys/dw-hdmi-ahb-audio.c 	struct snd_dw_hdmi *dw = substream->private_data;
substream          67 drivers/gpu/drm/vc4/vc4_hdmi.c 	struct snd_pcm_substream *substream;
substream         768 drivers/gpu/drm/vc4/vc4_hdmi.c static int vc4_hdmi_audio_startup(struct snd_pcm_substream *substream,
substream         776 drivers/gpu/drm/vc4/vc4_hdmi.c 	if (hdmi->audio.substream && hdmi->audio.substream != substream)
substream         779 drivers/gpu/drm/vc4/vc4_hdmi.c 	hdmi->audio.substream = substream;
substream         789 drivers/gpu/drm/vc4/vc4_hdmi.c 	ret = snd_pcm_hw_constraint_eld(substream->runtime,
substream         819 drivers/gpu/drm/vc4/vc4_hdmi.c static void vc4_hdmi_audio_shutdown(struct snd_pcm_substream *substream,
substream         824 drivers/gpu/drm/vc4/vc4_hdmi.c 	if (substream != hdmi->audio.substream)
substream         829 drivers/gpu/drm/vc4/vc4_hdmi.c 	hdmi->audio.substream = NULL;
substream         833 drivers/gpu/drm/vc4/vc4_hdmi.c static int vc4_hdmi_audio_hw_params(struct snd_pcm_substream *substream,
substream         845 drivers/gpu/drm/vc4/vc4_hdmi.c 	if (substream != hdmi->audio.substream)
substream         907 drivers/gpu/drm/vc4/vc4_hdmi.c static int vc4_hdmi_audio_trigger(struct snd_pcm_substream *substream, int cmd,
substream         571 drivers/hid/hid-prodikeys.c static int pcmidi_in_open(struct snd_rawmidi_substream *substream)
substream         573 drivers/hid/hid-prodikeys.c 	struct pcmidi_snd *pm = substream->rmidi->private_data;
substream         576 drivers/hid/hid-prodikeys.c 	pm->in_substream = substream;
substream         580 drivers/hid/hid-prodikeys.c static int pcmidi_in_close(struct snd_rawmidi_substream *substream)
substream         586 drivers/hid/hid-prodikeys.c static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up)
substream         588 drivers/hid/hid-prodikeys.c 	struct pcmidi_snd *pm = substream->rmidi->private_data;
substream        2447 drivers/media/i2c/tda1997x.c static int tda1997x_pcm_startup(struct snd_pcm_substream *substream,
substream        2452 drivers/media/i2c/tda1997x.c 	struct snd_pcm_runtime *rtd = substream->runtime;
substream         102 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_pcm_substream *substream;
substream         114 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	substream = cobsc->capture_pcm_substream;
substream         115 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	if (substream == NULL) {
substream         120 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	runtime = substream->runtime;
substream         163 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream         179 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         182 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		snd_pcm_period_elapsed(substream);
substream         207 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_capture_open(struct snd_pcm_substream *substream)
substream         209 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         210 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         215 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	cobsc->capture_pcm_substream = substream;
substream         230 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_capture_close(struct snd_pcm_substream *substream)
substream         232 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         241 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_ioctl(struct snd_pcm_substream *substream,
substream         244 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream         269 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_hw_params(struct snd_pcm_substream *substream,
substream         274 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	return snd_pcm_alloc_vmalloc_buffer(substream,
substream         278 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_hw_free(struct snd_pcm_substream *substream)
substream         280 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	if (substream->runtime->dma_area) {
substream         282 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		vfree(substream->runtime->dma_area);
substream         283 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		substream->runtime->dma_area = NULL;
substream         289 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_prepare(struct snd_pcm_substream *substream)
substream         291 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         299 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         312 drivers/media/pci/cobalt/cobalt-alsa-pcm.c snd_pcm_uframes_t snd_cobalt_pcm_pointer(struct snd_pcm_substream *substream)
substream         315 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         350 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_pcm_substream *substream;
substream         361 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	substream = cobsc->playback_pcm_substream;
substream         362 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	if (substream == NULL) {
substream         367 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	runtime = substream->runtime;
substream         395 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream         399 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         401 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 		snd_pcm_period_elapsed(substream);
substream         416 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_playback_open(struct snd_pcm_substream *substream)
substream         418 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         419 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         424 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	cobsc->playback_pcm_substream = substream;
substream         440 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_playback_close(struct snd_pcm_substream *substream)
substream         442 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         451 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_pb_prepare(struct snd_pcm_substream *substream)
substream         453 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         455 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	cobsc->pb_size = snd_pcm_lib_buffer_bytes(substream);
substream         456 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	cobsc->pb_count = snd_pcm_lib_period_bytes(substream);
substream         462 drivers/media/pci/cobalt/cobalt-alsa-pcm.c static int snd_cobalt_pcm_pb_trigger(struct snd_pcm_substream *substream,
substream         465 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         482 drivers/media/pci/cobalt/cobalt-alsa-pcm.c snd_pcm_uframes_t snd_cobalt_pcm_pb_pointer(struct snd_pcm_substream *substream)
substream         484 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream);
substream         489 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	return bytes_to_frames(substream->runtime, ptr) %
substream         490 drivers/media/pci/cobalt/cobalt-alsa-pcm.c 	       substream->runtime->buffer_size;
substream          62 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_pcm_substream *substream;
substream          72 drivers/media/pci/cx18/cx18-alsa-pcm.c 	substream = cxsc->capture_pcm_substream;
substream          73 drivers/media/pci/cx18/cx18-alsa-pcm.c 	if (substream == NULL) {
substream          78 drivers/media/pci/cx18/cx18-alsa-pcm.c 	runtime = substream->runtime;
substream         113 drivers/media/pci/cx18/cx18-alsa-pcm.c 	snd_pcm_stream_lock(substream);
substream         129 drivers/media/pci/cx18/cx18-alsa-pcm.c 	snd_pcm_stream_unlock(substream);
substream         132 drivers/media/pci/cx18/cx18-alsa-pcm.c 		snd_pcm_period_elapsed(substream);
substream         135 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream)
substream         137 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         138 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         170 drivers/media/pci/cx18/cx18-alsa-pcm.c 	cxsc->capture_pcm_substream = substream;
substream         183 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_capture_close(struct snd_pcm_substream *substream)
substream         185 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         204 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_ioctl(struct snd_pcm_substream *substream,
substream         207 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         211 drivers/media/pci/cx18/cx18-alsa-pcm.c 	ret = snd_pcm_lib_ioctl(substream, cmd, arg);
substream         238 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_hw_params(struct snd_pcm_substream *substream,
substream         243 drivers/media/pci/cx18/cx18-alsa-pcm.c 	return snd_pcm_alloc_vmalloc_buffer(substream,
substream         247 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_hw_free(struct snd_pcm_substream *substream)
substream         249 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         254 drivers/media/pci/cx18/cx18-alsa-pcm.c 	if (substream->runtime->dma_area) {
substream         256 drivers/media/pci/cx18/cx18-alsa-pcm.c 		dma_area = substream->runtime->dma_area;
substream         257 drivers/media/pci/cx18/cx18-alsa-pcm.c 		substream->runtime->dma_area = NULL;
substream         265 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_prepare(struct snd_pcm_substream *substream)
substream         267 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         275 drivers/media/pci/cx18/cx18-alsa-pcm.c static int snd_cx18_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         281 drivers/media/pci/cx18/cx18-alsa-pcm.c snd_pcm_uframes_t snd_cx18_pcm_pointer(struct snd_pcm_substream *substream)
substream         285 drivers/media/pci/cx18/cx18-alsa-pcm.c 	struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
substream         251 drivers/media/pci/cx23885/cx23885-alsa.c 		snd_pcm_period_elapsed(chip->substream);
substream         310 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_pcm_open(struct snd_pcm_substream *substream)
substream         312 drivers/media/pci/cx23885/cx23885-alsa.c 	struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         313 drivers/media/pci/cx23885/cx23885-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         326 drivers/media/pci/cx23885/cx23885-alsa.c 	chip->substream = substream;
substream         348 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_close(struct snd_pcm_substream *substream)
substream         357 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_hw_params(struct snd_pcm_substream *substream,
substream         360 drivers/media/pci/cx23885/cx23885-alsa.c 	struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         364 drivers/media/pci/cx23885/cx23885-alsa.c 	if (substream->runtime->dma_area) {
substream         366 drivers/media/pci/cx23885/cx23885-alsa.c 		substream->runtime->dma_area = NULL;
substream         402 drivers/media/pci/cx23885/cx23885-alsa.c 	substream->runtime->dma_area = chip->buf->vaddr;
substream         403 drivers/media/pci/cx23885/cx23885-alsa.c 	substream->runtime->dma_bytes = chip->dma_size;
substream         404 drivers/media/pci/cx23885/cx23885-alsa.c 	substream->runtime->dma_addr = 0;
substream         417 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_hw_free(struct snd_pcm_substream *substream)
substream         420 drivers/media/pci/cx23885/cx23885-alsa.c 	struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         422 drivers/media/pci/cx23885/cx23885-alsa.c 	if (substream->runtime->dma_area) {
substream         424 drivers/media/pci/cx23885/cx23885-alsa.c 		substream->runtime->dma_area = NULL;
substream         433 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_prepare(struct snd_pcm_substream *substream)
substream         441 drivers/media/pci/cx23885/cx23885-alsa.c static int snd_cx23885_card_trigger(struct snd_pcm_substream *substream,
substream         444 drivers/media/pci/cx23885/cx23885-alsa.c 	struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         471 drivers/media/pci/cx23885/cx23885-alsa.c 	struct snd_pcm_substream *substream)
substream         473 drivers/media/pci/cx23885/cx23885-alsa.c 	struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         474 drivers/media/pci/cx23885/cx23885-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         485 drivers/media/pci/cx23885/cx23885-alsa.c static struct page *snd_cx23885_page(struct snd_pcm_substream *substream,
substream         488 drivers/media/pci/cx23885/cx23885-alsa.c 	void *pageptr = substream->runtime->dma_area + offset;
substream         349 drivers/media/pci/cx23885/cx23885.h 	struct snd_pcm_substream *substream;
substream          82 drivers/media/pci/cx25821/cx25821-alsa.c 	struct snd_pcm_substream *substream;
substream         343 drivers/media/pci/cx25821/cx25821-alsa.c 		snd_pcm_period_elapsed(chip->substream);
substream         445 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream)
substream         447 drivers/media/pci/cx25821/cx25821-alsa.c 	struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         448 drivers/media/pci/cx25821/cx25821-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         462 drivers/media/pci/cx25821/cx25821-alsa.c 	chip->substream = substream;
substream         488 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_close(struct snd_pcm_substream *substream)
substream         496 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_hw_params(struct snd_pcm_substream *substream,
substream         499 drivers/media/pci/cx25821/cx25821-alsa.c 	struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         503 drivers/media/pci/cx25821/cx25821-alsa.c 	if (substream->runtime->dma_area) {
substream         505 drivers/media/pci/cx25821/cx25821-alsa.c 		substream->runtime->dma_area = NULL;
substream         546 drivers/media/pci/cx25821/cx25821-alsa.c 	substream->runtime->dma_area = chip->buf->vaddr;
substream         547 drivers/media/pci/cx25821/cx25821-alsa.c 	substream->runtime->dma_bytes = chip->dma_size;
substream         548 drivers/media/pci/cx25821/cx25821-alsa.c 	substream->runtime->dma_addr = 0;
substream         561 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_hw_free(struct snd_pcm_substream *substream)
substream         563 drivers/media/pci/cx25821/cx25821-alsa.c 	struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         565 drivers/media/pci/cx25821/cx25821-alsa.c 	if (substream->runtime->dma_area) {
substream         567 drivers/media/pci/cx25821/cx25821-alsa.c 		substream->runtime->dma_area = NULL;
substream         576 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_prepare(struct snd_pcm_substream *substream)
substream         584 drivers/media/pci/cx25821/cx25821-alsa.c static int snd_cx25821_card_trigger(struct snd_pcm_substream *substream,
substream         587 drivers/media/pci/cx25821/cx25821-alsa.c 	struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         614 drivers/media/pci/cx25821/cx25821-alsa.c 					     *substream)
substream         616 drivers/media/pci/cx25821/cx25821-alsa.c 	struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         617 drivers/media/pci/cx25821/cx25821-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         628 drivers/media/pci/cx25821/cx25821-alsa.c static struct page *snd_cx25821_page(struct snd_pcm_substream *substream,
substream         631 drivers/media/pci/cx25821/cx25821-alsa.c 	void *pageptr = substream->runtime->dma_area + offset;
substream          74 drivers/media/pci/cx88/cx88-alsa.c 	struct snd_pcm_substream   *substream;
substream         234 drivers/media/pci/cx88/cx88-alsa.c 		snd_pcm_period_elapsed(chip->substream);
substream         403 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_pcm_open(struct snd_pcm_substream *substream)
substream         405 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         406 drivers/media/pci/cx88/cx88-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         419 drivers/media/pci/cx88/cx88-alsa.c 	chip->substream = substream;
substream         440 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_close(struct snd_pcm_substream *substream)
substream         448 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_hw_params(struct snd_pcm_substream *substream,
substream         451 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         456 drivers/media/pci/cx88/cx88-alsa.c 	if (substream->runtime->dma_area) {
substream         458 drivers/media/pci/cx88/cx88-alsa.c 		substream->runtime->dma_area = NULL;
substream         493 drivers/media/pci/cx88/cx88-alsa.c 	substream->runtime->dma_area = chip->buf->vaddr;
substream         494 drivers/media/pci/cx88/cx88-alsa.c 	substream->runtime->dma_bytes = chip->dma_size;
substream         495 drivers/media/pci/cx88/cx88-alsa.c 	substream->runtime->dma_addr = 0;
substream         506 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_hw_free(struct snd_pcm_substream *substream)
substream         508 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         510 drivers/media/pci/cx88/cx88-alsa.c 	if (substream->runtime->dma_area) {
substream         512 drivers/media/pci/cx88/cx88-alsa.c 		substream->runtime->dma_area = NULL;
substream         521 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_prepare(struct snd_pcm_substream *substream)
substream         529 drivers/media/pci/cx88/cx88-alsa.c static int snd_cx88_card_trigger(struct snd_pcm_substream *substream, int cmd)
substream         531 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         557 drivers/media/pci/cx88/cx88-alsa.c static snd_pcm_uframes_t snd_cx88_pointer(struct snd_pcm_substream *substream)
substream         559 drivers/media/pci/cx88/cx88-alsa.c 	struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream);
substream         560 drivers/media/pci/cx88/cx88-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         574 drivers/media/pci/cx88/cx88-alsa.c static struct page *snd_cx88_page(struct snd_pcm_substream *substream,
substream         577 drivers/media/pci/cx88/cx88-alsa.c 	void *pageptr = substream->runtime->dma_area + offset;
substream          60 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_pcm_substream *substream;
substream          70 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	substream = itvsc->capture_pcm_substream;
substream          71 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	if (substream == NULL) {
substream          76 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	runtime = substream->runtime;
substream         111 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	snd_pcm_stream_lock(substream);
substream         127 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	snd_pcm_stream_unlock(substream);
substream         130 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 		snd_pcm_period_elapsed(substream);
substream         133 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_capture_open(struct snd_pcm_substream *substream)
substream         135 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         136 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         175 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	itvsc->capture_pcm_substream = substream;
substream         188 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_capture_close(struct snd_pcm_substream *substream)
substream         190 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         209 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_ioctl(struct snd_pcm_substream *substream,
substream         212 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         216 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	ret = snd_pcm_lib_ioctl(substream, cmd, arg);
substream         243 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_hw_params(struct snd_pcm_substream *substream,
substream         248 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	return snd_pcm_alloc_vmalloc_buffer(substream,
substream         252 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_hw_free(struct snd_pcm_substream *substream)
substream         254 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         259 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	if (substream->runtime->dma_area) {
substream         261 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 		dma_area = substream->runtime->dma_area;
substream         262 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 		substream->runtime->dma_area = NULL;
substream         270 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_prepare(struct snd_pcm_substream *substream)
substream         272 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         280 drivers/media/pci/ivtv/ivtv-alsa-pcm.c static int snd_ivtv_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         286 drivers/media/pci/ivtv/ivtv-alsa-pcm.c snd_pcm_uframes_t snd_ivtv_pcm_pointer(struct snd_pcm_substream *substream)
substream         290 drivers/media/pci/ivtv/ivtv-alsa-pcm.c 	struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream);
substream         587 drivers/media/pci/ngene/ngene.h 	struct snd_pcm_substream *substream;
substream          74 drivers/media/pci/saa7134/saa7134-alsa.c 	struct snd_pcm_substream *substream;
substream         155 drivers/media/pci/saa7134/saa7134-alsa.c 		snd_pcm_stop_xrun(dev->dmasound.substream);
substream         173 drivers/media/pci/saa7134/saa7134-alsa.c 	if (dev->dmasound.read_count >= snd_pcm_lib_period_bytes(dev->dmasound.substream)) {
substream         175 drivers/media/pci/saa7134/saa7134-alsa.c 		snd_pcm_period_elapsed(dev->dmasound.substream);
substream         232 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_capture_trigger(struct snd_pcm_substream * substream,
substream         235 drivers/media/pci/saa7134/saa7134-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         496 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_capture_prepare(struct snd_pcm_substream * substream)
substream         498 drivers/media/pci/saa7134/saa7134-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         501 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
substream         505 drivers/media/pci/saa7134/saa7134-alsa.c 	pcm->dev->dmasound.substream = substream;
substream         590 drivers/media/pci/saa7134/saa7134-alsa.c snd_card_saa7134_capture_pointer(struct snd_pcm_substream * substream)
substream         592 drivers/media/pci/saa7134/saa7134-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         597 drivers/media/pci/saa7134/saa7134-alsa.c 		dev->dmasound.read_count  -= snd_pcm_lib_period_bytes(substream);
substream         598 drivers/media/pci/saa7134/saa7134-alsa.c 		dev->dmasound.read_offset += snd_pcm_lib_period_bytes(substream);
substream         660 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_hw_params(struct snd_pcm_substream * substream,
substream         663 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
substream         685 drivers/media/pci/saa7134/saa7134-alsa.c 	if (substream->runtime->dma_area) {
substream         689 drivers/media/pci/saa7134/saa7134-alsa.c 		substream->runtime->dma_area = NULL;
substream         727 drivers/media/pci/saa7134/saa7134-alsa.c 	substream->runtime->dma_area = dev->dmasound.vaddr;
substream         728 drivers/media/pci/saa7134/saa7134-alsa.c 	substream->runtime->dma_bytes = dev->dmasound.bufsize;
substream         729 drivers/media/pci/saa7134/saa7134-alsa.c 	substream->runtime->dma_addr = 0;
substream         745 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_hw_free(struct snd_pcm_substream * substream)
substream         747 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
substream         752 drivers/media/pci/saa7134/saa7134-alsa.c 	if (substream->runtime->dma_area) {
substream         756 drivers/media/pci/saa7134/saa7134-alsa.c 		substream->runtime->dma_area = NULL;
substream         771 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_capture_close(struct snd_pcm_substream * substream)
substream         773 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
substream         793 drivers/media/pci/saa7134/saa7134-alsa.c static int snd_card_saa7134_capture_open(struct snd_pcm_substream * substream)
substream         795 drivers/media/pci/saa7134/saa7134-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         797 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream);
substream         826 drivers/media/pci/saa7134/saa7134-alsa.c 	pcm->substream = substream;
substream         854 drivers/media/pci/saa7134/saa7134-alsa.c static struct page *snd_card_saa7134_page(struct snd_pcm_substream *substream,
substream         857 drivers/media/pci/saa7134/saa7134-alsa.c 	void *pageptr = substream->runtime->dma_area + offset;
substream         517 drivers/media/pci/saa7134/saa7134.h 	struct snd_pcm_substream   *substream;
substream          83 drivers/media/pci/solo6x10/solo6x10-g723.c 	for (ss = pstr->substream; ss != NULL; ss = ss->next) {
substream         350 drivers/media/pci/solo6x10/solo6x10-g723.c 	for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         297 drivers/media/pci/tw686x/tw686x-audio.c 	for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream          90 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct snd_pcm_substream *substream;
substream         114 drivers/media/usb/cx231xx/cx231xx-audio.c 		substream = dev->adev.capture_pcm_substream;
substream         115 drivers/media/usb/cx231xx/cx231xx-audio.c 		runtime = substream->runtime;
substream         142 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_stream_lock_irqsave(substream, flags);
substream         157 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         160 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_period_elapsed(substream);
substream         181 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct snd_pcm_substream *substream;
substream         205 drivers/media/usb/cx231xx/cx231xx-audio.c 		substream = dev->adev.capture_pcm_substream;
substream         206 drivers/media/usb/cx231xx/cx231xx-audio.c 		runtime = substream->runtime;
substream         229 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_stream_lock_irqsave(substream, flags);
substream         244 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         247 drivers/media/usb/cx231xx/cx231xx-audio.c 			snd_pcm_period_elapsed(substream);
substream         419 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_capture_open(struct snd_pcm_substream *substream)
substream         421 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         422 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         459 drivers/media/usb/cx231xx/cx231xx-audio.c 	dev->adev.capture_pcm_substream = substream;
substream         465 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_pcm_close(struct snd_pcm_substream *substream)
substream         468 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         488 drivers/media/usb/cx231xx/cx231xx-audio.c 	if (substream->runtime->dma_area) {
substream         490 drivers/media/usb/cx231xx/cx231xx-audio.c 		vfree(substream->runtime->dma_area);
substream         491 drivers/media/usb/cx231xx/cx231xx-audio.c 		substream->runtime->dma_area = NULL;
substream         508 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_hw_capture_params(struct snd_pcm_substream *substream,
substream         511 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         516 drivers/media/usb/cx231xx/cx231xx-audio.c 	ret = snd_pcm_alloc_vmalloc_buffer(substream,
substream         532 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_hw_capture_free(struct snd_pcm_substream *substream)
substream         534 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         546 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_prepare(struct snd_pcm_substream *substream)
substream         548 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         574 drivers/media/usb/cx231xx/cx231xx-audio.c static int snd_cx231xx_capture_trigger(struct snd_pcm_substream *substream,
substream         577 drivers/media/usb/cx231xx/cx231xx-audio.c 	struct cx231xx *dev = snd_pcm_substream_chip(substream);
substream         603 drivers/media/usb/cx231xx/cx231xx-audio.c 						     *substream)
substream         609 drivers/media/usb/cx231xx/cx231xx-audio.c 	dev = snd_pcm_substream_chip(substream);
substream          87 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_substream *substream;
substream         114 drivers/media/usb/em28xx/em28xx-audio.c 		substream = dev->adev.capture_pcm_substream;
substream         115 drivers/media/usb/em28xx/em28xx-audio.c 		runtime = substream->runtime;
substream         141 drivers/media/usb/em28xx/em28xx-audio.c 			snd_pcm_stream_lock_irqsave(substream, flags);
substream         157 drivers/media/usb/em28xx/em28xx-audio.c 			snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         160 drivers/media/usb/em28xx/em28xx-audio.c 			snd_pcm_period_elapsed(substream);
substream         250 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)
substream         252 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         253 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         266 drivers/media/usb/em28xx/em28xx-audio.c 	nonblock = !!(substream->f_flags & O_NONBLOCK);
substream         319 drivers/media/usb/em28xx/em28xx-audio.c 	dev->adev.capture_pcm_substream = substream;
substream         330 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream)
substream         332 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         345 drivers/media/usb/em28xx/em28xx-audio.c 	if (substream->runtime->dma_area) {
substream         347 drivers/media/usb/em28xx/em28xx-audio.c 		vfree(substream->runtime->dma_area);
substream         348 drivers/media/usb/em28xx/em28xx-audio.c 		substream->runtime->dma_area = NULL;
substream         356 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,
substream         360 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         367 drivers/media/usb/em28xx/em28xx-audio.c 	ret = snd_pcm_alloc_vmalloc_buffer(substream,
substream         387 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_hw_capture_free(struct snd_pcm_substream *substream)
substream         389 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         402 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_prepare(struct snd_pcm_substream *substream)
substream         404 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         430 drivers/media/usb/em28xx/em28xx-audio.c static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
substream         433 drivers/media/usb/em28xx/em28xx-audio.c 	struct em28xx *dev = snd_pcm_substream_chip(substream);
substream         458 drivers/media/usb/em28xx/em28xx-audio.c 						    *substream)
substream         464 drivers/media/usb/em28xx/em28xx-audio.c 	dev = snd_pcm_substream_chip(substream);
substream         506 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream;
substream         515 drivers/media/usb/em28xx/em28xx-audio.c 	if (substream)
substream         516 drivers/media/usb/em28xx/em28xx-audio.c 		nonblock = !!(substream->f_flags & O_NONBLOCK);
substream         547 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream;
substream         554 drivers/media/usb/em28xx/em28xx-audio.c 	if (substream)
substream         555 drivers/media/usb/em28xx/em28xx-audio.c 		nonblock = !!(substream->f_flags & O_NONBLOCK);
substream         583 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream;
substream         590 drivers/media/usb/em28xx/em28xx-audio.c 	if (substream)
substream         591 drivers/media/usb/em28xx/em28xx-audio.c 		nonblock = !!(substream->f_flags & O_NONBLOCK);
substream         625 drivers/media/usb/em28xx/em28xx-audio.c 	struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream;
substream         632 drivers/media/usb/em28xx/em28xx-audio.c 	if (substream)
substream         633 drivers/media/usb/em28xx/em28xx-audio.c 		nonblock = !!(substream->f_flags & O_NONBLOCK);
substream          39 drivers/media/usb/go7007/snd-go7007.c 	struct snd_pcm_substream *substream;
substream          68 drivers/media/usb/go7007/snd-go7007.c 	struct snd_pcm_runtime *runtime = gosnd->substream->runtime;
substream          96 drivers/media/usb/go7007/snd-go7007.c 		snd_pcm_period_elapsed(gosnd->substream);
substream          99 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_hw_params(struct snd_pcm_substream *substream,
substream         102 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         106 drivers/media/usb/go7007/snd-go7007.c 	if (substream->runtime->dma_bytes > 0)
substream         107 drivers/media/usb/go7007/snd-go7007.c 		vfree(substream->runtime->dma_area);
substream         108 drivers/media/usb/go7007/snd-go7007.c 	substream->runtime->dma_bytes = 0;
substream         109 drivers/media/usb/go7007/snd-go7007.c 	substream->runtime->dma_area = vmalloc(bytes);
substream         110 drivers/media/usb/go7007/snd-go7007.c 	if (substream->runtime->dma_area == NULL)
substream         112 drivers/media/usb/go7007/snd-go7007.c 	substream->runtime->dma_bytes = bytes;
substream         117 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_hw_free(struct snd_pcm_substream *substream)
substream         119 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         122 drivers/media/usb/go7007/snd-go7007.c 	if (substream->runtime->dma_bytes > 0)
substream         123 drivers/media/usb/go7007/snd-go7007.c 		vfree(substream->runtime->dma_area);
substream         124 drivers/media/usb/go7007/snd-go7007.c 	substream->runtime->dma_bytes = 0;
substream         128 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_capture_open(struct snd_pcm_substream *substream)
substream         130 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         136 drivers/media/usb/go7007/snd-go7007.c 	if (gosnd->substream == NULL) {
substream         137 drivers/media/usb/go7007/snd-go7007.c 		gosnd->substream = substream;
substream         138 drivers/media/usb/go7007/snd-go7007.c 		substream->runtime->hw = go7007_snd_capture_hw;
substream         146 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_capture_close(struct snd_pcm_substream *substream)
substream         148 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         151 drivers/media/usb/go7007/snd-go7007.c 	gosnd->substream = NULL;
substream         155 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_pcm_prepare(struct snd_pcm_substream *substream)
substream         160 drivers/media/usb/go7007/snd-go7007.c static int go7007_snd_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         162 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         180 drivers/media/usb/go7007/snd-go7007.c static snd_pcm_uframes_t go7007_snd_pcm_pointer(struct snd_pcm_substream *substream)
substream         182 drivers/media/usb/go7007/snd-go7007.c 	struct go7007 *go = snd_pcm_substream_chip(substream);
substream         188 drivers/media/usb/go7007/snd-go7007.c static struct page *go7007_snd_pcm_page(struct snd_pcm_substream *substream,
substream         191 drivers/media/usb/go7007/snd-go7007.c 	return vmalloc_to_page(substream->runtime->dma_area + offset);
substream         271 drivers/media/usb/go7007/snd-go7007.c 	gosnd->substream = NULL;
substream          97 drivers/media/usb/tm6000/tm6000-alsa.c static void dsp_buffer_free(struct snd_pcm_substream *substream)
substream          99 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         103 drivers/media/usb/tm6000/tm6000-alsa.c 	vfree(substream->runtime->dma_area);
substream         104 drivers/media/usb/tm6000/tm6000-alsa.c 	substream->runtime->dma_area = NULL;
substream         105 drivers/media/usb/tm6000/tm6000-alsa.c 	substream->runtime->dma_bytes = 0;
substream         108 drivers/media/usb/tm6000/tm6000-alsa.c static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size)
substream         110 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         114 drivers/media/usb/tm6000/tm6000-alsa.c 	if (substream->runtime->dma_area) {
substream         115 drivers/media/usb/tm6000/tm6000-alsa.c 		if (substream->runtime->dma_bytes > size)
substream         118 drivers/media/usb/tm6000/tm6000-alsa.c 		dsp_buffer_free(substream);
substream         121 drivers/media/usb/tm6000/tm6000-alsa.c 	substream->runtime->dma_area = vmalloc(size);
substream         122 drivers/media/usb/tm6000/tm6000-alsa.c 	if (!substream->runtime->dma_area)
substream         125 drivers/media/usb/tm6000/tm6000-alsa.c 	substream->runtime->dma_bytes = size;
substream         163 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_pcm_open(struct snd_pcm_substream *substream)
substream         165 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         166 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         174 drivers/media/usb/tm6000/tm6000-alsa.c 	chip->substream = substream;
substream         188 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_close(struct snd_pcm_substream *substream)
substream         190 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         204 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_pcm_substream *substream = chip->substream;
substream         213 drivers/media/usb/tm6000/tm6000-alsa.c 	if (!size || !substream) {
substream         218 drivers/media/usb/tm6000/tm6000-alsa.c 	runtime = substream->runtime;
substream         251 drivers/media/usb/tm6000/tm6000-alsa.c 	snd_pcm_stream_lock(substream);
substream         263 drivers/media/usb/tm6000/tm6000-alsa.c 	snd_pcm_stream_unlock(substream);
substream         266 drivers/media/usb/tm6000/tm6000-alsa.c 		snd_pcm_period_elapsed(substream);
substream         274 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_hw_params(struct snd_pcm_substream *substream,
substream         281 drivers/media/usb/tm6000/tm6000-alsa.c 	rc = dsp_buffer_alloc(substream, size);
substream         291 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_hw_free(struct snd_pcm_substream *substream)
substream         293 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         301 drivers/media/usb/tm6000/tm6000-alsa.c 	dsp_buffer_free(substream);
substream         308 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_prepare(struct snd_pcm_substream *substream)
substream         310 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         337 drivers/media/usb/tm6000/tm6000-alsa.c static int snd_tm6000_card_trigger(struct snd_pcm_substream *substream, int cmd)
substream         339 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         365 drivers/media/usb/tm6000/tm6000-alsa.c static snd_pcm_uframes_t snd_tm6000_pointer(struct snd_pcm_substream *substream)
substream         367 drivers/media/usb/tm6000/tm6000-alsa.c 	struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream);
substream         145 drivers/media/usb/tm6000/tm6000.h 	struct snd_pcm_substream	*substream;
substream          65 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_pcm_open(struct snd_pcm_substream *substream)
substream          67 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream          68 drivers/media/usb/usbtv/usbtv-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          70 drivers/media/usb/usbtv/usbtv-audio.c 	chip->snd_substream = substream;
substream          76 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_pcm_close(struct snd_pcm_substream *substream)
substream          78 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream          88 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_hw_params(struct snd_pcm_substream *substream,
substream          92 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream          94 drivers/media/usb/usbtv/usbtv-audio.c 	rv = snd_pcm_lib_malloc_pages(substream,
substream         106 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_hw_free(struct snd_pcm_substream *substream)
substream         108 drivers/media/usb/usbtv/usbtv-audio.c 	snd_pcm_lib_free_pages(substream);
substream         112 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_prepare(struct snd_pcm_substream *substream)
substream         114 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream         125 drivers/media/usb/usbtv/usbtv-audio.c 	struct snd_pcm_substream *substream = chip->snd_substream;
substream         126 drivers/media/usb/usbtv/usbtv-audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         183 drivers/media/usb/usbtv/usbtv-audio.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream         188 drivers/media/usb/usbtv/usbtv-audio.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream         191 drivers/media/usb/usbtv/usbtv-audio.c 		snd_pcm_period_elapsed(substream);
substream         305 drivers/media/usb/usbtv/usbtv-audio.c static int snd_usbtv_card_trigger(struct snd_pcm_substream *substream, int cmd)
substream         307 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream         329 drivers/media/usb/usbtv/usbtv-audio.c static snd_pcm_uframes_t snd_usbtv_pointer(struct snd_pcm_substream *substream)
substream         331 drivers/media/usb/usbtv/usbtv-audio.c 	struct usbtv *chip = snd_pcm_substream_chip(substream);
substream         472 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream		: 20;
substream         484 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream		: 20;
substream         497 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream     : 20;
substream         509 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream     : 20;
substream         678 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream             : 20;
substream         684 drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h 	u64 substream             : 20;
substream         532 drivers/soundwire/intel.c 			       struct snd_pcm_substream *substream,
substream         540 drivers/soundwire/intel.c 				substream, dai, hw_params, link_id);
substream         672 drivers/soundwire/intel.c static int intel_hw_params(struct snd_pcm_substream *substream,
substream         684 drivers/soundwire/intel.c 	dma = snd_soc_dai_get_dma_data(dai, substream);
substream         689 drivers/soundwire/intel.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         721 drivers/soundwire/intel.c 		ret = intel_config_stream(sdw, substream, dai, params,
substream         770 drivers/soundwire/intel.c intel_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
substream         776 drivers/soundwire/intel.c 	dma = snd_soc_dai_get_dma_data(dai, substream);
substream         790 drivers/soundwire/intel.c static void intel_shutdown(struct snd_pcm_substream *substream,
substream         795 drivers/soundwire/intel.c 	dma = snd_soc_dai_get_dma_data(dai, substream);
substream         799 drivers/soundwire/intel.c 	snd_soc_dai_set_dma_data(dai, substream, NULL);
substream         359 drivers/staging/greybus/audio_codec.c static int gbcodec_startup(struct snd_pcm_substream *substream,
substream         373 drivers/staging/greybus/audio_codec.c 	params = find_dai_stream_params(codec, dai->id, substream->stream);
substream         387 drivers/staging/greybus/audio_codec.c static void gbcodec_shutdown(struct snd_pcm_substream *substream,
substream         398 drivers/staging/greybus/audio_codec.c 	params = find_dai_stream_params(codec, dai->id, substream->stream);
substream         409 drivers/staging/greybus/audio_codec.c static int gbcodec_hw_params(struct snd_pcm_substream *substream,
substream         471 drivers/staging/greybus/audio_codec.c 	params = find_dai_stream_params(codec, dai->id, substream->stream);
substream         498 drivers/staging/greybus/audio_codec.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         513 drivers/staging/greybus/audio_codec.c static int gbcodec_prepare(struct snd_pcm_substream *substream,
substream         543 drivers/staging/greybus/audio_codec.c 	params = find_dai_stream_params(codec, dai->id, substream->stream);
substream         557 drivers/staging/greybus/audio_codec.c 	switch (substream->stream) {
substream          43 drivers/staging/most/sound/sound.c 	struct snd_pcm_substream *substream;
substream         192 drivers/staging/most/sound/sound.c 	struct snd_pcm_runtime *const runtime = channel->substream->runtime;
substream         261 drivers/staging/most/sound/sound.c 			snd_pcm_period_elapsed(channel->substream);
substream         276 drivers/staging/most/sound/sound.c static int pcm_open(struct snd_pcm_substream *substream)
substream         278 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         279 drivers/staging/most/sound/sound.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         282 drivers/staging/most/sound/sound.c 	channel->substream = substream;
substream         314 drivers/staging/most/sound/sound.c static int pcm_close(struct snd_pcm_substream *substream)
substream         316 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         337 drivers/staging/most/sound/sound.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         340 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         347 drivers/staging/most/sound/sound.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         360 drivers/staging/most/sound/sound.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         362 drivers/staging/most/sound/sound.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         374 drivers/staging/most/sound/sound.c static int pcm_prepare(struct snd_pcm_substream *substream)
substream         376 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         377 drivers/staging/most/sound/sound.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         424 drivers/staging/most/sound/sound.c static int pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         426 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         453 drivers/staging/most/sound/sound.c static snd_pcm_uframes_t pcm_pointer(struct snd_pcm_substream *substream)
substream         455 drivers/staging/most/sound/sound.c 	struct channel *channel = substream->private_data;
substream         750 drivers/staging/most/sound/sound.c 		snd_pcm_period_elapsed(channel->substream);
substream          55 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_substream *substream = alsa_stream->substream;
substream          62 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 		snd_pcm_stream_lock(substream);
substream          63 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 		snd_pcm_stop(substream,
substream          67 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 		snd_pcm_stream_unlock(substream);
substream          80 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 		snd_pcm_period_elapsed(substream);
substream          86 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_substream *substream, int spdif)
substream          88 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct bcm2835_chip *chip = snd_pcm_substream_chip(substream);
substream          89 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          95 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	idx = substream->number;
substream         120 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	alsa_stream->substream = substream;
substream         158 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_playback_open(struct snd_pcm_substream *substream)
substream         160 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_bcm2835_playback_open_generic(substream, 0);
substream         163 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_playback_spdif_open(struct snd_pcm_substream *substream)
substream         165 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_bcm2835_playback_open_generic(substream, 1);
substream         168 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_playback_close(struct snd_pcm_substream *substream)
substream         174 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	chip = snd_pcm_substream_chip(substream);
substream         176 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	runtime = substream->runtime;
substream         189 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	chip->opened &= ~(1 << substream->number);
substream         196 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_pcm_hw_params(struct snd_pcm_substream *substream,
substream         199 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         202 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_pcm_hw_free(struct snd_pcm_substream *substream)
substream         204 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         207 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_pcm_prepare(struct snd_pcm_substream *substream)
substream         209 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct bcm2835_chip *chip = snd_pcm_substream_chip(substream);
substream         210 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         234 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 		snd_pcm_lib_buffer_bytes(substream);
substream         236 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	alsa_stream->buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         237 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	alsa_stream->period_size = snd_pcm_lib_period_bytes(substream);
substream         246 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static void snd_bcm2835_pcm_transfer(struct snd_pcm_substream *substream,
substream         249 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         251 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	void *src = (void *) (substream->runtime->dma_area + rec->sw_data);
substream         256 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_pcm_ack(struct snd_pcm_substream *substream)
substream         258 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         262 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_pcm_indirect_playback_transfer(substream, pcm_indirect,
substream         267 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c static int snd_bcm2835_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         269 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         287 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c snd_bcm2835_pcm_pointer(struct snd_pcm_substream *substream)
substream         289 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         310 drivers/staging/vc04_services/bcm2835-audio/bcm2835-pcm.c 	return snd_pcm_indirect_playback_pointer(substream,
substream          71 drivers/staging/vc04_services/bcm2835-audio/bcm2835.h 	struct snd_pcm_substream *substream;
substream          72 drivers/usb/gadget/function/f_midi.c 	struct snd_rawmidi_substream *substream;
substream         244 drivers/usb/gadget/function/f_midi.c 	struct snd_rawmidi_substream *substream = midi->out_substream[cable];
substream         246 drivers/usb/gadget/function/f_midi.c 	if (!substream)
substream         253 drivers/usb/gadget/function/f_midi.c 	snd_rawmidi_receive(substream, data, length);
substream         330 drivers/usb/gadget/function/f_midi.c 		struct snd_rawmidi_substream *substream = port->substream;
substream         332 drivers/usb/gadget/function/f_midi.c 		if (port->active && substream)
substream         333 drivers/usb/gadget/function/f_midi.c 			snd_rawmidi_drop_output(substream);
substream         634 drivers/usb/gadget/function/f_midi.c 		struct snd_rawmidi_substream *substream = port->substream;
substream         636 drivers/usb/gadget/function/f_midi.c 		if (!port->active || !substream)
substream         642 drivers/usb/gadget/function/f_midi.c 			if (snd_rawmidi_transmit(substream, &b, 1) != 1) {
substream         707 drivers/usb/gadget/function/f_midi.c static int f_midi_in_open(struct snd_rawmidi_substream *substream)
substream         709 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         712 drivers/usb/gadget/function/f_midi.c 	if (substream->number >= midi->in_ports)
substream         716 drivers/usb/gadget/function/f_midi.c 	port = midi->in_ports_array + substream->number;
substream         717 drivers/usb/gadget/function/f_midi.c 	port->substream = substream;
substream         722 drivers/usb/gadget/function/f_midi.c static int f_midi_in_close(struct snd_rawmidi_substream *substream)
substream         724 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         730 drivers/usb/gadget/function/f_midi.c static void f_midi_in_trigger(struct snd_rawmidi_substream *substream, int up)
substream         732 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         734 drivers/usb/gadget/function/f_midi.c 	if (substream->number >= midi->in_ports)
substream         738 drivers/usb/gadget/function/f_midi.c 	midi->in_ports_array[substream->number].active = up;
substream         743 drivers/usb/gadget/function/f_midi.c static int f_midi_out_open(struct snd_rawmidi_substream *substream)
substream         745 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         747 drivers/usb/gadget/function/f_midi.c 	if (substream->number >= MAX_PORTS)
substream         751 drivers/usb/gadget/function/f_midi.c 	midi->out_substream[substream->number] = substream;
substream         755 drivers/usb/gadget/function/f_midi.c static int f_midi_out_close(struct snd_rawmidi_substream *substream)
substream         757 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         763 drivers/usb/gadget/function/f_midi.c static void f_midi_out_trigger(struct snd_rawmidi_substream *substream, int up)
substream         765 drivers/usb/gadget/function/f_midi.c 	struct f_midi *midi = substream->rmidi->private_data;
substream         770 drivers/usb/gadget/function/f_midi.c 		set_bit(substream->number, &midi->out_triggered);
substream         772 drivers/usb/gadget/function/f_midi.c 		clear_bit(substream->number, &midi->out_triggered);
substream          86 drivers/usb/gadget/function/u_audio.c 	struct snd_pcm_substream *substream;
substream         103 drivers/usb/gadget/function/u_audio.c 	substream = prm->ss;
substream         106 drivers/usb/gadget/function/u_audio.c 	if (!substream)
substream         109 drivers/usb/gadget/function/u_audio.c 	snd_pcm_stream_lock_irqsave(substream, flags2);
substream         111 drivers/usb/gadget/function/u_audio.c 	runtime = substream->runtime;
substream         112 drivers/usb/gadget/function/u_audio.c 	if (!runtime || !snd_pcm_running(substream)) {
substream         113 drivers/usb/gadget/function/u_audio.c 		snd_pcm_stream_unlock_irqrestore(substream, flags2);
substream         119 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         150 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         175 drivers/usb/gadget/function/u_audio.c 	snd_pcm_stream_unlock_irqrestore(substream, flags2);
substream         177 drivers/usb/gadget/function/u_audio.c 	if ((hw_ptr % snd_pcm_lib_period_bytes(substream)) < req->actual)
substream         178 drivers/usb/gadget/function/u_audio.c 		snd_pcm_period_elapsed(substream);
substream         185 drivers/usb/gadget/function/u_audio.c static int uac_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         187 drivers/usb/gadget/function/u_audio.c 	struct snd_uac_chip *uac = snd_pcm_substream_chip(substream);
substream         197 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         210 drivers/usb/gadget/function/u_audio.c 		prm->ss = substream;
substream         223 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && !prm->ss)
substream         229 drivers/usb/gadget/function/u_audio.c static snd_pcm_uframes_t uac_pcm_pointer(struct snd_pcm_substream *substream)
substream         231 drivers/usb/gadget/function/u_audio.c 	struct snd_uac_chip *uac = snd_pcm_substream_chip(substream);
substream         234 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         239 drivers/usb/gadget/function/u_audio.c 	return bytes_to_frames(substream->runtime, prm->hw_ptr);
substream         242 drivers/usb/gadget/function/u_audio.c static int uac_pcm_hw_params(struct snd_pcm_substream *substream,
substream         245 drivers/usb/gadget/function/u_audio.c 	return snd_pcm_lib_malloc_pages(substream,
substream         249 drivers/usb/gadget/function/u_audio.c static int uac_pcm_hw_free(struct snd_pcm_substream *substream)
substream         251 drivers/usb/gadget/function/u_audio.c 	return snd_pcm_lib_free_pages(substream);
substream         254 drivers/usb/gadget/function/u_audio.c static int uac_pcm_open(struct snd_pcm_substream *substream)
substream         256 drivers/usb/gadget/function/u_audio.c 	struct snd_uac_chip *uac = snd_pcm_substream_chip(substream);
substream         257 drivers/usb/gadget/function/u_audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         276 drivers/usb/gadget/function/u_audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         321 drivers/usb/gadget/function/u_audio.c static int uac_pcm_null(struct snd_pcm_substream *substream)
substream          94 drivers/usb/gadget/function/u_uac1_legacy.c 	struct snd_pcm_substream *substream = snd->substream;
substream         123 drivers/usb/gadget/function/u_uac1_legacy.c 	snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
substream         124 drivers/usb/gadget/function/u_uac1_legacy.c 	snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, params);
substream         126 drivers/usb/gadget/function/u_uac1_legacy.c 	result = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL);
substream         155 drivers/usb/gadget/function/u_uac1_legacy.c 	struct snd_pcm_substream *substream = snd->substream;
substream         156 drivers/usb/gadget/function/u_uac1_legacy.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         163 drivers/usb/gadget/function/u_uac1_legacy.c 		result = snd_pcm_kernel_ioctl(substream,
substream         173 drivers/usb/gadget/function/u_uac1_legacy.c 	result = snd_pcm_kernel_write(snd->substream, buf, frames);
substream         232 drivers/usb/gadget/function/u_uac1_legacy.c 	snd->substream = pcm_file->substream;
substream         241 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->substream = NULL;
substream         246 drivers/usb/gadget/function/u_uac1_legacy.c 		snd->substream = pcm_file->substream;
substream          37 drivers/usb/gadget/function/u_uac1_legacy.h 	struct snd_pcm_substream	*substream;
substream          14 include/linux/soundwire/sdw_intel.h 	int (*config_stream)(void *arg, void *substream,
substream         287 include/sound/ak4113.h 	struct snd_pcm_substream *substream;
substream         160 include/sound/ak4117.h 	struct snd_pcm_substream *substream;
substream         190 include/sound/compress_driver.h 					struct snd_compr_stream *substream,
substream         193 include/sound/compress_driver.h 	struct snd_compr_runtime *runtime = substream->runtime;
substream          20 include/sound/dmaengine_pcm.h snd_pcm_substream_to_dma_direction(const struct snd_pcm_substream *substream)
substream          22 include/sound/dmaengine_pcm.h 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          28 include/sound/dmaengine_pcm.h int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream,
substream          30 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
substream          31 include/sound/dmaengine_pcm.h snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream);
substream          32 include/sound/dmaengine_pcm.h snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream);
substream          34 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
substream          36 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream);
substream          38 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream,
substream          40 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream);
substream          44 include/sound/dmaengine_pcm.h struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream);
substream          82 include/sound/dmaengine_pcm.h 	const struct snd_pcm_substream *substream,
substream         127 include/sound/dmaengine_pcm.h 	int (*prepare_slave_config)(struct snd_pcm_substream *substream,
substream         132 include/sound/dmaengine_pcm.h 			struct snd_pcm_substream *substream);
substream         133 include/sound/dmaengine_pcm.h 	int (*process)(struct snd_pcm_substream *substream,
substream         153 include/sound/dmaengine_pcm.h int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream,
substream        1511 include/sound/emu10k1.h 	struct snd_pcm_substream *substream;
substream        1864 include/sound/emu10k1.h struct snd_util_memblk *snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substream);
substream         125 include/sound/hda_codec.h 		    struct snd_pcm_substream *substream);
substream         127 include/sound/hda_codec.h 		     struct snd_pcm_substream *substream);
substream         130 include/sound/hda_codec.h 		       struct snd_pcm_substream *substream);
substream         132 include/sound/hda_codec.h 		       struct snd_pcm_substream *substream);
substream         135 include/sound/hda_codec.h 				  struct snd_pcm_substream *substream);
substream         431 include/sound/hda_codec.h 			  struct snd_pcm_substream *substream);
substream         434 include/sound/hda_codec.h 			   struct snd_pcm_substream *substream);
substream         511 include/sound/hdaudio.h 	struct snd_pcm_substream *substream;	/* assigned substream,
substream         545 include/sound/hdaudio.h 					   struct snd_pcm_substream *substream);
substream         566 include/sound/hdaudio.h 				struct snd_pcm_substream *substream);
substream          88 include/sound/hdaudio_ext.h 					   struct snd_pcm_substream *substream,
substream          27 include/sound/pcm-indirect.h typedef void (*snd_pcm_indirect_copy_t)(struct snd_pcm_substream *substream,
substream          34 include/sound/pcm-indirect.h snd_pcm_indirect_playback_transfer(struct snd_pcm_substream *substream,
substream          38 include/sound/pcm-indirect.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          64 include/sound/pcm-indirect.h 		copy(substream, rec, bytes);
substream          82 include/sound/pcm-indirect.h snd_pcm_indirect_playback_pointer(struct snd_pcm_substream *substream,
substream          93 include/sound/pcm-indirect.h 	if (substream->ops->ack)
substream          94 include/sound/pcm-indirect.h 		substream->ops->ack(substream);
substream          95 include/sound/pcm-indirect.h 	return bytes_to_frames(substream->runtime, rec->sw_io);
substream         103 include/sound/pcm-indirect.h snd_pcm_indirect_capture_transfer(struct snd_pcm_substream *substream,
substream         107 include/sound/pcm-indirect.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         132 include/sound/pcm-indirect.h 		copy(substream, rec, bytes);
substream         150 include/sound/pcm-indirect.h snd_pcm_indirect_capture_pointer(struct snd_pcm_substream *substream,
substream         165 include/sound/pcm-indirect.h 	if (substream->ops->ack)
substream         166 include/sound/pcm-indirect.h 		substream->ops->ack(substream);
substream         167 include/sound/pcm-indirect.h 	return bytes_to_frames(substream->runtime, rec->sw_io);
substream          20 include/sound/pcm.h #define snd_pcm_substream_chip(substream) ((substream)->private_data)
substream          53 include/sound/pcm.h 	int (*open)(struct snd_pcm_substream *substream);
substream          54 include/sound/pcm.h 	int (*close)(struct snd_pcm_substream *substream);
substream          55 include/sound/pcm.h 	int (*ioctl)(struct snd_pcm_substream * substream,
substream          57 include/sound/pcm.h 	int (*hw_params)(struct snd_pcm_substream *substream,
substream          59 include/sound/pcm.h 	int (*hw_free)(struct snd_pcm_substream *substream);
substream          60 include/sound/pcm.h 	int (*prepare)(struct snd_pcm_substream *substream);
substream          61 include/sound/pcm.h 	int (*trigger)(struct snd_pcm_substream *substream, int cmd);
substream          62 include/sound/pcm.h 	snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream);
substream          63 include/sound/pcm.h 	int (*get_time_info)(struct snd_pcm_substream *substream,
substream          67 include/sound/pcm.h 	int (*fill_silence)(struct snd_pcm_substream *substream, int channel,
substream          69 include/sound/pcm.h 	int (*copy_user)(struct snd_pcm_substream *substream, int channel,
substream          72 include/sound/pcm.h 	int (*copy_kernel)(struct snd_pcm_substream *substream, int channel,
substream          74 include/sound/pcm.h 	struct page *(*page)(struct snd_pcm_substream *substream,
substream          76 include/sound/pcm.h 	int (*mmap)(struct snd_pcm_substream *substream, struct vm_area_struct *vma);
substream          77 include/sound/pcm.h 	int (*ack)(struct snd_pcm_substream *substream);
substream         218 include/sound/pcm.h 	struct snd_pcm_substream *substream;
substream         480 include/sound/pcm.h #define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)
substream         489 include/sound/pcm.h 	struct snd_pcm_substream *substream;
substream         554 include/sound/pcm.h int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info);
substream         555 include/sound/pcm.h int snd_pcm_info_user(struct snd_pcm_substream *substream,
substream         557 include/sound/pcm.h int snd_pcm_status(struct snd_pcm_substream *substream,
substream         559 include/sound/pcm.h int snd_pcm_start(struct snd_pcm_substream *substream);
substream         560 include/sound/pcm.h int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t status);
substream         561 include/sound/pcm.h int snd_pcm_drain_done(struct snd_pcm_substream *substream);
substream         562 include/sound/pcm.h int snd_pcm_stop_xrun(struct snd_pcm_substream *substream);
substream         571 include/sound/pcm.h int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream, unsigned int cmd, void *arg);
substream         574 include/sound/pcm.h void snd_pcm_release_substream(struct snd_pcm_substream *substream);
substream         577 include/sound/pcm.h void snd_pcm_detach_substream(struct snd_pcm_substream *substream);
substream         578 include/sound/pcm.h int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file, struct vm_area_struct *area);
substream         582 include/sound/pcm.h void snd_pcm_debug_name(struct snd_pcm_substream *substream,
substream         586 include/sound/pcm.h snd_pcm_debug_name(struct snd_pcm_substream *substream, char *buf, size_t size)
substream         602 include/sound/pcm.h static inline int snd_pcm_stream_linked(struct snd_pcm_substream *substream)
substream         604 include/sound/pcm.h 	return substream->group != &substream->self_group;
substream         607 include/sound/pcm.h void snd_pcm_stream_lock(struct snd_pcm_substream *substream);
substream         608 include/sound/pcm.h void snd_pcm_stream_unlock(struct snd_pcm_substream *substream);
substream         609 include/sound/pcm.h void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream);
substream         610 include/sound/pcm.h void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream);
substream         611 include/sound/pcm.h unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream);
substream         622 include/sound/pcm.h #define snd_pcm_stream_lock_irqsave(substream, flags)		 \
substream         625 include/sound/pcm.h 		flags = _snd_pcm_stream_lock_irqsave(substream); \
substream         627 include/sound/pcm.h void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream,
substream         639 include/sound/pcm.h #define snd_pcm_group_for_each_entry(s, substream) \
substream         640 include/sound/pcm.h 	list_for_each_entry(s, &substream->group->substreams, link_list)
substream         649 include/sound/pcm.h static inline int snd_pcm_running(struct snd_pcm_substream *substream)
substream         651 include/sound/pcm.h 	return (substream->runtime->status->state == SNDRV_PCM_STATE_RUNNING ||
substream         652 include/sound/pcm.h 		(substream->runtime->status->state == SNDRV_PCM_STATE_DRAINING &&
substream         653 include/sound/pcm.h 		 substream->stream == SNDRV_PCM_STREAM_PLAYBACK));
substream         710 include/sound/pcm.h static inline size_t snd_pcm_lib_buffer_bytes(struct snd_pcm_substream *substream)
substream         712 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         720 include/sound/pcm.h static inline size_t snd_pcm_lib_period_bytes(struct snd_pcm_substream *substream)
substream         722 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         782 include/sound/pcm.h static inline int snd_pcm_playback_ready(struct snd_pcm_substream *substream)
substream         784 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         796 include/sound/pcm.h static inline int snd_pcm_capture_ready(struct snd_pcm_substream *substream)
substream         798 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         811 include/sound/pcm.h static inline int snd_pcm_playback_data(struct snd_pcm_substream *substream)
substream         813 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         828 include/sound/pcm.h static inline int snd_pcm_playback_empty(struct snd_pcm_substream *substream)
substream         830 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         842 include/sound/pcm.h static inline int snd_pcm_capture_empty(struct snd_pcm_substream *substream)
substream         844 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         862 include/sound/pcm.h static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, 
substream         865 include/sound/pcm.h 	substream->runtime->trigger_master = master;
substream         970 include/sound/pcm.h int snd_pcm_hw_refine(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params);
substream        1056 include/sound/pcm.h void snd_pcm_set_sync(struct snd_pcm_substream *substream);
substream        1057 include/sound/pcm.h int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
substream        1059 include/sound/pcm.h void snd_pcm_period_elapsed(struct snd_pcm_substream *substream);
substream        1060 include/sound/pcm.h snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
substream        1065 include/sound/pcm.h snd_pcm_lib_write(struct snd_pcm_substream *substream,
substream        1068 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
substream        1072 include/sound/pcm.h snd_pcm_lib_read(struct snd_pcm_substream *substream,
substream        1075 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, (void __force *)buf, true, frames, false);
substream        1079 include/sound/pcm.h snd_pcm_lib_writev(struct snd_pcm_substream *substream,
substream        1082 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false);
substream        1086 include/sound/pcm.h snd_pcm_lib_readv(struct snd_pcm_substream *substream,
substream        1089 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, (void *)bufs, false, frames, false);
substream        1093 include/sound/pcm.h snd_pcm_kernel_write(struct snd_pcm_substream *substream,
substream        1096 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, (void *)buf, true, frames, true);
substream        1100 include/sound/pcm.h snd_pcm_kernel_read(struct snd_pcm_substream *substream,
substream        1103 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, buf, true, frames, true);
substream        1107 include/sound/pcm.h snd_pcm_kernel_writev(struct snd_pcm_substream *substream,
substream        1110 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, bufs, false, frames, true);
substream        1114 include/sound/pcm.h snd_pcm_kernel_readv(struct snd_pcm_substream *substream,
substream        1117 include/sound/pcm.h 	return __snd_pcm_lib_xfer(substream, bufs, false, frames, true);
substream        1136 include/sound/pcm.h static inline void snd_pcm_set_runtime_buffer(struct snd_pcm_substream *substream,
substream        1139 include/sound/pcm.h 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1178 include/sound/pcm.h void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream);
substream        1180 include/sound/pcm.h void snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream,
substream        1186 include/sound/pcm.h int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size);
substream        1187 include/sound/pcm.h int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream);
substream        1189 include/sound/pcm.h int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream,
substream        1191 include/sound/pcm.h int snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream);
substream        1192 include/sound/pcm.h struct page *snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream,
substream        1207 include/sound/pcm.h 			(struct snd_pcm_substream *substream, size_t size)
substream        1209 include/sound/pcm.h 	return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size,
substream        1225 include/sound/pcm.h 			(struct snd_pcm_substream *substream, size_t size)
substream        1227 include/sound/pcm.h 	return _snd_pcm_lib_alloc_vmalloc_buffer(substream, size,
substream        1231 include/sound/pcm.h #define snd_pcm_get_dma_buf(substream) ((substream)->runtime->dma_buffer_p)
substream        1237 include/sound/pcm.h #define snd_pcm_substream_sgbuf(substream) \
substream        1238 include/sound/pcm.h 	snd_pcm_get_dma_buf(substream)->private_data
substream        1240 include/sound/pcm.h struct page *snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream,
substream        1255 include/sound/pcm.h snd_pcm_sgbuf_get_addr(struct snd_pcm_substream *substream, unsigned int ofs)
substream        1257 include/sound/pcm.h 	return snd_sgbuf_get_addr(snd_pcm_get_dma_buf(substream), ofs);
substream        1266 include/sound/pcm.h snd_pcm_sgbuf_get_ptr(struct snd_pcm_substream *substream, unsigned int ofs)
substream        1268 include/sound/pcm.h 	return snd_sgbuf_get_ptr(snd_pcm_get_dma_buf(substream), ofs);
substream        1279 include/sound/pcm.h snd_pcm_sgbuf_get_chunk_size(struct snd_pcm_substream *substream,
substream        1282 include/sound/pcm.h 	return snd_sgbuf_get_chunk_size(snd_pcm_get_dma_buf(substream), ofs, size);
substream        1293 include/sound/pcm.h 	struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data;
substream        1294 include/sound/pcm.h 	atomic_inc(&substream->mmap_count);
substream        1305 include/sound/pcm.h 	struct snd_pcm_substream *substream = (struct snd_pcm_substream *)area->vm_private_data;
substream        1306 include/sound/pcm.h 	atomic_dec(&substream->mmap_count);
substream        1309 include/sound/pcm.h int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
substream        1314 include/sound/pcm.h int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream, struct vm_area_struct *area);
substream        1349 include/sound/pcm.h static inline const char *snd_pcm_stream_str(struct snd_pcm_substream *substream)
substream        1351 include/sound/pcm.h 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1386 include/sound/pcm.h 	for (s = info->pcm->streams[info->stream].substream; s; s = s->next)
substream          14 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
substream          16 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream);
substream          17 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
substream          18 include/sound/pxa2xx-lib.h extern snd_pcm_uframes_t pxa2xx_pcm_pointer(struct snd_pcm_substream *substream);
substream          19 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream);
substream          20 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_open(struct snd_pcm_substream *substream);
substream          21 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_close(struct snd_pcm_substream *substream);
substream          22 include/sound/pxa2xx-lib.h extern int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream,
substream          39 include/sound/rawmidi.h 	int (*open) (struct snd_rawmidi_substream * substream);
substream          40 include/sound/rawmidi.h 	int (*close) (struct snd_rawmidi_substream * substream);
substream          41 include/sound/rawmidi.h 	void (*trigger) (struct snd_rawmidi_substream * substream, int up);
substream          42 include/sound/rawmidi.h 	void (*drain) (struct snd_rawmidi_substream * substream);
substream          53 include/sound/rawmidi.h 	struct snd_rawmidi_substream *substream;
substream          69 include/sound/rawmidi.h 	void (*event)(struct snd_rawmidi_substream *substream);
substream          74 include/sound/rawmidi.h 	void (*private_free)(struct snd_rawmidi_substream *substream);
substream         148 include/sound/rawmidi.h int snd_rawmidi_receive(struct snd_rawmidi_substream *substream,
substream         150 include/sound/rawmidi.h int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream);
substream         151 include/sound/rawmidi.h int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
substream         153 include/sound/rawmidi.h int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count);
substream         154 include/sound/rawmidi.h int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream,
substream         156 include/sound/rawmidi.h int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
substream         158 include/sound/rawmidi.h int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream,
substream         160 include/sound/rawmidi.h int snd_rawmidi_proceed(struct snd_rawmidi_substream *substream);
substream         168 include/sound/rawmidi.h int snd_rawmidi_output_params(struct snd_rawmidi_substream *substream,
substream         170 include/sound/rawmidi.h int snd_rawmidi_input_params(struct snd_rawmidi_substream *substream,
substream         172 include/sound/rawmidi.h int snd_rawmidi_drop_output(struct snd_rawmidi_substream *substream);
substream         173 include/sound/rawmidi.h int snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream);
substream         174 include/sound/rawmidi.h int snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream);
substream         175 include/sound/rawmidi.h long snd_rawmidi_kernel_read(struct snd_rawmidi_substream *substream,
substream         177 include/sound/rawmidi.h long snd_rawmidi_kernel_write(struct snd_rawmidi_substream *substream,
substream         299 include/sound/sb.h int snd_sb8_playback_open(struct snd_pcm_substream *substream);
substream         300 include/sound/sb.h int snd_sb8_capture_open(struct snd_pcm_substream *substream);
substream         301 include/sound/sb.h int snd_sb8_playback_close(struct snd_pcm_substream *substream);
substream         302 include/sound/sb.h int snd_sb8_capture_close(struct snd_pcm_substream *substream);
substream          29 include/sound/seq_virmidi.h 	struct snd_rawmidi_substream *substream;
substream          92 include/sound/simple_card_utils.h int asoc_simple_startup(struct snd_pcm_substream *substream);
substream          93 include/sound/simple_card_utils.h void asoc_simple_shutdown(struct snd_pcm_substream *substream);
substream          94 include/sound/simple_card_utils.h int asoc_simple_hw_params(struct snd_pcm_substream *substream,
substream         350 include/sound/soc-component.h 			   struct snd_pcm_substream *substream);
substream         352 include/sound/soc-component.h 			    struct snd_pcm_substream *substream);
substream         354 include/sound/soc-component.h 			      struct snd_pcm_substream *substream);
substream         356 include/sound/soc-component.h 				struct snd_pcm_substream *substream,
substream         359 include/sound/soc-component.h 			      struct snd_pcm_substream *substream);
substream         361 include/sound/soc-component.h 			      struct snd_pcm_substream *substream,
substream         374 include/sound/soc-component.h int snd_soc_pcm_component_pointer(struct snd_pcm_substream *substream);
substream         375 include/sound/soc-component.h int snd_soc_pcm_component_ioctl(struct snd_pcm_substream *substream,
substream         377 include/sound/soc-component.h int snd_soc_pcm_component_copy_user(struct snd_pcm_substream *substream,
substream         380 include/sound/soc-component.h struct page *snd_soc_pcm_component_page(struct snd_pcm_substream *substream,
substream         382 include/sound/soc-component.h int snd_soc_pcm_component_mmap(struct snd_pcm_substream *substream,
substream         149 include/sound/soc-dai.h 			  struct snd_pcm_substream *substream,
substream         152 include/sound/soc-dai.h 			 struct snd_pcm_substream *substream);
substream         154 include/sound/soc-dai.h 			struct snd_pcm_substream *substream);
substream         156 include/sound/soc-dai.h 			  struct snd_pcm_substream *substream);
substream         158 include/sound/soc-dai.h 			struct snd_pcm_substream *substream);
substream         160 include/sound/soc-dai.h 			struct snd_pcm_substream *substream, int cmd);
substream         162 include/sound/soc-dai.h 			struct snd_pcm_substream *substream, int cmd);
substream         164 include/sound/soc-dai.h 				    struct snd_pcm_substream *substream);
substream         415 include/sound/soc-dapm.h int snd_soc_dapm_update_dai(struct snd_pcm_substream *substream,
substream         490 include/sound/soc.h int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
substream          57 include/sound/vx_core.h 	struct snd_pcm_substream *substream;
substream         341 include/uapi/sound/emu10k1.h 	unsigned int substream;		/* substream number */
substream         694 sound/aoa/codecs/onyx.c 			struct snd_pcm_substream *substream)
substream         703 sound/aoa/codecs/onyx.c 	if (substream->runtime->format == SNDRV_PCM_FMTBIT_COMPRESSED_16BE) {
substream         715 sound/aoa/codecs/onyx.c 	switch (substream->runtime->rate) {
substream         744 sound/aoa/codecs/onyx.c 		     struct snd_pcm_substream *substream)
substream         756 sound/aoa/codecs/onyx.c 		      struct snd_pcm_substream *substream)
substream          44 sound/aoa/soundbus/i2sbus/i2sbus.h 	struct snd_pcm_substream *substream;
substream          90 sound/aoa/soundbus/i2sbus/pcm.c 	hw = &pi->substream->runtime->hw;
substream         195 sound/aoa/soundbus/i2sbus/pcm.c 	err = snd_pcm_hw_constraint_integer(pi->substream->runtime,
substream         203 sound/aoa/soundbus/i2sbus/pcm.c 			err = cii->codec->open(cii, pi->substream);
substream         212 sound/aoa/soundbus/i2sbus/pcm.c 								pi->substream);
substream         241 sound/aoa/soundbus/i2sbus/pcm.c 			tmp = cii->codec->close(cii, pi->substream);
substream         247 sound/aoa/soundbus/i2sbus/pcm.c 	pi->substream = NULL;
substream         297 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_hw_params(struct snd_pcm_substream *substream,
substream         300 sound/aoa/soundbus/i2sbus/pcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         303 sound/aoa/soundbus/i2sbus/pcm.c static inline int i2sbus_hw_free(struct snd_pcm_substream *substream, int in)
substream         305 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         311 sound/aoa/soundbus/i2sbus/pcm.c 	snd_pcm_lib_free_pages(substream);
substream         315 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_playback_hw_free(struct snd_pcm_substream *substream)
substream         317 sound/aoa/soundbus/i2sbus/pcm.c 	return i2sbus_hw_free(substream, 0);
substream         320 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_record_hw_free(struct snd_pcm_substream *substream)
substream         322 sound/aoa/soundbus/i2sbus/pcm.c 	return i2sbus_hw_free(substream, 1);
substream         355 sound/aoa/soundbus/i2sbus/pcm.c 	if (!pi->substream || !pi->substream->runtime) {
substream         360 sound/aoa/soundbus/i2sbus/pcm.c 	runtime = pi->substream->runtime;
substream         372 sound/aoa/soundbus/i2sbus/pcm.c 	periodsize = snd_pcm_lib_period_bytes(pi->substream);
substream         373 sound/aoa/soundbus/i2sbus/pcm.c 	nperiods = pi->substream->runtime->periods;
substream         467 sound/aoa/soundbus/i2sbus/pcm.c 			err = cii->codec->prepare(cii, &bi, pi->substream);
substream         558 sound/aoa/soundbus/i2sbus/pcm.c 				cii->codec->start(cii, pi->substream);
substream         607 sound/aoa/soundbus/i2sbus/pcm.c 				cii->codec->stop(cii, pi->substream);
substream         629 sound/aoa/soundbus/i2sbus/pcm.c 	if (fc >= pi->substream->runtime->buffer_size)
substream         630 sound/aoa/soundbus/i2sbus/pcm.c 		fc %= pi->substream->runtime->buffer_size;
substream         649 sound/aoa/soundbus/i2sbus/pcm.c 	runtime = pi->substream->runtime;
substream         702 sound/aoa/soundbus/i2sbus/pcm.c 	snd_pcm_period_elapsed(pi->substream);
substream         721 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_playback_open(struct snd_pcm_substream *substream)
substream         723 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         727 sound/aoa/soundbus/i2sbus/pcm.c 	i2sdev->out.substream = substream;
substream         731 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_playback_close(struct snd_pcm_substream *substream)
substream         733 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         738 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->out.substream != substream)
substream         742 sound/aoa/soundbus/i2sbus/pcm.c 		i2sdev->out.substream = NULL;
substream         746 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_playback_prepare(struct snd_pcm_substream *substream)
substream         748 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         752 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->out.substream != substream)
substream         757 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         759 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         763 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->out.substream != substream)
substream         769 sound/aoa/soundbus/i2sbus/pcm.c 						 *substream)
substream         771 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         775 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->out.substream != substream)
substream         791 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_record_open(struct snd_pcm_substream *substream)
substream         793 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         797 sound/aoa/soundbus/i2sbus/pcm.c 	i2sdev->in.substream = substream;
substream         801 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_record_close(struct snd_pcm_substream *substream)
substream         803 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         808 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->in.substream != substream)
substream         812 sound/aoa/soundbus/i2sbus/pcm.c 		i2sdev->in.substream = NULL;
substream         816 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_record_prepare(struct snd_pcm_substream *substream)
substream         818 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         822 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->in.substream != substream)
substream         827 sound/aoa/soundbus/i2sbus/pcm.c static int i2sbus_record_trigger(struct snd_pcm_substream *substream, int cmd)
substream         829 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         833 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->in.substream != substream)
substream         839 sound/aoa/soundbus/i2sbus/pcm.c 					       *substream)
substream         841 sound/aoa/soundbus/i2sbus/pcm.c 	struct i2sbus_dev *i2sdev = snd_pcm_substream_chip(substream);
substream         845 sound/aoa/soundbus/i2sbus/pcm.c 	if (i2sdev->in.substream != substream)
substream         106 sound/aoa/soundbus/soundbus.h 		    struct snd_pcm_substream *substream);
substream         111 sound/aoa/soundbus/soundbus.h 		     struct snd_pcm_substream *substream);
substream         121 sound/aoa/soundbus/soundbus.h 		       struct snd_pcm_substream *substream);
substream         126 sound/aoa/soundbus/soundbus.h 		     struct snd_pcm_substream *substream);
substream         131 sound/aoa/soundbus/soundbus.h 		    struct snd_pcm_substream *substream);
substream         213 sound/arm/aaci.c 		if (!aacirun->substream || !aacirun->start) {
substream         260 sound/arm/aaci.c 			snd_pcm_period_elapsed(aacirun->substream);
substream         273 sound/arm/aaci.c 		if (!aacirun->substream || !aacirun->start) {
substream         320 sound/arm/aaci.c 			snd_pcm_period_elapsed(aacirun->substream);
substream         399 sound/arm/aaci.c static int aaci_pcm_open(struct snd_pcm_substream *substream)
substream         401 sound/arm/aaci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         402 sound/arm/aaci.c 	struct aaci *aaci = substream->private_data;
substream         406 sound/arm/aaci.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         412 sound/arm/aaci.c 	aacirun->substream = substream;
substream         418 sound/arm/aaci.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         422 sound/arm/aaci.c 		ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         456 sound/arm/aaci.c static int aaci_pcm_close(struct snd_pcm_substream *substream)
substream         458 sound/arm/aaci.c 	struct aaci *aaci = substream->private_data;
substream         459 sound/arm/aaci.c 	struct aaci_runtime *aacirun = substream->runtime->private_data;
substream         463 sound/arm/aaci.c 	aacirun->substream = NULL;
substream         473 sound/arm/aaci.c static int aaci_pcm_hw_free(struct snd_pcm_substream *substream)
substream         475 sound/arm/aaci.c 	struct aaci_runtime *aacirun = substream->runtime->private_data;
substream         489 sound/arm/aaci.c 	snd_pcm_lib_free_pages(substream);
substream         501 sound/arm/aaci.c static int aaci_pcm_hw_params(struct snd_pcm_substream *substream,
substream         504 sound/arm/aaci.c 	struct aaci_runtime *aacirun = substream->runtime->private_data;
substream         510 sound/arm/aaci.c 	aaci_pcm_hw_free(substream);
substream         520 sound/arm/aaci.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         523 sound/arm/aaci.c 		struct aaci *aaci = substream->private_data;
substream         543 sound/arm/aaci.c static int aaci_pcm_prepare(struct snd_pcm_substream *substream)
substream         545 sound/arm/aaci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         548 sound/arm/aaci.c 	aacirun->period	= snd_pcm_lib_period_bytes(substream);
substream         550 sound/arm/aaci.c 	aacirun->end	= aacirun->start + snd_pcm_lib_buffer_bytes(substream);
substream         557 sound/arm/aaci.c static snd_pcm_uframes_t aaci_pcm_pointer(struct snd_pcm_substream *substream)
substream         559 sound/arm/aaci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         595 sound/arm/aaci.c static int aaci_pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         597 sound/arm/aaci.c 	struct aaci_runtime *aacirun = substream->runtime->private_data;
substream         680 sound/arm/aaci.c static int aaci_pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         682 sound/arm/aaci.c 	struct aaci_runtime *aacirun = substream->runtime->private_data;
substream         720 sound/arm/aaci.c static int aaci_pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         722 sound/arm/aaci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         723 sound/arm/aaci.c 	struct aaci *aaci = substream->private_data;
substream         725 sound/arm/aaci.c 	aaci_pcm_prepare(substream);
substream         208 sound/arm/aaci.h 	struct snd_pcm_substream	*substream;
substream          64 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_pcm_open(struct snd_pcm_substream *substream)
substream          66 sound/arm/pxa2xx-ac97.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          70 sound/arm/pxa2xx-ac97.c 	ret = pxa2xx_pcm_open(substream);
substream          77 sound/arm/pxa2xx-ac97.c 	i = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
substream          82 sound/arm/pxa2xx-ac97.c 	platform_ops = substream->pcm->card->dev->platform_data;
substream          84 sound/arm/pxa2xx-ac97.c 		ret = platform_ops->startup(substream, platform_ops->priv);
substream          86 sound/arm/pxa2xx-ac97.c 			pxa2xx_pcm_close(substream);
substream          92 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_pcm_close(struct snd_pcm_substream *substream)
substream          96 sound/arm/pxa2xx-ac97.c 	platform_ops = substream->pcm->card->dev->platform_data;
substream          98 sound/arm/pxa2xx-ac97.c 		platform_ops->shutdown(substream, platform_ops->priv);
substream         103 sound/arm/pxa2xx-ac97.c static int pxa2xx_ac97_pcm_prepare(struct snd_pcm_substream *substream)
substream         105 sound/arm/pxa2xx-ac97.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         106 sound/arm/pxa2xx-ac97.c 	int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
substream         110 sound/arm/pxa2xx-ac97.c 	ret = pxa2xx_pcm_prepare(substream);
substream          32 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
substream          35 sound/arm/pxa2xx-pcm-lib.c 	struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream);
substream          36 sound/arm/pxa2xx-pcm-lib.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          41 sound/arm/pxa2xx-pcm-lib.c 	dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream          45 sound/arm/pxa2xx-pcm-lib.c 	ret = snd_hwparams_to_dma_slave_config(substream, params, &config);
substream          49 sound/arm/pxa2xx-pcm-lib.c 	snd_dmaengine_pcm_set_config_from_dai_data(substream,
substream          50 sound/arm/pxa2xx-pcm-lib.c 			snd_soc_dai_get_dma_data(rtd->cpu_dai, substream),
substream          57 sound/arm/pxa2xx-pcm-lib.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream          63 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_hw_free(struct snd_pcm_substream *substream)
substream          65 sound/arm/pxa2xx-pcm-lib.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream          70 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream          72 sound/arm/pxa2xx-pcm-lib.c 	return snd_dmaengine_pcm_trigger(substream, cmd);
substream          77 sound/arm/pxa2xx-pcm-lib.c pxa2xx_pcm_pointer(struct snd_pcm_substream *substream)
substream          79 sound/arm/pxa2xx-pcm-lib.c 	return snd_dmaengine_pcm_pointer(substream);
substream          83 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream)
substream          89 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
substream          91 sound/arm/pxa2xx-pcm-lib.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          92 sound/arm/pxa2xx-pcm-lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          98 sound/arm/pxa2xx-pcm-lib.c 	dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         123 sound/arm/pxa2xx-pcm-lib.c 		substream, dma_request_slave_channel(rtd->cpu_dai->dev,
substream         128 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_close(struct snd_pcm_substream *substream)
substream         130 sound/arm/pxa2xx-pcm-lib.c 	return snd_dmaengine_pcm_close_release_chan(substream);
substream         134 sound/arm/pxa2xx-pcm-lib.c int pxa2xx_pcm_mmap(struct snd_pcm_substream *substream,
substream         137 sound/arm/pxa2xx-pcm-lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         138 sound/arm/pxa2xx-pcm-lib.c 	return dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
substream         145 sound/arm/pxa2xx-pcm-lib.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream         146 sound/arm/pxa2xx-pcm-lib.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         161 sound/arm/pxa2xx-pcm-lib.c 	struct snd_pcm_substream *substream;
substream         166 sound/arm/pxa2xx-pcm-lib.c 		substream = pcm->streams[stream].substream;
substream         167 sound/arm/pxa2xx-pcm-lib.c 		if (!substream)
substream         169 sound/arm/pxa2xx-pcm-lib.c 		buf = &substream->dma_buffer;
substream         188 sound/arm/pxa2xx-pcm-lib.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         195 sound/arm/pxa2xx-pcm-lib.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream          86 sound/atmel/ac97c.c static int atmel_ac97c_playback_open(struct snd_pcm_substream *substream)
substream          88 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream          89 sound/atmel/ac97c.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         101 sound/atmel/ac97c.c 	chip->playback_substream = substream;
substream         105 sound/atmel/ac97c.c static int atmel_ac97c_capture_open(struct snd_pcm_substream *substream)
substream         107 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         108 sound/atmel/ac97c.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         120 sound/atmel/ac97c.c 	chip->capture_substream = substream;
substream         124 sound/atmel/ac97c.c static int atmel_ac97c_playback_close(struct snd_pcm_substream *substream)
substream         126 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         141 sound/atmel/ac97c.c static int atmel_ac97c_capture_close(struct snd_pcm_substream *substream)
substream         143 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         158 sound/atmel/ac97c.c static int atmel_ac97c_playback_hw_params(struct snd_pcm_substream *substream,
substream         161 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         164 sound/atmel/ac97c.c 	retval = snd_pcm_lib_malloc_pages(substream,
substream         178 sound/atmel/ac97c.c static int atmel_ac97c_capture_hw_params(struct snd_pcm_substream *substream,
substream         181 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         184 sound/atmel/ac97c.c 	retval = snd_pcm_lib_malloc_pages(substream,
substream         198 sound/atmel/ac97c.c static int atmel_ac97c_playback_prepare(struct snd_pcm_substream *substream)
substream         200 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         201 sound/atmel/ac97c.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         280 sound/atmel/ac97c.c static int atmel_ac97c_capture_prepare(struct snd_pcm_substream *substream)
substream         282 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         283 sound/atmel/ac97c.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         363 sound/atmel/ac97c.c atmel_ac97c_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         365 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         394 sound/atmel/ac97c.c atmel_ac97c_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         396 sound/atmel/ac97c.c 	struct atmel_ac97c *chip = snd_pcm_substream_chip(substream);
substream         426 sound/atmel/ac97c.c atmel_ac97c_playback_pointer(struct snd_pcm_substream *substream)
substream         428 sound/atmel/ac97c.c 	struct atmel_ac97c	*chip = snd_pcm_substream_chip(substream);
substream         429 sound/atmel/ac97c.c 	struct snd_pcm_runtime	*runtime = substream->runtime;
substream         443 sound/atmel/ac97c.c atmel_ac97c_capture_pointer(struct snd_pcm_substream *substream)
substream         445 sound/atmel/ac97c.c 	struct atmel_ac97c	*chip = snd_pcm_substream_chip(substream);
substream         446 sound/atmel/ac97c.c 	struct snd_pcm_runtime	*runtime = substream->runtime;
substream         539 sound/core/oss/pcm_oss.c static int snd_pcm_oss_plugin_clear(struct snd_pcm_substream *substream)
substream         541 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         585 sound/core/oss/pcm_oss.c static long snd_pcm_oss_bytes(struct snd_pcm_substream *substream, long frames)
substream         587 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         588 sound/core/oss/pcm_oss.c 	long buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         602 sound/core/oss/pcm_oss.c static long snd_pcm_alsa_frames(struct snd_pcm_substream *substream, long bytes)
substream         604 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         605 sound/core/oss/pcm_oss.c 	long buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         681 sound/core/oss/pcm_oss.c static int snd_pcm_oss_period_size(struct snd_pcm_substream *substream, 
substream         688 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         694 sound/core/oss/pcm_oss.c 	oss_buffer_size = snd_pcm_plug_client_size(substream,
substream         697 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count)) {
substream         702 sound/core/oss/pcm_oss.c 	if (substream->oss.setup.period_size > 16)
substream         703 sound/core/oss/pcm_oss.c 		oss_period_size = substream->oss.setup.period_size;
substream         729 sound/core/oss/pcm_oss.c 	min_period_size = snd_pcm_plug_client_size(substream,
substream         736 sound/core/oss/pcm_oss.c 	max_period_size = snd_pcm_plug_client_size(substream,
substream         745 sound/core/oss/pcm_oss.c 	if (substream->oss.setup.periods > 1)
substream         746 sound/core/oss/pcm_oss.c 		oss_periods = substream->oss.setup.periods;
substream         771 sound/core/oss/pcm_oss.c static int choose_rate(struct snd_pcm_substream *substream,
substream         791 sound/core/oss/pcm_oss.c 			ret = snd_pcm_hw_param_set(substream, params,
substream         808 sound/core/oss/pcm_oss.c 	return snd_pcm_hw_param_near(substream, params, SNDRV_PCM_HW_PARAM_RATE, best_rate, NULL);
substream         829 sound/core/oss/pcm_oss.c static int snd_pcm_oss_change_params_locked(struct snd_pcm_substream *substream)
substream         831 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         853 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream         856 sound/core/oss/pcm_oss.c 		direct = substream->oss.setup.direct;
substream         862 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream         869 sound/core/oss/pcm_oss.c 	err = snd_pcm_hw_param_mask(substream, sparams, SNDRV_PCM_HW_PARAM_ACCESS, &mask);
substream         871 sound/core/oss/pcm_oss.c 		pcm_dbg(substream->pcm, "No usable accesses\n");
substream         875 sound/core/oss/pcm_oss.c 	choose_rate(substream, sparams, runtime->oss.rate);
substream         876 sound/core/oss/pcm_oss.c 	snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_CHANNELS, runtime->oss.channels, NULL);
substream         896 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm, "Cannot find a format!!!\n");
substream         928 sound/core/oss/pcm_oss.c 	err = snd_pcm_oss_period_size(substream, params, sparams);
substream         932 sound/core/oss/pcm_oss.c 	n = snd_pcm_plug_slave_size(substream, runtime->oss.period_bytes / oss_frame_size);
substream         933 sound/core/oss/pcm_oss.c 	err = snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, n, NULL);
substream         937 sound/core/oss/pcm_oss.c 	err = snd_pcm_hw_param_near(substream, sparams, SNDRV_PCM_HW_PARAM_PERIODS,
substream         942 sound/core/oss/pcm_oss.c 	snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
substream         944 sound/core/oss/pcm_oss.c 	err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, sparams);
substream         946 sound/core/oss/pcm_oss.c 		pcm_dbg(substream->pcm, "HW_PARAMS failed: %i\n", err);
substream         951 sound/core/oss/pcm_oss.c 	snd_pcm_oss_plugin_clear(substream);
substream         954 sound/core/oss/pcm_oss.c 		snd_pcm_oss_plugin_clear(substream);
substream         955 sound/core/oss/pcm_oss.c 		if ((err = snd_pcm_plug_format_plugins(substream,
substream         958 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm,
substream         960 sound/core/oss/pcm_oss.c 			snd_pcm_oss_plugin_clear(substream);
substream         965 sound/core/oss/pcm_oss.c 			if ((err = snd_pcm_plugin_build_io(substream, sparams, &plugin)) < 0) {
substream         966 sound/core/oss/pcm_oss.c 				pcm_dbg(substream->pcm,
substream         968 sound/core/oss/pcm_oss.c 				snd_pcm_oss_plugin_clear(substream);
substream         971 sound/core/oss/pcm_oss.c 			if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         977 sound/core/oss/pcm_oss.c 				snd_pcm_oss_plugin_clear(substream);
substream         989 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count) ||
substream         990 sound/core/oss/pcm_oss.c 	    substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         996 sound/core/oss/pcm_oss.c 	sw_params->avail_min = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         998 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count) ||
substream         999 sound/core/oss/pcm_oss.c 	    substream->oss.setup.nosilence) {
substream        1011 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_SW_PARAMS, sw_params)) < 0) {
substream        1012 sound/core/oss/pcm_oss.c 		pcm_dbg(substream->pcm, "SW_PARAMS failed: %i\n", err);
substream        1017 sound/core/oss/pcm_oss.c 	oss_period_size = snd_pcm_plug_client_size(substream, params_period_size(sparams));
substream        1024 sound/core/oss/pcm_oss.c 		err = snd_pcm_plug_alloc(substream, oss_period_size);
substream        1064 sound/core/oss/pcm_oss.c 	runtime->oss.period_frames = snd_pcm_alsa_frames(substream, oss_period_size);
substream        1075 sound/core/oss/pcm_oss.c static int snd_pcm_oss_change_params(struct snd_pcm_substream *substream,
substream        1078 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1087 sound/core/oss/pcm_oss.c 	err = snd_pcm_oss_change_params_locked(substream);
substream        1095 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *asubstream = NULL, *substream;
substream        1098 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[idx];
substream        1099 sound/core/oss/pcm_oss.c 		if (substream == NULL)
substream        1102 sound/core/oss/pcm_oss.c 			asubstream = substream;
substream        1103 sound/core/oss/pcm_oss.c 		if (substream->runtime->oss.params) {
substream        1104 sound/core/oss/pcm_oss.c 			err = snd_pcm_oss_change_params(substream, false);
substream        1120 sound/core/oss/pcm_oss.c static int snd_pcm_oss_prepare(struct snd_pcm_substream *substream)
substream        1123 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1125 sound/core/oss/pcm_oss.c 	err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL);
substream        1127 sound/core/oss/pcm_oss.c 		pcm_dbg(substream->pcm,
substream        1139 sound/core/oss/pcm_oss.c static int snd_pcm_oss_make_ready(struct snd_pcm_substream *substream)
substream        1144 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        1146 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_change_params(substream, false);
substream        1153 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_prepare(substream);
substream        1162 sound/core/oss/pcm_oss.c static int snd_pcm_oss_make_ready_locked(struct snd_pcm_substream *substream)
substream        1167 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        1169 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_change_params_locked(substream);
substream        1174 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_prepare(substream);
substream        1181 sound/core/oss/pcm_oss.c static int snd_pcm_oss_capture_position_fixup(struct snd_pcm_substream *substream, snd_pcm_sframes_t *delay)
substream        1188 sound/core/oss/pcm_oss.c 		err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, delay);
substream        1191 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1199 sound/core/oss/pcm_oss.c 		err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_FORWARD, &frames);
substream        1206 sound/core/oss/pcm_oss.c snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream, const char *ptr, snd_pcm_uframes_t frames, int in_kernel)
substream        1208 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1214 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm,
substream        1219 sound/core/oss/pcm_oss.c 			ret = snd_pcm_oss_prepare(substream);
substream        1223 sound/core/oss/pcm_oss.c 		ret = __snd_pcm_lib_xfer(substream, (void *)ptr, true,
substream        1235 sound/core/oss/pcm_oss.c snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream, char *ptr, snd_pcm_uframes_t frames, int in_kernel)
substream        1237 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1244 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm,
substream        1249 sound/core/oss/pcm_oss.c 			ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
substream        1253 sound/core/oss/pcm_oss.c 			ret = snd_pcm_oss_prepare(substream);
substream        1257 sound/core/oss/pcm_oss.c 		ret = snd_pcm_oss_capture_position_fixup(substream, &delay);
substream        1260 sound/core/oss/pcm_oss.c 		ret = __snd_pcm_lib_xfer(substream, (void *)ptr, true,
substream        1264 sound/core/oss/pcm_oss.c 				ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
substream        1277 sound/core/oss/pcm_oss.c snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
substream        1279 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1285 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm,
substream        1290 sound/core/oss/pcm_oss.c 			ret = snd_pcm_oss_prepare(substream);
substream        1294 sound/core/oss/pcm_oss.c 		ret = snd_pcm_kernel_writev(substream, bufs, frames);
substream        1306 sound/core/oss/pcm_oss.c snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream, void **bufs, snd_pcm_uframes_t frames)
substream        1308 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1314 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm,
substream        1319 sound/core/oss/pcm_oss.c 			ret = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
substream        1323 sound/core/oss/pcm_oss.c 			ret = snd_pcm_oss_prepare(substream);
substream        1327 sound/core/oss/pcm_oss.c 		ret = snd_pcm_kernel_readv(substream, bufs, frames);
substream        1335 sound/core/oss/pcm_oss.c static ssize_t snd_pcm_oss_write2(struct snd_pcm_substream *substream, const char *buf, size_t bytes, int in_kernel)
substream        1337 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1349 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_plug_client_channels_buf(substream, (char *)buf, frames, &channels);
substream        1352 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_plug_write_transfer(substream, channels, frames1);
substream        1360 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_oss_write3(substream, buf, frames, in_kernel);
substream        1368 sound/core/oss/pcm_oss.c static ssize_t snd_pcm_oss_write1(struct snd_pcm_substream *substream, const char __user *buf, size_t bytes)
substream        1372 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1374 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream        1383 sound/core/oss/pcm_oss.c 		tmp = snd_pcm_oss_make_ready_locked(substream);
substream        1400 sound/core/oss/pcm_oss.c 			if (substream->oss.setup.partialfrag ||
substream        1402 sound/core/oss/pcm_oss.c 				tmp = snd_pcm_oss_write2(substream, runtime->oss.buffer + runtime->oss.period_ptr, 
substream        1412 sound/core/oss/pcm_oss.c 				else if ((substream->f_flags & O_NONBLOCK) != 0) {
substream        1418 sound/core/oss/pcm_oss.c 			tmp = snd_pcm_oss_write2(substream,
substream        1427 sound/core/oss/pcm_oss.c 			if ((substream->f_flags & O_NONBLOCK) != 0 &&
substream        1445 sound/core/oss/pcm_oss.c static ssize_t snd_pcm_oss_read2(struct snd_pcm_substream *substream, char *buf, size_t bytes, int in_kernel)
substream        1447 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1457 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_plug_client_channels_buf(substream, buf, frames, &channels);
substream        1460 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_plug_read_transfer(substream, channels, frames1);
substream        1470 sound/core/oss/pcm_oss.c 		frames1 = snd_pcm_oss_read3(substream, buf, frames, in_kernel);
substream        1478 sound/core/oss/pcm_oss.c static ssize_t snd_pcm_oss_read1(struct snd_pcm_substream *substream, char __user *buf, size_t bytes)
substream        1482 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1484 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream        1493 sound/core/oss/pcm_oss.c 		tmp = snd_pcm_oss_make_ready_locked(substream);
substream        1498 sound/core/oss/pcm_oss.c 				tmp = snd_pcm_oss_read2(substream, runtime->oss.buffer, runtime->oss.period_bytes, 1);
substream        1517 sound/core/oss/pcm_oss.c 			tmp = snd_pcm_oss_read2(substream, (char __force *)buf,
substream        1542 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1547 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[i];
substream        1548 sound/core/oss/pcm_oss.c 		if (!substream)
substream        1550 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1551 sound/core/oss/pcm_oss.c 		snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
substream        1564 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1567 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        1568 sound/core/oss/pcm_oss.c 	if (substream != NULL) {
substream        1569 sound/core/oss/pcm_oss.c 		if ((err = snd_pcm_oss_make_ready(substream)) < 0)
substream        1571 sound/core/oss/pcm_oss.c 		snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_START, NULL);
substream        1578 sound/core/oss/pcm_oss.c static int snd_pcm_oss_sync1(struct snd_pcm_substream *substream, size_t size)
substream        1586 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        1590 sound/core/oss/pcm_oss.c 	pcm_dbg(substream->pcm, "sync1: size = %li\n", size);
substream        1593 sound/core/oss/pcm_oss.c 		result = snd_pcm_oss_write2(substream, runtime->oss.buffer, size, 1);
substream        1603 sound/core/oss/pcm_oss.c 		snd_pcm_stream_lock_irq(substream);
substream        1605 sound/core/oss/pcm_oss.c 		snd_pcm_stream_unlock_irq(substream);
substream        1616 sound/core/oss/pcm_oss.c 			pcm_err(substream->pcm,
substream        1630 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1636 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        1637 sound/core/oss/pcm_oss.c 	if (substream != NULL) {
substream        1638 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1639 sound/core/oss/pcm_oss.c 		if (atomic_read(&substream->mmap_count))
substream        1641 sound/core/oss/pcm_oss.c 		if ((err = snd_pcm_oss_make_ready(substream)) < 0)
substream        1652 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm, "sync: buffer_used\n");
substream        1658 sound/core/oss/pcm_oss.c 			err = snd_pcm_oss_sync1(substream, runtime->oss.period_bytes);
substream        1663 sound/core/oss/pcm_oss.c 			pcm_dbg(substream->pcm, "sync: period_ptr\n");
substream        1669 sound/core/oss/pcm_oss.c 			err = snd_pcm_oss_sync1(substream, size);
substream        1681 sound/core/oss/pcm_oss.c 				snd_pcm_lib_write(substream, NULL, size);
substream        1683 sound/core/oss/pcm_oss.c 				snd_pcm_lib_writev(substream, NULL, size);
substream        1694 sound/core/oss/pcm_oss.c 		saved_f_flags = substream->f_flags;
substream        1695 sound/core/oss/pcm_oss.c 		substream->f_flags &= ~O_NONBLOCK;
substream        1696 sound/core/oss/pcm_oss.c 		err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DRAIN, NULL);
substream        1697 sound/core/oss/pcm_oss.c 		substream->f_flags = saved_f_flags;
substream        1705 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE];
substream        1706 sound/core/oss/pcm_oss.c 	if (substream != NULL) {
substream        1707 sound/core/oss/pcm_oss.c 		if ((err = snd_pcm_oss_make_ready(substream)) < 0)
substream        1709 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1710 sound/core/oss/pcm_oss.c 		err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL);
substream        1726 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        1730 sound/core/oss/pcm_oss.c 		if (substream == NULL)
substream        1732 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1751 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1754 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream)) < 0)
substream        1756 sound/core/oss/pcm_oss.c 	return substream->runtime->oss.rate;
substream        1767 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        1771 sound/core/oss/pcm_oss.c 		if (substream == NULL)
substream        1773 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1788 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1791 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream)) < 0)
substream        1793 sound/core/oss/pcm_oss.c 	return substream->runtime->oss.channels;
substream        1798 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1801 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream)) < 0)
substream        1803 sound/core/oss/pcm_oss.c 	return substream->runtime->oss.period_bytes;
substream        1808 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1816 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream)) < 0)
substream        1818 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream        1821 sound/core/oss/pcm_oss.c 		direct = substream->oss.setup.direct;
substream        1834 sound/core/oss/pcm_oss.c 	err = snd_pcm_hw_refine(substream, params);
substream        1863 sound/core/oss/pcm_oss.c 			struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        1865 sound/core/oss/pcm_oss.c 			if (substream == NULL)
substream        1867 sound/core/oss/pcm_oss.c 			runtime = substream->runtime;
substream        1883 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        1886 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_get_active_substream(pcm_oss_file, &substream)) < 0)
substream        1888 sound/core/oss/pcm_oss.c 	return substream->runtime->oss.format;
substream        1891 sound/core/oss/pcm_oss.c static int snd_pcm_oss_set_subdivide1(struct snd_pcm_substream *substream, int subdivide)
substream        1895 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        1917 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        1920 sound/core/oss/pcm_oss.c 		if (substream == NULL)
substream        1922 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1926 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_set_subdivide1(substream, subdivide);
substream        1934 sound/core/oss/pcm_oss.c static int snd_pcm_oss_set_fragment1(struct snd_pcm_substream *substream, unsigned int val)
substream        1938 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        1956 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        1959 sound/core/oss/pcm_oss.c 		if (substream == NULL)
substream        1961 sound/core/oss/pcm_oss.c 		runtime = substream->runtime;
substream        1965 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_set_fragment1(substream, val);
substream        1981 sound/core/oss/pcm_oss.c static int snd_pcm_oss_get_caps1(struct snd_pcm_substream *substream, int res)
substream        1984 sound/core/oss/pcm_oss.c 	if (substream == NULL) {
substream        1989 sound/core/oss/pcm_oss.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1990 sound/core/oss/pcm_oss.c 		if (substream->pstr->substream_count > 1)
substream        1997 sound/core/oss/pcm_oss.c 		struct snd_pcm_runtime *runtime = substream->runtime;
substream        2011 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[idx];
substream        2012 sound/core/oss/pcm_oss.c 		result = snd_pcm_oss_get_caps1(substream, result);
substream        2018 sound/core/oss/pcm_oss.c static void snd_pcm_oss_simulate_fill(struct snd_pcm_substream *substream,
substream        2021 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2035 sound/core/oss/pcm_oss.c 	pcm_dbg(substream->pcm, "pcm_oss: trigger = 0x%x\n", trigger);
substream        2125 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2130 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        2131 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2133 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_make_ready(substream)) < 0)
substream        2135 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2138 sound/core/oss/pcm_oss.c 	err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay);
substream        2143 sound/core/oss/pcm_oss.c 	return snd_pcm_oss_bytes(substream, delay);
substream        2148 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2157 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[stream];
substream        2158 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2160 sound/core/oss/pcm_oss.c 	if ((err = snd_pcm_oss_make_ready(substream)) < 0)
substream        2162 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2170 sound/core/oss/pcm_oss.c 		err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &delay);
substream        2179 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_capture_position_fixup(substream, &delay);
substream        2184 sound/core/oss/pcm_oss.c 	info.ptr = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr % runtime->buffer_size);
substream        2185 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count)) {
substream        2193 sound/core/oss/pcm_oss.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2194 sound/core/oss/pcm_oss.c 			snd_pcm_oss_simulate_fill(substream, delay);
substream        2195 sound/core/oss/pcm_oss.c 		info.bytes = snd_pcm_oss_bytes(substream, runtime->status->hw_ptr) & INT_MAX;
substream        2197 sound/core/oss/pcm_oss.c 		delay = snd_pcm_oss_bytes(substream, delay);
substream        2199 sound/core/oss/pcm_oss.c 			if (substream->oss.setup.buggyptr)
substream        2217 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2226 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[stream];
substream        2227 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2229 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2232 sound/core/oss/pcm_oss.c 	    (err = snd_pcm_oss_change_params(substream, false)) < 0)
substream        2247 sound/core/oss/pcm_oss.c 			err = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DELAY, &avail);
substream        2257 sound/core/oss/pcm_oss.c 			err = snd_pcm_oss_capture_position_fixup(substream, &avail);
substream        2262 sound/core/oss/pcm_oss.c 		info.bytes = snd_pcm_oss_bytes(substream, avail) + fixup;
substream        2267 sound/core/oss/pcm_oss.c 	pcm_dbg(substream->pcm,
substream        2313 sound/core/oss/pcm_oss.c static void snd_pcm_oss_release_substream(struct snd_pcm_substream *substream)
substream        2316 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2320 sound/core/oss/pcm_oss.c 	snd_pcm_oss_plugin_clear(substream);
substream        2322 sound/core/oss/pcm_oss.c 	substream->oss.oss = 0;
substream        2325 sound/core/oss/pcm_oss.c static void snd_pcm_oss_init_substream(struct snd_pcm_substream *substream,
substream        2331 sound/core/oss/pcm_oss.c 	substream->oss.oss = 1;
substream        2332 sound/core/oss/pcm_oss.c 	substream->oss.setup = *setup;
substream        2334 sound/core/oss/pcm_oss.c 		substream->f_flags |= O_NONBLOCK;
substream        2336 sound/core/oss/pcm_oss.c 		substream->f_flags &= ~O_NONBLOCK;
substream        2337 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2356 sound/core/oss/pcm_oss.c 	substream->pcm_release = snd_pcm_oss_release_substream;
substream        2366 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx];
substream        2367 sound/core/oss/pcm_oss.c 		if (substream)
substream        2368 sound/core/oss/pcm_oss.c 			snd_pcm_release_substream(substream);
substream        2382 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2409 sound/core/oss/pcm_oss.c 		err = snd_pcm_open_substream(pcm, idx, file, &substream);
substream        2415 sound/core/oss/pcm_oss.c 		pcm_oss_file->streams[idx] = substream;
substream        2416 sound/core/oss/pcm_oss.c 		snd_pcm_oss_init_substream(substream, &setup[idx], minor);
substream        2534 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2538 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        2539 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2540 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE];
substream        2541 sound/core/oss/pcm_oss.c 	if (snd_BUG_ON(!substream))
substream        2543 sound/core/oss/pcm_oss.c 	pcm = substream->pcm;
substream        2568 sound/core/oss/pcm_oss.c 		struct snd_pcm_substream *substream;
substream        2571 sound/core/oss/pcm_oss.c 			substream = pcm_oss_file->streams[idx];
substream        2572 sound/core/oss/pcm_oss.c 			if (substream != NULL)
substream        2577 sound/core/oss/pcm_oss.c 		return snd_mixer_oss_ioctl_card(substream->pcm->card, cmd, arg);
substream        2729 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2732 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE];
substream        2733 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2735 sound/core/oss/pcm_oss.c 	substream->f_flags = file->f_flags & O_NONBLOCK;
substream        2737 sound/core/oss/pcm_oss.c 	return snd_pcm_oss_read1(substream, buf, count);
substream        2740 sound/core/oss/pcm_oss.c 		ssize_t res = snd_pcm_oss_read1(substream, buf, count);
substream        2741 sound/core/oss/pcm_oss.c 		pcm_dbg(substream->pcm,
substream        2752 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream;
substream        2756 sound/core/oss/pcm_oss.c 	substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        2757 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2759 sound/core/oss/pcm_oss.c 	substream->f_flags = file->f_flags & O_NONBLOCK;
substream        2760 sound/core/oss/pcm_oss.c 	result = snd_pcm_oss_write1(substream, buf, count);
substream        2762 sound/core/oss/pcm_oss.c 	pcm_dbg(substream->pcm, "pcm_oss: write %li bytes (wrote %li bytes)\n",
substream        2768 sound/core/oss/pcm_oss.c static int snd_pcm_oss_playback_ready(struct snd_pcm_substream *substream)
substream        2770 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2771 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream        2779 sound/core/oss/pcm_oss.c static int snd_pcm_oss_capture_ready(struct snd_pcm_substream *substream)
substream        2781 sound/core/oss/pcm_oss.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2782 sound/core/oss/pcm_oss.c 	if (atomic_read(&substream->mmap_count))
substream        2836 sound/core/oss/pcm_oss.c 	struct snd_pcm_substream *substream = NULL;
substream        2846 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        2847 sound/core/oss/pcm_oss.c 		if (substream)
substream        2851 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_CAPTURE];
substream        2854 sound/core/oss/pcm_oss.c 		substream = pcm_oss_file->streams[SNDRV_PCM_STREAM_PLAYBACK];
substream        2862 sound/core/oss/pcm_oss.c 	if (substream == NULL)
substream        2864 sound/core/oss/pcm_oss.c 	runtime = substream->runtime;
substream        2877 sound/core/oss/pcm_oss.c 		err = snd_pcm_oss_change_params(substream, true);
substream        2889 sound/core/oss/pcm_oss.c 	err = snd_pcm_mmap_data(substream, file, area);
substream         109 sound/core/oss/pcm_plugin.h int snd_pcm_plug_format_plugins(struct snd_pcm_substream *substream,
substream         144 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t snd_pcm_oss_write3(struct snd_pcm_substream *substream,
substream         147 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t snd_pcm_oss_read3(struct snd_pcm_substream *substream,
substream         149 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t snd_pcm_oss_writev3(struct snd_pcm_substream *substream,
substream         151 sound/core/oss/pcm_plugin.h snd_pcm_sframes_t snd_pcm_oss_readv3(struct snd_pcm_substream *substream,
substream         108 sound/core/pcm.c 			struct snd_pcm_substream *substream;
substream         136 sound/core/pcm.c 			for (substream = pstr->substream; substream;
substream         137 sound/core/pcm.c 			     substream = substream->next)
substream         138 sound/core/pcm.c 				if (substream->number == (int)subdevice)
substream         140 sound/core/pcm.c 			if (substream == NULL) {
substream         145 sound/core/pcm.c 			err = snd_pcm_info_user(substream, info);
substream         330 sound/core/pcm.c static void snd_pcm_proc_info_read(struct snd_pcm_substream *substream,
substream         336 sound/core/pcm.c 	if (! substream)
substream         343 sound/core/pcm.c 	err = snd_pcm_info(substream, info);
substream         366 sound/core/pcm.c 	snd_pcm_proc_info_read(((struct snd_pcm_str *)entry->private_data)->substream,
substream         379 sound/core/pcm.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         382 sound/core/pcm.c 	mutex_lock(&substream->pcm->open_mutex);
substream         383 sound/core/pcm.c 	runtime = substream->runtime;
substream         400 sound/core/pcm.c 	if (substream->oss.oss) {
substream         410 sound/core/pcm.c 	mutex_unlock(&substream->pcm->open_mutex);
substream         416 sound/core/pcm.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         419 sound/core/pcm.c 	mutex_lock(&substream->pcm->open_mutex);
substream         420 sound/core/pcm.c 	runtime = substream->runtime;
substream         438 sound/core/pcm.c 	mutex_unlock(&substream->pcm->open_mutex);
substream         444 sound/core/pcm.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         449 sound/core/pcm.c 	mutex_lock(&substream->pcm->open_mutex);
substream         450 sound/core/pcm.c 	runtime = substream->runtime;
substream         456 sound/core/pcm.c 	err = snd_pcm_status(substream, &status);
substream         462 sound/core/pcm.c 	snd_iprintf(buffer, "owner_pid   : %d\n", pid_vnr(substream->pid));
substream         474 sound/core/pcm.c 	mutex_unlock(&substream->pcm->open_mutex);
substream         481 sound/core/pcm.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         483 sound/core/pcm.c 	snd_pcm_stop_xrun(substream);
substream         540 sound/core/pcm.c create_substream_info_entry(struct snd_pcm_substream *substream,
substream         547 sound/core/pcm.c 	entry = snd_info_create_card_entry(substream->pcm->card, name,
substream         548 sound/core/pcm.c 					   substream->proc_root);
substream         550 sound/core/pcm.c 		snd_info_set_text_ops(entry, substream, read);
substream         554 sound/core/pcm.c static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
substream         560 sound/core/pcm.c 	card = substream->pcm->card;
substream         562 sound/core/pcm.c 	sprintf(name, "sub%i", substream->number);
substream         564 sound/core/pcm.c 					   substream->pstr->proc_root);
substream         568 sound/core/pcm.c 	substream->proc_root = entry;
substream         570 sound/core/pcm.c 	create_substream_info_entry(substream, "info",
substream         572 sound/core/pcm.c 	create_substream_info_entry(substream, "hw_params",
substream         574 sound/core/pcm.c 	create_substream_info_entry(substream, "sw_params",
substream         576 sound/core/pcm.c 	create_substream_info_entry(substream, "status",
substream         580 sound/core/pcm.c 	entry = create_substream_info_entry(substream, "xrun_injection", NULL);
substream         593 sound/core/pcm.c static inline int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream) { return 0; }
substream         640 sound/core/pcm.c 	struct snd_pcm_substream *substream, *prev;
substream         666 sound/core/pcm.c 		substream = kzalloc(sizeof(*substream), GFP_KERNEL);
substream         667 sound/core/pcm.c 		if (!substream)
substream         669 sound/core/pcm.c 		substream->pcm = pcm;
substream         670 sound/core/pcm.c 		substream->pstr = pstr;
substream         671 sound/core/pcm.c 		substream->number = idx;
substream         672 sound/core/pcm.c 		substream->stream = stream;
substream         673 sound/core/pcm.c 		sprintf(substream->name, "subdevice #%i", idx);
substream         674 sound/core/pcm.c 		substream->buffer_bytes_max = UINT_MAX;
substream         676 sound/core/pcm.c 			pstr->substream = substream;
substream         678 sound/core/pcm.c 			prev->next = substream;
substream         681 sound/core/pcm.c 			err = snd_pcm_substream_proc_init(substream);
substream         686 sound/core/pcm.c 					pstr->substream = NULL;
substream         689 sound/core/pcm.c 				kfree(substream);
substream         693 sound/core/pcm.c 		substream->group = &substream->self_group;
substream         694 sound/core/pcm.c 		snd_pcm_group_init(&substream->self_group);
substream         695 sound/core/pcm.c 		list_add_tail(&substream->link_list, &substream->self_group.substreams);
substream         696 sound/core/pcm.c 		atomic_set(&substream->mmap_count, 0);
substream         697 sound/core/pcm.c 		prev = substream;
substream         820 sound/core/pcm.c 	struct snd_pcm_substream *substream, *substream_next;
substream         828 sound/core/pcm.c 	substream = pstr->substream;
substream         829 sound/core/pcm.c 	while (substream) {
substream         830 sound/core/pcm.c 		substream_next = substream->next;
substream         831 sound/core/pcm.c 		snd_pcm_timer_done(substream);
substream         832 sound/core/pcm.c 		kfree(substream);
substream         833 sound/core/pcm.c 		substream = substream_next;
substream         884 sound/core/pcm.c 	struct snd_pcm_substream *substream;
substream         897 sound/core/pcm.c 	if (pstr->substream == NULL || pstr->substream_count == 0)
substream         906 sound/core/pcm.c 		for (substream = pcm->streams[opposite].substream; substream;
substream         907 sound/core/pcm.c 		     substream = substream->next) {
substream         908 sound/core/pcm.c 			if (SUBSTREAM_BUSY(substream))
substream         917 sound/core/pcm.c 			substream = pstr->substream;
substream         919 sound/core/pcm.c 			for (substream = pstr->substream; substream;
substream         920 sound/core/pcm.c 			     substream = substream->next)
substream         921 sound/core/pcm.c 				if (substream->number == prefer_subdevice)
substream         924 sound/core/pcm.c 		if (! substream)
substream         926 sound/core/pcm.c 		if (! SUBSTREAM_BUSY(substream))
substream         928 sound/core/pcm.c 		substream->ref_count++;
substream         929 sound/core/pcm.c 		*rsubstream = substream;
substream         933 sound/core/pcm.c 	for (substream = pstr->substream; substream; substream = substream->next) {
substream         934 sound/core/pcm.c 		if (!SUBSTREAM_BUSY(substream) &&
substream         936 sound/core/pcm.c 		     substream->number == prefer_subdevice))
substream         939 sound/core/pcm.c 	if (substream == NULL)
substream         969 sound/core/pcm.c 	substream->runtime = runtime;
substream         970 sound/core/pcm.c 	substream->private_data = pcm->private_data;
substream         971 sound/core/pcm.c 	substream->ref_count = 1;
substream         972 sound/core/pcm.c 	substream->f_flags = file->f_flags;
substream         973 sound/core/pcm.c 	substream->pid = get_pid(task_pid(current));
substream         975 sound/core/pcm.c 	*rsubstream = substream;
substream         979 sound/core/pcm.c void snd_pcm_detach_substream(struct snd_pcm_substream *substream)
substream         983 sound/core/pcm.c 	if (PCM_RUNTIME_CHECK(substream))
substream         985 sound/core/pcm.c 	runtime = substream->runtime;
substream         994 sound/core/pcm.c 	if (substream->timer)
substream         995 sound/core/pcm.c 		spin_lock_irq(&substream->timer->lock);
substream         996 sound/core/pcm.c 	substream->runtime = NULL;
substream         997 sound/core/pcm.c 	if (substream->timer)
substream         998 sound/core/pcm.c 		spin_unlock_irq(&substream->timer->lock);
substream        1000 sound/core/pcm.c 	put_pid(substream->pid);
substream        1001 sound/core/pcm.c 	substream->pid = NULL;
substream        1002 sound/core/pcm.c 	substream->pstr->substream_opened--;
substream        1043 sound/core/pcm.c 	struct snd_pcm_substream *substream;
substream        1056 sound/core/pcm.c 		if (pcm->streams[cidx].substream == NULL)
substream        1075 sound/core/pcm.c 		for (substream = pcm->streams[cidx].substream; substream; substream = substream->next)
substream        1076 sound/core/pcm.c 			snd_pcm_timer_init(substream);
substream        1089 sound/core/pcm.c 	struct snd_pcm_substream *substream;
substream        1097 sound/core/pcm.c 		for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) {
substream        1098 sound/core/pcm.c 			snd_pcm_stream_lock_irq(substream);
substream        1099 sound/core/pcm.c 			if (substream->runtime) {
substream        1100 sound/core/pcm.c 				if (snd_pcm_running(substream))
substream        1101 sound/core/pcm.c 					snd_pcm_stop(substream,
substream        1104 sound/core/pcm.c 				substream->runtime->status->state = SNDRV_PCM_STATE_DISCONNECTED;
substream        1105 sound/core/pcm.c 				wake_up(&substream->runtime->sleep);
substream        1106 sound/core/pcm.c 				wake_up(&substream->runtime->tsleep);
substream        1108 sound/core/pcm.c 			snd_pcm_stream_unlock_irq(substream);
substream        1171 sound/core/pcm.c 		if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
substream        1174 sound/core/pcm.c 		if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream)
substream          12 sound/core/pcm_compat.c static int snd_pcm_ioctl_delay_compat(struct snd_pcm_substream *substream,
substream          18 sound/core/pcm_compat.c 	err = snd_pcm_delay(substream, &delay);
substream          26 sound/core/pcm_compat.c static int snd_pcm_ioctl_rewind_compat(struct snd_pcm_substream *substream,
substream          34 sound/core/pcm_compat.c 	err = snd_pcm_rewind(substream, frames);
substream          40 sound/core/pcm_compat.c static int snd_pcm_ioctl_forward_compat(struct snd_pcm_substream *substream,
substream          48 sound/core/pcm_compat.c 	err = snd_pcm_forward(substream, frames);
substream          99 sound/core/pcm_compat.c static int snd_pcm_ioctl_sw_params_compat(struct snd_pcm_substream *substream,
substream         123 sound/core/pcm_compat.c 	boundary = recalculate_boundary(substream->runtime);
substream         125 sound/core/pcm_compat.c 		params.silence_size = substream->runtime->boundary;
substream         126 sound/core/pcm_compat.c 	err = snd_pcm_sw_params(substream, &params);
substream         141 sound/core/pcm_compat.c static int snd_pcm_ioctl_channel_info_compat(struct snd_pcm_substream *substream,
substream         152 sound/core/pcm_compat.c 	err = snd_pcm_channel_info(substream, &info);
substream         165 sound/core/pcm_compat.c static int snd_pcm_channel_info_user(struct snd_pcm_substream *substream,
substream         190 sound/core/pcm_compat.c static int snd_pcm_status_user_compat(struct snd_pcm_substream *substream,
substream         206 sound/core/pcm_compat.c 	err = snd_pcm_status(substream, &status);
substream         254 sound/core/pcm_compat.c static int snd_pcm_status_user_x32(struct snd_pcm_substream *substream,
substream         270 sound/core/pcm_compat.c 	err = snd_pcm_status(substream, &status);
substream         297 sound/core/pcm_compat.c static int snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream *substream,
substream         305 sound/core/pcm_compat.c 	if (! (runtime = substream->runtime))
substream         319 sound/core/pcm_compat.c 		err = snd_pcm_hw_refine(substream, data);
substream         321 sound/core/pcm_compat.c 		err = snd_pcm_hw_params(substream, data);
substream         349 sound/core/pcm_compat.c static int snd_pcm_ioctl_xferi_compat(struct snd_pcm_substream *substream,
substream         356 sound/core/pcm_compat.c 	if (! substream->runtime)
substream         358 sound/core/pcm_compat.c 	if (substream->stream != dir)
substream         360 sound/core/pcm_compat.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN)
substream         368 sound/core/pcm_compat.c 		err = snd_pcm_lib_write(substream, compat_ptr(buf), frames);
substream         370 sound/core/pcm_compat.c 		err = snd_pcm_lib_read(substream, compat_ptr(buf), frames);
substream         393 sound/core/pcm_compat.c static int snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream *substream,
substream         402 sound/core/pcm_compat.c 	if (! substream->runtime)
substream         404 sound/core/pcm_compat.c 	if (substream->stream != dir)
substream         406 sound/core/pcm_compat.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN)
substream         409 sound/core/pcm_compat.c 	if ((ch = substream->runtime->channels) > 128)
substream         428 sound/core/pcm_compat.c 		err = snd_pcm_lib_writev(substream, bufs, frames);
substream         430 sound/core/pcm_compat.c 		err = snd_pcm_lib_readv(substream, bufs, frames);
substream         466 sound/core/pcm_compat.c static int snd_pcm_ioctl_sync_ptr_compat(struct snd_pcm_substream *substream,
substream         469 sound/core/pcm_compat.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         486 sound/core/pcm_compat.c 		err = snd_pcm_hwsync(substream);
substream         495 sound/core/pcm_compat.c 	snd_pcm_stream_lock_irq(substream);
substream         510 sound/core/pcm_compat.c 	snd_pcm_stream_unlock_irq(substream);
substream         555 sound/core/pcm_compat.c static int snd_pcm_ioctl_sync_ptr_x32(struct snd_pcm_substream *substream,
substream         558 sound/core/pcm_compat.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         575 sound/core/pcm_compat.c 		err = snd_pcm_hwsync(substream);
substream         584 sound/core/pcm_compat.c 	snd_pcm_stream_lock_irq(substream);
substream         599 sound/core/pcm_compat.c 	snd_pcm_stream_unlock_irq(substream);
substream         641 sound/core/pcm_compat.c 	struct snd_pcm_substream *substream;
substream         647 sound/core/pcm_compat.c 	substream = pcm_file->substream;
substream         648 sound/core/pcm_compat.c 	if (! substream)
substream         676 sound/core/pcm_compat.c 		return snd_pcm_common_ioctl(file, substream, cmd, argp);
substream         678 sound/core/pcm_compat.c 		return snd_pcm_ioctl_hw_params_compat(substream, 1, argp);
substream         680 sound/core/pcm_compat.c 		return snd_pcm_ioctl_hw_params_compat(substream, 0, argp);
substream         682 sound/core/pcm_compat.c 		return snd_pcm_ioctl_sw_params_compat(substream, argp);
substream         684 sound/core/pcm_compat.c 		return snd_pcm_status_user_compat(substream, argp, false);
substream         686 sound/core/pcm_compat.c 		return snd_pcm_status_user_compat(substream, argp, true);
substream         688 sound/core/pcm_compat.c 		return snd_pcm_ioctl_sync_ptr_compat(substream, argp);
substream         690 sound/core/pcm_compat.c 		return snd_pcm_ioctl_channel_info_compat(substream, argp);
substream         692 sound/core/pcm_compat.c 		return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp);
substream         694 sound/core/pcm_compat.c 		return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp);
substream         696 sound/core/pcm_compat.c 		return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp);
substream         698 sound/core/pcm_compat.c 		return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp);
substream         700 sound/core/pcm_compat.c 		return snd_pcm_ioctl_delay_compat(substream, argp);
substream         702 sound/core/pcm_compat.c 		return snd_pcm_ioctl_rewind_compat(substream, argp);
substream         704 sound/core/pcm_compat.c 		return snd_pcm_ioctl_forward_compat(substream, argp);
substream         707 sound/core/pcm_compat.c 		return snd_pcm_status_user_x32(substream, argp, false);
substream         709 sound/core/pcm_compat.c 		return snd_pcm_status_user_x32(substream, argp, true);
substream         711 sound/core/pcm_compat.c 		return snd_pcm_ioctl_sync_ptr_x32(substream, argp);
substream         713 sound/core/pcm_compat.c 		return snd_pcm_ioctl_channel_info_x32(substream, argp);
substream          30 sound/core/pcm_dmaengine.c 	const struct snd_pcm_substream *substream)
substream          32 sound/core/pcm_dmaengine.c 	return substream->runtime->private_data;
substream          35 sound/core/pcm_dmaengine.c struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream)
substream          37 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream          52 sound/core/pcm_dmaengine.c int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream,
substream          73 sound/core/pcm_dmaengine.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         105 sound/core/pcm_dmaengine.c 	const struct snd_pcm_substream *substream,
substream         109 sound/core/pcm_dmaengine.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         133 sound/core/pcm_dmaengine.c 	struct snd_pcm_substream *substream = arg;
substream         134 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         136 sound/core/pcm_dmaengine.c 	prtd->pos += snd_pcm_lib_period_bytes(substream);
substream         137 sound/core/pcm_dmaengine.c 	if (prtd->pos >= snd_pcm_lib_buffer_bytes(substream))
substream         140 sound/core/pcm_dmaengine.c 	snd_pcm_period_elapsed(substream);
substream         143 sound/core/pcm_dmaengine.c static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
substream         145 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         151 sound/core/pcm_dmaengine.c 	direction = snd_pcm_substream_to_dma_direction(substream);
substream         153 sound/core/pcm_dmaengine.c 	if (!substream->runtime->no_period_wakeup)
substream         158 sound/core/pcm_dmaengine.c 		substream->runtime->dma_addr,
substream         159 sound/core/pcm_dmaengine.c 		snd_pcm_lib_buffer_bytes(substream),
substream         160 sound/core/pcm_dmaengine.c 		snd_pcm_lib_period_bytes(substream), direction, flags);
substream         166 sound/core/pcm_dmaengine.c 	desc->callback_param = substream;
substream         182 sound/core/pcm_dmaengine.c int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         184 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         185 sound/core/pcm_dmaengine.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         190 sound/core/pcm_dmaengine.c 		ret = dmaengine_pcm_prepare_and_submit(substream);
substream         226 sound/core/pcm_dmaengine.c snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream)
substream         228 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         229 sound/core/pcm_dmaengine.c 	return bytes_to_frames(substream->runtime, prtd->pos);
substream         240 sound/core/pcm_dmaengine.c snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream)
substream         242 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         250 sound/core/pcm_dmaengine.c 		buf_size = snd_pcm_lib_buffer_bytes(substream);
substream         255 sound/core/pcm_dmaengine.c 	return bytes_to_frames(substream->runtime, pos);
substream         292 sound/core/pcm_dmaengine.c int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
substream         301 sound/core/pcm_dmaengine.c 	ret = snd_pcm_hw_constraint_integer(substream->runtime,
substream         312 sound/core/pcm_dmaengine.c 	substream->runtime->private_data = prtd;
substream         331 sound/core/pcm_dmaengine.c int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream,
substream         334 sound/core/pcm_dmaengine.c 	return snd_dmaengine_pcm_open(substream,
substream         343 sound/core/pcm_dmaengine.c int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream)
substream         345 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream         360 sound/core/pcm_dmaengine.c int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream)
substream         362 sound/core/pcm_dmaengine.c 	struct dmaengine_pcm_runtime_data *prtd = substream_to_prtd(substream);
substream          27 sound/core/pcm_lib.c #define trace_hwptr(substream, pos, in_interrupt)
substream          28 sound/core/pcm_lib.c #define trace_xrun(substream)
substream          29 sound/core/pcm_lib.c #define trace_hw_ptr_error(substream, reason)
substream          30 sound/core/pcm_lib.c #define trace_applptr(substream, prev, curr)
substream          33 sound/core/pcm_lib.c static int fill_silence_frames(struct snd_pcm_substream *substream,
substream          45 sound/core/pcm_lib.c void snd_pcm_playback_silence(struct snd_pcm_substream *substream, snd_pcm_uframes_t new_hw_ptr)
substream          47 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         103 sound/core/pcm_lib.c 		err = fill_silence_frames(substream, ofs, transfer);
substream         112 sound/core/pcm_lib.c void snd_pcm_debug_name(struct snd_pcm_substream *substream,
substream         116 sound/core/pcm_lib.c 		 substream->pcm->card->number,
substream         117 sound/core/pcm_lib.c 		 substream->pcm->device,
substream         118 sound/core/pcm_lib.c 		 substream->stream ? 'c' : 'p',
substream         119 sound/core/pcm_lib.c 		 substream->number);
substream         130 sound/core/pcm_lib.c #define xrun_debug(substream, mask) \
substream         131 sound/core/pcm_lib.c 			((substream)->pstr->xrun_debug & (mask))
substream         133 sound/core/pcm_lib.c #define xrun_debug(substream, mask)	0
substream         136 sound/core/pcm_lib.c #define dump_stack_on_xrun(substream) do {			\
substream         137 sound/core/pcm_lib.c 		if (xrun_debug(substream, XRUN_DEBUG_STACK))	\
substream         142 sound/core/pcm_lib.c void __snd_pcm_xrun(struct snd_pcm_substream *substream)
substream         144 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         146 sound/core/pcm_lib.c 	trace_xrun(substream);
substream         149 sound/core/pcm_lib.c 	snd_pcm_stop(substream, SNDRV_PCM_STATE_XRUN);
substream         150 sound/core/pcm_lib.c 	if (xrun_debug(substream, XRUN_DEBUG_BASIC)) {
substream         152 sound/core/pcm_lib.c 		snd_pcm_debug_name(substream, name, sizeof(name));
substream         153 sound/core/pcm_lib.c 		pcm_warn(substream->pcm, "XRUN: %s\n", name);
substream         154 sound/core/pcm_lib.c 		dump_stack_on_xrun(substream);
substream         159 sound/core/pcm_lib.c #define hw_ptr_error(substream, in_interrupt, reason, fmt, args...)	\
substream         161 sound/core/pcm_lib.c 		trace_hw_ptr_error(substream, reason);	\
substream         162 sound/core/pcm_lib.c 		if (xrun_debug(substream, XRUN_DEBUG_BASIC)) {		\
substream         165 sound/core/pcm_lib.c 			dump_stack_on_xrun(substream);			\
substream         171 sound/core/pcm_lib.c #define hw_ptr_error(substream, fmt, args...) do { } while (0)
substream         175 sound/core/pcm_lib.c int snd_pcm_update_state(struct snd_pcm_substream *substream,
substream         180 sound/core/pcm_lib.c 	avail = snd_pcm_avail(substream);
substream         185 sound/core/pcm_lib.c 			snd_pcm_drain_done(substream);
substream         190 sound/core/pcm_lib.c 			__snd_pcm_xrun(substream);
substream         202 sound/core/pcm_lib.c static void update_audio_tstamp(struct snd_pcm_substream *substream,
substream         206 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         213 sound/core/pcm_lib.c 	if (!(substream->ops->get_time_info) ||
substream         225 sound/core/pcm_lib.c 			if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         243 sound/core/pcm_lib.c 	snd_pcm_gettime(substream->runtime, (struct timespec *)&driver_tstamp);
substream         247 sound/core/pcm_lib.c static int snd_pcm_update_hw_ptr0(struct snd_pcm_substream *substream,
substream         250 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         268 sound/core/pcm_lib.c 	pos = substream->ops->pointer(substream);
substream         271 sound/core/pcm_lib.c 		if ((substream->ops->get_time_info) &&
substream         273 sound/core/pcm_lib.c 			substream->ops->get_time_info(substream, &curr_tstamp,
substream         286 sound/core/pcm_lib.c 		__snd_pcm_xrun(substream);
substream         292 sound/core/pcm_lib.c 			snd_pcm_debug_name(substream, name, sizeof(name));
substream         293 sound/core/pcm_lib.c 			pcm_err(substream->pcm,
substream         301 sound/core/pcm_lib.c 	trace_hwptr(substream, pos, in_interrupt);
substream         363 sound/core/pcm_lib.c 		hw_ptr_error(substream, in_interrupt, "Unexpected hw_ptr",
substream         365 sound/core/pcm_lib.c 			     substream->stream, (long)pos,
substream         371 sound/core/pcm_lib.c 	if (!xrun_debug(substream, XRUN_DEBUG_JIFFIESCHECK))
substream         403 sound/core/pcm_lib.c 		hw_ptr_error(substream, in_interrupt, "hw_ptr skipping",
substream         416 sound/core/pcm_lib.c 		hw_ptr_error(substream, in_interrupt,
substream         419 sound/core/pcm_lib.c 			     substream->stream, (long)delta,
substream         427 sound/core/pcm_lib.c 		update_audio_tstamp(substream, &curr_tstamp, &audio_tstamp);
substream         431 sound/core/pcm_lib.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         433 sound/core/pcm_lib.c 		snd_pcm_playback_silence(substream, new_hw_ptr);
substream         452 sound/core/pcm_lib.c 	update_audio_tstamp(substream, &curr_tstamp, &audio_tstamp);
substream         454 sound/core/pcm_lib.c 	return snd_pcm_update_state(substream, runtime);
substream         458 sound/core/pcm_lib.c int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream)
substream         460 sound/core/pcm_lib.c 	return snd_pcm_update_hw_ptr0(substream, 0);
substream         475 sound/core/pcm_lib.c 	struct snd_pcm_substream *substream;
substream         477 sound/core/pcm_lib.c 	for (substream = stream->substream; substream != NULL; substream = substream->next)
substream         478 sound/core/pcm_lib.c 		substream->ops = ops;
substream         488 sound/core/pcm_lib.c void snd_pcm_set_sync(struct snd_pcm_substream *substream)
substream         490 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         492 sound/core/pcm_lib.c 	runtime->sync.id32[0] = substream->pcm->card->number;
substream        1673 sound/core/pcm_lib.c static int snd_pcm_lib_ioctl_reset(struct snd_pcm_substream *substream,
substream        1676 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1678 sound/core/pcm_lib.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream        1679 sound/core/pcm_lib.c 	if (snd_pcm_running(substream) &&
substream        1680 sound/core/pcm_lib.c 	    snd_pcm_update_hw_ptr(substream) >= 0)
substream        1686 sound/core/pcm_lib.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream        1690 sound/core/pcm_lib.c static int snd_pcm_lib_ioctl_channel_info(struct snd_pcm_substream *substream,
substream        1694 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1725 sound/core/pcm_lib.c static int snd_pcm_lib_ioctl_fifo_size(struct snd_pcm_substream *substream,
substream        1733 sound/core/pcm_lib.c 	params->fifo_size = substream->runtime->hw.fifo_size;
substream        1734 sound/core/pcm_lib.c 	if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_FIFO_IN_FRAMES)) {
substream        1755 sound/core/pcm_lib.c int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
substream        1760 sound/core/pcm_lib.c 		return snd_pcm_lib_ioctl_reset(substream, arg);
substream        1762 sound/core/pcm_lib.c 		return snd_pcm_lib_ioctl_channel_info(substream, arg);
substream        1764 sound/core/pcm_lib.c 		return snd_pcm_lib_ioctl_fifo_size(substream, arg);
substream        1781 sound/core/pcm_lib.c void snd_pcm_period_elapsed(struct snd_pcm_substream *substream)
substream        1786 sound/core/pcm_lib.c 	if (snd_BUG_ON(!substream))
substream        1789 sound/core/pcm_lib.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream        1790 sound/core/pcm_lib.c 	if (PCM_RUNTIME_CHECK(substream))
substream        1792 sound/core/pcm_lib.c 	runtime = substream->runtime;
substream        1794 sound/core/pcm_lib.c 	if (!snd_pcm_running(substream) ||
substream        1795 sound/core/pcm_lib.c 	    snd_pcm_update_hw_ptr0(substream, 1) < 0)
substream        1799 sound/core/pcm_lib.c 	if (substream->timer_running)
substream        1800 sound/core/pcm_lib.c 		snd_timer_interrupt(substream->timer, 1);
substream        1805 sound/core/pcm_lib.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream        1815 sound/core/pcm_lib.c static int wait_for_avail(struct snd_pcm_substream *substream,
substream        1818 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1819 sound/core/pcm_lib.c 	int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream        1833 sound/core/pcm_lib.c 		if (substream->wait_time) {
substream        1834 sound/core/pcm_lib.c 			wait_time = substream->wait_time;
substream        1860 sound/core/pcm_lib.c 		avail = snd_pcm_avail(substream);
substream        1863 sound/core/pcm_lib.c 		snd_pcm_stream_unlock_irq(substream);
substream        1867 sound/core/pcm_lib.c 		snd_pcm_stream_lock_irq(substream);
substream        1891 sound/core/pcm_lib.c 			pcm_dbg(substream->pcm,
substream        1905 sound/core/pcm_lib.c typedef int (*pcm_transfer_f)(struct snd_pcm_substream *substream,
substream        1921 sound/core/pcm_lib.c static int default_write_copy(struct snd_pcm_substream *substream,
substream        1925 sound/core/pcm_lib.c 	if (copy_from_user(get_dma_ptr(substream->runtime, channel, hwoff),
substream        1932 sound/core/pcm_lib.c static int default_write_copy_kernel(struct snd_pcm_substream *substream,
substream        1936 sound/core/pcm_lib.c 	memcpy(get_dma_ptr(substream->runtime, channel, hwoff), buf, bytes);
substream        1944 sound/core/pcm_lib.c static int fill_silence(struct snd_pcm_substream *substream, int channel,
substream        1947 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1949 sound/core/pcm_lib.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream        1951 sound/core/pcm_lib.c 	if (substream->ops->fill_silence)
substream        1952 sound/core/pcm_lib.c 		return substream->ops->fill_silence(substream, channel,
substream        1962 sound/core/pcm_lib.c static int default_read_copy(struct snd_pcm_substream *substream,
substream        1967 sound/core/pcm_lib.c 			 get_dma_ptr(substream->runtime, channel, hwoff),
substream        1974 sound/core/pcm_lib.c static int default_read_copy_kernel(struct snd_pcm_substream *substream,
substream        1978 sound/core/pcm_lib.c 	memcpy(buf, get_dma_ptr(substream->runtime, channel, hwoff), bytes);
substream        1985 sound/core/pcm_lib.c static int interleaved_copy(struct snd_pcm_substream *substream,
substream        1991 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1997 sound/core/pcm_lib.c 	return transfer(substream, 0, hwoff, data + off, frames);
substream        2003 sound/core/pcm_lib.c static int noninterleaved_copy(struct snd_pcm_substream *substream,
substream        2009 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2023 sound/core/pcm_lib.c 			err = fill_silence(substream, c, hwoff, NULL, frames);
substream        2025 sound/core/pcm_lib.c 			err = transfer(substream, c, hwoff, *bufs + off,
substream        2036 sound/core/pcm_lib.c static int fill_silence_frames(struct snd_pcm_substream *substream,
substream        2039 sound/core/pcm_lib.c 	if (substream->runtime->access == SNDRV_PCM_ACCESS_RW_INTERLEAVED ||
substream        2040 sound/core/pcm_lib.c 	    substream->runtime->access == SNDRV_PCM_ACCESS_MMAP_INTERLEAVED)
substream        2041 sound/core/pcm_lib.c 		return interleaved_copy(substream, off, NULL, 0, frames,
substream        2044 sound/core/pcm_lib.c 		return noninterleaved_copy(substream, off, NULL, 0, frames,
substream        2049 sound/core/pcm_lib.c static int pcm_sanity_check(struct snd_pcm_substream *substream)
substream        2052 sound/core/pcm_lib.c 	if (PCM_RUNTIME_CHECK(substream))
substream        2054 sound/core/pcm_lib.c 	runtime = substream->runtime;
substream        2055 sound/core/pcm_lib.c 	if (snd_BUG_ON(!substream->ops->copy_user && !runtime->dma_area))
substream        2081 sound/core/pcm_lib.c int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
substream        2084 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2092 sound/core/pcm_lib.c 	if (substream->ops->ack) {
substream        2093 sound/core/pcm_lib.c 		ret = substream->ops->ack(substream);
substream        2100 sound/core/pcm_lib.c 	trace_applptr(substream, old_appl_ptr, appl_ptr);
substream        2106 sound/core/pcm_lib.c snd_pcm_sframes_t __snd_pcm_lib_xfer(struct snd_pcm_substream *substream,
substream        2110 sound/core/pcm_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2120 sound/core/pcm_lib.c 	err = pcm_sanity_check(substream);
substream        2124 sound/core/pcm_lib.c 	is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream        2142 sound/core/pcm_lib.c 		if (substream->ops->copy_kernel)
substream        2143 sound/core/pcm_lib.c 			transfer = substream->ops->copy_kernel;
substream        2148 sound/core/pcm_lib.c 		if (substream->ops->copy_user)
substream        2149 sound/core/pcm_lib.c 			transfer = (pcm_transfer_f)substream->ops->copy_user;
substream        2158 sound/core/pcm_lib.c 	nonblock = !!(substream->f_flags & O_NONBLOCK);
substream        2160 sound/core/pcm_lib.c 	snd_pcm_stream_lock_irq(substream);
substream        2167 sound/core/pcm_lib.c 		snd_pcm_update_hw_ptr(substream);
substream        2176 sound/core/pcm_lib.c 		err = snd_pcm_start(substream);
substream        2181 sound/core/pcm_lib.c 	avail = snd_pcm_avail(substream);
substream        2189 sound/core/pcm_lib.c 				snd_pcm_stop(substream, SNDRV_PCM_STATE_SETUP);
substream        2198 sound/core/pcm_lib.c 			err = wait_for_avail(substream, &avail);
substream        2214 sound/core/pcm_lib.c 		snd_pcm_stream_unlock_irq(substream);
substream        2215 sound/core/pcm_lib.c 		err = writer(substream, appl_ofs, data, offset, frames,
substream        2217 sound/core/pcm_lib.c 		snd_pcm_stream_lock_irq(substream);
substream        2226 sound/core/pcm_lib.c 		err = pcm_lib_apply_appl_ptr(substream, appl_ptr);
substream        2237 sound/core/pcm_lib.c 			err = snd_pcm_start(substream);
substream        2245 sound/core/pcm_lib.c 		snd_pcm_update_state(substream, runtime);
substream        2246 sound/core/pcm_lib.c 	snd_pcm_stream_unlock_irq(substream);
substream        2327 sound/core/pcm_lib.c 	struct snd_pcm_substream *substream;
substream        2332 sound/core/pcm_lib.c 	substream = snd_pcm_chmap_substream(info, idx);
substream        2333 sound/core/pcm_lib.c 	if (!substream)
substream        2337 sound/core/pcm_lib.c 	if (!substream->runtime)
substream        2341 sound/core/pcm_lib.c 		if (map->channels == substream->runtime->channels &&
substream          23 sound/core/pcm_local.h int snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream);
substream          24 sound/core/pcm_local.h int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream);
substream          29 sound/core/pcm_local.h int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
substream          31 sound/core/pcm_local.h int snd_pcm_update_state(struct snd_pcm_substream *substream,
substream          33 sound/core/pcm_local.h int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
substream          35 sound/core/pcm_local.h void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
substream          39 sound/core/pcm_local.h snd_pcm_avail(struct snd_pcm_substream *substream)
substream          41 sound/core/pcm_local.h 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          42 sound/core/pcm_local.h 		return snd_pcm_playback_avail(substream->runtime);
substream          44 sound/core/pcm_local.h 		return snd_pcm_capture_avail(substream->runtime);
substream          48 sound/core/pcm_local.h snd_pcm_hw_avail(struct snd_pcm_substream *substream)
substream          50 sound/core/pcm_local.h 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          51 sound/core/pcm_local.h 		return snd_pcm_playback_hw_avail(substream->runtime);
substream          53 sound/core/pcm_local.h 		return snd_pcm_capture_hw_avail(substream->runtime);
substream          57 sound/core/pcm_local.h void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream);
substream          58 sound/core/pcm_local.h void snd_pcm_timer_init(struct snd_pcm_substream *substream);
substream          59 sound/core/pcm_local.h void snd_pcm_timer_done(struct snd_pcm_substream *substream);
substream          62 sound/core/pcm_local.h snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) {}
substream          63 sound/core/pcm_local.h static inline void snd_pcm_timer_init(struct snd_pcm_substream *substream) {}
substream          64 sound/core/pcm_local.h static inline void snd_pcm_timer_done(struct snd_pcm_substream *substream) {}
substream          67 sound/core/pcm_local.h void __snd_pcm_xrun(struct snd_pcm_substream *substream);
substream          36 sound/core/pcm_memory.c static int preallocate_pcm_pages(struct snd_pcm_substream *substream, size_t size)
substream          38 sound/core/pcm_memory.c 	struct snd_dma_buffer *dmab = &substream->dma_buffer;
substream          53 sound/core/pcm_memory.c 		substream->pcm->card->number, substream->pcm->device,
substream          54 sound/core/pcm_memory.c 		substream->stream ? 'c' : 'p', substream->number,
substream          55 sound/core/pcm_memory.c 		substream->pcm->name, orig_size);
substream          62 sound/core/pcm_memory.c static void snd_pcm_lib_preallocate_dma_free(struct snd_pcm_substream *substream)
substream          64 sound/core/pcm_memory.c 	if (substream->dma_buffer.area == NULL)
substream          66 sound/core/pcm_memory.c 	snd_dma_free_pages(&substream->dma_buffer);
substream          67 sound/core/pcm_memory.c 	substream->dma_buffer.area = NULL;
substream          76 sound/core/pcm_memory.c void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream)
substream          78 sound/core/pcm_memory.c 	snd_pcm_lib_preallocate_dma_free(substream);
substream          89 sound/core/pcm_memory.c 	struct snd_pcm_substream *substream;
substream          93 sound/core/pcm_memory.c 		for (substream = pcm->streams[stream].substream; substream; substream = substream->next)
substream          94 sound/core/pcm_memory.c 			snd_pcm_lib_preallocate_free(substream);
substream         107 sound/core/pcm_memory.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         108 sound/core/pcm_memory.c 	snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024);
substream         119 sound/core/pcm_memory.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         120 sound/core/pcm_memory.c 	snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_max / 1024);
substream         131 sound/core/pcm_memory.c 	struct snd_pcm_substream *substream = entry->private_data;
substream         136 sound/core/pcm_memory.c 	if (substream->runtime) {
substream         143 sound/core/pcm_memory.c 		if ((size != 0 && size < 8192) || size > substream->dma_max) {
substream         147 sound/core/pcm_memory.c 		if (substream->dma_buffer.bytes == size)
substream         150 sound/core/pcm_memory.c 		new_dmab.dev = substream->dma_buffer.dev;
substream         152 sound/core/pcm_memory.c 			if (snd_dma_alloc_pages(substream->dma_buffer.dev.type,
substream         153 sound/core/pcm_memory.c 						substream->dma_buffer.dev.dev,
substream         158 sound/core/pcm_memory.c 			substream->buffer_bytes_max = size;
substream         160 sound/core/pcm_memory.c 			substream->buffer_bytes_max = UINT_MAX;
substream         162 sound/core/pcm_memory.c 		if (substream->dma_buffer.area)
substream         163 sound/core/pcm_memory.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         164 sound/core/pcm_memory.c 		substream->dma_buffer = new_dmab;
substream         170 sound/core/pcm_memory.c static inline void preallocate_info_init(struct snd_pcm_substream *substream)
substream         174 sound/core/pcm_memory.c 	entry = snd_info_create_card_entry(substream->pcm->card, "prealloc",
substream         175 sound/core/pcm_memory.c 					   substream->proc_root);
substream         177 sound/core/pcm_memory.c 		snd_info_set_text_ops(entry, substream,
substream         182 sound/core/pcm_memory.c 	entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max",
substream         183 sound/core/pcm_memory.c 					   substream->proc_root);
substream         185 sound/core/pcm_memory.c 		snd_info_set_text_ops(entry, substream,
substream         196 sound/core/pcm_memory.c static void snd_pcm_lib_preallocate_pages1(struct snd_pcm_substream *substream,
substream         200 sound/core/pcm_memory.c 	if (size > 0 && preallocate_dma && substream->number < maximum_substreams)
substream         201 sound/core/pcm_memory.c 		preallocate_pcm_pages(substream, size);
substream         203 sound/core/pcm_memory.c 	if (substream->dma_buffer.bytes > 0)
substream         204 sound/core/pcm_memory.c 		substream->buffer_bytes_max = substream->dma_buffer.bytes;
substream         205 sound/core/pcm_memory.c 	substream->dma_max = max;
substream         206 sound/core/pcm_memory.c 	preallocate_info_init(substream);
substream         220 sound/core/pcm_memory.c void snd_pcm_lib_preallocate_pages(struct snd_pcm_substream *substream,
substream         224 sound/core/pcm_memory.c 	substream->dma_buffer.dev.type = type;
substream         225 sound/core/pcm_memory.c 	substream->dma_buffer.dev.dev = data;
substream         226 sound/core/pcm_memory.c 	snd_pcm_lib_preallocate_pages1(substream, size, max);
substream         245 sound/core/pcm_memory.c 	struct snd_pcm_substream *substream;
substream         249 sound/core/pcm_memory.c 		for (substream = pcm->streams[stream].substream; substream; substream = substream->next)
substream         250 sound/core/pcm_memory.c 			snd_pcm_lib_preallocate_pages(substream, type, data, size, max);
substream         264 sound/core/pcm_memory.c struct page *snd_pcm_sgbuf_ops_page(struct snd_pcm_substream *substream, unsigned long offset)
substream         266 sound/core/pcm_memory.c 	struct snd_sg_buf *sgbuf = snd_pcm_substream_sgbuf(substream);
substream         287 sound/core/pcm_memory.c int snd_pcm_lib_malloc_pages(struct snd_pcm_substream *substream, size_t size)
substream         292 sound/core/pcm_memory.c 	if (PCM_RUNTIME_CHECK(substream))
substream         294 sound/core/pcm_memory.c 	if (snd_BUG_ON(substream->dma_buffer.dev.type ==
substream         297 sound/core/pcm_memory.c 	runtime = substream->runtime;
substream         307 sound/core/pcm_memory.c 		snd_pcm_lib_free_pages(substream);
substream         309 sound/core/pcm_memory.c 	if (substream->dma_buffer.area != NULL &&
substream         310 sound/core/pcm_memory.c 	    substream->dma_buffer.bytes >= size) {
substream         311 sound/core/pcm_memory.c 		dmab = &substream->dma_buffer; /* use the pre-allocated buffer */
substream         316 sound/core/pcm_memory.c 		dmab->dev = substream->dma_buffer.dev;
substream         317 sound/core/pcm_memory.c 		if (snd_dma_alloc_pages(substream->dma_buffer.dev.type,
substream         318 sound/core/pcm_memory.c 					substream->dma_buffer.dev.dev,
substream         324 sound/core/pcm_memory.c 	snd_pcm_set_runtime_buffer(substream, dmab);
substream         338 sound/core/pcm_memory.c int snd_pcm_lib_free_pages(struct snd_pcm_substream *substream)
substream         342 sound/core/pcm_memory.c 	if (PCM_RUNTIME_CHECK(substream))
substream         344 sound/core/pcm_memory.c 	runtime = substream->runtime;
substream         347 sound/core/pcm_memory.c 	if (runtime->dma_buffer_p != &substream->dma_buffer) {
substream         352 sound/core/pcm_memory.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         357 sound/core/pcm_memory.c int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream,
substream         362 sound/core/pcm_memory.c 	if (PCM_RUNTIME_CHECK(substream))
substream         364 sound/core/pcm_memory.c 	runtime = substream->runtime;
substream         385 sound/core/pcm_memory.c int snd_pcm_lib_free_vmalloc_buffer(struct snd_pcm_substream *substream)
substream         389 sound/core/pcm_memory.c 	if (PCM_RUNTIME_CHECK(substream))
substream         391 sound/core/pcm_memory.c 	runtime = substream->runtime;
substream         408 sound/core/pcm_memory.c struct page *snd_pcm_lib_get_vmalloc_page(struct snd_pcm_substream *substream,
substream         411 sound/core/pcm_memory.c 	return vmalloc_to_page(substream->runtime->dma_area + offset);
substream          34 sound/core/pcm_native.c #define trace_hw_mask_param(substream, type, index, prev, curr)
substream          35 sound/core/pcm_native.c #define trace_hw_interval_param(substream, type, index, prev, curr)
substream          62 sound/core/pcm_native.c static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
substream          64 sound/core/pcm_native.c static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
substream         106 sound/core/pcm_native.c void snd_pcm_stream_lock(struct snd_pcm_substream *substream)
substream         108 sound/core/pcm_native.c 	snd_pcm_group_lock(&substream->self_group, substream->pcm->nonatomic);
substream         118 sound/core/pcm_native.c void snd_pcm_stream_unlock(struct snd_pcm_substream *substream)
substream         120 sound/core/pcm_native.c 	snd_pcm_group_unlock(&substream->self_group, substream->pcm->nonatomic);
substream         132 sound/core/pcm_native.c void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream)
substream         134 sound/core/pcm_native.c 	snd_pcm_group_lock_irq(&substream->self_group,
substream         135 sound/core/pcm_native.c 			       substream->pcm->nonatomic);
substream         139 sound/core/pcm_native.c static void snd_pcm_stream_lock_nested(struct snd_pcm_substream *substream)
substream         141 sound/core/pcm_native.c 	struct snd_pcm_group *group = &substream->self_group;
substream         143 sound/core/pcm_native.c 	if (substream->pcm->nonatomic)
substream         155 sound/core/pcm_native.c void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream)
substream         157 sound/core/pcm_native.c 	snd_pcm_group_unlock_irq(&substream->self_group,
substream         158 sound/core/pcm_native.c 				 substream->pcm->nonatomic);
substream         162 sound/core/pcm_native.c unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream)
substream         165 sound/core/pcm_native.c 	if (substream->pcm->nonatomic)
substream         166 sound/core/pcm_native.c 		mutex_lock(&substream->self_group.mutex);
substream         168 sound/core/pcm_native.c 		spin_lock_irqsave(&substream->self_group.lock, flags);
substream         180 sound/core/pcm_native.c void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream,
substream         183 sound/core/pcm_native.c 	if (substream->pcm->nonatomic)
substream         184 sound/core/pcm_native.c 		mutex_unlock(&substream->self_group.mutex);
substream         186 sound/core/pcm_native.c 		spin_unlock_irqrestore(&substream->self_group.lock, flags);
substream         190 sound/core/pcm_native.c int snd_pcm_info(struct snd_pcm_substream *substream, struct snd_pcm_info *info)
substream         192 sound/core/pcm_native.c 	struct snd_pcm *pcm = substream->pcm;
substream         193 sound/core/pcm_native.c 	struct snd_pcm_str *pstr = substream->pstr;
substream         198 sound/core/pcm_native.c 	info->stream = substream->stream;
substream         199 sound/core/pcm_native.c 	info->subdevice = substream->number;
substream         206 sound/core/pcm_native.c 	strlcpy(info->subname, substream->name, sizeof(info->subname));
substream         211 sound/core/pcm_native.c int snd_pcm_info_user(struct snd_pcm_substream *substream,
substream         220 sound/core/pcm_native.c 	err = snd_pcm_info(substream, info);
substream         229 sound/core/pcm_native.c static bool hw_support_mmap(struct snd_pcm_substream *substream)
substream         231 sound/core/pcm_native.c 	if (!(substream->runtime->hw.info & SNDRV_PCM_INFO_MMAP))
substream         234 sound/core/pcm_native.c 	if (substream->ops->mmap ||
substream         235 sound/core/pcm_native.c 	    (substream->dma_buffer.dev.type != SNDRV_DMA_TYPE_DEV &&
substream         236 sound/core/pcm_native.c 	     substream->dma_buffer.dev.type != SNDRV_DMA_TYPE_DEV_UC))
substream         239 sound/core/pcm_native.c 	return dma_can_mmap(substream->dma_buffer.dev.dev);
substream         242 sound/core/pcm_native.c static int constrain_mask_params(struct snd_pcm_substream *substream,
substream         246 sound/core/pcm_native.c 					&substream->runtime->hw_constraints;
substream         271 sound/core/pcm_native.c 		trace_hw_mask_param(substream, k, 0, &old_mask, m);
substream         278 sound/core/pcm_native.c static int constrain_interval_params(struct snd_pcm_substream *substream,
substream         282 sound/core/pcm_native.c 					&substream->runtime->hw_constraints;
substream         307 sound/core/pcm_native.c 		trace_hw_interval_param(substream, k, 0, &old_interval, i);
substream         314 sound/core/pcm_native.c static int constrain_params_by_rules(struct snd_pcm_substream *substream,
substream         318 sound/core/pcm_native.c 					&substream->runtime->hw_constraints;
substream         408 sound/core/pcm_native.c 				trace_hw_mask_param(substream, r->var,
substream         413 sound/core/pcm_native.c 				trace_hw_interval_param(substream, r->var,
substream         435 sound/core/pcm_native.c static int fixup_unreferenced_params(struct snd_pcm_substream *substream,
substream         460 sound/core/pcm_native.c 			err = substream->ops->ioctl(substream,
substream         468 sound/core/pcm_native.c 		params->info = substream->runtime->hw.info;
substream         471 sound/core/pcm_native.c 		if (!hw_support_mmap(substream))
substream         479 sound/core/pcm_native.c int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
substream         493 sound/core/pcm_native.c 	err = constrain_mask_params(substream, params);
substream         497 sound/core/pcm_native.c 	err = constrain_interval_params(substream, params);
substream         501 sound/core/pcm_native.c 	err = constrain_params_by_rules(substream, params);
substream         511 sound/core/pcm_native.c static int snd_pcm_hw_refine_user(struct snd_pcm_substream *substream,
substream         521 sound/core/pcm_native.c 	err = snd_pcm_hw_refine(substream, params);
substream         525 sound/core/pcm_native.c 	err = fixup_unreferenced_params(substream, params);
substream         551 sound/core/pcm_native.c static void snd_pcm_set_state(struct snd_pcm_substream *substream, int state)
substream         553 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         554 sound/core/pcm_native.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_DISCONNECTED)
substream         555 sound/core/pcm_native.c 		substream->runtime->status->state = state;
substream         556 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         559 sound/core/pcm_native.c static inline void snd_pcm_timer_notify(struct snd_pcm_substream *substream,
substream         563 sound/core/pcm_native.c 	if (substream->timer)
substream         564 sound/core/pcm_native.c 		snd_timer_notify(substream->timer, event,
substream         565 sound/core/pcm_native.c 					&substream->runtime->trigger_tstamp);
substream         633 sound/core/pcm_native.c static int snd_pcm_hw_params(struct snd_pcm_substream *substream,
substream         641 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream         643 sound/core/pcm_native.c 	runtime = substream->runtime;
substream         644 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         651 sound/core/pcm_native.c 		snd_pcm_stream_unlock_irq(substream);
substream         654 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         656 sound/core/pcm_native.c 	if (!substream->oss.oss)
substream         658 sound/core/pcm_native.c 		if (atomic_read(&substream->mmap_count))
substream         662 sound/core/pcm_native.c 	err = snd_pcm_hw_refine(substream, params);
substream         666 sound/core/pcm_native.c 	err = snd_pcm_hw_params_choose(substream, params);
substream         670 sound/core/pcm_native.c 	err = fixup_unreferenced_params(substream, params);
substream         674 sound/core/pcm_native.c 	if (substream->ops->hw_params != NULL) {
substream         675 sound/core/pcm_native.c 		err = substream->ops->hw_params(substream, params);
substream         720 sound/core/pcm_native.c 	if (runtime->dma_area && !substream->ops->copy_user)
substream         723 sound/core/pcm_native.c 	snd_pcm_timer_resolution_change(substream);
substream         724 sound/core/pcm_native.c 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_SETUP);
substream         726 sound/core/pcm_native.c 	if (pm_qos_request_active(&substream->latency_pm_qos_req))
substream         727 sound/core/pcm_native.c 		pm_qos_remove_request(&substream->latency_pm_qos_req);
substream         729 sound/core/pcm_native.c 		pm_qos_add_request(&substream->latency_pm_qos_req,
substream         736 sound/core/pcm_native.c 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_OPEN);
substream         737 sound/core/pcm_native.c 	if (substream->ops->hw_free != NULL)
substream         738 sound/core/pcm_native.c 		substream->ops->hw_free(substream);
substream         742 sound/core/pcm_native.c static int snd_pcm_hw_params_user(struct snd_pcm_substream *substream,
substream         752 sound/core/pcm_native.c 	err = snd_pcm_hw_params(substream, params);
substream         763 sound/core/pcm_native.c static int snd_pcm_hw_free(struct snd_pcm_substream *substream)
substream         768 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream         770 sound/core/pcm_native.c 	runtime = substream->runtime;
substream         771 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         777 sound/core/pcm_native.c 		snd_pcm_stream_unlock_irq(substream);
substream         780 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         781 sound/core/pcm_native.c 	if (atomic_read(&substream->mmap_count))
substream         783 sound/core/pcm_native.c 	if (substream->ops->hw_free)
substream         784 sound/core/pcm_native.c 		result = substream->ops->hw_free(substream);
substream         785 sound/core/pcm_native.c 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_OPEN);
substream         786 sound/core/pcm_native.c 	pm_qos_remove_request(&substream->latency_pm_qos_req);
substream         790 sound/core/pcm_native.c static int snd_pcm_sw_params(struct snd_pcm_substream *substream,
substream         796 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream         798 sound/core/pcm_native.c 	runtime = substream->runtime;
substream         799 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         801 sound/core/pcm_native.c 		snd_pcm_stream_unlock_irq(substream);
substream         804 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         824 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         835 sound/core/pcm_native.c 	if (snd_pcm_running(substream)) {
substream         836 sound/core/pcm_native.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         838 sound/core/pcm_native.c 			snd_pcm_playback_silence(substream, ULONG_MAX);
substream         839 sound/core/pcm_native.c 		err = snd_pcm_update_state(substream, runtime);
substream         841 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         845 sound/core/pcm_native.c static int snd_pcm_sw_params_user(struct snd_pcm_substream *substream,
substream         852 sound/core/pcm_native.c 	err = snd_pcm_sw_params(substream, &params);
substream         859 sound/core/pcm_native.c snd_pcm_calc_delay(struct snd_pcm_substream *substream)
substream         863 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         864 sound/core/pcm_native.c 		delay = snd_pcm_playback_hw_avail(substream->runtime);
substream         866 sound/core/pcm_native.c 		delay = snd_pcm_capture_avail(substream->runtime);
substream         867 sound/core/pcm_native.c 	return delay + substream->runtime->delay;
substream         870 sound/core/pcm_native.c int snd_pcm_status(struct snd_pcm_substream *substream,
substream         873 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         875 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         898 sound/core/pcm_native.c 	if (snd_pcm_running(substream)) {
substream         899 sound/core/pcm_native.c 		snd_pcm_update_hw_ptr(substream);
substream         921 sound/core/pcm_native.c 	status->avail = snd_pcm_avail(substream);
substream         922 sound/core/pcm_native.c 	status->delay = snd_pcm_running(substream) ?
substream         923 sound/core/pcm_native.c 		snd_pcm_calc_delay(substream) : 0;
substream         929 sound/core/pcm_native.c  	snd_pcm_stream_unlock_irq(substream);
substream         933 sound/core/pcm_native.c static int snd_pcm_status_user(struct snd_pcm_substream *substream,
substream         949 sound/core/pcm_native.c 	res = snd_pcm_status(substream, &status);
substream         957 sound/core/pcm_native.c static int snd_pcm_channel_info(struct snd_pcm_substream *substream,
substream         964 sound/core/pcm_native.c 	runtime = substream->runtime;
substream         965 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream         967 sound/core/pcm_native.c 		snd_pcm_stream_unlock_irq(substream);
substream         970 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream         975 sound/core/pcm_native.c 	return substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_CHANNEL_INFO, info);
substream         978 sound/core/pcm_native.c static int snd_pcm_channel_info_user(struct snd_pcm_substream *substream,
substream         986 sound/core/pcm_native.c 	res = snd_pcm_channel_info(substream, &info);
substream         994 sound/core/pcm_native.c static void snd_pcm_trigger_tstamp(struct snd_pcm_substream *substream)
substream         996 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         999 sound/core/pcm_native.c 	if (runtime->trigger_master == substream) {
substream        1010 sound/core/pcm_native.c 	int (*pre_action)(struct snd_pcm_substream *substream, int state);
substream        1011 sound/core/pcm_native.c 	int (*do_action)(struct snd_pcm_substream *substream, int state);
substream        1012 sound/core/pcm_native.c 	void (*undo_action)(struct snd_pcm_substream *substream, int state);
substream        1013 sound/core/pcm_native.c 	void (*post_action)(struct snd_pcm_substream *substream, int state);
substream        1022 sound/core/pcm_native.c 				struct snd_pcm_substream *substream,
substream        1029 sound/core/pcm_native.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1030 sound/core/pcm_native.c 		if (do_lock && s != substream) {
substream        1041 sound/core/pcm_native.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1045 sound/core/pcm_native.c 				snd_pcm_group_for_each_entry(s1, substream) {
substream        1055 sound/core/pcm_native.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1061 sound/core/pcm_native.c 		snd_pcm_group_for_each_entry(s1, substream) {
substream        1062 sound/core/pcm_native.c 			if (s1 != substream) {
substream        1079 sound/core/pcm_native.c 				 struct snd_pcm_substream *substream,
substream        1084 sound/core/pcm_native.c 	res = ops->pre_action(substream, state);
substream        1087 sound/core/pcm_native.c 	res = ops->do_action(substream, state);
substream        1089 sound/core/pcm_native.c 		ops->post_action(substream, state);
substream        1091 sound/core/pcm_native.c 		ops->undo_action(substream, state);
substream        1095 sound/core/pcm_native.c static void snd_pcm_group_assign(struct snd_pcm_substream *substream,
substream        1098 sound/core/pcm_native.c 	substream->group = new_group;
substream        1099 sound/core/pcm_native.c 	list_move(&substream->link_list, &new_group->substreams);
substream        1107 sound/core/pcm_native.c 				struct snd_pcm_substream *substream)
substream        1114 sound/core/pcm_native.c 	snd_pcm_group_unlock(group, substream->pcm->nonatomic);
substream        1124 sound/core/pcm_native.c snd_pcm_stream_group_ref(struct snd_pcm_substream *substream)
substream        1126 sound/core/pcm_native.c 	bool nonatomic = substream->pcm->nonatomic;
substream        1131 sound/core/pcm_native.c 		if (!snd_pcm_stream_linked(substream))
substream        1133 sound/core/pcm_native.c 		group = substream->group;
substream        1143 sound/core/pcm_native.c 		snd_pcm_stream_unlock(substream);
substream        1145 sound/core/pcm_native.c 		snd_pcm_stream_lock(substream);
substream        1148 sound/core/pcm_native.c 		if (substream->group == group)
substream        1151 sound/core/pcm_native.c 		snd_pcm_group_unref(group, substream);
substream        1160 sound/core/pcm_native.c 			  struct snd_pcm_substream *substream,
substream        1166 sound/core/pcm_native.c 	group = snd_pcm_stream_group_ref(substream);
substream        1168 sound/core/pcm_native.c 		res = snd_pcm_action_group(ops, substream, state, 1);
substream        1170 sound/core/pcm_native.c 		res = snd_pcm_action_single(ops, substream, state);
substream        1171 sound/core/pcm_native.c 	snd_pcm_group_unref(group, substream);
substream        1179 sound/core/pcm_native.c 				   struct snd_pcm_substream *substream,
substream        1184 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        1185 sound/core/pcm_native.c 	res = snd_pcm_action(ops, substream, state);
substream        1186 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        1193 sound/core/pcm_native.c 				    struct snd_pcm_substream *substream,
substream        1200 sound/core/pcm_native.c 	if (snd_pcm_stream_linked(substream))
substream        1201 sound/core/pcm_native.c 		res = snd_pcm_action_group(ops, substream, state, 0);
substream        1203 sound/core/pcm_native.c 		res = snd_pcm_action_single(ops, substream, state);
substream        1211 sound/core/pcm_native.c static int snd_pcm_pre_start(struct snd_pcm_substream *substream, int state)
substream        1213 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1216 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream        1217 sound/core/pcm_native.c 	    !snd_pcm_playback_data(substream))
substream        1220 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1224 sound/core/pcm_native.c static int snd_pcm_do_start(struct snd_pcm_substream *substream, int state)
substream        1226 sound/core/pcm_native.c 	if (substream->runtime->trigger_master != substream)
substream        1228 sound/core/pcm_native.c 	return substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_START);
substream        1231 sound/core/pcm_native.c static void snd_pcm_undo_start(struct snd_pcm_substream *substream, int state)
substream        1233 sound/core/pcm_native.c 	if (substream->runtime->trigger_master == substream)
substream        1234 sound/core/pcm_native.c 		substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_STOP);
substream        1237 sound/core/pcm_native.c static void snd_pcm_post_start(struct snd_pcm_substream *substream, int state)
substream        1239 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1240 sound/core/pcm_native.c 	snd_pcm_trigger_tstamp(substream);
substream        1245 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream        1247 sound/core/pcm_native.c 		snd_pcm_playback_silence(substream, ULONG_MAX);
substream        1248 sound/core/pcm_native.c 	snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MSTART);
substream        1265 sound/core/pcm_native.c int snd_pcm_start(struct snd_pcm_substream *substream)
substream        1267 sound/core/pcm_native.c 	return snd_pcm_action(&snd_pcm_action_start, substream,
substream        1272 sound/core/pcm_native.c static int snd_pcm_start_lock_irq(struct snd_pcm_substream *substream)
substream        1274 sound/core/pcm_native.c 	return snd_pcm_action_lock_irq(&snd_pcm_action_start, substream,
substream        1281 sound/core/pcm_native.c static int snd_pcm_pre_stop(struct snd_pcm_substream *substream, int state)
substream        1283 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1286 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1290 sound/core/pcm_native.c static int snd_pcm_do_stop(struct snd_pcm_substream *substream, int state)
substream        1292 sound/core/pcm_native.c 	if (substream->runtime->trigger_master == substream &&
substream        1293 sound/core/pcm_native.c 	    snd_pcm_running(substream))
substream        1294 sound/core/pcm_native.c 		substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_STOP);
substream        1298 sound/core/pcm_native.c static void snd_pcm_post_stop(struct snd_pcm_substream *substream, int state)
substream        1300 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1302 sound/core/pcm_native.c 		snd_pcm_trigger_tstamp(substream);
substream        1304 sound/core/pcm_native.c 		snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MSTOP);
substream        1325 sound/core/pcm_native.c int snd_pcm_stop(struct snd_pcm_substream *substream, snd_pcm_state_t state)
substream        1327 sound/core/pcm_native.c 	return snd_pcm_action(&snd_pcm_action_stop, substream, state);
substream        1340 sound/core/pcm_native.c int snd_pcm_drain_done(struct snd_pcm_substream *substream)
substream        1342 sound/core/pcm_native.c 	return snd_pcm_action_single(&snd_pcm_action_stop, substream,
substream        1355 sound/core/pcm_native.c int snd_pcm_stop_xrun(struct snd_pcm_substream *substream)
substream        1359 sound/core/pcm_native.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream        1360 sound/core/pcm_native.c 	if (substream->runtime && snd_pcm_running(substream))
substream        1361 sound/core/pcm_native.c 		__snd_pcm_xrun(substream);
substream        1362 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream        1370 sound/core/pcm_native.c static int snd_pcm_pre_pause(struct snd_pcm_substream *substream, int push)
substream        1372 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1380 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1384 sound/core/pcm_native.c static int snd_pcm_do_pause(struct snd_pcm_substream *substream, int push)
substream        1386 sound/core/pcm_native.c 	if (substream->runtime->trigger_master != substream)
substream        1391 sound/core/pcm_native.c 		snd_pcm_update_hw_ptr(substream);
substream        1396 sound/core/pcm_native.c 	substream->runtime->hw_ptr_jiffies = jiffies - HZ * 1000;
substream        1397 sound/core/pcm_native.c 	return substream->ops->trigger(substream,
substream        1402 sound/core/pcm_native.c static void snd_pcm_undo_pause(struct snd_pcm_substream *substream, int push)
substream        1404 sound/core/pcm_native.c 	if (substream->runtime->trigger_master == substream)
substream        1405 sound/core/pcm_native.c 		substream->ops->trigger(substream,
substream        1410 sound/core/pcm_native.c static void snd_pcm_post_pause(struct snd_pcm_substream *substream, int push)
substream        1412 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1413 sound/core/pcm_native.c 	snd_pcm_trigger_tstamp(substream);
substream        1416 sound/core/pcm_native.c 		snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MPAUSE);
substream        1421 sound/core/pcm_native.c 		snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MCONTINUE);
substream        1435 sound/core/pcm_native.c static int snd_pcm_pause(struct snd_pcm_substream *substream, int push)
substream        1437 sound/core/pcm_native.c 	return snd_pcm_action(&snd_pcm_action_pause, substream, push);
substream        1443 sound/core/pcm_native.c static int snd_pcm_pre_suspend(struct snd_pcm_substream *substream, int state)
substream        1445 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1455 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1459 sound/core/pcm_native.c static int snd_pcm_do_suspend(struct snd_pcm_substream *substream, int state)
substream        1461 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1462 sound/core/pcm_native.c 	if (runtime->trigger_master != substream)
substream        1464 sound/core/pcm_native.c 	if (! snd_pcm_running(substream))
substream        1466 sound/core/pcm_native.c 	substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_SUSPEND);
substream        1470 sound/core/pcm_native.c static void snd_pcm_post_suspend(struct snd_pcm_substream *substream, int state)
substream        1472 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1473 sound/core/pcm_native.c 	snd_pcm_trigger_tstamp(substream);
substream        1476 sound/core/pcm_native.c 	snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MSUSPEND);
substream        1495 sound/core/pcm_native.c static int snd_pcm_suspend(struct snd_pcm_substream *substream)
substream        1500 sound/core/pcm_native.c 	snd_pcm_stream_lock_irqsave(substream, flags);
substream        1501 sound/core/pcm_native.c 	err = snd_pcm_action(&snd_pcm_action_suspend, substream, 0);
substream        1502 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irqrestore(substream, flags);
substream        1516 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        1523 sound/core/pcm_native.c 		for (substream = pcm->streams[stream].substream;
substream        1524 sound/core/pcm_native.c 		     substream; substream = substream->next) {
substream        1526 sound/core/pcm_native.c 			if (substream->runtime == NULL)
substream        1533 sound/core/pcm_native.c 			if (!substream->ops)
substream        1536 sound/core/pcm_native.c 			err = snd_pcm_suspend(substream);
substream        1547 sound/core/pcm_native.c static int snd_pcm_pre_resume(struct snd_pcm_substream *substream, int state)
substream        1549 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1552 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1556 sound/core/pcm_native.c static int snd_pcm_do_resume(struct snd_pcm_substream *substream, int state)
substream        1558 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1559 sound/core/pcm_native.c 	if (runtime->trigger_master != substream)
substream        1564 sound/core/pcm_native.c 	     substream->stream != SNDRV_PCM_STREAM_PLAYBACK))
substream        1566 sound/core/pcm_native.c 	return substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_RESUME);
substream        1569 sound/core/pcm_native.c static void snd_pcm_undo_resume(struct snd_pcm_substream *substream, int state)
substream        1571 sound/core/pcm_native.c 	if (substream->runtime->trigger_master == substream &&
substream        1572 sound/core/pcm_native.c 	    snd_pcm_running(substream))
substream        1573 sound/core/pcm_native.c 		substream->ops->trigger(substream, SNDRV_PCM_TRIGGER_SUSPEND);
substream        1576 sound/core/pcm_native.c static void snd_pcm_post_resume(struct snd_pcm_substream *substream, int state)
substream        1578 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1579 sound/core/pcm_native.c 	snd_pcm_trigger_tstamp(substream);
substream        1581 sound/core/pcm_native.c 	snd_pcm_timer_notify(substream, SNDRV_TIMER_EVENT_MRESUME);
substream        1591 sound/core/pcm_native.c static int snd_pcm_resume(struct snd_pcm_substream *substream)
substream        1593 sound/core/pcm_native.c 	return snd_pcm_action_lock_irq(&snd_pcm_action_resume, substream, 0);
substream        1598 sound/core/pcm_native.c static int snd_pcm_resume(struct snd_pcm_substream *substream)
substream        1610 sound/core/pcm_native.c static int snd_pcm_xrun(struct snd_pcm_substream *substream)
substream        1612 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1615 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        1621 sound/core/pcm_native.c 		__snd_pcm_xrun(substream);
substream        1627 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        1634 sound/core/pcm_native.c static int snd_pcm_pre_reset(struct snd_pcm_substream *substream, int state)
substream        1636 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1648 sound/core/pcm_native.c static int snd_pcm_do_reset(struct snd_pcm_substream *substream, int state)
substream        1650 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1651 sound/core/pcm_native.c 	int err = substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_RESET, NULL);
substream        1662 sound/core/pcm_native.c static void snd_pcm_post_reset(struct snd_pcm_substream *substream, int state)
substream        1664 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1666 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream        1668 sound/core/pcm_native.c 		snd_pcm_playback_silence(substream, ULONG_MAX);
substream        1677 sound/core/pcm_native.c static int snd_pcm_reset(struct snd_pcm_substream *substream)
substream        1679 sound/core/pcm_native.c 	return snd_pcm_action_nonatomic(&snd_pcm_action_reset, substream, 0);
substream        1686 sound/core/pcm_native.c static int snd_pcm_pre_prepare(struct snd_pcm_substream *substream,
substream        1689 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1693 sound/core/pcm_native.c 	if (snd_pcm_running(substream))
substream        1695 sound/core/pcm_native.c 	substream->f_flags = f_flags;
substream        1699 sound/core/pcm_native.c static int snd_pcm_do_prepare(struct snd_pcm_substream *substream, int state)
substream        1702 sound/core/pcm_native.c 	err = substream->ops->prepare(substream);
substream        1705 sound/core/pcm_native.c 	return snd_pcm_do_reset(substream, 0);
substream        1708 sound/core/pcm_native.c static void snd_pcm_post_prepare(struct snd_pcm_substream *substream, int state)
substream        1710 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1712 sound/core/pcm_native.c 	snd_pcm_set_state(substream, SNDRV_PCM_STATE_PREPARED);
substream        1728 sound/core/pcm_native.c static int snd_pcm_prepare(struct snd_pcm_substream *substream,
substream        1736 sound/core/pcm_native.c 		f_flags = substream->f_flags;
substream        1738 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        1739 sound/core/pcm_native.c 	switch (substream->runtime->status->state) {
substream        1741 sound/core/pcm_native.c 		snd_pcm_pause(substream, 0);
substream        1744 sound/core/pcm_native.c 		snd_pcm_stop(substream, SNDRV_PCM_STATE_SETUP);
substream        1747 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        1750 sound/core/pcm_native.c 					substream, f_flags);
substream        1757 sound/core/pcm_native.c static int snd_pcm_pre_drain_init(struct snd_pcm_substream *substream, int state)
substream        1759 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1766 sound/core/pcm_native.c 	runtime->trigger_master = substream;
substream        1770 sound/core/pcm_native.c static int snd_pcm_do_drain_init(struct snd_pcm_substream *substream, int state)
substream        1772 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1773 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1777 sound/core/pcm_native.c 			if (! snd_pcm_playback_empty(substream)) {
substream        1778 sound/core/pcm_native.c 				snd_pcm_do_start(substream, SNDRV_PCM_STATE_DRAINING);
substream        1779 sound/core/pcm_native.c 				snd_pcm_post_start(substream, SNDRV_PCM_STATE_DRAINING);
substream        1798 sound/core/pcm_native.c 			snd_pcm_do_stop(substream, new_state);
substream        1799 sound/core/pcm_native.c 			snd_pcm_post_stop(substream, new_state);
substream        1804 sound/core/pcm_native.c 	    runtime->trigger_master == substream &&
substream        1806 sound/core/pcm_native.c 		return substream->ops->trigger(substream,
substream        1812 sound/core/pcm_native.c static void snd_pcm_post_drain_init(struct snd_pcm_substream *substream, int state)
substream        1829 sound/core/pcm_native.c static int snd_pcm_drain(struct snd_pcm_substream *substream,
substream        1840 sound/core/pcm_native.c 	card = substream->pcm->card;
substream        1841 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        1849 sound/core/pcm_native.c 	} else if (substream->f_flags & O_NONBLOCK)
substream        1852 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        1855 sound/core/pcm_native.c 		snd_pcm_pause(substream, 0);
substream        1858 sound/core/pcm_native.c 	result = snd_pcm_action(&snd_pcm_action_drain_init, substream, 0);
substream        1876 sound/core/pcm_native.c 		group = snd_pcm_stream_group_ref(substream);
substream        1877 sound/core/pcm_native.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        1886 sound/core/pcm_native.c 		snd_pcm_group_unref(group, substream);
substream        1892 sound/core/pcm_native.c 		snd_pcm_stream_unlock_irq(substream);
substream        1905 sound/core/pcm_native.c 		snd_pcm_stream_lock_irq(substream);
substream        1906 sound/core/pcm_native.c 		group = snd_pcm_stream_group_ref(substream);
substream        1907 sound/core/pcm_native.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        1913 sound/core/pcm_native.c 		snd_pcm_group_unref(group, substream);
substream        1920 sound/core/pcm_native.c 			if (substream->runtime->status->state == SNDRV_PCM_STATE_SUSPENDED)
substream        1923 sound/core/pcm_native.c 				dev_dbg(substream->pcm->card->dev,
substream        1925 sound/core/pcm_native.c 				snd_pcm_stop(substream, SNDRV_PCM_STATE_SETUP);
substream        1933 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        1943 sound/core/pcm_native.c static int snd_pcm_drop(struct snd_pcm_substream *substream)
substream        1948 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        1950 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        1956 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        1959 sound/core/pcm_native.c 		snd_pcm_pause(substream, 0);
substream        1961 sound/core/pcm_native.c 	snd_pcm_stop(substream, SNDRV_PCM_STATE_SETUP);
substream        1963 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        1990 sound/core/pcm_native.c static int snd_pcm_link(struct snd_pcm_substream *substream, int fd)
substream        1996 sound/core/pcm_native.c 	bool nonatomic = substream->pcm->nonatomic;
substream        2006 sound/core/pcm_native.c 	substream1 = pcm_file->substream;
substream        2008 sound/core/pcm_native.c 	if (substream == substream1) {
substream        2021 sound/core/pcm_native.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN ||
substream        2022 sound/core/pcm_native.c 	    substream->runtime->status->state != substream1->runtime->status->state ||
substream        2023 sound/core/pcm_native.c 	    substream->pcm->nonatomic != substream1->pcm->nonatomic) {
substream        2032 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2033 sound/core/pcm_native.c 	if (!snd_pcm_stream_linked(substream)) {
substream        2034 sound/core/pcm_native.c 		snd_pcm_group_assign(substream, group);
substream        2037 sound/core/pcm_native.c 	target_group = substream->group;
substream        2038 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2055 sound/core/pcm_native.c static void relink_to_local(struct snd_pcm_substream *substream)
substream        2057 sound/core/pcm_native.c 	snd_pcm_stream_lock_nested(substream);
substream        2058 sound/core/pcm_native.c 	snd_pcm_group_assign(substream, &substream->self_group);
substream        2059 sound/core/pcm_native.c 	snd_pcm_stream_unlock(substream);
substream        2062 sound/core/pcm_native.c static int snd_pcm_unlink(struct snd_pcm_substream *substream)
substream        2065 sound/core/pcm_native.c 	bool nonatomic = substream->pcm->nonatomic;
substream        2071 sound/core/pcm_native.c 	if (!snd_pcm_stream_linked(substream)) {
substream        2076 sound/core/pcm_native.c 	group = substream->group;
substream        2079 sound/core/pcm_native.c 	relink_to_local(substream);
substream        2214 sound/core/pcm_native.c 	struct snd_pcm_substream *substream = rule->private;
substream        2216 sound/core/pcm_native.c 	t.max = substream->buffer_bytes_max;
substream        2223 sound/core/pcm_native.c int snd_pcm_hw_constraints_init(struct snd_pcm_substream *substream)
substream        2225 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2347 sound/core/pcm_native.c int snd_pcm_hw_constraints_complete(struct snd_pcm_substream *substream)
substream        2349 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2358 sound/core/pcm_native.c 	if (hw_support_mmap(substream)) {
substream        2404 sound/core/pcm_native.c 				  snd_pcm_hw_rule_buffer_bytes_max, substream,
substream        2430 sound/core/pcm_native.c static void pcm_release_private(struct snd_pcm_substream *substream)
substream        2432 sound/core/pcm_native.c 	if (snd_pcm_stream_linked(substream))
substream        2433 sound/core/pcm_native.c 		snd_pcm_unlink(substream);
substream        2436 sound/core/pcm_native.c void snd_pcm_release_substream(struct snd_pcm_substream *substream)
substream        2438 sound/core/pcm_native.c 	substream->ref_count--;
substream        2439 sound/core/pcm_native.c 	if (substream->ref_count > 0)
substream        2442 sound/core/pcm_native.c 	snd_pcm_drop(substream);
substream        2443 sound/core/pcm_native.c 	if (substream->hw_opened) {
substream        2444 sound/core/pcm_native.c 		if (substream->ops->hw_free &&
substream        2445 sound/core/pcm_native.c 		    substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream        2446 sound/core/pcm_native.c 			substream->ops->hw_free(substream);
substream        2447 sound/core/pcm_native.c 		substream->ops->close(substream);
substream        2448 sound/core/pcm_native.c 		substream->hw_opened = 0;
substream        2450 sound/core/pcm_native.c 	if (pm_qos_request_active(&substream->latency_pm_qos_req))
substream        2451 sound/core/pcm_native.c 		pm_qos_remove_request(&substream->latency_pm_qos_req);
substream        2452 sound/core/pcm_native.c 	if (substream->pcm_release) {
substream        2453 sound/core/pcm_native.c 		substream->pcm_release(substream);
substream        2454 sound/core/pcm_native.c 		substream->pcm_release = NULL;
substream        2456 sound/core/pcm_native.c 	snd_pcm_detach_substream(substream);
substream        2464 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        2467 sound/core/pcm_native.c 	err = snd_pcm_attach_substream(pcm, stream, file, &substream);
substream        2470 sound/core/pcm_native.c 	if (substream->ref_count > 1) {
substream        2471 sound/core/pcm_native.c 		*rsubstream = substream;
substream        2475 sound/core/pcm_native.c 	err = snd_pcm_hw_constraints_init(substream);
substream        2481 sound/core/pcm_native.c 	if ((err = substream->ops->open(substream)) < 0)
substream        2484 sound/core/pcm_native.c 	substream->hw_opened = 1;
substream        2486 sound/core/pcm_native.c 	err = snd_pcm_hw_constraints_complete(substream);
substream        2492 sound/core/pcm_native.c 	*rsubstream = substream;
substream        2496 sound/core/pcm_native.c 	snd_pcm_release_substream(substream);
substream        2506 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        2509 sound/core/pcm_native.c 	err = snd_pcm_open_substream(pcm, stream, file, &substream);
substream        2515 sound/core/pcm_native.c 		snd_pcm_release_substream(substream);
substream        2518 sound/core/pcm_native.c 	pcm_file->substream = substream;
substream        2519 sound/core/pcm_native.c 	if (substream->ref_count == 1)
substream        2520 sound/core/pcm_native.c 		substream->pcm_release = pcm_release_private;
substream        2614 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        2618 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        2619 sound/core/pcm_native.c 	if (snd_BUG_ON(!substream))
substream        2621 sound/core/pcm_native.c 	pcm = substream->pcm;
substream        2623 sound/core/pcm_native.c 	snd_pcm_release_substream(substream);
substream        2635 sound/core/pcm_native.c static int do_pcm_hwsync(struct snd_pcm_substream *substream)
substream        2637 sound/core/pcm_native.c 	switch (substream->runtime->status->state) {
substream        2639 sound/core/pcm_native.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        2643 sound/core/pcm_native.c 		return snd_pcm_update_hw_ptr(substream);
substream        2657 sound/core/pcm_native.c static snd_pcm_sframes_t forward_appl_ptr(struct snd_pcm_substream *substream,
substream        2661 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2672 sound/core/pcm_native.c 	ret = pcm_lib_apply_appl_ptr(substream, appl_ptr);
substream        2677 sound/core/pcm_native.c static snd_pcm_sframes_t rewind_appl_ptr(struct snd_pcm_substream *substream,
substream        2681 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2692 sound/core/pcm_native.c 	ret = pcm_lib_apply_appl_ptr(substream, appl_ptr);
substream        2701 sound/core/pcm_native.c static snd_pcm_sframes_t snd_pcm_rewind(struct snd_pcm_substream *substream,
substream        2709 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2710 sound/core/pcm_native.c 	ret = do_pcm_hwsync(substream);
substream        2712 sound/core/pcm_native.c 		ret = rewind_appl_ptr(substream, frames,
substream        2713 sound/core/pcm_native.c 				      snd_pcm_hw_avail(substream));
substream        2714 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2718 sound/core/pcm_native.c static snd_pcm_sframes_t snd_pcm_forward(struct snd_pcm_substream *substream,
substream        2726 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2727 sound/core/pcm_native.c 	ret = do_pcm_hwsync(substream);
substream        2729 sound/core/pcm_native.c 		ret = forward_appl_ptr(substream, frames,
substream        2730 sound/core/pcm_native.c 				       snd_pcm_avail(substream));
substream        2731 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2735 sound/core/pcm_native.c static int snd_pcm_hwsync(struct snd_pcm_substream *substream)
substream        2739 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2740 sound/core/pcm_native.c 	err = do_pcm_hwsync(substream);
substream        2741 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2745 sound/core/pcm_native.c static int snd_pcm_delay(struct snd_pcm_substream *substream,
substream        2751 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2752 sound/core/pcm_native.c 	err = do_pcm_hwsync(substream);
substream        2754 sound/core/pcm_native.c 		n = snd_pcm_calc_delay(substream);
substream        2755 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2761 sound/core/pcm_native.c static int snd_pcm_sync_ptr(struct snd_pcm_substream *substream,
substream        2764 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2778 sound/core/pcm_native.c 		err = snd_pcm_hwsync(substream);
substream        2782 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        2784 sound/core/pcm_native.c 		err = pcm_lib_apply_appl_ptr(substream,
substream        2787 sound/core/pcm_native.c 			snd_pcm_stream_unlock_irq(substream);
substream        2802 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        2808 sound/core/pcm_native.c static int snd_pcm_tstamp(struct snd_pcm_substream *substream, int __user *_arg)
substream        2810 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2821 sound/core/pcm_native.c static int snd_pcm_xferi_frames_ioctl(struct snd_pcm_substream *substream,
substream        2825 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2834 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2835 sound/core/pcm_native.c 		result = snd_pcm_lib_write(substream, xferi.buf, xferi.frames);
substream        2837 sound/core/pcm_native.c 		result = snd_pcm_lib_read(substream, xferi.buf, xferi.frames);
substream        2842 sound/core/pcm_native.c static int snd_pcm_xfern_frames_ioctl(struct snd_pcm_substream *substream,
substream        2846 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2862 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2863 sound/core/pcm_native.c 		result = snd_pcm_lib_writev(substream, bufs, xfern.frames);
substream        2865 sound/core/pcm_native.c 		result = snd_pcm_lib_readv(substream, bufs, xfern.frames);
substream        2871 sound/core/pcm_native.c static int snd_pcm_rewind_ioctl(struct snd_pcm_substream *substream,
substream        2881 sound/core/pcm_native.c 	result = snd_pcm_rewind(substream, frames);
substream        2886 sound/core/pcm_native.c static int snd_pcm_forward_ioctl(struct snd_pcm_substream *substream,
substream        2896 sound/core/pcm_native.c 	result = snd_pcm_forward(substream, frames);
substream        2902 sound/core/pcm_native.c 				 struct snd_pcm_substream *substream,
substream        2908 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        2911 sound/core/pcm_native.c 	res = snd_power_wait(substream->pcm->card, SNDRV_CTL_POWER_D0);
substream        2919 sound/core/pcm_native.c 		return snd_pcm_info_user(substream, arg);
substream        2923 sound/core/pcm_native.c 		return snd_pcm_tstamp(substream, arg);
substream        2930 sound/core/pcm_native.c 		return snd_pcm_hw_refine_user(substream, arg);
substream        2932 sound/core/pcm_native.c 		return snd_pcm_hw_params_user(substream, arg);
substream        2934 sound/core/pcm_native.c 		return snd_pcm_hw_free(substream);
substream        2936 sound/core/pcm_native.c 		return snd_pcm_sw_params_user(substream, arg);
substream        2938 sound/core/pcm_native.c 		return snd_pcm_status_user(substream, arg, false);
substream        2940 sound/core/pcm_native.c 		return snd_pcm_status_user(substream, arg, true);
substream        2942 sound/core/pcm_native.c 		return snd_pcm_channel_info_user(substream, arg);
substream        2944 sound/core/pcm_native.c 		return snd_pcm_prepare(substream, file);
substream        2946 sound/core/pcm_native.c 		return snd_pcm_reset(substream);
substream        2948 sound/core/pcm_native.c 		return snd_pcm_start_lock_irq(substream);
substream        2950 sound/core/pcm_native.c 		return snd_pcm_link(substream, (int)(unsigned long) arg);
substream        2952 sound/core/pcm_native.c 		return snd_pcm_unlink(substream);
substream        2954 sound/core/pcm_native.c 		return snd_pcm_resume(substream);
substream        2956 sound/core/pcm_native.c 		return snd_pcm_xrun(substream);
substream        2958 sound/core/pcm_native.c 		return snd_pcm_hwsync(substream);
substream        2965 sound/core/pcm_native.c 		err = snd_pcm_delay(substream, &delay);
substream        2973 sound/core/pcm_native.c 		return snd_pcm_sync_ptr(substream, arg);
substream        2976 sound/core/pcm_native.c 		return snd_pcm_hw_refine_old_user(substream, arg);
substream        2978 sound/core/pcm_native.c 		return snd_pcm_hw_params_old_user(substream, arg);
substream        2981 sound/core/pcm_native.c 		return snd_pcm_drain(substream, file);
substream        2983 sound/core/pcm_native.c 		return snd_pcm_drop(substream);
substream        2986 sound/core/pcm_native.c 					       substream,
substream        2990 sound/core/pcm_native.c 		return snd_pcm_xferi_frames_ioctl(substream, arg);
substream        2993 sound/core/pcm_native.c 		return snd_pcm_xfern_frames_ioctl(substream, arg);
substream        2995 sound/core/pcm_native.c 		return snd_pcm_rewind_ioctl(substream, arg);
substream        2997 sound/core/pcm_native.c 		return snd_pcm_forward_ioctl(substream, arg);
substream        2999 sound/core/pcm_native.c 	pcm_dbg(substream->pcm, "unknown ioctl = 0x%x\n", cmd);
substream        3013 sound/core/pcm_native.c 	return snd_pcm_common_ioctl(file, pcm_file->substream, cmd,
substream        3027 sound/core/pcm_native.c int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream,
substream        3037 sound/core/pcm_native.c 		if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
substream        3039 sound/core/pcm_native.c 		result = snd_pcm_forward(substream, *frames);
substream        3043 sound/core/pcm_native.c 		return snd_pcm_hw_params(substream, arg);
substream        3045 sound/core/pcm_native.c 		return snd_pcm_sw_params(substream, arg);
substream        3047 sound/core/pcm_native.c 		return snd_pcm_prepare(substream, NULL);
substream        3049 sound/core/pcm_native.c 		return snd_pcm_start_lock_irq(substream);
substream        3051 sound/core/pcm_native.c 		return snd_pcm_drain(substream, NULL);
substream        3053 sound/core/pcm_native.c 		return snd_pcm_drop(substream);
substream        3055 sound/core/pcm_native.c 		return snd_pcm_delay(substream, frames);
substream        3066 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3071 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3072 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3074 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3080 sound/core/pcm_native.c 	result = snd_pcm_lib_read(substream, buf, count);
substream        3090 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3095 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3096 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3098 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3104 sound/core/pcm_native.c 	result = snd_pcm_lib_write(substream, buf, count);
substream        3113 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3121 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3122 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3124 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3139 sound/core/pcm_native.c 	result = snd_pcm_lib_readv(substream, bufs, frames);
substream        3149 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3157 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3158 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3160 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3174 sound/core/pcm_native.c 	result = snd_pcm_lib_writev(substream, bufs, frames);
substream        3184 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3191 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3192 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        3196 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3199 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3203 sound/core/pcm_native.c 	snd_pcm_stream_lock_irq(substream);
substream        3204 sound/core/pcm_native.c 	avail = snd_pcm_avail(substream);
substream        3213 sound/core/pcm_native.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream        3223 sound/core/pcm_native.c 	snd_pcm_stream_unlock_irq(substream);
substream        3241 sound/core/pcm_native.c 	struct snd_pcm_substream *substream = vmf->vma->vm_private_data;
substream        3244 sound/core/pcm_native.c 	if (substream == NULL)
substream        3246 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3257 sound/core/pcm_native.c static int snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file,
substream        3267 sound/core/pcm_native.c 	area->vm_private_data = substream;
substream        3277 sound/core/pcm_native.c 	struct snd_pcm_substream *substream = vmf->vma->vm_private_data;
substream        3280 sound/core/pcm_native.c 	if (substream == NULL)
substream        3282 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3293 sound/core/pcm_native.c static int snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file,
substream        3303 sound/core/pcm_native.c 	area->vm_private_data = substream;
substream        3317 sound/core/pcm_native.c 	    (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR))
substream        3330 sound/core/pcm_native.c 	if (pcm_file->substream->runtime->hw.info & SNDRV_PCM_INFO_SYNC_APPLPTR)
substream        3342 sound/core/pcm_native.c static int snd_pcm_mmap_status(struct snd_pcm_substream *substream, struct file *file,
substream        3347 sound/core/pcm_native.c static int snd_pcm_mmap_control(struct snd_pcm_substream *substream, struct file *file,
substream        3355 sound/core/pcm_native.c snd_pcm_default_page_ops(struct snd_pcm_substream *substream, unsigned long ofs)
substream        3357 sound/core/pcm_native.c 	void *vaddr = substream->runtime->dma_area + ofs;
substream        3366 sound/core/pcm_native.c 	struct snd_pcm_substream *substream = vmf->vma->vm_private_data;
substream        3372 sound/core/pcm_native.c 	if (substream == NULL)
substream        3374 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3379 sound/core/pcm_native.c 	if (substream->ops->page)
substream        3380 sound/core/pcm_native.c 		page = substream->ops->page(substream, offset);
substream        3382 sound/core/pcm_native.c 		page = snd_pcm_default_page_ops(substream, offset);
substream        3413 sound/core/pcm_native.c int snd_pcm_lib_default_mmap(struct snd_pcm_substream *substream,
substream        3418 sound/core/pcm_native.c 	if (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_IRAM) {
substream        3421 sound/core/pcm_native.c 				substream->dma_buffer.addr >> PAGE_SHIFT,
substream        3426 sound/core/pcm_native.c 	if (IS_ENABLED(CONFIG_HAS_DMA) && !substream->ops->page &&
substream        3427 sound/core/pcm_native.c 	    (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV ||
substream        3428 sound/core/pcm_native.c 	     substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_UC))
substream        3429 sound/core/pcm_native.c 		return dma_mmap_coherent(substream->dma_buffer.dev.dev,
substream        3431 sound/core/pcm_native.c 					 substream->runtime->dma_area,
substream        3432 sound/core/pcm_native.c 					 substream->runtime->dma_addr,
substream        3433 sound/core/pcm_native.c 					 substream->runtime->dma_bytes);
substream        3454 sound/core/pcm_native.c int snd_pcm_lib_mmap_iomem(struct snd_pcm_substream *substream,
substream        3457 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        3468 sound/core/pcm_native.c int snd_pcm_mmap_data(struct snd_pcm_substream *substream, struct file *file,
substream        3477 sound/core/pcm_native.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        3484 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3501 sound/core/pcm_native.c 	area->vm_private_data = substream;
substream        3502 sound/core/pcm_native.c 	if (substream->ops->mmap)
substream        3503 sound/core/pcm_native.c 		err = substream->ops->mmap(substream, area);
substream        3505 sound/core/pcm_native.c 		err = snd_pcm_lib_default_mmap(substream, area);
substream        3507 sound/core/pcm_native.c 		atomic_inc(&substream->mmap_count);
substream        3515 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;	
substream        3519 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3520 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3528 sound/core/pcm_native.c 		return snd_pcm_mmap_status(substream, file, area);
substream        3532 sound/core/pcm_native.c 		return snd_pcm_mmap_control(substream, file, area);
substream        3534 sound/core/pcm_native.c 		return snd_pcm_mmap_data(substream, file, area);
substream        3542 sound/core/pcm_native.c 	struct snd_pcm_substream *substream;
substream        3546 sound/core/pcm_native.c 	substream = pcm_file->substream;
substream        3547 sound/core/pcm_native.c 	if (PCM_RUNTIME_CHECK(substream))
substream        3549 sound/core/pcm_native.c 	runtime = substream->runtime;
substream        3608 sound/core/pcm_native.c static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
substream        3625 sound/core/pcm_native.c 	err = snd_pcm_hw_refine(substream, params);
substream        3629 sound/core/pcm_native.c 	err = fixup_unreferenced_params(substream, params);
substream        3643 sound/core/pcm_native.c static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
substream        3661 sound/core/pcm_native.c 	err = snd_pcm_hw_params(substream, params);
substream        3684 sound/core/pcm_native.c 	struct snd_pcm_substream *substream = pcm_file->substream;
substream        3685 sound/core/pcm_native.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          29 sound/core/pcm_param_trace.h 	TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_hw_param_t type, int index, const struct snd_mask *prev, const struct snd_mask *curr),
substream          30 sound/core/pcm_param_trace.h 	TP_ARGS(substream, type, index, prev, curr),
substream          43 sound/core/pcm_param_trace.h 		__entry->card = substream->pcm->card->number;
substream          44 sound/core/pcm_param_trace.h 		__entry->device = substream->pcm->device;
substream          45 sound/core/pcm_param_trace.h 		__entry->subdevice = substream->number;
substream          46 sound/core/pcm_param_trace.h 		__entry->direction = substream->stream;
substream          49 sound/core/pcm_param_trace.h 		__entry->total = substream->runtime->hw_constraints.rules_num;
substream          69 sound/core/pcm_param_trace.h 	TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_hw_param_t type, int index, const struct snd_interval *prev, const struct snd_interval *curr),
substream          70 sound/core/pcm_param_trace.h 	TP_ARGS(substream, type, index, prev, curr),
substream          93 sound/core/pcm_param_trace.h 		__entry->card = substream->pcm->card->number;
substream          94 sound/core/pcm_param_trace.h 		__entry->device = substream->pcm->device;
substream          95 sound/core/pcm_param_trace.h 		__entry->subdevice = substream->number;
substream          96 sound/core/pcm_param_trace.h 		__entry->direction = substream->stream;
substream          99 sound/core/pcm_param_trace.h 		__entry->total = substream->runtime->hw_constraints.rules_num;
substream          19 sound/core/pcm_timer.c void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)
substream          22 sound/core/pcm_timer.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          43 sound/core/pcm_timer.c 		pcm_err(substream->pcm,
substream          54 sound/core/pcm_timer.c 	struct snd_pcm_substream *substream;
substream          56 sound/core/pcm_timer.c 	substream = timer->private_data;
substream          57 sound/core/pcm_timer.c 	return substream->runtime ? substream->runtime->timer_resolution : 0;
substream          62 sound/core/pcm_timer.c 	struct snd_pcm_substream *substream;
substream          64 sound/core/pcm_timer.c 	substream = snd_timer_chip(timer);
substream          65 sound/core/pcm_timer.c 	substream->timer_running = 1;
substream          71 sound/core/pcm_timer.c 	struct snd_pcm_substream *substream;
substream          73 sound/core/pcm_timer.c 	substream = snd_timer_chip(timer);
substream          74 sound/core/pcm_timer.c 	substream->timer_running = 0;
substream          94 sound/core/pcm_timer.c 	struct snd_pcm_substream *substream = timer->private_data;
substream          95 sound/core/pcm_timer.c 	substream->timer = NULL;
substream          98 sound/core/pcm_timer.c void snd_pcm_timer_init(struct snd_pcm_substream *substream)
substream         105 sound/core/pcm_timer.c 	tid.card = substream->pcm->card->number;
substream         106 sound/core/pcm_timer.c 	tid.device = substream->pcm->device;
substream         107 sound/core/pcm_timer.c 	tid.subdevice = (substream->number << 1) | (substream->stream & 1);
substream         108 sound/core/pcm_timer.c 	if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0)
substream         111 sound/core/pcm_timer.c 			substream->stream == SNDRV_PCM_STREAM_CAPTURE ?
substream         119 sound/core/pcm_timer.c 	timer->private_data = substream;
substream         121 sound/core/pcm_timer.c 	substream->timer = timer;
substream         124 sound/core/pcm_timer.c void snd_pcm_timer_done(struct snd_pcm_substream *substream)
substream         126 sound/core/pcm_timer.c 	if (substream->timer) {
substream         127 sound/core/pcm_timer.c 		snd_device_free(substream->pcm->card, substream->timer);
substream         128 sound/core/pcm_timer.c 		substream->timer = NULL;
substream          12 sound/core/pcm_trace.h 	TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t pos, bool irq),
substream          13 sound/core/pcm_trace.h 	TP_ARGS(substream, pos, irq),
substream          28 sound/core/pcm_trace.h 		__entry->card = (substream)->pcm->card->number;
substream          29 sound/core/pcm_trace.h 		__entry->device = (substream)->pcm->device;
substream          30 sound/core/pcm_trace.h 		__entry->number = (substream)->number;
substream          31 sound/core/pcm_trace.h 		__entry->stream = (substream)->stream;
substream          33 sound/core/pcm_trace.h 		__entry->period_size = (substream)->runtime->period_size;
substream          34 sound/core/pcm_trace.h 		__entry->buffer_size = (substream)->runtime->buffer_size;
substream          35 sound/core/pcm_trace.h 		__entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
substream          36 sound/core/pcm_trace.h 		__entry->hw_ptr_base = (substream)->runtime->hw_ptr_base;
substream          51 sound/core/pcm_trace.h 	TP_PROTO(struct snd_pcm_substream *substream),
substream          52 sound/core/pcm_trace.h 	TP_ARGS(substream),
substream          64 sound/core/pcm_trace.h 		__entry->card = (substream)->pcm->card->number;
substream          65 sound/core/pcm_trace.h 		__entry->device = (substream)->pcm->device;
substream          66 sound/core/pcm_trace.h 		__entry->number = (substream)->number;
substream          67 sound/core/pcm_trace.h 		__entry->stream = (substream)->stream;
substream          68 sound/core/pcm_trace.h 		__entry->period_size = (substream)->runtime->period_size;
substream          69 sound/core/pcm_trace.h 		__entry->buffer_size = (substream)->runtime->buffer_size;
substream          70 sound/core/pcm_trace.h 		__entry->old_hw_ptr = (substream)->runtime->status->hw_ptr;
substream          71 sound/core/pcm_trace.h 		__entry->hw_ptr_base = (substream)->runtime->hw_ptr_base;
substream          84 sound/core/pcm_trace.h 	TP_PROTO(struct snd_pcm_substream *substream, const char *why),
substream          85 sound/core/pcm_trace.h 	TP_ARGS(substream, why),
substream          94 sound/core/pcm_trace.h 		__entry->card = (substream)->pcm->card->number;
substream          95 sound/core/pcm_trace.h 		__entry->device = (substream)->pcm->device;
substream          96 sound/core/pcm_trace.h 		__entry->number = (substream)->number;
substream          97 sound/core/pcm_trace.h 		__entry->stream = (substream)->stream;
substream         107 sound/core/pcm_trace.h 	TP_PROTO(struct snd_pcm_substream *substream, snd_pcm_uframes_t prev, snd_pcm_uframes_t curr),
substream         108 sound/core/pcm_trace.h 	TP_ARGS(substream, prev, curr),
substream         121 sound/core/pcm_trace.h 		__entry->card = (substream)->pcm->card->number;
substream         122 sound/core/pcm_trace.h 		__entry->device = (substream)->pcm->device;
substream         123 sound/core/pcm_trace.h 		__entry->number = (substream)->number;
substream         124 sound/core/pcm_trace.h 		__entry->stream = (substream)->stream;
substream         127 sound/core/pcm_trace.h 		__entry->avail = (substream)->stream ? snd_pcm_capture_avail(substream->runtime) : snd_pcm_playback_avail(substream->runtime);
substream         128 sound/core/pcm_trace.h 		__entry->period_size = (substream)->runtime->period_size;
substream         129 sound/core/pcm_trace.h 		__entry->buffer_size = (substream)->runtime->buffer_size;
substream          75 sound/core/rawmidi.c static inline int snd_rawmidi_ready(struct snd_rawmidi_substream *substream)
substream          77 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream          82 sound/core/rawmidi.c static inline int snd_rawmidi_ready_append(struct snd_rawmidi_substream *substream,
substream          85 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream          88 sound/core/rawmidi.c 	       (!substream->append || runtime->avail >= count);
substream          97 sound/core/rawmidi.c 		runtime->event(runtime->substream);
substream         111 sound/core/rawmidi.c static int snd_rawmidi_runtime_create(struct snd_rawmidi_substream *substream)
substream         118 sound/core/rawmidi.c 	runtime->substream = substream;
substream         125 sound/core/rawmidi.c 	if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
substream         135 sound/core/rawmidi.c 	substream->runtime = runtime;
substream         139 sound/core/rawmidi.c static int snd_rawmidi_runtime_free(struct snd_rawmidi_substream *substream)
substream         141 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         145 sound/core/rawmidi.c 	substream->runtime = NULL;
substream         149 sound/core/rawmidi.c static inline void snd_rawmidi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         151 sound/core/rawmidi.c 	if (!substream->opened)
substream         153 sound/core/rawmidi.c 	substream->ops->trigger(substream, up);
substream         156 sound/core/rawmidi.c static void snd_rawmidi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         158 sound/core/rawmidi.c 	if (!substream->opened)
substream         160 sound/core/rawmidi.c 	substream->ops->trigger(substream, up);
substream         162 sound/core/rawmidi.c 		cancel_work_sync(&substream->runtime->event_work);
substream         183 sound/core/rawmidi.c int snd_rawmidi_drop_output(struct snd_rawmidi_substream *substream)
substream         185 sound/core/rawmidi.c 	snd_rawmidi_output_trigger(substream, 0);
substream         186 sound/core/rawmidi.c 	reset_runtime_ptrs(substream->runtime, false);
substream         191 sound/core/rawmidi.c int snd_rawmidi_drain_output(struct snd_rawmidi_substream *substream)
substream         195 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         205 sound/core/rawmidi.c 		rmidi_warn(substream->rmidi,
substream         213 sound/core/rawmidi.c 		if (substream->ops->drain)
substream         214 sound/core/rawmidi.c 			substream->ops->drain(substream);
substream         217 sound/core/rawmidi.c 		snd_rawmidi_drop_output(substream);
substream         223 sound/core/rawmidi.c int snd_rawmidi_drain_input(struct snd_rawmidi_substream *substream)
substream         225 sound/core/rawmidi.c 	snd_rawmidi_input_trigger(substream, 0);
substream         226 sound/core/rawmidi.c 	reset_runtime_ptrs(substream->runtime, true);
substream         238 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream         250 sound/core/rawmidi.c 	list_for_each_entry(substream, &s->substreams, list) {
substream         251 sound/core/rawmidi.c 		if (substream->opened) {
substream         254 sound/core/rawmidi.c 			    !substream->append)
substream         257 sound/core/rawmidi.c 		if (subdevice < 0 || subdevice == substream->number) {
substream         258 sound/core/rawmidi.c 			*sub_ret = substream;
substream         267 sound/core/rawmidi.c 			  struct snd_rawmidi_substream *substream,
substream         272 sound/core/rawmidi.c 	if (substream->use_count == 0) {
substream         273 sound/core/rawmidi.c 		err = snd_rawmidi_runtime_create(substream);
substream         276 sound/core/rawmidi.c 		err = substream->ops->open(substream);
substream         278 sound/core/rawmidi.c 			snd_rawmidi_runtime_free(substream);
substream         281 sound/core/rawmidi.c 		substream->opened = 1;
substream         282 sound/core/rawmidi.c 		substream->active_sensing = 0;
substream         284 sound/core/rawmidi.c 			substream->append = 1;
substream         285 sound/core/rawmidi.c 		substream->pid = get_pid(task_pid(current));
substream         286 sound/core/rawmidi.c 		rmidi->streams[substream->stream].substream_opened++;
substream         288 sound/core/rawmidi.c 	substream->use_count++;
substream         293 sound/core/rawmidi.c 			    struct snd_rawmidi_substream *substream,
substream         470 sound/core/rawmidi.c 			    struct snd_rawmidi_substream *substream,
substream         473 sound/core/rawmidi.c 	if (--substream->use_count)
substream         477 sound/core/rawmidi.c 		if (substream->stream == SNDRV_RAWMIDI_STREAM_INPUT)
substream         478 sound/core/rawmidi.c 			snd_rawmidi_input_trigger(substream, 0);
substream         480 sound/core/rawmidi.c 			if (substream->active_sensing) {
substream         485 sound/core/rawmidi.c 				snd_rawmidi_kernel_write(substream, &buf, 1);
substream         487 sound/core/rawmidi.c 			if (snd_rawmidi_drain_output(substream) == -ERESTARTSYS)
substream         488 sound/core/rawmidi.c 				snd_rawmidi_output_trigger(substream, 0);
substream         491 sound/core/rawmidi.c 	substream->ops->close(substream);
substream         492 sound/core/rawmidi.c 	if (substream->runtime->private_free)
substream         493 sound/core/rawmidi.c 		substream->runtime->private_free(substream);
substream         494 sound/core/rawmidi.c 	snd_rawmidi_runtime_free(substream);
substream         495 sound/core/rawmidi.c 	substream->opened = 0;
substream         496 sound/core/rawmidi.c 	substream->append = 0;
substream         497 sound/core/rawmidi.c 	put_pid(substream->pid);
substream         498 sound/core/rawmidi.c 	substream->pid = NULL;
substream         499 sound/core/rawmidi.c 	rmidi->streams[substream->stream].substream_opened--;
substream         552 sound/core/rawmidi.c static int snd_rawmidi_info(struct snd_rawmidi_substream *substream,
substream         557 sound/core/rawmidi.c 	if (substream == NULL)
substream         559 sound/core/rawmidi.c 	rmidi = substream->rmidi;
substream         563 sound/core/rawmidi.c 	info->subdevice = substream->number;
substream         564 sound/core/rawmidi.c 	info->stream = substream->stream;
substream         568 sound/core/rawmidi.c 	strcpy(info->subname, substream->name);
substream         569 sound/core/rawmidi.c 	info->subdevices_count = substream->pstr->substream_count;
substream         570 sound/core/rawmidi.c 	info->subdevices_avail = (substream->pstr->substream_count -
substream         571 sound/core/rawmidi.c 				  substream->pstr->substream_opened);
substream         575 sound/core/rawmidi.c static int snd_rawmidi_info_user(struct snd_rawmidi_substream *substream,
substream         581 sound/core/rawmidi.c 	err = snd_rawmidi_info(substream, &info);
substream         594 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream         607 sound/core/rawmidi.c 	list_for_each_entry(substream, &pstr->substreams, list) {
substream         608 sound/core/rawmidi.c 		if ((unsigned int)substream->number == info->subdevice)
substream         609 sound/core/rawmidi.c 			return snd_rawmidi_info(substream, info);
substream         676 sound/core/rawmidi.c int snd_rawmidi_output_params(struct snd_rawmidi_substream *substream,
substream         679 sound/core/rawmidi.c 	if (substream->append && substream->use_count > 1)
substream         681 sound/core/rawmidi.c 	snd_rawmidi_drain_output(substream);
substream         682 sound/core/rawmidi.c 	substream->active_sensing = !params->no_active_sensing;
substream         683 sound/core/rawmidi.c 	return resize_runtime_buffer(substream->runtime, params, false);
substream         687 sound/core/rawmidi.c int snd_rawmidi_input_params(struct snd_rawmidi_substream *substream,
substream         690 sound/core/rawmidi.c 	snd_rawmidi_drain_input(substream);
substream         691 sound/core/rawmidi.c 	return resize_runtime_buffer(substream->runtime, params, true);
substream         695 sound/core/rawmidi.c static int snd_rawmidi_output_status(struct snd_rawmidi_substream *substream,
substream         698 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         708 sound/core/rawmidi.c static int snd_rawmidi_input_status(struct snd_rawmidi_substream *substream,
substream         711 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         892 sound/core/rawmidi.c int snd_rawmidi_receive(struct snd_rawmidi_substream *substream,
substream         897 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         899 sound/core/rawmidi.c 	if (!substream->opened)
substream         902 sound/core/rawmidi.c 		rmidi_dbg(substream->rmidi,
substream         908 sound/core/rawmidi.c 		substream->bytes++;
substream         918 sound/core/rawmidi.c 		substream->bytes += count;
substream         948 sound/core/rawmidi.c 		else if (snd_rawmidi_ready(substream))
substream         956 sound/core/rawmidi.c static long snd_rawmidi_kernel_read1(struct snd_rawmidi_substream *substream,
substream         962 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1001 sound/core/rawmidi.c long snd_rawmidi_kernel_read(struct snd_rawmidi_substream *substream,
substream        1004 sound/core/rawmidi.c 	snd_rawmidi_input_trigger(substream, 1);
substream        1005 sound/core/rawmidi.c 	return snd_rawmidi_kernel_read1(substream, NULL/*userbuf*/, buf, count);
substream        1015 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1019 sound/core/rawmidi.c 	substream = rfile->input;
substream        1020 sound/core/rawmidi.c 	if (substream == NULL)
substream        1022 sound/core/rawmidi.c 	runtime = substream->runtime;
substream        1023 sound/core/rawmidi.c 	snd_rawmidi_input_trigger(substream, 1);
substream        1027 sound/core/rawmidi.c 		while (!snd_rawmidi_ready(substream)) {
substream        1049 sound/core/rawmidi.c 		count1 = snd_rawmidi_kernel_read1(substream,
substream        1068 sound/core/rawmidi.c int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream)
substream        1070 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1075 sound/core/rawmidi.c 		rmidi_dbg(substream->rmidi,
substream        1094 sound/core/rawmidi.c int __snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
substream        1098 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1101 sound/core/rawmidi.c 		rmidi_dbg(substream->rmidi,
substream        1148 sound/core/rawmidi.c int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream,
substream        1151 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1156 sound/core/rawmidi.c 	result = __snd_rawmidi_transmit_peek(substream, buffer, count);
substream        1169 sound/core/rawmidi.c int __snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count)
substream        1171 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1174 sound/core/rawmidi.c 		rmidi_dbg(substream->rmidi,
substream        1182 sound/core/rawmidi.c 	substream->bytes += count;
substream        1184 sound/core/rawmidi.c 		if (runtime->drain || snd_rawmidi_ready(substream))
substream        1202 sound/core/rawmidi.c int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count)
substream        1204 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1209 sound/core/rawmidi.c 	result = __snd_rawmidi_transmit_ack(substream, count);
substream        1225 sound/core/rawmidi.c int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream,
substream        1228 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1233 sound/core/rawmidi.c 	if (!substream->opened)
substream        1236 sound/core/rawmidi.c 		count = __snd_rawmidi_transmit_peek(substream, buffer, count);
substream        1240 sound/core/rawmidi.c 			result = __snd_rawmidi_transmit_ack(substream, count);
substream        1253 sound/core/rawmidi.c int snd_rawmidi_proceed(struct snd_rawmidi_substream *substream)
substream        1255 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1262 sound/core/rawmidi.c 		__snd_rawmidi_transmit_ack(substream, count);
substream        1269 sound/core/rawmidi.c static long snd_rawmidi_kernel_write1(struct snd_rawmidi_substream *substream,
substream        1276 sound/core/rawmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream        1286 sound/core/rawmidi.c 	if (substream->append) {
substream        1327 sound/core/rawmidi.c 		snd_rawmidi_output_trigger(substream, 1);
substream        1331 sound/core/rawmidi.c long snd_rawmidi_kernel_write(struct snd_rawmidi_substream *substream,
substream        1334 sound/core/rawmidi.c 	return snd_rawmidi_kernel_write1(substream, NULL, buf, count);
substream        1345 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1348 sound/core/rawmidi.c 	substream = rfile->output;
substream        1349 sound/core/rawmidi.c 	runtime = substream->runtime;
substream        1351 sound/core/rawmidi.c 	if (substream->append && count > runtime->buffer_size)
substream        1356 sound/core/rawmidi.c 		while (!snd_rawmidi_ready_append(substream, count)) {
substream        1378 sound/core/rawmidi.c 		count1 = snd_rawmidi_kernel_write1(substream, buf, NULL, count);
substream        1453 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1460 sound/core/rawmidi.c 		list_for_each_entry(substream,
substream        1466 sound/core/rawmidi.c 				    substream->number,
substream        1467 sound/core/rawmidi.c 				    (unsigned long) substream->bytes);
substream        1468 sound/core/rawmidi.c 			if (substream->opened) {
substream        1471 sound/core/rawmidi.c 				    pid_vnr(substream->pid));
substream        1472 sound/core/rawmidi.c 				runtime = substream->runtime;
substream        1484 sound/core/rawmidi.c 		list_for_each_entry(substream,
substream        1490 sound/core/rawmidi.c 				    substream->number,
substream        1491 sound/core/rawmidi.c 				    (unsigned long) substream->bytes);
substream        1492 sound/core/rawmidi.c 			if (substream->opened) {
substream        1495 sound/core/rawmidi.c 					    pid_vnr(substream->pid));
substream        1496 sound/core/rawmidi.c 				runtime = substream->runtime;
substream        1531 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1535 sound/core/rawmidi.c 		substream = kzalloc(sizeof(*substream), GFP_KERNEL);
substream        1536 sound/core/rawmidi.c 		if (!substream)
substream        1538 sound/core/rawmidi.c 		substream->stream = direction;
substream        1539 sound/core/rawmidi.c 		substream->number = idx;
substream        1540 sound/core/rawmidi.c 		substream->rmidi = rmidi;
substream        1541 sound/core/rawmidi.c 		substream->pstr = stream;
substream        1542 sound/core/rawmidi.c 		list_add_tail(&substream->list, &stream->substreams);
substream        1628 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1631 sound/core/rawmidi.c 		substream = list_entry(stream->substreams.next, struct snd_rawmidi_substream, list);
substream        1632 sound/core/rawmidi.c 		list_del(&substream->list);
substream        1633 sound/core/rawmidi.c 		kfree(substream);
substream        1812 sound/core/rawmidi.c 	struct snd_rawmidi_substream *substream;
substream        1814 sound/core/rawmidi.c 	list_for_each_entry(substream, &rmidi->streams[stream].substreams, list)
substream        1815 sound/core/rawmidi.c 		substream->ops = ops;
substream          61 sound/core/seq/seq_midi.c static void snd_midi_input_event(struct snd_rawmidi_substream *substream)
substream          69 sound/core/seq/seq_midi.c 	if (substream == NULL)
substream          71 sound/core/seq/seq_midi.c 	runtime = substream->runtime;
substream          77 sound/core/seq/seq_midi.c 		res = snd_rawmidi_kernel_read(substream, buf, sizeof(buf));
substream          96 sound/core/seq/seq_midi.c static int dump_midi(struct snd_rawmidi_substream *substream, const char *buf, int count)
substream         101 sound/core/seq/seq_midi.c 	if (snd_BUG_ON(!substream || !buf))
substream         103 sound/core/seq/seq_midi.c 	runtime = substream->runtime;
substream         109 sound/core/seq/seq_midi.c 	if (snd_rawmidi_kernel_write(substream, buf, count) < count)
substream         119 sound/core/seq/seq_midi.c 	struct snd_rawmidi_substream *substream;
substream         124 sound/core/seq/seq_midi.c 	substream = msynth->output_rfile.output;
substream         125 sound/core/seq/seq_midi.c 	if (substream == NULL)
substream         133 sound/core/seq/seq_midi.c 		snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)dump_midi, substream);
substream         141 sound/core/seq/seq_midi.c 		if (dump_midi(substream, msg, len) < 0)
substream          83 sound/core/seq/seq_virmidi.c 			snd_seq_dump_var_event(ev, (snd_seq_dump_func_t)snd_rawmidi_receive, vmidi->substream);
substream          88 sound/core/seq/seq_virmidi.c 				snd_rawmidi_receive(vmidi->substream, msg, len);
substream         116 sound/core/seq/seq_virmidi.c static void snd_virmidi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         118 sound/core/seq/seq_virmidi.c 	struct snd_virmidi *vmidi = substream->runtime->private_data;
substream         129 sound/core/seq/seq_virmidi.c 	struct snd_rawmidi_substream *substream;
substream         134 sound/core/seq/seq_virmidi.c 	substream = vmidi->substream;
substream         139 sound/core/seq/seq_virmidi.c 		snd_rawmidi_proceed(substream);
substream         144 sound/core/seq/seq_virmidi.c 		if (snd_rawmidi_transmit(substream, &input, 1) != 1)
substream         165 sound/core/seq/seq_virmidi.c static void snd_virmidi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         167 sound/core/seq/seq_virmidi.c 	struct snd_virmidi *vmidi = substream->runtime->private_data;
substream         177 sound/core/seq/seq_virmidi.c static int snd_virmidi_input_open(struct snd_rawmidi_substream *substream)
substream         179 sound/core/seq/seq_virmidi.c 	struct snd_virmidi_dev *rdev = substream->rmidi->private_data;
substream         180 sound/core/seq/seq_virmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         186 sound/core/seq/seq_virmidi.c 	vmidi->substream = substream;
substream         207 sound/core/seq/seq_virmidi.c static int snd_virmidi_output_open(struct snd_rawmidi_substream *substream)
substream         209 sound/core/seq/seq_virmidi.c 	struct snd_virmidi_dev *rdev = substream->rmidi->private_data;
substream         210 sound/core/seq/seq_virmidi.c 	struct snd_rawmidi_runtime *runtime = substream->runtime;
substream         216 sound/core/seq/seq_virmidi.c 	vmidi->substream = substream;
substream         234 sound/core/seq/seq_virmidi.c static int snd_virmidi_input_close(struct snd_rawmidi_substream *substream)
substream         236 sound/core/seq/seq_virmidi.c 	struct snd_virmidi_dev *rdev = substream->rmidi->private_data;
substream         237 sound/core/seq/seq_virmidi.c 	struct snd_virmidi *vmidi = substream->runtime->private_data;
substream         245 sound/core/seq/seq_virmidi.c 	substream->runtime->private_data = NULL;
substream         253 sound/core/seq/seq_virmidi.c static int snd_virmidi_output_close(struct snd_rawmidi_substream *substream)
substream         255 sound/core/seq/seq_virmidi.c 	struct snd_virmidi *vmidi = substream->runtime->private_data;
substream         260 sound/core/seq/seq_virmidi.c 	substream->runtime->private_data = NULL;
substream          92 sound/drivers/aloop.c 	struct snd_pcm_substream *substream;
substream         138 sound/drivers/aloop.c 	int device = dpcm->substream->pstr->pcm->device;
substream         140 sound/drivers/aloop.c 	if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         142 sound/drivers/aloop.c 	return &dpcm->loopback->setup[dpcm->substream->number][device];
substream         203 sound/drivers/aloop.c 							substream->runtime;
substream         205 sound/drivers/aloop.c 							substream->runtime;
substream         215 sound/drivers/aloop.c 					substream, SNDRV_PCM_STATE_DRAINING);
substream         218 sound/drivers/aloop.c 							substream->runtime;
substream         247 sound/drivers/aloop.c static int loopback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         249 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         252 sound/drivers/aloop.c 	int err, stream = 1 << substream->stream;
substream         256 sound/drivers/aloop.c 		err = loopback_check_format(cable, substream->stream);
substream         267 sound/drivers/aloop.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         276 sound/drivers/aloop.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         285 sound/drivers/aloop.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         295 sound/drivers/aloop.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         304 sound/drivers/aloop.c static void params_change(struct snd_pcm_substream *substream)
substream         306 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         317 sound/drivers/aloop.c static int loopback_prepare(struct snd_pcm_substream *substream)
substream         319 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         334 sound/drivers/aloop.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         348 sound/drivers/aloop.c 	if (!(cable->valid & ~(1 << substream->stream)) ||
substream         350 sound/drivers/aloop.c 	     substream->stream == SNDRV_PCM_STREAM_PLAYBACK))
substream         351 sound/drivers/aloop.c 		params_change(substream);
substream         352 sound/drivers/aloop.c 	cable->valid |= 1 << substream->stream;
substream         360 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = dpcm->substream->runtime;
substream         388 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = play->substream->runtime;
substream         390 sound/drivers/aloop.c 	char *dst = capt->substream->runtime->dma_area;
substream         519 sound/drivers/aloop.c 	if (loopback_pos_update(dpcm->cable) & (1 << dpcm->substream->stream)) {
substream         525 sound/drivers/aloop.c 			snd_pcm_period_elapsed(dpcm->substream);
substream         532 sound/drivers/aloop.c static snd_pcm_uframes_t loopback_pointer(struct snd_pcm_substream *substream)
substream         534 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         576 sound/drivers/aloop.c static int loopback_hw_params(struct snd_pcm_substream *substream,
substream         579 sound/drivers/aloop.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         583 sound/drivers/aloop.c static int loopback_hw_free(struct snd_pcm_substream *substream)
substream         585 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         590 sound/drivers/aloop.c 	cable->valid &= ~(1 << substream->stream);
substream         592 sound/drivers/aloop.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         595 sound/drivers/aloop.c static unsigned int get_cable_index(struct snd_pcm_substream *substream)
substream         597 sound/drivers/aloop.c 	if (!substream->pcm->device)
substream         598 sound/drivers/aloop.c 		return substream->stream;
substream         600 sound/drivers/aloop.c 		return !substream->stream;
substream         650 sound/drivers/aloop.c static void free_cable(struct snd_pcm_substream *substream)
substream         652 sound/drivers/aloop.c 	struct loopback *loopback = substream->private_data;
substream         653 sound/drivers/aloop.c 	int dev = get_cable_index(substream);
substream         656 sound/drivers/aloop.c 	cable = loopback->cables[substream->number][dev];
substream         659 sound/drivers/aloop.c 	if (cable->streams[!substream->stream]) {
substream         662 sound/drivers/aloop.c 		cable->streams[substream->stream] = NULL;
substream         666 sound/drivers/aloop.c 		loopback->cables[substream->number][dev] = NULL;
substream         671 sound/drivers/aloop.c static int loopback_open(struct snd_pcm_substream *substream)
substream         673 sound/drivers/aloop.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         674 sound/drivers/aloop.c 	struct loopback *loopback = substream->private_data;
substream         678 sound/drivers/aloop.c 	int dev = get_cable_index(substream);
substream         687 sound/drivers/aloop.c 	dpcm->substream = substream;
substream         690 sound/drivers/aloop.c 	cable = loopback->cables[substream->number][dev];
substream         699 sound/drivers/aloop.c 		loopback->cables[substream->number][dev] = cable;
substream         735 sound/drivers/aloop.c 	cable->streams[substream->stream] = dpcm;
substream         740 sound/drivers/aloop.c 		free_cable(substream);
substream         747 sound/drivers/aloop.c static int loopback_close(struct snd_pcm_substream *substream)
substream         749 sound/drivers/aloop.c 	struct loopback *loopback = substream->private_data;
substream         750 sound/drivers/aloop.c 	struct loopback_pcm *dpcm = substream->runtime->private_data;
substream         754 sound/drivers/aloop.c 	free_cable(substream);
substream          98 sound/drivers/dummy.c #define get_dummy_ops(substream) \
substream          99 sound/drivers/dummy.c 	(*(const struct dummy_timer_ops **)(substream)->runtime->private_data)
substream         233 sound/drivers/dummy.c 	struct snd_pcm_substream *substream;
substream         261 sound/drivers/dummy.c static int dummy_systimer_start(struct snd_pcm_substream *substream)
substream         263 sound/drivers/dummy.c 	struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
substream         271 sound/drivers/dummy.c static int dummy_systimer_stop(struct snd_pcm_substream *substream)
substream         273 sound/drivers/dummy.c 	struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
substream         280 sound/drivers/dummy.c static int dummy_systimer_prepare(struct snd_pcm_substream *substream)
substream         282 sound/drivers/dummy.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         308 sound/drivers/dummy.c 		snd_pcm_period_elapsed(dpcm->substream);
substream         312 sound/drivers/dummy.c dummy_systimer_pointer(struct snd_pcm_substream *substream)
substream         314 sound/drivers/dummy.c 	struct dummy_systimer_pcm *dpcm = substream->runtime->private_data;
substream         324 sound/drivers/dummy.c static int dummy_systimer_create(struct snd_pcm_substream *substream)
substream         331 sound/drivers/dummy.c 	substream->runtime->private_data = dpcm;
substream         334 sound/drivers/dummy.c 	dpcm->substream = substream;
substream         338 sound/drivers/dummy.c static void dummy_systimer_free(struct snd_pcm_substream *substream)
substream         340 sound/drivers/dummy.c 	kfree(substream->runtime->private_data);
substream         364 sound/drivers/dummy.c 	struct snd_pcm_substream *substream;
substream         378 sound/drivers/dummy.c 	snd_pcm_period_elapsed(dpcm->substream);
substream         386 sound/drivers/dummy.c static int dummy_hrtimer_start(struct snd_pcm_substream *substream)
substream         388 sound/drivers/dummy.c 	struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
substream         396 sound/drivers/dummy.c static int dummy_hrtimer_stop(struct snd_pcm_substream *substream)
substream         398 sound/drivers/dummy.c 	struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
substream         412 sound/drivers/dummy.c dummy_hrtimer_pointer(struct snd_pcm_substream *substream)
substream         414 sound/drivers/dummy.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         426 sound/drivers/dummy.c static int dummy_hrtimer_prepare(struct snd_pcm_substream *substream)
substream         428 sound/drivers/dummy.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         445 sound/drivers/dummy.c static int dummy_hrtimer_create(struct snd_pcm_substream *substream)
substream         452 sound/drivers/dummy.c 	substream->runtime->private_data = dpcm;
substream         455 sound/drivers/dummy.c 	dpcm->substream = substream;
substream         460 sound/drivers/dummy.c static void dummy_hrtimer_free(struct snd_pcm_substream *substream)
substream         462 sound/drivers/dummy.c 	struct dummy_hrtimer_pcm *dpcm = substream->runtime->private_data;
substream         482 sound/drivers/dummy.c static int dummy_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         487 sound/drivers/dummy.c 		return get_dummy_ops(substream)->start(substream);
substream         490 sound/drivers/dummy.c 		return get_dummy_ops(substream)->stop(substream);
substream         495 sound/drivers/dummy.c static int dummy_pcm_prepare(struct snd_pcm_substream *substream)
substream         497 sound/drivers/dummy.c 	return get_dummy_ops(substream)->prepare(substream);
substream         500 sound/drivers/dummy.c static snd_pcm_uframes_t dummy_pcm_pointer(struct snd_pcm_substream *substream)
substream         502 sound/drivers/dummy.c 	return get_dummy_ops(substream)->pointer(substream);
substream         524 sound/drivers/dummy.c static int dummy_pcm_hw_params(struct snd_pcm_substream *substream,
substream         529 sound/drivers/dummy.c 		substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
substream         532 sound/drivers/dummy.c 	return snd_pcm_lib_malloc_pages(substream,
substream         536 sound/drivers/dummy.c static int dummy_pcm_hw_free(struct snd_pcm_substream *substream)
substream         540 sound/drivers/dummy.c 	return snd_pcm_lib_free_pages(substream);
substream         543 sound/drivers/dummy.c static int dummy_pcm_open(struct snd_pcm_substream *substream)
substream         545 sound/drivers/dummy.c 	struct snd_dummy *dummy = snd_pcm_substream_chip(substream);
substream         547 sound/drivers/dummy.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         557 sound/drivers/dummy.c 	err = ops->create(substream);
substream         560 sound/drivers/dummy.c 	get_dummy_ops(substream) = ops;
substream         563 sound/drivers/dummy.c 	if (substream->pcm->device & 1) {
substream         567 sound/drivers/dummy.c 	if (substream->pcm->device & 2)
substream         574 sound/drivers/dummy.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         576 sound/drivers/dummy.c 			err = model->playback_constraints(substream->runtime);
substream         579 sound/drivers/dummy.c 			err = model->capture_constraints(substream->runtime);
substream         582 sound/drivers/dummy.c 		get_dummy_ops(substream)->free(substream);
substream         588 sound/drivers/dummy.c static int dummy_pcm_close(struct snd_pcm_substream *substream)
substream         590 sound/drivers/dummy.c 	get_dummy_ops(substream)->free(substream);
substream         628 sound/drivers/dummy.c static int dummy_pcm_copy(struct snd_pcm_substream *substream,
substream         635 sound/drivers/dummy.c static int dummy_pcm_copy_kernel(struct snd_pcm_substream *substream,
substream         642 sound/drivers/dummy.c static int dummy_pcm_silence(struct snd_pcm_substream *substream,
substream         649 sound/drivers/dummy.c static struct page *dummy_pcm_page(struct snd_pcm_substream *substream,
substream         652 sound/drivers/dummy.c 	return virt_to_page(dummy_page[substream->stream]); /* the same page */
substream         401 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_playback_ind2_zero(struct snd_pcm_substream *substream,
substream         408 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         423 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_playback_ind2_copy(struct snd_pcm_substream *substream,
substream         432 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         433 sound/drivers/ml403-ac97cr.c 	src = (u16 *)(substream->runtime->dma_area + rec->sw_data);
substream         453 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_capture_ind2_null(struct snd_pcm_substream *substream,
substream         460 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         481 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_capture_ind2_copy(struct snd_pcm_substream *substream,
substream         489 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         490 sound/drivers/ml403-ac97cr.c 	dst = (u16 *)(substream->runtime->dma_area + rec->sw_data);
substream         510 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_pcm_pointer(struct snd_pcm_substream *substream)
substream         515 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         517 sound/drivers/ml403-ac97cr.c 	if (substream == ml403_ac97cr->playback_substream)
substream         519 sound/drivers/ml403-ac97cr.c 	if (substream == ml403_ac97cr->capture_substream)
substream         523 sound/drivers/ml403-ac97cr.c 		return snd_pcm_indirect2_pointer(substream, ind2_rec);
substream         528 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_pcm_playback_trigger(struct snd_pcm_substream *substream,
substream         534 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         552 sound/drivers/ml403-ac97cr.c 		snd_pcm_indirect2_stat(substream, &ml403_ac97cr->ind_rec);
substream         567 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_pcm_capture_trigger(struct snd_pcm_substream *substream,
substream         573 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         591 sound/drivers/ml403-ac97cr.c 		snd_pcm_indirect2_stat(substream,
substream         607 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         612 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         613 sound/drivers/ml403-ac97cr.c 	runtime = substream->runtime;
substream         617 sound/drivers/ml403-ac97cr.c 	       snd_pcm_lib_period_bytes(substream), CR_FIFO_SIZE / 2);
substream         629 sound/drivers/ml403-ac97cr.c 		snd_pcm_lib_buffer_bytes(substream);
substream         632 sound/drivers/ml403-ac97cr.c 		snd_pcm_lib_period_bytes(substream) / (CR_FIFO_SIZE / 2);
substream         641 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         646 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         647 sound/drivers/ml403-ac97cr.c 	runtime = substream->runtime;
substream         651 sound/drivers/ml403-ac97cr.c 	       snd_pcm_lib_period_bytes(substream), CR_FIFO_SIZE / 2);
substream         663 sound/drivers/ml403-ac97cr.c 		snd_pcm_lib_buffer_bytes(substream);
substream         665 sound/drivers/ml403-ac97cr.c 		snd_pcm_lib_period_bytes(substream) / (CR_FIFO_SIZE / 2);
substream         673 sound/drivers/ml403-ac97cr.c static int snd_ml403_ac97cr_hw_free(struct snd_pcm_substream *substream)
substream         676 sound/drivers/ml403-ac97cr.c 	return snd_pcm_lib_free_pages(substream);
substream         680 sound/drivers/ml403-ac97cr.c snd_ml403_ac97cr_hw_params(struct snd_pcm_substream *substream,
substream         686 sound/drivers/ml403-ac97cr.c 	return snd_pcm_lib_malloc_pages(substream,
substream         690 sound/drivers/ml403-ac97cr.c static int snd_ml403_ac97cr_playback_open(struct snd_pcm_substream *substream)
substream         695 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         696 sound/drivers/ml403-ac97cr.c 	runtime = substream->runtime;
substream         699 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr->playback_substream = substream;
substream         708 sound/drivers/ml403-ac97cr.c static int snd_ml403_ac97cr_capture_open(struct snd_pcm_substream *substream)
substream         713 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         714 sound/drivers/ml403-ac97cr.c 	runtime = substream->runtime;
substream         717 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr->capture_substream = substream;
substream         726 sound/drivers/ml403-ac97cr.c static int snd_ml403_ac97cr_playback_close(struct snd_pcm_substream *substream)
substream         730 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         737 sound/drivers/ml403-ac97cr.c static int snd_ml403_ac97cr_capture_close(struct snd_pcm_substream *substream)
substream         741 sound/drivers/ml403-ac97cr.c 	ml403_ac97cr = snd_pcm_substream_chip(substream);
substream         268 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_uart_input_open(struct snd_rawmidi_substream *substream)
substream         273 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         280 sound/drivers/mpu401/mpu401_uart.c 	mpu->substream_input = substream;
substream         290 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_uart_output_open(struct snd_rawmidi_substream *substream)
substream         295 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         302 sound/drivers/mpu401/mpu401_uart.c 	mpu->substream_output = substream;
substream         312 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_uart_input_close(struct snd_rawmidi_substream *substream)
substream         317 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         329 sound/drivers/mpu401/mpu401_uart.c static int snd_mpu401_uart_output_close(struct snd_rawmidi_substream *substream)
substream         334 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         350 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         356 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         437 sound/drivers/mpu401/mpu401_uart.c snd_mpu401_uart_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         442 sound/drivers/mpu401/mpu401_uart.c 	mpu = substream->rmidi->private_data;
substream         273 sound/drivers/mtpav.c 					struct snd_rawmidi_substream *substream)
substream         279 sound/drivers/mtpav.c 	if (snd_rawmidi_transmit(substream, &outbyte, 1) != 1)
substream         304 sound/drivers/mtpav.c 	} while (snd_rawmidi_transmit(substream, &outbyte, 1) == 1);
substream         307 sound/drivers/mtpav.c static void snd_mtpav_output_write(struct snd_rawmidi_substream *substream)
substream         309 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         310 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         314 sound/drivers/mtpav.c 	snd_mtpav_output_port_write(mtp_card, portp, substream);
substream         337 sound/drivers/mtpav.c static int snd_mtpav_input_open(struct snd_rawmidi_substream *substream)
substream         339 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         340 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         345 sound/drivers/mtpav.c 	portp->input = substream;
substream         355 sound/drivers/mtpav.c static int snd_mtpav_input_close(struct snd_rawmidi_substream *substream)
substream         357 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         358 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         373 sound/drivers/mtpav.c static void snd_mtpav_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         375 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         376 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         426 sound/drivers/mtpav.c static int snd_mtpav_output_open(struct snd_rawmidi_substream *substream)
substream         428 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         429 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         434 sound/drivers/mtpav.c 	portp->output = substream;
substream         442 sound/drivers/mtpav.c static int snd_mtpav_output_close(struct snd_rawmidi_substream *substream)
substream         444 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         445 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         458 sound/drivers/mtpav.c static void snd_mtpav_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         460 sound/drivers/mtpav.c 	struct mtpav *mtp_card = substream->rmidi->private_data;
substream         461 sound/drivers/mtpav.c 	struct mtpav_port *portp = &mtp_card->ports[substream->number];
substream         479 sound/drivers/mtpav.c 		snd_mtpav_output_write(substream);
substream         605 sound/drivers/mtpav.c 			       struct snd_rawmidi_substream *substream)
substream         607 sound/drivers/mtpav.c 	if (substream->number >= 0 && substream->number < chip->num_ports)
substream         608 sound/drivers/mtpav.c 		sprintf(substream->name, "MTP direct %d", (substream->number % chip->num_ports) + 1);
substream         609 sound/drivers/mtpav.c 	else if (substream->number >= 8 && substream->number < chip->num_ports * 2)
substream         610 sound/drivers/mtpav.c 		sprintf(substream->name, "MTP remote %d", (substream->number % chip->num_ports) + 1);
substream         611 sound/drivers/mtpav.c 	else if (substream->number == chip->num_ports * 2)
substream         612 sound/drivers/mtpav.c 		strcpy(substream->name, "MTP computer");
substream         613 sound/drivers/mtpav.c 	else if (substream->number == chip->num_ports * 2 + 1)
substream         614 sound/drivers/mtpav.c 		strcpy(substream->name, "MTP ADAT");
substream         616 sound/drivers/mtpav.c 		strcpy(substream->name, "MTP broadcast");
substream         623 sound/drivers/mtpav.c 	struct snd_rawmidi_substream *substream;
substream         641 sound/drivers/mtpav.c 		substream = list_entry(list, struct snd_rawmidi_substream, list);
substream         642 sound/drivers/mtpav.c 		snd_mtpav_set_name(mcard, substream);
substream         643 sound/drivers/mtpav.c 		substream->ops = &snd_mtpav_input;
substream         646 sound/drivers/mtpav.c 		substream = list_entry(list, struct snd_rawmidi_substream, list);
substream         647 sound/drivers/mtpav.c 		snd_mtpav_set_name(mcard, substream);
substream         648 sound/drivers/mtpav.c 		substream->ops = &snd_mtpav_output;
substream         649 sound/drivers/mtpav.c 		mcard->ports[substream->number].hwport = translate_subdevice_to_hwport(mcard, substream->number);
substream         670 sound/drivers/mts64.c static int snd_mts64_rawmidi_open(struct snd_rawmidi_substream *substream)
substream         672 sound/drivers/mts64.c 	struct mts64 *mts = substream->rmidi->private_data;
substream         687 sound/drivers/mts64.c static int snd_mts64_rawmidi_close(struct snd_rawmidi_substream *substream)
substream         689 sound/drivers/mts64.c 	struct mts64 *mts = substream->rmidi->private_data;
substream         708 sound/drivers/mts64.c static void snd_mts64_rawmidi_output_trigger(struct snd_rawmidi_substream *substream,
substream         711 sound/drivers/mts64.c 	struct mts64 *mts = substream->rmidi->private_data;
substream         716 sound/drivers/mts64.c 	while (snd_rawmidi_transmit_peek(substream, &data, 1) == 1) {
substream         717 sound/drivers/mts64.c 		mts64_write_midi(mts, data, substream->number+1);
substream         718 sound/drivers/mts64.c 		snd_rawmidi_transmit_ack(substream, 1);
substream         723 sound/drivers/mts64.c static void snd_mts64_rawmidi_input_trigger(struct snd_rawmidi_substream *substream,
substream         726 sound/drivers/mts64.c 	struct mts64 *mts = substream->rmidi->private_data;
substream         731 sound/drivers/mts64.c 		mts->mode[substream->number] |= MTS64_MODE_INPUT_TRIGGERED;
substream         733 sound/drivers/mts64.c  		mts->mode[substream->number] &= ~MTS64_MODE_INPUT_TRIGGERED;
substream         755 sound/drivers/mts64.c 	struct snd_rawmidi_substream *substream;
substream         784 sound/drivers/mts64.c 		substream = list_entry(list, struct snd_rawmidi_substream, list);
substream         785 sound/drivers/mts64.c 		sprintf(substream->name,
substream         786 sound/drivers/mts64.c 			"Miditerminal %d", substream->number+1);
substream         791 sound/drivers/mts64.c 		substream = list_entry(list, struct snd_rawmidi_substream, list);
substream         792 sound/drivers/mts64.c 		mts->midi_input_substream[substream->number] = substream;
substream         793 sound/drivers/mts64.c 		switch(substream->number) {
substream         795 sound/drivers/mts64.c 			strcpy(substream->name, "Miditerminal SMPTE");
substream         798 sound/drivers/mts64.c 			sprintf(substream->name,
substream         799 sound/drivers/mts64.c 				"Miditerminal %d", substream->number+1);
substream         817 sound/drivers/mts64.c 	struct snd_rawmidi_substream *substream;
substream         829 sound/drivers/mts64.c 		substream = mts->midi_input_substream[mts->current_midi_input_port];
substream         830 sound/drivers/mts64.c 		if (mts->mode[substream->number] & MTS64_MODE_INPUT_TRIGGERED)
substream         831 sound/drivers/mts64.c 			snd_rawmidi_receive(substream, &data, 1);
substream          27 sound/drivers/pcm-indirect2.c void snd_pcm_indirect2_stat(struct snd_pcm_substream *substream,
substream          30 sound/drivers/pcm-indirect2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         123 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_increase_min_periods(struct snd_pcm_substream *substream,
substream         141 sound/drivers/pcm-indirect2.c 				    snd_pcm_lib_period_bytes(substream)) {
substream         146 sound/drivers/pcm-indirect2.c 					      (substream))) *
substream         148 sound/drivers/pcm-indirect2.c 					    (substream);
substream         219 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_pointer(struct snd_pcm_substream *substream,
substream         225 sound/drivers/pcm-indirect2.c 	return bytes_to_frames(substream->runtime, rec->sw_io);
substream         232 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_playback_transfer(struct snd_pcm_substream *substream,
substream         237 sound/drivers/pcm-indirect2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         282 sound/drivers/pcm-indirect2.c 		bytes = zero(substream, rec);
substream         294 sound/drivers/pcm-indirect2.c 		snd_pcm_indirect2_increase_min_periods(substream, rec, 1, 0,
substream         322 sound/drivers/pcm-indirect2.c 		bytes = copy(substream, rec, bytes);
substream         345 sound/drivers/pcm-indirect2.c 		snd_pcm_indirect2_increase_min_periods(substream, rec, 1, 1,
substream         361 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_playback_interrupt(struct snd_pcm_substream *substream,
substream         375 sound/drivers/pcm-indirect2.c 	snd_pcm_indirect2_playback_transfer(substream, rec, copy, zero);
substream         392 sound/drivers/pcm-indirect2.c 		snd_pcm_period_elapsed(substream);
substream         400 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_capture_transfer(struct snd_pcm_substream *substream,
substream         405 sound/drivers/pcm-indirect2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         443 sound/drivers/pcm-indirect2.c 		bytes = null(substream, rec);
substream         455 sound/drivers/pcm-indirect2.c 		snd_pcm_indirect2_increase_min_periods(substream, rec, 0, 0,
substream         490 sound/drivers/pcm-indirect2.c 		bytes = copy(substream, rec, bytes);
substream         509 sound/drivers/pcm-indirect2.c 		snd_pcm_indirect2_increase_min_periods(substream, rec, 0, 1,
substream         524 sound/drivers/pcm-indirect2.c snd_pcm_indirect2_capture_interrupt(struct snd_pcm_substream *substream,
substream         540 sound/drivers/pcm-indirect2.c 	snd_pcm_indirect2_capture_transfer(substream, rec, copy, null);
substream         558 sound/drivers/pcm-indirect2.c 		snd_pcm_period_elapsed(substream);
substream         102 sound/drivers/pcm-indirect2.h typedef size_t (*snd_pcm_indirect2_copy_t) (struct snd_pcm_substream *substream,
substream         105 sound/drivers/pcm-indirect2.h typedef size_t (*snd_pcm_indirect2_zero_t) (struct snd_pcm_substream *substream,
substream         109 sound/drivers/pcm-indirect2.h void snd_pcm_indirect2_stat(struct snd_pcm_substream *substream,
substream         114 sound/drivers/pcm-indirect2.h snd_pcm_indirect2_pointer(struct snd_pcm_substream *substream,
substream         117 sound/drivers/pcm-indirect2.h snd_pcm_indirect2_playback_interrupt(struct snd_pcm_substream *substream,
substream         122 sound/drivers/pcm-indirect2.h snd_pcm_indirect2_capture_interrupt(struct snd_pcm_substream *substream,
substream          32 sound/drivers/pcsp/pcsp_lib.c 		struct snd_pcm_substream *substream;
substream          33 sound/drivers/pcsp/pcsp_lib.c 		substream = pcsp_chip.playback_substream;
substream          34 sound/drivers/pcsp/pcsp_lib.c 		if (substream)
substream          35 sound/drivers/pcsp/pcsp_lib.c 			snd_pcm_period_elapsed(substream);
substream          48 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcm_substream *substream;
substream          58 sound/drivers/pcsp/pcsp_lib.c 	substream = chip->playback_substream;
substream          59 sound/drivers/pcsp/pcsp_lib.c 	if (!substream)
substream          62 sound/drivers/pcsp/pcsp_lib.c 	runtime = substream->runtime;
substream          90 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcm_substream *substream;
substream          96 sound/drivers/pcsp/pcsp_lib.c 	substream = chip->playback_substream;
substream          97 sound/drivers/pcsp/pcsp_lib.c 	if (!substream)
substream         100 sound/drivers/pcsp/pcsp_lib.c 	period_bytes = snd_pcm_lib_period_bytes(substream);
substream         101 sound/drivers/pcsp/pcsp_lib.c 	buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
substream         202 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_playback_close(struct snd_pcm_substream *substream)
substream         204 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         213 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_playback_hw_params(struct snd_pcm_substream *substream,
substream         216 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         219 sound/drivers/pcsp/pcsp_lib.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         226 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_playback_hw_free(struct snd_pcm_substream *substream)
substream         228 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         233 sound/drivers/pcsp/pcsp_lib.c 	return snd_pcm_lib_free_pages(substream);
substream         236 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_playback_prepare(struct snd_pcm_substream *substream)
substream         238 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         243 sound/drivers/pcsp/pcsp_lib.c 		snd_pcm_format_physical_width(substream->runtime->format) >> 3;
substream         244 sound/drivers/pcsp/pcsp_lib.c 	chip->is_signed = snd_pcm_format_signed(substream->runtime->format);
substream         248 sound/drivers/pcsp/pcsp_lib.c 			snd_pcm_lib_buffer_bytes(substream),
substream         249 sound/drivers/pcsp/pcsp_lib.c 			snd_pcm_lib_period_bytes(substream),
substream         250 sound/drivers/pcsp/pcsp_lib.c 			snd_pcm_lib_buffer_bytes(substream) /
substream         251 sound/drivers/pcsp/pcsp_lib.c 			snd_pcm_lib_period_bytes(substream),
substream         252 sound/drivers/pcsp/pcsp_lib.c 			substream->runtime->periods,
substream         258 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_trigger(struct snd_pcm_substream *substream, int cmd)
substream         260 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         279 sound/drivers/pcsp/pcsp_lib.c 						   *substream)
substream         281 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         286 sound/drivers/pcsp/pcsp_lib.c 	return bytes_to_frames(substream->runtime, pos);
substream         311 sound/drivers/pcsp/pcsp_lib.c static int snd_pcsp_playback_open(struct snd_pcm_substream *substream)
substream         313 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcsp *chip = snd_pcm_substream_chip(substream);
substream         314 sound/drivers/pcsp/pcsp_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         323 sound/drivers/pcsp/pcsp_lib.c 	chip->playback_substream = substream;
substream         497 sound/drivers/portman2x4.c static int snd_portman_midi_open(struct snd_rawmidi_substream *substream)
substream         502 sound/drivers/portman2x4.c static int snd_portman_midi_close(struct snd_rawmidi_substream *substream)
substream         507 sound/drivers/portman2x4.c static void snd_portman_midi_input_trigger(struct snd_rawmidi_substream *substream,
substream         510 sound/drivers/portman2x4.c 	struct portman *pm = substream->rmidi->private_data;
substream         515 sound/drivers/portman2x4.c 		pm->mode[substream->number] |= PORTMAN2X4_MODE_INPUT_TRIGGERED;
substream         517 sound/drivers/portman2x4.c 		pm->mode[substream->number] &= ~PORTMAN2X4_MODE_INPUT_TRIGGERED;
substream         521 sound/drivers/portman2x4.c static void snd_portman_midi_output_trigger(struct snd_rawmidi_substream *substream,
substream         524 sound/drivers/portman2x4.c 	struct portman *pm = substream->rmidi->private_data;
substream         530 sound/drivers/portman2x4.c 		while ((snd_rawmidi_transmit(substream, &byte, 1) == 1))
substream         531 sound/drivers/portman2x4.c 			portman_write_midi(pm, substream->number, byte);
substream         553 sound/drivers/portman2x4.c 	struct snd_rawmidi_substream *substream;
substream         579 sound/drivers/portman2x4.c 	list_for_each_entry(substream,
substream         582 sound/drivers/portman2x4.c 		sprintf(substream->name,
substream         583 sound/drivers/portman2x4.c 			"Portman2x4 %d", substream->number+1);
substream         586 sound/drivers/portman2x4.c 	list_for_each_entry(substream,
substream         589 sound/drivers/portman2x4.c 		pm->midi_input[substream->number] = substream;
substream         590 sound/drivers/portman2x4.c 		sprintf(substream->name,
substream         591 sound/drivers/portman2x4.c 			"Portman2x4 %d", substream->number+1);
substream         197 sound/drivers/serial-u16550.c 	int substream;
substream         200 sound/drivers/serial-u16550.c 	substream = uart->prev_in;
substream         215 sound/drivers/serial-u16550.c 					substream = c - 1;
substream         221 sound/drivers/serial-u16550.c 				   && uart->midi_input[substream])
substream         222 sound/drivers/serial-u16550.c 				snd_rawmidi_receive(uart->midi_input[substream],
substream         225 sound/drivers/serial-u16550.c 			   uart->midi_input[substream])
substream         226 sound/drivers/serial-u16550.c 			snd_rawmidi_receive(uart->midi_input[substream], &c, 1);
substream         235 sound/drivers/serial-u16550.c 	uart->prev_in = substream;
substream         502 sound/drivers/serial-u16550.c static int snd_uart16550_input_open(struct snd_rawmidi_substream *substream)
substream         505 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         511 sound/drivers/serial-u16550.c 	uart->midi_input[substream->number] = substream;
substream         516 sound/drivers/serial-u16550.c static int snd_uart16550_input_close(struct snd_rawmidi_substream *substream)
substream         519 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         523 sound/drivers/serial-u16550.c 	uart->midi_input[substream->number] = NULL;
substream         530 sound/drivers/serial-u16550.c static void snd_uart16550_input_trigger(struct snd_rawmidi_substream *substream,
substream         534 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         544 sound/drivers/serial-u16550.c static int snd_uart16550_output_open(struct snd_rawmidi_substream *substream)
substream         547 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         553 sound/drivers/serial-u16550.c 	uart->midi_output[substream->number] = substream;
substream         558 sound/drivers/serial-u16550.c static int snd_uart16550_output_close(struct snd_rawmidi_substream *substream)
substream         561 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         565 sound/drivers/serial-u16550.c 	uart->midi_output[substream->number] = NULL;
substream         599 sound/drivers/serial-u16550.c 				     struct snd_rawmidi_substream *substream,
substream         635 sound/drivers/serial-u16550.c static void snd_uart16550_output_write(struct snd_rawmidi_substream *substream)
substream         639 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         659 sound/drivers/serial-u16550.c 			if (snd_rawmidi_transmit(substream, &midi_byte, 1) != 1)
substream         663 sound/drivers/serial-u16550.c 			addr_byte = (1 << (substream->number + 4)) | 0x08;
substream         666 sound/drivers/serial-u16550.c 			addr_byte = (substream->number << 4) | 0x08;
substream         671 sound/drivers/serial-u16550.c 			snd_uart16550_output_byte(uart, substream, addr_byte);
substream         673 sound/drivers/serial-u16550.c 			snd_uart16550_output_byte(uart, substream, midi_byte);
substream         677 sound/drivers/serial-u16550.c 		while (snd_rawmidi_transmit_peek(substream, &midi_byte, 1) == 1) {
substream         683 sound/drivers/serial-u16550.c 			    (uart->prev_out != substream->number ||
substream         693 sound/drivers/serial-u16550.c 					uart->prev_out = substream->number;
substream         695 sound/drivers/serial-u16550.c 					snd_uart16550_output_byte(uart, substream,
substream         698 sound/drivers/serial-u16550.c 					snd_uart16550_output_byte(uart, substream,
substream         704 sound/drivers/serial-u16550.c 						snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]);
substream         711 sound/drivers/serial-u16550.c 			if (!snd_uart16550_output_byte(uart, substream, midi_byte) &&
substream         719 sound/drivers/serial-u16550.c 			snd_rawmidi_transmit_ack( substream, 1 );
substream         726 sound/drivers/serial-u16550.c static void snd_uart16550_output_trigger(struct snd_rawmidi_substream *substream,
substream         730 sound/drivers/serial-u16550.c 	struct snd_uart16550 *uart = substream->rmidi->private_data;
substream         739 sound/drivers/serial-u16550.c 		snd_uart16550_output_write(substream);
substream         851 sound/drivers/serial-u16550.c 	struct snd_rawmidi_substream *substream;
substream         853 sound/drivers/serial-u16550.c 	list_for_each_entry(substream, &stream->substreams, list) {
substream         854 sound/drivers/serial-u16550.c 		sprintf(substream->name, "Serial MIDI %d", substream->number + 1);
substream         538 sound/drivers/vx/vx_pcm.c 	pipe->substream = subs;
substream         919 sound/drivers/vx/vx_pcm.c 	pipe->substream = subs;
substream        1137 sound/drivers/vx/vx_pcm.c 			if (pipe && pipe->substream) {
substream        1138 sound/drivers/vx/vx_pcm.c 				vx_pcm_playback_update(chip, pipe->substream, pipe);
substream        1139 sound/drivers/vx/vx_pcm.c 				vx_pcm_playback_transfer(chip, pipe->substream, pipe, buf);
substream        1147 sound/drivers/vx/vx_pcm.c 		if (pipe && pipe->substream)
substream        1148 sound/drivers/vx/vx_pcm.c 			vx_pcm_capture_update(chip, pipe->substream, pipe);
substream          10 sound/firewire/bebob/bebob_midi.c static int midi_open(struct snd_rawmidi_substream *substream)
substream          12 sound/firewire/bebob/bebob_midi.c 	struct snd_bebob *bebob = substream->rmidi->private_data;
substream          34 sound/firewire/bebob/bebob_midi.c static int midi_close(struct snd_rawmidi_substream *substream)
substream          36 sound/firewire/bebob/bebob_midi.c 	struct snd_bebob *bebob = substream->rmidi->private_data;
substream          96 sound/firewire/bebob/bebob_pcm.c 		   struct snd_pcm_substream *substream)
substream          98 sound/firewire/bebob/bebob_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         103 sound/firewire/bebob/bebob_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         133 sound/firewire/bebob/bebob_pcm.c pcm_open(struct snd_pcm_substream *substream)
substream         135 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         145 sound/firewire/bebob/bebob_pcm.c 	err = pcm_init_hw_params(bebob, substream);
substream         167 sound/firewire/bebob/bebob_pcm.c 		substream->runtime->hw.rate_min = sampling_rate;
substream         168 sound/firewire/bebob/bebob_pcm.c 		substream->runtime->hw.rate_max = sampling_rate;
substream         171 sound/firewire/bebob/bebob_pcm.c 	snd_pcm_set_sync(substream);
substream         180 sound/firewire/bebob/bebob_pcm.c pcm_close(struct snd_pcm_substream *substream)
substream         182 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         187 sound/firewire/bebob/bebob_pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         190 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         193 sound/firewire/bebob/bebob_pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         198 sound/firewire/bebob/bebob_pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         211 sound/firewire/bebob/bebob_pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         213 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         217 sound/firewire/bebob/bebob_pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         224 sound/firewire/bebob/bebob_pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         228 sound/firewire/bebob/bebob_pcm.c pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         230 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         240 sound/firewire/bebob/bebob_pcm.c pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         242 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         253 sound/firewire/bebob/bebob_pcm.c pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         255 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         259 sound/firewire/bebob/bebob_pcm.c 		amdtp_stream_pcm_trigger(&bebob->tx_stream, substream);
substream         271 sound/firewire/bebob/bebob_pcm.c pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         273 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         277 sound/firewire/bebob/bebob_pcm.c 		amdtp_stream_pcm_trigger(&bebob->rx_stream, substream);
substream         302 sound/firewire/bebob/bebob_pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         304 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream         309 sound/firewire/bebob/bebob_pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         311 sound/firewire/bebob/bebob_pcm.c 	struct snd_bebob *bebob = substream->private_data;
substream           9 sound/firewire/dice/dice-midi.c static int midi_open(struct snd_rawmidi_substream *substream)
substream          11 sound/firewire/dice/dice-midi.c 	struct snd_dice *dice = substream->rmidi->private_data;
substream          36 sound/firewire/dice/dice-midi.c static int midi_close(struct snd_rawmidi_substream *substream)
substream          38 sound/firewire/dice/dice-midi.c 	struct snd_dice *dice = substream->rmidi->private_data;
substream          14 sound/firewire/dice/dice-pcm.c 	struct snd_pcm_substream *substream = rule->private;
substream          15 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream          16 sound/firewire/dice/dice-pcm.c 	unsigned int index = substream->pcm->device;
substream          29 sound/firewire/dice/dice-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          52 sound/firewire/dice/dice-pcm.c 	struct snd_pcm_substream *substream = rule->private;
substream          53 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream          54 sound/firewire/dice/dice-pcm.c 	unsigned int index = substream->pcm->device;
substream          67 sound/firewire/dice/dice-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         126 sound/firewire/dice/dice-pcm.c 			struct snd_pcm_substream *substream)
substream         128 sound/firewire/dice/dice-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         130 sound/firewire/dice/dice-pcm.c 	unsigned int index = substream->pcm->device;
substream         135 sound/firewire/dice/dice-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         145 sound/firewire/dice/dice-pcm.c 	err = limit_channels_and_rates(dice, substream->runtime, dir,
substream         151 sound/firewire/dice/dice-pcm.c 				  dice_rate_constraint, substream,
substream         156 sound/firewire/dice/dice-pcm.c 				  dice_channels_constraint, substream,
substream         164 sound/firewire/dice/dice-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         166 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         175 sound/firewire/dice/dice-pcm.c 	err = init_hw_info(dice, substream);
substream         212 sound/firewire/dice/dice-pcm.c 		substream->runtime->hw.rate_min = rate;
substream         213 sound/firewire/dice/dice-pcm.c 		substream->runtime->hw.rate_max = rate;
substream         216 sound/firewire/dice/dice-pcm.c 	snd_pcm_set_sync(substream);
substream         224 sound/firewire/dice/dice-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         226 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         233 sound/firewire/dice/dice-pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         236 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         239 sound/firewire/dice/dice-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         244 sound/firewire/dice/dice-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         257 sound/firewire/dice/dice-pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         259 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         263 sound/firewire/dice/dice-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         270 sound/firewire/dice/dice-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         273 sound/firewire/dice/dice-pcm.c static int capture_prepare(struct snd_pcm_substream *substream)
substream         275 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         276 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
substream         287 sound/firewire/dice/dice-pcm.c static int playback_prepare(struct snd_pcm_substream *substream)
substream         289 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         290 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
substream         302 sound/firewire/dice/dice-pcm.c static int capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         304 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         305 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
substream         309 sound/firewire/dice/dice-pcm.c 		amdtp_stream_pcm_trigger(stream, substream);
substream         320 sound/firewire/dice/dice-pcm.c static int playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         322 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         323 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
substream         327 sound/firewire/dice/dice-pcm.c 		amdtp_stream_pcm_trigger(stream, substream);
substream         339 sound/firewire/dice/dice-pcm.c static snd_pcm_uframes_t capture_pointer(struct snd_pcm_substream *substream)
substream         341 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         342 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
substream         346 sound/firewire/dice/dice-pcm.c static snd_pcm_uframes_t playback_pointer(struct snd_pcm_substream *substream)
substream         348 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         349 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
substream         354 sound/firewire/dice/dice-pcm.c static int capture_ack(struct snd_pcm_substream *substream)
substream         356 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         357 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->tx_stream[substream->pcm->device];
substream         362 sound/firewire/dice/dice-pcm.c static int playback_ack(struct snd_pcm_substream *substream)
substream         364 sound/firewire/dice/dice-pcm.c 	struct snd_dice *dice = substream->private_data;
substream         365 sound/firewire/dice/dice-pcm.c 	struct amdtp_stream *stream = &dice->rx_stream[substream->pcm->device];
substream          10 sound/firewire/digi00x/digi00x-midi.c static int midi_open(struct snd_rawmidi_substream *substream)
substream          12 sound/firewire/digi00x/digi00x-midi.c 	struct snd_dg00x *dg00x = substream->rmidi->private_data;
substream          34 sound/firewire/digi00x/digi00x-midi.c static int midi_close(struct snd_rawmidi_substream *substream)
substream          36 sound/firewire/digi00x/digi00x-midi.c 	struct snd_dg00x *dg00x = substream->rmidi->private_data;
substream          47 sound/firewire/digi00x/digi00x-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substream,
substream          50 sound/firewire/digi00x/digi00x-midi.c 	struct snd_dg00x *dg00x = substream->rmidi->private_data;
substream          54 sound/firewire/digi00x/digi00x-midi.c 	if (substream->rmidi->device == 0)
substream          55 sound/firewire/digi00x/digi00x-midi.c 		port = substream->number;
substream          62 sound/firewire/digi00x/digi00x-midi.c 		amdtp_dot_midi_trigger(&dg00x->tx_stream, port, substream);
substream          69 sound/firewire/digi00x/digi00x-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substream,
substream          72 sound/firewire/digi00x/digi00x-midi.c 	struct snd_dg00x *dg00x = substream->rmidi->private_data;
substream          76 sound/firewire/digi00x/digi00x-midi.c 	if (substream->rmidi->device == 0)
substream          77 sound/firewire/digi00x/digi00x-midi.c 		port = substream->number;
substream          84 sound/firewire/digi00x/digi00x-midi.c 		amdtp_dot_midi_trigger(&dg00x->rx_stream, port, substream);
substream          58 sound/firewire/digi00x/digi00x-pcm.c 			      struct snd_pcm_substream *substream)
substream          60 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          66 sound/firewire/digi00x/digi00x-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream          67 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
substream          70 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S32;
substream          83 sound/firewire/digi00x/digi00x-pcm.c 	err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream          90 sound/firewire/digi00x/digi00x-pcm.c 	err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream          97 sound/firewire/digi00x/digi00x-pcm.c 	return amdtp_dot_add_pcm_hw_constraints(s, substream->runtime);
substream         100 sound/firewire/digi00x/digi00x-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         102 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         112 sound/firewire/digi00x/digi00x-pcm.c 	err = pcm_init_hw_params(dg00x, substream);
substream         136 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.rate_min = rate;
substream         137 sound/firewire/digi00x/digi00x-pcm.c 		substream->runtime->hw.rate_max = rate;
substream         140 sound/firewire/digi00x/digi00x-pcm.c 	snd_pcm_set_sync(substream);
substream         148 sound/firewire/digi00x/digi00x-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         150 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         157 sound/firewire/digi00x/digi00x-pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         160 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         163 sound/firewire/digi00x/digi00x-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         168 sound/firewire/digi00x/digi00x-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         181 sound/firewire/digi00x/digi00x-pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         183 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         187 sound/firewire/digi00x/digi00x-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         194 sound/firewire/digi00x/digi00x-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         197 sound/firewire/digi00x/digi00x-pcm.c static int pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         199 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         213 sound/firewire/digi00x/digi00x-pcm.c static int pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         215 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         231 sound/firewire/digi00x/digi00x-pcm.c static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         233 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         237 sound/firewire/digi00x/digi00x-pcm.c 		amdtp_stream_pcm_trigger(&dg00x->tx_stream, substream);
substream         249 sound/firewire/digi00x/digi00x-pcm.c static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         251 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         255 sound/firewire/digi00x/digi00x-pcm.c 		amdtp_stream_pcm_trigger(&dg00x->rx_stream, substream);
substream         281 sound/firewire/digi00x/digi00x-pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         283 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream         288 sound/firewire/digi00x/digi00x-pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         290 sound/firewire/digi00x/digi00x-pcm.c 	struct snd_dg00x *dg00x = substream->private_data;
substream          10 sound/firewire/fireface/ff-midi.c static int midi_capture_open(struct snd_rawmidi_substream *substream)
substream          16 sound/firewire/fireface/ff-midi.c static int midi_playback_open(struct snd_rawmidi_substream *substream)
substream          18 sound/firewire/fireface/ff-midi.c 	struct snd_ff *ff = substream->rmidi->private_data;
substream          21 sound/firewire/fireface/ff-midi.c 	ff->on_sysex[substream->number] = 0;
substream          22 sound/firewire/fireface/ff-midi.c 	ff->rx_midi_error[substream->number] = false;
substream          24 sound/firewire/fireface/ff-midi.c 	WRITE_ONCE(ff->rx_midi_substreams[substream->number], substream);
substream          29 sound/firewire/fireface/ff-midi.c static int midi_capture_close(struct snd_rawmidi_substream *substream)
substream          35 sound/firewire/fireface/ff-midi.c static int midi_playback_close(struct snd_rawmidi_substream *substream)
substream          37 sound/firewire/fireface/ff-midi.c 	struct snd_ff *ff = substream->rmidi->private_data;
substream          39 sound/firewire/fireface/ff-midi.c 	cancel_work_sync(&ff->rx_midi_work[substream->number]);
substream          40 sound/firewire/fireface/ff-midi.c 	WRITE_ONCE(ff->rx_midi_substreams[substream->number], NULL);
substream          45 sound/firewire/fireface/ff-midi.c static void midi_capture_trigger(struct snd_rawmidi_substream *substream,
substream          48 sound/firewire/fireface/ff-midi.c 	struct snd_ff *ff = substream->rmidi->private_data;
substream          54 sound/firewire/fireface/ff-midi.c 		WRITE_ONCE(ff->tx_midi_substreams[substream->number],
substream          55 sound/firewire/fireface/ff-midi.c 			   substream);
substream          57 sound/firewire/fireface/ff-midi.c 		WRITE_ONCE(ff->tx_midi_substreams[substream->number], NULL);
substream          62 sound/firewire/fireface/ff-midi.c static void midi_playback_trigger(struct snd_rawmidi_substream *substream,
substream          65 sound/firewire/fireface/ff-midi.c 	struct snd_ff *ff = substream->rmidi->private_data;
substream          70 sound/firewire/fireface/ff-midi.c 	if (up || !ff->rx_midi_error[substream->number])
substream          71 sound/firewire/fireface/ff-midi.c 		schedule_work(&ff->rx_midi_work[substream->number]);
substream          79 sound/firewire/fireface/ff-midi.c 	struct snd_rawmidi_substream *substream;
substream          81 sound/firewire/fireface/ff-midi.c 	list_for_each_entry(substream, &stream->substreams, list) {
substream          82 sound/firewire/fireface/ff-midi.c 		snprintf(substream->name, sizeof(substream->name),
substream          83 sound/firewire/fireface/ff-midi.c 			 "%s MIDI %d", name, substream->number + 1);
substream         105 sound/firewire/fireface/ff-pcm.c 			      struct snd_pcm_substream *substream)
substream         107 sound/firewire/fireface/ff-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         112 sound/firewire/fireface/ff-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         139 sound/firewire/fireface/ff-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         141 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         150 sound/firewire/fireface/ff-pcm.c 	err = pcm_init_hw_params(ff, substream);
substream         172 sound/firewire/fireface/ff-pcm.c 		substream->runtime->hw.rate_min = rate;
substream         173 sound/firewire/fireface/ff-pcm.c 		substream->runtime->hw.rate_max = rate;
substream         178 sound/firewire/fireface/ff-pcm.c 			substream->runtime->hw.rate_min = rate;
substream         179 sound/firewire/fireface/ff-pcm.c 			substream->runtime->hw.rate_max = rate;
substream         183 sound/firewire/fireface/ff-pcm.c 	snd_pcm_set_sync(substream);
substream         192 sound/firewire/fireface/ff-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         194 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         201 sound/firewire/fireface/ff-pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         204 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         207 sound/firewire/fireface/ff-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         212 sound/firewire/fireface/ff-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         225 sound/firewire/fireface/ff-pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         227 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         231 sound/firewire/fireface/ff-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         238 sound/firewire/fireface/ff-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         241 sound/firewire/fireface/ff-pcm.c static int pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         243 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         244 sound/firewire/fireface/ff-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         258 sound/firewire/fireface/ff-pcm.c static int pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         260 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         261 sound/firewire/fireface/ff-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         275 sound/firewire/fireface/ff-pcm.c static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         277 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         281 sound/firewire/fireface/ff-pcm.c 		amdtp_stream_pcm_trigger(&ff->tx_stream, substream);
substream         293 sound/firewire/fireface/ff-pcm.c static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         295 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         299 sound/firewire/fireface/ff-pcm.c 		amdtp_stream_pcm_trigger(&ff->rx_stream, substream);
substream         325 sound/firewire/fireface/ff-pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         327 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         332 sound/firewire/fireface/ff-pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         334 sound/firewire/fireface/ff-pcm.c 	struct snd_ff *ff = substream->private_data;
substream         267 sound/firewire/fireface/ff-protocol-former.c 				struct snd_rawmidi_substream *substream,
substream         274 sound/firewire/fireface/ff-protocol-former.c 	len = snd_rawmidi_transmit_peek(substream, buf,
substream         414 sound/firewire/fireface/ff-protocol-former.c 		struct snd_rawmidi_substream *substream;
substream         416 sound/firewire/fireface/ff-protocol-former.c 		substream = READ_ONCE(ff->tx_midi_substreams[0]);
substream         417 sound/firewire/fireface/ff-protocol-former.c 		if (substream)
substream         418 sound/firewire/fireface/ff-protocol-former.c 			snd_rawmidi_receive(substream, &byte, 1);
substream         567 sound/firewire/fireface/ff-protocol-former.c 		struct snd_rawmidi_substream *substream;
substream         577 sound/firewire/fireface/ff-protocol-former.c 			substream = READ_ONCE(ff->tx_midi_substreams[0]);
substream         578 sound/firewire/fireface/ff-protocol-former.c 			if (substream != NULL) {
substream         580 sound/firewire/fireface/ff-protocol-former.c 				snd_rawmidi_receive(substream, &byte, 1);
substream         587 sound/firewire/fireface/ff-protocol-former.c 			substream = READ_ONCE(ff->tx_midi_substreams[1]);
substream         588 sound/firewire/fireface/ff-protocol-former.c 			if (substream != NULL) {
substream         590 sound/firewire/fireface/ff-protocol-former.c 				snd_rawmidi_receive(substream, &byte, 1);
substream         302 sound/firewire/fireface/ff-protocol-latter.c 	struct snd_rawmidi_substream *substream;
substream         331 sound/firewire/fireface/ff-protocol-latter.c 	substream = READ_ONCE(ff->tx_midi_substreams[index]);
substream         332 sound/firewire/fireface/ff-protocol-latter.c 	if (substream)
substream         333 sound/firewire/fireface/ff-protocol-latter.c 		snd_rawmidi_receive(substream, byte, len);
substream         387 sound/firewire/fireface/ff-protocol-latter.c 				struct snd_rawmidi_substream *substream,
substream         395 sound/firewire/fireface/ff-protocol-latter.c 	consumed = snd_rawmidi_transmit_peek(substream, buf + 1, 3);
substream          13 sound/firewire/fireface/ff-transaction.c 	struct snd_rawmidi_substream *substream =
substream          28 sound/firewire/fireface/ff-transaction.c 	snd_rawmidi_transmit_ack(substream, ff->rx_bytes[port]);
substream          31 sound/firewire/fireface/ff-transaction.c 	if (!snd_rawmidi_transmit_empty(substream))
substream          55 sound/firewire/fireface/ff-transaction.c 	struct snd_rawmidi_substream *substream =
substream          65 sound/firewire/fireface/ff-transaction.c 	if (substream == NULL || snd_rawmidi_transmit_empty(substream))
substream          77 sound/firewire/fireface/ff-transaction.c 	quad_count = ff->spec->protocol->fill_midi_msg(ff, substream, port);
substream         112 sound/firewire/fireface/ff.h 			     struct snd_rawmidi_substream *substream,
substream          10 sound/firewire/fireworks/fireworks_midi.c static int midi_open(struct snd_rawmidi_substream *substream)
substream          12 sound/firewire/fireworks/fireworks_midi.c 	struct snd_efw *efw = substream->rmidi->private_data;
substream          34 sound/firewire/fireworks/fireworks_midi.c static int midi_close(struct snd_rawmidi_substream *substream)
substream          36 sound/firewire/fireworks/fireworks_midi.c 	struct snd_efw *efw = substream->rmidi->private_data;
substream         133 sound/firewire/fireworks/fireworks_pcm.c 		   struct snd_pcm_substream *substream)
substream         135 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         140 sound/firewire/fireworks/fireworks_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         173 sound/firewire/fireworks/fireworks_pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         175 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         184 sound/firewire/fireworks/fireworks_pcm.c 	err = pcm_init_hw_params(efw, substream);
substream         202 sound/firewire/fireworks/fireworks_pcm.c 		substream->runtime->hw.rate_min = sampling_rate;
substream         203 sound/firewire/fireworks/fireworks_pcm.c 		substream->runtime->hw.rate_max = sampling_rate;
substream         206 sound/firewire/fireworks/fireworks_pcm.c 	snd_pcm_set_sync(substream);
substream         214 sound/firewire/fireworks/fireworks_pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         216 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         221 sound/firewire/fireworks/fireworks_pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         224 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         227 sound/firewire/fireworks/fireworks_pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         232 sound/firewire/fireworks/fireworks_pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         245 sound/firewire/fireworks/fireworks_pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         247 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         251 sound/firewire/fireworks/fireworks_pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         258 sound/firewire/fireworks/fireworks_pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         261 sound/firewire/fireworks/fireworks_pcm.c static int pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         263 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         272 sound/firewire/fireworks/fireworks_pcm.c static int pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         274 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         284 sound/firewire/fireworks/fireworks_pcm.c static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         286 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         290 sound/firewire/fireworks/fireworks_pcm.c 		amdtp_stream_pcm_trigger(&efw->tx_stream, substream);
substream         301 sound/firewire/fireworks/fireworks_pcm.c static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         303 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         307 sound/firewire/fireworks/fireworks_pcm.c 		amdtp_stream_pcm_trigger(&efw->rx_stream, substream);
substream         330 sound/firewire/fireworks/fireworks_pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         332 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         337 sound/firewire/fireworks/fireworks_pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         339 sound/firewire/fireworks/fireworks_pcm.c 	struct snd_efw *efw = substream->private_data;
substream         246 sound/firewire/isight.c static int isight_open(struct snd_pcm_substream *substream)
substream         266 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         268 sound/firewire/isight.c 	substream->runtime->hw = hardware;
substream         276 sound/firewire/isight.c static int isight_close(struct snd_pcm_substream *substream)
substream         278 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         285 sound/firewire/isight.c static int isight_hw_params(struct snd_pcm_substream *substream,
substream         288 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         291 sound/firewire/isight.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         330 sound/firewire/isight.c static int isight_hw_free(struct snd_pcm_substream *substream)
substream         332 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         340 sound/firewire/isight.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         406 sound/firewire/isight.c static int isight_prepare(struct snd_pcm_substream *substream)
substream         408 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         421 sound/firewire/isight.c static int isight_trigger(struct snd_pcm_substream *substream, int cmd)
substream         423 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         438 sound/firewire/isight.c static snd_pcm_uframes_t isight_pointer(struct snd_pcm_substream *substream)
substream         440 sound/firewire/isight.c 	struct isight *isight = substream->private_data;
substream         466 sound/firewire/isight.c 	isight->pcm = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream           9 sound/firewire/motu/motu-midi.c static int midi_open(struct snd_rawmidi_substream *substream)
substream          11 sound/firewire/motu/motu-midi.c 	struct snd_motu *motu = substream->rmidi->private_data;
substream          36 sound/firewire/motu/motu-midi.c static int midi_close(struct snd_rawmidi_substream *substream)
substream          38 sound/firewire/motu/motu-midi.c 	struct snd_motu *motu = substream->rmidi->private_data;
substream          99 sound/firewire/motu/motu-pcm.c 			struct snd_pcm_substream *substream)
substream         101 sound/firewire/motu/motu-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         107 sound/firewire/motu/motu-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         133 sound/firewire/motu/motu-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         135 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         151 sound/firewire/motu/motu-pcm.c 	err = init_hw_info(motu, substream);
substream         168 sound/firewire/motu/motu-pcm.c 		substream->runtime->hw.rate_min = rate;
substream         169 sound/firewire/motu/motu-pcm.c 		substream->runtime->hw.rate_max = rate;
substream         172 sound/firewire/motu/motu-pcm.c 	snd_pcm_set_sync(substream);
substream         183 sound/firewire/motu/motu-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         185 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         192 sound/firewire/motu/motu-pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream         195 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         198 sound/firewire/motu/motu-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         203 sound/firewire/motu/motu-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         216 sound/firewire/motu/motu-pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         218 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         222 sound/firewire/motu/motu-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         229 sound/firewire/motu/motu-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         232 sound/firewire/motu/motu-pcm.c static int capture_prepare(struct snd_pcm_substream *substream)
substream         234 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         245 sound/firewire/motu/motu-pcm.c static int playback_prepare(struct snd_pcm_substream *substream)
substream         247 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         259 sound/firewire/motu/motu-pcm.c static int capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         261 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         265 sound/firewire/motu/motu-pcm.c 		amdtp_stream_pcm_trigger(&motu->tx_stream, substream);
substream         276 sound/firewire/motu/motu-pcm.c static int playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         278 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         282 sound/firewire/motu/motu-pcm.c 		amdtp_stream_pcm_trigger(&motu->rx_stream, substream);
substream         294 sound/firewire/motu/motu-pcm.c static snd_pcm_uframes_t capture_pointer(struct snd_pcm_substream *substream)
substream         296 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         300 sound/firewire/motu/motu-pcm.c static snd_pcm_uframes_t playback_pointer(struct snd_pcm_substream *substream)
substream         302 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         307 sound/firewire/motu/motu-pcm.c static int capture_ack(struct snd_pcm_substream *substream)
substream         309 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream         314 sound/firewire/motu/motu-pcm.c static int playback_ack(struct snd_pcm_substream *substream)
substream         316 sound/firewire/motu/motu-pcm.c 	struct snd_motu *motu = substream->private_data;
substream          10 sound/firewire/oxfw/oxfw-midi.c static int midi_capture_open(struct snd_rawmidi_substream *substream)
substream          12 sound/firewire/oxfw/oxfw-midi.c 	struct snd_oxfw *oxfw = substream->rmidi->private_data;
substream          37 sound/firewire/oxfw/oxfw-midi.c static int midi_playback_open(struct snd_rawmidi_substream *substream)
substream          39 sound/firewire/oxfw/oxfw-midi.c 	struct snd_oxfw *oxfw = substream->rmidi->private_data;
substream          62 sound/firewire/oxfw/oxfw-midi.c static int midi_capture_close(struct snd_rawmidi_substream *substream)
substream          64 sound/firewire/oxfw/oxfw-midi.c 	struct snd_oxfw *oxfw = substream->rmidi->private_data;
substream          77 sound/firewire/oxfw/oxfw-midi.c static int midi_playback_close(struct snd_rawmidi_substream *substream)
substream          79 sound/firewire/oxfw/oxfw-midi.c 	struct snd_oxfw *oxfw = substream->rmidi->private_data;
substream         110 sound/firewire/oxfw/oxfw-pcm.c 			  struct snd_pcm_substream *substream)
substream         112 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         117 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         146 sound/firewire/oxfw/oxfw-pcm.c static int limit_to_current_params(struct snd_pcm_substream *substream)
substream         148 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         153 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         162 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.channels_min = formation.pcm;
substream         163 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.channels_max = formation.pcm;
substream         164 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.rate_min = formation.rate;
substream         165 sound/firewire/oxfw/oxfw-pcm.c 	substream->runtime->hw.rate_max = formation.rate;
substream         170 sound/firewire/oxfw/oxfw-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream         172 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         179 sound/firewire/oxfw/oxfw-pcm.c 	err = init_hw_params(oxfw, substream);
substream         189 sound/firewire/oxfw/oxfw-pcm.c 		err = limit_to_current_params(substream);
substream         194 sound/firewire/oxfw/oxfw-pcm.c 	snd_pcm_set_sync(substream);
substream         202 sound/firewire/oxfw/oxfw-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream         204 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         210 sound/firewire/oxfw/oxfw-pcm.c static int pcm_capture_hw_params(struct snd_pcm_substream *substream,
substream         213 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         216 sound/firewire/oxfw/oxfw-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         221 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         235 sound/firewire/oxfw/oxfw-pcm.c static int pcm_playback_hw_params(struct snd_pcm_substream *substream,
substream         238 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         241 sound/firewire/oxfw/oxfw-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         246 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         261 sound/firewire/oxfw/oxfw-pcm.c static int pcm_capture_hw_free(struct snd_pcm_substream *substream)
substream         263 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         267 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         274 sound/firewire/oxfw/oxfw-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         276 sound/firewire/oxfw/oxfw-pcm.c static int pcm_playback_hw_free(struct snd_pcm_substream *substream)
substream         278 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         282 sound/firewire/oxfw/oxfw-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         289 sound/firewire/oxfw/oxfw-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         292 sound/firewire/oxfw/oxfw-pcm.c static int pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         294 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         307 sound/firewire/oxfw/oxfw-pcm.c static int pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         309 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         323 sound/firewire/oxfw/oxfw-pcm.c static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         325 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         330 sound/firewire/oxfw/oxfw-pcm.c 		pcm = substream;
substream         341 sound/firewire/oxfw/oxfw-pcm.c static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         343 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         348 sound/firewire/oxfw/oxfw-pcm.c 		pcm = substream;
substream         373 sound/firewire/oxfw/oxfw-pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         375 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream         380 sound/firewire/oxfw/oxfw-pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         382 sound/firewire/oxfw/oxfw-pcm.c 	struct snd_oxfw *oxfw = substream->private_data;
substream          10 sound/firewire/tascam/tascam-midi.c static int midi_capture_open(struct snd_rawmidi_substream *substream)
substream          16 sound/firewire/tascam/tascam-midi.c static int midi_playback_open(struct snd_rawmidi_substream *substream)
substream          18 sound/firewire/tascam/tascam-midi.c 	struct snd_tscm *tscm = substream->rmidi->private_data;
substream          20 sound/firewire/tascam/tascam-midi.c 	snd_fw_async_midi_port_init(&tscm->out_ports[substream->number]);
substream          25 sound/firewire/tascam/tascam-midi.c static int midi_capture_close(struct snd_rawmidi_substream *substream)
substream          31 sound/firewire/tascam/tascam-midi.c static int midi_playback_close(struct snd_rawmidi_substream *substream)
substream          36 sound/firewire/tascam/tascam-midi.c static void midi_playback_drain(struct snd_rawmidi_substream *substream)
substream          38 sound/firewire/tascam/tascam-midi.c 	struct snd_tscm *tscm = substream->rmidi->private_data;
substream          40 sound/firewire/tascam/tascam-midi.c 	snd_fw_async_midi_port_finish(&tscm->out_ports[substream->number]);
substream          11 sound/firewire/tascam/tascam-pcm.c 			      struct snd_pcm_substream *substream)
substream          13 sound/firewire/tascam/tascam-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          18 sound/firewire/tascam/tascam-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream          43 sound/firewire/tascam/tascam-pcm.c static int pcm_open(struct snd_pcm_substream *substream)
substream          45 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream          54 sound/firewire/tascam/tascam-pcm.c 	err = pcm_init_hw_params(tscm, substream);
substream          68 sound/firewire/tascam/tascam-pcm.c 		substream->runtime->hw.rate_min = rate;
substream          69 sound/firewire/tascam/tascam-pcm.c 		substream->runtime->hw.rate_max = rate;
substream          72 sound/firewire/tascam/tascam-pcm.c 	snd_pcm_set_sync(substream);
substream          80 sound/firewire/tascam/tascam-pcm.c static int pcm_close(struct snd_pcm_substream *substream)
substream          82 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream          89 sound/firewire/tascam/tascam-pcm.c static int pcm_hw_params(struct snd_pcm_substream *substream,
substream          92 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream          95 sound/firewire/tascam/tascam-pcm.c 	err = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         100 sound/firewire/tascam/tascam-pcm.c 	if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
substream         113 sound/firewire/tascam/tascam-pcm.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         115 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         119 sound/firewire/tascam/tascam-pcm.c 	if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN)
substream         126 sound/firewire/tascam/tascam-pcm.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         129 sound/firewire/tascam/tascam-pcm.c static int pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         131 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         132 sound/firewire/tascam/tascam-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         146 sound/firewire/tascam/tascam-pcm.c static int pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         148 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         149 sound/firewire/tascam/tascam-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         163 sound/firewire/tascam/tascam-pcm.c static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         165 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         169 sound/firewire/tascam/tascam-pcm.c 		amdtp_stream_pcm_trigger(&tscm->tx_stream, substream);
substream         181 sound/firewire/tascam/tascam-pcm.c static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         183 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         187 sound/firewire/tascam/tascam-pcm.c 		amdtp_stream_pcm_trigger(&tscm->rx_stream, substream);
substream         213 sound/firewire/tascam/tascam-pcm.c static int pcm_capture_ack(struct snd_pcm_substream *substream)
substream         215 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream         220 sound/firewire/tascam/tascam-pcm.c static int pcm_playback_ack(struct snd_pcm_substream *substream)
substream         222 sound/firewire/tascam/tascam-pcm.c 	struct snd_tscm *tscm = substream->private_data;
substream          61 sound/firewire/tascam/tascam-transaction.c 			struct snd_rawmidi_substream *substream)
substream          71 sound/firewire/tascam/tascam-transaction.c 	consume = snd_rawmidi_transmit_peek(substream, msg, 3);
substream          88 sound/firewire/tascam/tascam-transaction.c 			*label = (substream->number << 4) | 0x07;
substream          91 sound/firewire/tascam/tascam-transaction.c 			*label = (substream->number << 4) | 0x04;
substream         136 sound/firewire/tascam/tascam-transaction.c 		*label = (substream->number << 4) | (msg[0] >> 4);
substream         150 sound/firewire/tascam/tascam-transaction.c 	struct snd_rawmidi_substream *substream = READ_ONCE(port->substream);
substream         153 sound/firewire/tascam/tascam-transaction.c 	if (substream == NULL)
substream         157 sound/firewire/tascam/tascam-transaction.c 		snd_rawmidi_transmit_ack(substream, port->consume_bytes);
substream         167 sound/firewire/tascam/tascam-transaction.c 	if (!snd_rawmidi_transmit_empty(substream))
substream         175 sound/firewire/tascam/tascam-transaction.c 	struct snd_rawmidi_substream *substream = READ_ONCE(port->substream);
substream         183 sound/firewire/tascam/tascam-transaction.c 	if (substream == NULL || snd_rawmidi_transmit_empty(substream))
substream         197 sound/firewire/tascam/tascam-transaction.c 	port->consume_bytes = fill_message(port, substream);
substream         255 sound/firewire/tascam/tascam-transaction.c 	struct snd_rawmidi_substream *substream;
substream         284 sound/firewire/tascam/tascam-transaction.c 		substream = READ_ONCE(tscm->tx_midi_substreams[port]);
substream         285 sound/firewire/tascam/tascam-transaction.c 		if (substream != NULL)
substream         286 sound/firewire/tascam/tascam-transaction.c 			snd_rawmidi_receive(substream, b + 1, bytes);
substream          60 sound/firewire/tascam/tascam.h 	struct snd_rawmidi_substream *substream;
substream         183 sound/firewire/tascam/tascam.h 			   struct snd_rawmidi_substream *substream)
substream         186 sound/firewire/tascam/tascam.h 		port->substream = substream;
substream         194 sound/firewire/tascam/tascam.h 	port->substream = NULL;
substream         245 sound/hda/ext/hdac_ext_stream.c 				struct snd_pcm_substream *substream)
substream         259 sound/hda/ext/hdac_ext_stream.c 		if (stream->direction != substream->stream)
substream         277 sound/hda/ext/hdac_ext_stream.c 		res->link_substream = substream;
substream         285 sound/hda/ext/hdac_ext_stream.c 				struct snd_pcm_substream *substream)
substream         299 sound/hda/ext/hdac_ext_stream.c 		if (stream->direction != substream->stream)
substream         313 sound/hda/ext/hdac_ext_stream.c 		res->hstream.substream = substream;
substream         338 sound/hda/ext/hdac_ext_stream.c 					   struct snd_pcm_substream *substream,
substream         346 sound/hda/ext/hdac_ext_stream.c 		stream = snd_hdac_stream_assign(bus, substream);
substream         353 sound/hda/ext/hdac_ext_stream.c 		return hdac_ext_host_stream_assign(bus, substream);
substream         356 sound/hda/ext/hdac_ext_stream.c 		return hdac_ext_link_stream_assign(bus, substream);
substream         556 sound/hda/hdac_controller.c 			if (!azx_dev->substream || !azx_dev->running ||
substream          22 sound/hda/hdac_stream.c 				   struct snd_pcm_substream *substream)
substream          24 sound/hda/hdac_stream.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         100 sound/hda/hdac_stream.c 		if (azx_dev->substream)
substream         101 sound/hda/hdac_stream.c 			stripe_ctl = snd_hdac_get_stream_stripe_ctl(bus, azx_dev->substream);
substream         194 sound/hda/hdac_stream.c 	if (azx_dev->substream)
substream         195 sound/hda/hdac_stream.c 		runtime = azx_dev->substream->runtime;
substream         283 sound/hda/hdac_stream.c 					   struct snd_pcm_substream *substream)
substream         289 sound/hda/hdac_stream.c 	int key = (substream->pcm->device << 16) | (substream->number << 2) |
substream         290 sound/hda/hdac_stream.c 		(substream->stream + 1);
substream         293 sound/hda/hdac_stream.c 		if (azx_dev->direction != substream->stream)
substream         309 sound/hda/hdac_stream.c 		res->substream = substream;
substream         329 sound/hda/hdac_stream.c 	azx_dev->substream = NULL;
substream         410 sound/hda/hdac_stream.c 	struct snd_pcm_substream *substream = azx_dev->substream;
substream         411 sound/hda/hdac_stream.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         443 sound/hda/hdac_stream.c 			ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream),
substream         454 sound/hda/hdac_stream.c 			ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream),
substream         458 sound/hda/hdac_stream.c 			ofs = setup_bdle(bus, snd_pcm_get_dma_buf(substream),
substream         487 sound/hda/hdac_stream.c 	struct snd_pcm_substream *substream = azx_dev->substream;
substream         491 sound/hda/hdac_stream.c 	if (!substream)
substream         493 sound/hda/hdac_stream.c 	runtime = substream->runtime;
substream         494 sound/hda/hdac_stream.c 	bufsize = snd_pcm_lib_buffer_bytes(substream);
substream         495 sound/hda/hdac_stream.c 	period_bytes = snd_pcm_lib_period_bytes(substream);
substream         568 sound/hda/hdac_stream.c 	struct snd_pcm_runtime *runtime = azx_dev->substream->runtime;
substream         687 sound/hda/hdac_stream.c 	azx_dev->substream = NULL;
substream         763 sound/hda/hdmi_chmap.c 	struct snd_pcm_substream *substream;
substream         774 sound/hda/hdmi_chmap.c 	substream = snd_pcm_chmap_substream(info, ctl_idx);
substream         775 sound/hda/hdmi_chmap.c 	if (!substream || !substream->runtime)
substream         777 sound/hda/hdmi_chmap.c 	switch (substream->runtime->status->state) {
substream          29 sound/i2c/cs8427.c 	struct snd_pcm_substream *substream;
substream         430 sound/i2c/cs8427.c 	struct snd_pcm_runtime *runtime = chip->playback.substream ?
substream         431 sound/i2c/cs8427.c 		chip->playback.substream->runtime : NULL;
substream         540 sound/i2c/cs8427.c 	chip->playback.substream = play_substream;
substream         541 sound/i2c/cs8427.c 	chip->capture.substream = cap_substream;
substream         493 sound/i2c/other/ak4113.c 	ak4113->substream = cap_substream;
substream         524 sound/i2c/other/ak4113.c 		ak4113->substream ? ak4113->substream->runtime : NULL;
substream         600 sound/i2c/other/ak4113.c 		snd_pcm_stream_lock_irqsave(ak4113->substream, _flags);
substream         601 sound/i2c/other/ak4113.c 		if (snd_pcm_running(ak4113->substream)) {
substream         604 sound/i2c/other/ak4113.c 			snd_pcm_stop(ak4113->substream,
substream         609 sound/i2c/other/ak4113.c 		snd_pcm_stream_unlock_irqrestore(ak4113->substream, _flags);
substream         418 sound/i2c/other/ak4117.c 	ak4117->substream = cap_substream;
substream         443 sound/i2c/other/ak4117.c 	struct snd_pcm_runtime *runtime = ak4117->substream ? ak4117->substream->runtime : NULL;
substream         505 sound/i2c/other/ak4117.c 		snd_pcm_stream_lock_irqsave(ak4117->substream, _flags);
substream         506 sound/i2c/other/ak4117.c 		if (snd_pcm_running(ak4117->substream)) {
substream         508 sound/i2c/other/ak4117.c 			snd_pcm_stop(ak4117->substream, SNDRV_PCM_STATE_DRAINING);
substream         512 sound/i2c/other/ak4117.c 		snd_pcm_stream_unlock_irqrestore(ak4117->substream, _flags);
substream         195 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         197 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         202 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         204 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         209 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_hw_params(struct snd_pcm_substream *substream,
substream         212 sound/isa/ad1816a/ad1816a_lib.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         215 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_hw_free(struct snd_pcm_substream *substream)
substream         217 sound/isa/ad1816a/ad1816a_lib.c 	return snd_pcm_lib_free_pages(substream);
substream         220 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_playback_prepare(struct snd_pcm_substream *substream)
substream         222 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         224 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         229 sound/isa/ad1816a/ad1816a_lib.c 	chip->p_dma_size = size = snd_pcm_lib_buffer_bytes(substream);
substream         246 sound/isa/ad1816a/ad1816a_lib.c 		snd_pcm_lib_period_bytes(substream) / 4 - 1);
substream         252 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_capture_prepare(struct snd_pcm_substream *substream)
substream         254 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         256 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         261 sound/isa/ad1816a/ad1816a_lib.c 	chip->c_dma_size = size = snd_pcm_lib_buffer_bytes(substream);
substream         278 sound/isa/ad1816a/ad1816a_lib.c 		snd_pcm_lib_period_bytes(substream) / 4 - 1);
substream         285 sound/isa/ad1816a/ad1816a_lib.c static snd_pcm_uframes_t snd_ad1816a_playback_pointer(struct snd_pcm_substream *substream)
substream         287 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         292 sound/isa/ad1816a/ad1816a_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream         295 sound/isa/ad1816a/ad1816a_lib.c static snd_pcm_uframes_t snd_ad1816a_capture_pointer(struct snd_pcm_substream *substream)
substream         297 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         302 sound/isa/ad1816a/ad1816a_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream         434 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_playback_open(struct snd_pcm_substream *substream)
substream         436 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         437 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         445 sound/isa/ad1816a/ad1816a_lib.c 	chip->playback_substream = substream;
substream         449 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_capture_open(struct snd_pcm_substream *substream)
substream         451 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         452 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         460 sound/isa/ad1816a/ad1816a_lib.c 	chip->capture_substream = substream;
substream         464 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_playback_close(struct snd_pcm_substream *substream)
substream         466 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         473 sound/isa/ad1816a/ad1816a_lib.c static int snd_ad1816a_capture_close(struct snd_pcm_substream *substream)
substream         475 sound/isa/ad1816a/ad1816a_lib.c 	struct snd_ad1816a *chip = snd_pcm_substream_chip(substream);
substream         408 sound/isa/cmi8330.c static int snd_cmi8330_playback_open(struct snd_pcm_substream *substream)
substream         410 sound/isa/cmi8330.c 	struct snd_cmi8330 *chip = snd_pcm_substream_chip(substream);
substream         413 sound/isa/cmi8330.c 	substream->private_data = chip->streams[SNDRV_PCM_STREAM_PLAYBACK].private_data;
substream         414 sound/isa/cmi8330.c 	return chip->streams[SNDRV_PCM_STREAM_PLAYBACK].open(substream);
substream         417 sound/isa/cmi8330.c static int snd_cmi8330_capture_open(struct snd_pcm_substream *substream)
substream         419 sound/isa/cmi8330.c 	struct snd_cmi8330 *chip = snd_pcm_substream_chip(substream);
substream         422 sound/isa/cmi8330.c 	substream->private_data = chip->streams[SNDRV_PCM_STREAM_CAPTURE].private_data;
substream         423 sound/isa/cmi8330.c 	return chip->streams[SNDRV_PCM_STREAM_CAPTURE].open(substream);
substream         296 sound/isa/es1688/es1688_lib.c static void snd_es1688_set_rate(struct snd_es1688 *chip, struct snd_pcm_substream *substream)
substream         298 sound/isa/es1688/es1688_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         312 sound/isa/es1688/es1688_lib.c static int snd_es1688_ioctl(struct snd_pcm_substream *substream,
substream         315 sound/isa/es1688/es1688_lib.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream         344 sound/isa/es1688/es1688_lib.c static int snd_es1688_hw_params(struct snd_pcm_substream *substream,
substream         347 sound/isa/es1688/es1688_lib.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         350 sound/isa/es1688/es1688_lib.c static int snd_es1688_hw_free(struct snd_pcm_substream *substream)
substream         352 sound/isa/es1688/es1688_lib.c 	return snd_pcm_lib_free_pages(substream);
substream         355 sound/isa/es1688/es1688_lib.c static int snd_es1688_playback_prepare(struct snd_pcm_substream *substream)
substream         358 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         359 sound/isa/es1688/es1688_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         360 sound/isa/es1688/es1688_lib.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         361 sound/isa/es1688/es1688_lib.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         366 sound/isa/es1688/es1688_lib.c 	snd_es1688_set_rate(chip, substream);
substream         409 sound/isa/es1688/es1688_lib.c static int snd_es1688_playback_trigger(struct snd_pcm_substream *substream,
substream         412 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         416 sound/isa/es1688/es1688_lib.c static int snd_es1688_capture_prepare(struct snd_pcm_substream *substream)
substream         419 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         420 sound/isa/es1688/es1688_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         421 sound/isa/es1688/es1688_lib.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         422 sound/isa/es1688/es1688_lib.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         427 sound/isa/es1688/es1688_lib.c 	snd_es1688_set_rate(chip, substream);
substream         466 sound/isa/es1688/es1688_lib.c static int snd_es1688_capture_trigger(struct snd_pcm_substream *substream,
substream         469 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         486 sound/isa/es1688/es1688_lib.c static snd_pcm_uframes_t snd_es1688_playback_pointer(struct snd_pcm_substream *substream)
substream         488 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         494 sound/isa/es1688/es1688_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream         497 sound/isa/es1688/es1688_lib.c static snd_pcm_uframes_t snd_es1688_capture_pointer(struct snd_pcm_substream *substream)
substream         499 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         505 sound/isa/es1688/es1688_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream         552 sound/isa/es1688/es1688_lib.c static int snd_es1688_playback_open(struct snd_pcm_substream *substream)
substream         554 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         555 sound/isa/es1688/es1688_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         559 sound/isa/es1688/es1688_lib.c 	chip->playback_substream = substream;
substream         566 sound/isa/es1688/es1688_lib.c static int snd_es1688_capture_open(struct snd_pcm_substream *substream)
substream         568 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         569 sound/isa/es1688/es1688_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         573 sound/isa/es1688/es1688_lib.c 	chip->capture_substream = substream;
substream         580 sound/isa/es1688/es1688_lib.c static int snd_es1688_playback_close(struct snd_pcm_substream *substream)
substream         582 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         588 sound/isa/es1688/es1688_lib.c static int snd_es1688_capture_close(struct snd_pcm_substream *substream)
substream         590 sound/isa/es1688/es1688_lib.c 	struct snd_es1688 *chip = snd_pcm_substream_chip(substream);
substream         399 sound/isa/es18xx.c 				struct snd_pcm_substream *substream,
substream         403 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         433 sound/isa/es18xx.c static int snd_es18xx_playback_hw_params(struct snd_pcm_substream *substream,
substream         436 sound/isa/es18xx.c 	struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         445 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) {
substream         456 sound/isa/es18xx.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         461 sound/isa/es18xx.c static int snd_es18xx_pcm_hw_free(struct snd_pcm_substream *substream)
substream         463 sound/isa/es18xx.c 	return snd_pcm_lib_free_pages(substream);
substream         467 sound/isa/es18xx.c 					struct snd_pcm_substream *substream)
substream         469 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         470 sound/isa/es18xx.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         471 sound/isa/es18xx.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         473 sound/isa/es18xx.c         snd_es18xx_rate_set(chip, substream, DAC2);
substream         493 sound/isa/es18xx.c 					struct snd_pcm_substream *substream,
substream         542 sound/isa/es18xx.c static int snd_es18xx_capture_hw_params(struct snd_pcm_substream *substream,
substream         545 sound/isa/es18xx.c 	struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         560 sound/isa/es18xx.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         565 sound/isa/es18xx.c static int snd_es18xx_capture_prepare(struct snd_pcm_substream *substream)
substream         567 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         568 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         569 sound/isa/es18xx.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         570 sound/isa/es18xx.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         577 sound/isa/es18xx.c         snd_es18xx_rate_set(chip, substream, ADC1);
substream         602 sound/isa/es18xx.c static int snd_es18xx_capture_trigger(struct snd_pcm_substream *substream,
substream         605 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         632 sound/isa/es18xx.c 					struct snd_pcm_substream *substream)
substream         634 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         635 sound/isa/es18xx.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         636 sound/isa/es18xx.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         643 sound/isa/es18xx.c         snd_es18xx_rate_set(chip, substream, DAC1);
substream         667 sound/isa/es18xx.c 					struct snd_pcm_substream *substream,
substream         706 sound/isa/es18xx.c static int snd_es18xx_playback_prepare(struct snd_pcm_substream *substream)
substream         708 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         709 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2))
substream         710 sound/isa/es18xx.c 		return snd_es18xx_playback1_prepare(chip, substream);
substream         712 sound/isa/es18xx.c 		return snd_es18xx_playback2_prepare(chip, substream);
substream         715 sound/isa/es18xx.c static int snd_es18xx_playback_trigger(struct snd_pcm_substream *substream,
substream         718 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         719 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2))
substream         720 sound/isa/es18xx.c 		return snd_es18xx_playback1_trigger(chip, substream, cmd);
substream         722 sound/isa/es18xx.c 		return snd_es18xx_playback2_trigger(chip, substream, cmd);
substream         795 sound/isa/es18xx.c static snd_pcm_uframes_t snd_es18xx_playback_pointer(struct snd_pcm_substream *substream)
substream         797 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         798 sound/isa/es18xx.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         801 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) {
substream         814 sound/isa/es18xx.c static snd_pcm_uframes_t snd_es18xx_capture_pointer(struct snd_pcm_substream *substream)
substream         816 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         817 sound/isa/es18xx.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         866 sound/isa/es18xx.c static int snd_es18xx_playback_open(struct snd_pcm_substream *substream)
substream         868 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         869 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         871 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2)) {
substream         876 sound/isa/es18xx.c 		chip->playback_a_substream = substream;
substream         877 sound/isa/es18xx.c 	} else if (substream->number <= 1) {
substream         880 sound/isa/es18xx.c 		chip->playback_b_substream = substream;
substream         885 sound/isa/es18xx.c 	substream->runtime->hw = snd_es18xx_playback;
substream         891 sound/isa/es18xx.c static int snd_es18xx_capture_open(struct snd_pcm_substream *substream)
substream         893 sound/isa/es18xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         894 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         902 sound/isa/es18xx.c         chip->capture_a_substream = substream;
substream         903 sound/isa/es18xx.c 	substream->runtime->hw = snd_es18xx_capture;
substream         909 sound/isa/es18xx.c static int snd_es18xx_playback_close(struct snd_pcm_substream *substream)
substream         911 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         913 sound/isa/es18xx.c 	if (substream->number == 0 && (chip->caps & ES18XX_PCM2))
substream         918 sound/isa/es18xx.c 	snd_pcm_lib_free_pages(substream);
substream         922 sound/isa/es18xx.c static int snd_es18xx_capture_close(struct snd_pcm_substream *substream)
substream         924 sound/isa/es18xx.c         struct snd_es18xx *chip = snd_pcm_substream_chip(substream);
substream         927 sound/isa/es18xx.c 	snd_pcm_lib_free_pages(substream);
substream          33 sound/isa/gus/gus_pcm.c 	struct snd_pcm_substream *substream;
substream          59 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_block_change(struct snd_pcm_substream *substream,
substream          65 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          91 sound/isa/gus/gus_pcm.c static void snd_gf1_pcm_trigger_up(struct snd_pcm_substream *substream)
substream          93 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         192 sound/isa/gus/gus_pcm.c 	runtime = pcmp->substream->runtime;
substream         241 sound/isa/gus/gus_pcm.c 	snd_pcm_period_elapsed(pcmp->substream);
substream         247 sound/isa/gus/gus_pcm.c 			snd_gf1_pcm_block_change(pcmp->substream, end, pcmp->memory + (end / 2), pcmp->block_size / 2);
substream         248 sound/isa/gus/gus_pcm.c 			snd_gf1_pcm_block_change(pcmp->substream, end + (pcmp->block_size / 2), pcmp->memory + (pcmp->dma_size / 2) + (end / 2), pcmp->block_size / 2);
substream         250 sound/isa/gus/gus_pcm.c 			snd_gf1_pcm_block_change(pcmp->substream, end, pcmp->memory + end, pcmp->block_size);
substream         275 sound/isa/gus/gus_pcm.c 	if (pcmp->substream == NULL)
substream         352 sound/isa/gus/gus_pcm.c static int playback_copy_ack(struct snd_pcm_substream *substream,
substream         355 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         361 sound/isa/gus/gus_pcm.c 		return snd_gf1_pcm_block_change(substream, bpos,
substream         370 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_copy(struct snd_pcm_substream *substream,
substream         374 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         384 sound/isa/gus/gus_pcm.c 	return playback_copy_ack(substream, bpos, len);
substream         387 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_copy_kernel(struct snd_pcm_substream *substream,
substream         391 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         400 sound/isa/gus/gus_pcm.c 	return playback_copy_ack(substream, bpos, len);
substream         403 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_silence(struct snd_pcm_substream *substream,
substream         407 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         417 sound/isa/gus/gus_pcm.c 	return playback_copy_ack(substream, bpos, len);
substream         420 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_hw_params(struct snd_pcm_substream *substream,
substream         423 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         424 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         428 sound/isa/gus/gus_pcm.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         469 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_hw_free(struct snd_pcm_substream *substream)
substream         471 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         474 sound/isa/gus/gus_pcm.c 	snd_pcm_lib_free_pages(substream);
substream         490 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         492 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         496 sound/isa/gus/gus_pcm.c 	pcmp->dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         497 sound/isa/gus/gus_pcm.c 	pcmp->block_size = snd_pcm_lib_period_bytes(substream);
substream         502 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_trigger(struct snd_pcm_substream *substream,
substream         505 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         506 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         511 sound/isa/gus/gus_pcm.c 		snd_gf1_pcm_trigger_up(substream);
substream         528 sound/isa/gus/gus_pcm.c static snd_pcm_uframes_t snd_gf1_pcm_playback_pointer(struct snd_pcm_substream *substream)
substream         530 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         531 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         542 sound/isa/gus/gus_pcm.c 		if (substream->runtime->channels > 1)
substream         562 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_hw_params(struct snd_pcm_substream *substream,
substream         565 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         577 sound/isa/gus/gus_pcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         580 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_hw_free(struct snd_pcm_substream *substream)
substream         582 sound/isa/gus/gus_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         585 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         587 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         588 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         597 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_trigger(struct snd_pcm_substream *substream,
substream         600 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         618 sound/isa/gus/gus_pcm.c static snd_pcm_uframes_t snd_gf1_pcm_capture_pointer(struct snd_pcm_substream *substream)
substream         620 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         622 sound/isa/gus/gus_pcm.c 	pos = bytes_to_frames(substream->runtime, (gus->c_pos + pos) % gus->c_dma_size);
substream         679 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_open(struct snd_pcm_substream *substream)
substream         682 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         683 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         704 sound/isa/gus/gus_pcm.c 	pcmp->substream = substream;
substream         712 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_playback_close(struct snd_pcm_substream *substream)
substream         714 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         715 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         725 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_open(struct snd_pcm_substream *substream)
substream         727 sound/isa/gus/gus_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         728 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         731 sound/isa/gus/gus_pcm.c 	gus->pcm_cap_substream = substream;
substream         732 sound/isa/gus/gus_pcm.c 	substream->runtime->hw = snd_gf1_pcm_capture;
substream         740 sound/isa/gus/gus_pcm.c static int snd_gf1_pcm_capture_close(struct snd_pcm_substream *substream)
substream         742 sound/isa/gus/gus_pcm.c 	struct snd_gus_card *gus = snd_pcm_substream_chip(substream);
substream         860 sound/isa/gus/gus_pcm.c 	struct snd_pcm_substream *substream;
substream         877 sound/isa/gus/gus_pcm.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
substream         878 sound/isa/gus/gus_pcm.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream         888 sound/isa/gus/gus_pcm.c 		snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
substream          77 sound/isa/gus/gus_uart.c static int snd_gf1_uart_output_open(struct snd_rawmidi_substream *substream)
substream          82 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream          88 sound/isa/gus/gus_uart.c 	gus->midi_substream_output = substream;
substream          96 sound/isa/gus/gus_uart.c static int snd_gf1_uart_input_open(struct snd_rawmidi_substream *substream)
substream         102 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream         108 sound/isa/gus/gus_uart.c 	gus->midi_substream_input = substream;
substream         129 sound/isa/gus/gus_uart.c static int snd_gf1_uart_output_close(struct snd_rawmidi_substream *substream)
substream         134 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream         144 sound/isa/gus/gus_uart.c static int snd_gf1_uart_input_close(struct snd_rawmidi_substream *substream)
substream         149 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream         159 sound/isa/gus/gus_uart.c static void snd_gf1_uart_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         164 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream         177 sound/isa/gus/gus_uart.c static void snd_gf1_uart_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         184 sound/isa/gus/gus_uart.c 	gus = substream->rmidi->private_data;
substream         200 sound/isa/gus/gus_uart.c 				if (snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream         466 sound/isa/msnd/msnd.c static int snd_msnd_playback_open(struct snd_pcm_substream *substream)
substream         468 sound/isa/msnd/msnd.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         469 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         478 sound/isa/msnd/msnd.c 	chip->playback_substream = substream;
substream         483 sound/isa/msnd/msnd.c static int snd_msnd_playback_close(struct snd_pcm_substream *substream)
substream         485 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         493 sound/isa/msnd/msnd.c static int snd_msnd_playback_hw_params(struct snd_pcm_substream *substream,
substream         497 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         516 sound/isa/msnd/msnd.c static int snd_msnd_playback_prepare(struct snd_pcm_substream *substream)
substream         518 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         519 sound/isa/msnd/msnd.c 	unsigned int pcm_size = snd_pcm_lib_buffer_bytes(substream);
substream         520 sound/isa/msnd/msnd.c 	unsigned int pcm_count = snd_pcm_lib_period_bytes(substream);
substream         528 sound/isa/msnd/msnd.c static int snd_msnd_playback_trigger(struct snd_pcm_substream *substream,
substream         531 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         554 sound/isa/msnd/msnd.c snd_msnd_playback_pointer(struct snd_pcm_substream *substream)
substream         556 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         558 sound/isa/msnd/msnd.c 	return bytes_to_frames(substream->runtime, chip->playDMAPos);
substream         572 sound/isa/msnd/msnd.c static int snd_msnd_capture_open(struct snd_pcm_substream *substream)
substream         574 sound/isa/msnd/msnd.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         575 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         582 sound/isa/msnd/msnd.c 	chip->capture_substream = substream;
substream         587 sound/isa/msnd/msnd.c static int snd_msnd_capture_close(struct snd_pcm_substream *substream)
substream         589 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         596 sound/isa/msnd/msnd.c static int snd_msnd_capture_prepare(struct snd_pcm_substream *substream)
substream         598 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         599 sound/isa/msnd/msnd.c 	unsigned int pcm_size = snd_pcm_lib_buffer_bytes(substream);
substream         600 sound/isa/msnd/msnd.c 	unsigned int pcm_count = snd_pcm_lib_period_bytes(substream);
substream         608 sound/isa/msnd/msnd.c static int snd_msnd_capture_trigger(struct snd_pcm_substream *substream,
substream         611 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         630 sound/isa/msnd/msnd.c snd_msnd_capture_pointer(struct snd_pcm_substream *substream)
substream         632 sound/isa/msnd/msnd.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         633 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream         639 sound/isa/msnd/msnd.c static int snd_msnd_capture_hw_params(struct snd_pcm_substream *substream,
substream         643 sound/isa/msnd/msnd.c 	struct snd_msnd *chip = snd_pcm_substream_chip(substream);
substream          41 sound/isa/msnd/msnd_midi.c static int snd_msndmidi_input_open(struct snd_rawmidi_substream *substream)
substream          47 sound/isa/msnd/msnd_midi.c 	mpu = substream->rmidi->private_data;
substream          49 sound/isa/msnd/msnd_midi.c 	mpu->substream_input = substream;
substream          58 sound/isa/msnd/msnd_midi.c static int snd_msndmidi_input_close(struct snd_rawmidi_substream *substream)
substream          62 sound/isa/msnd/msnd_midi.c 	mpu = substream->rmidi->private_data;
substream          81 sound/isa/msnd/msnd_midi.c static void snd_msndmidi_input_trigger(struct snd_rawmidi_substream *substream,
substream          89 sound/isa/msnd/msnd_midi.c 	mpu = substream->rmidi->private_data;
substream          41 sound/isa/sb/emu8000_pcm.c 	struct snd_pcm_substream *substream;
substream         205 sound/isa/sb/emu8000_pcm.c 		snd_pcm_period_elapsed(rec->substream);
substream         227 sound/isa/sb/emu8000_pcm.c 	rec->substream = subs;
substream         235 sound/isa/sb/sb16_main.c static int snd_sb16_hw_params(struct snd_pcm_substream *substream,
substream         238 sound/isa/sb/sb16_main.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         241 sound/isa/sb/sb16_main.c static int snd_sb16_hw_free(struct snd_pcm_substream *substream)
substream         243 sound/isa/sb/sb16_main.c 	snd_pcm_lib_free_pages(substream);
substream         247 sound/isa/sb/sb16_main.c static int snd_sb16_playback_prepare(struct snd_pcm_substream *substream)
substream         250 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         251 sound/isa/sb/sb16_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         263 sound/isa/sb/sb16_main.c 	size = chip->p_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         267 sound/isa/sb/sb16_main.c 	count = snd_pcm_lib_period_bytes(substream);
substream         289 sound/isa/sb/sb16_main.c static int snd_sb16_playback_trigger(struct snd_pcm_substream *substream,
substream         292 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         317 sound/isa/sb/sb16_main.c static int snd_sb16_capture_prepare(struct snd_pcm_substream *substream)
substream         320 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         321 sound/isa/sb/sb16_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         332 sound/isa/sb/sb16_main.c 	size = chip->c_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         336 sound/isa/sb/sb16_main.c 	count = snd_pcm_lib_period_bytes(substream);
substream         358 sound/isa/sb/sb16_main.c static int snd_sb16_capture_trigger(struct snd_pcm_substream *substream,
substream         361 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         438 sound/isa/sb/sb16_main.c static snd_pcm_uframes_t snd_sb16_playback_pointer(struct snd_pcm_substream *substream)
substream         440 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         446 sound/isa/sb/sb16_main.c 	return bytes_to_frames(substream->runtime, ptr);
substream         449 sound/isa/sb/sb16_main.c static snd_pcm_uframes_t snd_sb16_capture_pointer(struct snd_pcm_substream *substream)
substream         451 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         457 sound/isa/sb/sb16_main.c 	return bytes_to_frames(substream->runtime, ptr);
substream         504 sound/isa/sb/sb16_main.c static int snd_sb16_playback_open(struct snd_pcm_substream *substream)
substream         507 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         508 sound/isa/sb/sb16_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         561 sound/isa/sb/sb16_main.c 	chip->playback_substream = substream;
substream         566 sound/isa/sb/sb16_main.c static int snd_sb16_playback_close(struct snd_pcm_substream *substream)
substream         569 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         579 sound/isa/sb/sb16_main.c static int snd_sb16_capture_open(struct snd_pcm_substream *substream)
substream         582 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         583 sound/isa/sb/sb16_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         636 sound/isa/sb/sb16_main.c 	chip->capture_substream = substream;
substream         641 sound/isa/sb/sb16_main.c static int snd_sb16_capture_close(struct snd_pcm_substream *substream)
substream         644 sound/isa/sb/sb16_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream          90 sound/isa/sb/sb8_main.c static int snd_sb8_playback_prepare(struct snd_pcm_substream *substream)
substream          93 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream          94 sound/isa/sb/sb8_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         143 sound/isa/sb/sb8_main.c 	size = chip->p_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         144 sound/isa/sb/sb8_main.c 	count = chip->p_period_size = snd_pcm_lib_period_bytes(substream);
substream         192 sound/isa/sb/sb8_main.c static int snd_sb8_playback_trigger(struct snd_pcm_substream *substream,
substream         196 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         211 sound/isa/sb/sb8_main.c 			struct snd_pcm_runtime *runtime = substream->runtime;
substream         228 sound/isa/sb/sb8_main.c static int snd_sb8_hw_params(struct snd_pcm_substream *substream,
substream         231 sound/isa/sb/sb8_main.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         234 sound/isa/sb/sb8_main.c static int snd_sb8_hw_free(struct snd_pcm_substream *substream)
substream         236 sound/isa/sb/sb8_main.c 	snd_pcm_lib_free_pages(substream);
substream         240 sound/isa/sb/sb8_main.c static int snd_sb8_capture_prepare(struct snd_pcm_substream *substream)
substream         243 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         244 sound/isa/sb/sb8_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         294 sound/isa/sb/sb8_main.c 	size = chip->c_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         295 sound/isa/sb/sb8_main.c 	count = chip->c_period_size = snd_pcm_lib_period_bytes(substream);
substream         329 sound/isa/sb/sb8_main.c static int snd_sb8_capture_trigger(struct snd_pcm_substream *substream,
substream         333 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         348 sound/isa/sb/sb8_main.c 			struct snd_pcm_runtime *runtime = substream->runtime;
substream         369 sound/isa/sb/sb8_main.c 	struct snd_pcm_substream *substream;
substream         378 sound/isa/sb/sb8_main.c 		substream = chip->playback_substream;
substream         380 sound/isa/sb/sb8_main.c 		    	snd_sb8_playback_trigger(substream, SNDRV_PCM_TRIGGER_START);
substream         381 sound/isa/sb/sb8_main.c 		snd_pcm_period_elapsed(substream);
substream         388 sound/isa/sb/sb8_main.c 		substream = chip->capture_substream;
substream         390 sound/isa/sb/sb8_main.c 		    	snd_sb8_capture_trigger(substream, SNDRV_PCM_TRIGGER_START);
substream         391 sound/isa/sb/sb8_main.c 		snd_pcm_period_elapsed(substream);
substream         397 sound/isa/sb/sb8_main.c static snd_pcm_uframes_t snd_sb8_playback_pointer(struct snd_pcm_substream *substream)
substream         399 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         410 sound/isa/sb/sb8_main.c 	return bytes_to_frames(substream->runtime, ptr);
substream         413 sound/isa/sb/sb8_main.c static snd_pcm_uframes_t snd_sb8_capture_pointer(struct snd_pcm_substream *substream)
substream         415 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         426 sound/isa/sb/sb8_main.c 	return bytes_to_frames(substream->runtime, ptr);
substream         475 sound/isa/sb/sb8_main.c static int snd_sb8_open(struct snd_pcm_substream *substream)
substream         477 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         478 sound/isa/sb/sb8_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         488 sound/isa/sb/sb8_main.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         489 sound/isa/sb/sb8_main.c 		chip->playback_substream = substream;
substream         492 sound/isa/sb/sb8_main.c 		chip->capture_substream = substream;
substream         516 sound/isa/sb/sb8_main.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         537 sound/isa/sb/sb8_main.c static int snd_sb8_close(struct snd_pcm_substream *substream)
substream         540 sound/isa/sb/sb8_main.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         546 sound/isa/sb/sb8_main.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          50 sound/isa/sb/sb8_midi.c static int snd_sb8dsp_midi_input_open(struct snd_rawmidi_substream *substream)
substream          56 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream          65 sound/isa/sb/sb8_midi.c 	chip->midi_substream_input = substream;
substream          77 sound/isa/sb/sb8_midi.c static int snd_sb8dsp_midi_output_open(struct snd_rawmidi_substream *substream)
substream          83 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream          92 sound/isa/sb/sb8_midi.c 	chip->midi_substream_output = substream;
substream         104 sound/isa/sb/sb8_midi.c static int snd_sb8dsp_midi_input_close(struct snd_rawmidi_substream *substream)
substream         109 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream         122 sound/isa/sb/sb8_midi.c static int snd_sb8dsp_midi_output_close(struct snd_rawmidi_substream *substream)
substream         127 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream         141 sound/isa/sb/sb8_midi.c static void snd_sb8dsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         146 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream         164 sound/isa/sb/sb8_midi.c static void snd_sb8dsp_midi_output_write(struct snd_rawmidi_substream *substream)
substream         172 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream         175 sound/isa/sb/sb8_midi.c 		if (snd_rawmidi_transmit_peek(substream, &byte, 1) != 1) {
substream         195 sound/isa/sb/sb8_midi.c 		snd_rawmidi_transmit_ack(substream, 1);
substream         203 sound/isa/sb/sb8_midi.c 	struct snd_rawmidi_substream *substream = chip->midi_substream_output;
substream         209 sound/isa/sb/sb8_midi.c 	snd_sb8dsp_midi_output_write(substream);
substream         212 sound/isa/sb/sb8_midi.c static void snd_sb8dsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         217 sound/isa/sb/sb8_midi.c 	chip = substream->rmidi->private_data;
substream         232 sound/isa/sb/sb8_midi.c 		snd_sb8dsp_midi_output_write(substream);
substream          90 sound/isa/wavefront/wavefront_midi.c get_wavefront_midi (struct snd_rawmidi_substream *substream)
substream          96 sound/isa/wavefront/wavefront_midi.c 	if (substream == NULL || substream->rmidi == NULL) 
substream          99 sound/isa/wavefront/wavefront_midi.c 	card = substream->rmidi->card;
substream         229 sound/isa/wavefront/wavefront_midi.c static int snd_wavefront_midi_input_open(struct snd_rawmidi_substream *substream)
substream         235 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream || !substream->rmidi))
substream         237 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream->rmidi->private_data))
substream         240 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         242 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL)
substream         247 sound/isa/wavefront/wavefront_midi.c 	midi->substream_input[mpu] = substream;
substream         253 sound/isa/wavefront/wavefront_midi.c static int snd_wavefront_midi_output_open(struct snd_rawmidi_substream *substream)
substream         259 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream || !substream->rmidi))
substream         261 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream->rmidi->private_data))
substream         264 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         266 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL)
substream         271 sound/isa/wavefront/wavefront_midi.c 	midi->substream_output[mpu] = substream;
substream         277 sound/isa/wavefront/wavefront_midi.c static int snd_wavefront_midi_input_close(struct snd_rawmidi_substream *substream)
substream         283 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream || !substream->rmidi))
substream         285 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream->rmidi->private_data))
substream         288 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         290 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL)
substream         300 sound/isa/wavefront/wavefront_midi.c static int snd_wavefront_midi_output_close(struct snd_rawmidi_substream *substream)
substream         306 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream || !substream->rmidi))
substream         308 sound/isa/wavefront/wavefront_midi.c 	if (snd_BUG_ON(!substream->rmidi->private_data))
substream         311 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         313 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL)
substream         322 sound/isa/wavefront/wavefront_midi.c static void snd_wavefront_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         328 sound/isa/wavefront/wavefront_midi.c 	if (substream == NULL || substream->rmidi == NULL) 
substream         331 sound/isa/wavefront/wavefront_midi.c 	if (substream->rmidi->private_data == NULL)
substream         334 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         336 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL) {
substream         361 sound/isa/wavefront/wavefront_midi.c static void snd_wavefront_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         367 sound/isa/wavefront/wavefront_midi.c 	if (substream == NULL || substream->rmidi == NULL) 
substream         370 sound/isa/wavefront/wavefront_midi.c 	if (substream->rmidi->private_data == NULL)
substream         373 sound/isa/wavefront/wavefront_midi.c 	mpu = *((snd_wavefront_mpu_id *) substream->rmidi->private_data);
substream         375 sound/isa/wavefront/wavefront_midi.c 	if ((midi = get_wavefront_midi (substream)) == NULL) {
substream         397 sound/isa/wavefront/wavefront_midi.c 		snd_wavefront_midi_output_write((snd_wavefront_card_t *)substream->rmidi->card->private_data);
substream         406 sound/isa/wavefront/wavefront_midi.c 	static struct snd_rawmidi_substream *substream = NULL;
substream         426 sound/isa/wavefront/wavefront_midi.c 					substream = midi->substream_input[external_mpu];
substream         429 sound/isa/wavefront/wavefront_midi.c 					substream = midi->substream_output[internal_mpu];
substream         433 sound/isa/wavefront/wavefront_midi.c 				substream = midi->substream_input[internal_mpu];
substream         437 sound/isa/wavefront/wavefront_midi.c 			if (substream == NULL) {
substream         442 sound/isa/wavefront/wavefront_midi.c 				snd_rawmidi_receive(substream, &byte, 1);
substream         466 sound/isa/wss/wss_lib.c static int snd_wss_trigger(struct snd_pcm_substream *substream,
substream         469 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream         487 sound/isa/wss/wss_lib.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         490 sound/isa/wss/wss_lib.c 			snd_pcm_trigger_done(s, substream);
substream         493 sound/isa/wss/wss_lib.c 			snd_pcm_trigger_done(s, substream);
substream         980 sound/isa/wss/wss_lib.c static int snd_wss_playback_hw_params(struct snd_pcm_substream *substream,
substream         983 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream         987 sound/isa/wss/wss_lib.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         996 sound/isa/wss/wss_lib.c static int snd_wss_playback_hw_free(struct snd_pcm_substream *substream)
substream         998 sound/isa/wss/wss_lib.c 	return snd_pcm_lib_free_pages(substream);
substream        1001 sound/isa/wss/wss_lib.c static int snd_wss_playback_prepare(struct snd_pcm_substream *substream)
substream        1003 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1004 sound/isa/wss/wss_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1006 sound/isa/wss/wss_lib.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream        1007 sound/isa/wss/wss_lib.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream        1023 sound/isa/wss/wss_lib.c static int snd_wss_capture_hw_params(struct snd_pcm_substream *substream,
substream        1026 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1030 sound/isa/wss/wss_lib.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream        1039 sound/isa/wss/wss_lib.c static int snd_wss_capture_hw_free(struct snd_pcm_substream *substream)
substream        1041 sound/isa/wss/wss_lib.c 	return snd_pcm_lib_free_pages(substream);
substream        1044 sound/isa/wss/wss_lib.c static int snd_wss_capture_prepare(struct snd_pcm_substream *substream)
substream        1046 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1047 sound/isa/wss/wss_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1049 sound/isa/wss/wss_lib.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream        1050 sound/isa/wss/wss_lib.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream        1140 sound/isa/wss/wss_lib.c static snd_pcm_uframes_t snd_wss_playback_pointer(struct snd_pcm_substream *substream)
substream        1142 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1148 sound/isa/wss/wss_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream        1151 sound/isa/wss/wss_lib.c static snd_pcm_uframes_t snd_wss_capture_pointer(struct snd_pcm_substream *substream)
substream        1153 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1159 sound/isa/wss/wss_lib.c 	return bytes_to_frames(substream->runtime, ptr);
substream        1486 sound/isa/wss/wss_lib.c static int snd_wss_playback_open(struct snd_pcm_substream *substream)
substream        1488 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1489 sound/isa/wss/wss_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1522 sound/isa/wss/wss_lib.c 	chip->playback_substream = substream;
substream        1523 sound/isa/wss/wss_lib.c 	snd_pcm_set_sync(substream);
substream        1528 sound/isa/wss/wss_lib.c static int snd_wss_capture_open(struct snd_pcm_substream *substream)
substream        1530 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1531 sound/isa/wss/wss_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1562 sound/isa/wss/wss_lib.c 	chip->capture_substream = substream;
substream        1563 sound/isa/wss/wss_lib.c 	snd_pcm_set_sync(substream);
substream        1568 sound/isa/wss/wss_lib.c static int snd_wss_playback_close(struct snd_pcm_substream *substream)
substream        1570 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream        1577 sound/isa/wss/wss_lib.c static int snd_wss_capture_close(struct snd_pcm_substream *substream)
substream        1579 sound/isa/wss/wss_lib.c 	struct snd_wss *chip = snd_pcm_substream_chip(substream);
substream          57 sound/mips/hal2.c 	struct snd_pcm_substream *substream;
substream         304 sound/mips/hal2.c 		snd_pcm_period_elapsed(hal2->dac.substream);
substream         308 sound/mips/hal2.c 		snd_pcm_period_elapsed(hal2->adc.substream);
substream         508 sound/mips/hal2.c static int hal2_pcm_hw_params(struct snd_pcm_substream *substream,
substream         513 sound/mips/hal2.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         520 sound/mips/hal2.c static int hal2_pcm_hw_free(struct snd_pcm_substream *substream)
substream         522 sound/mips/hal2.c 	return snd_pcm_lib_free_pages(substream);
substream         525 sound/mips/hal2.c static int hal2_playback_open(struct snd_pcm_substream *substream)
substream         527 sound/mips/hal2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         528 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         539 sound/mips/hal2.c static int hal2_playback_close(struct snd_pcm_substream *substream)
substream         541 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         547 sound/mips/hal2.c static int hal2_playback_prepare(struct snd_pcm_substream *substream)
substream         549 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         550 sound/mips/hal2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         559 sound/mips/hal2.c 	dac->pcm_indirect.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         560 sound/mips/hal2.c 	dac->substream = substream;
substream         565 sound/mips/hal2.c static int hal2_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         567 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         583 sound/mips/hal2.c hal2_playback_pointer(struct snd_pcm_substream *substream)
substream         585 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         588 sound/mips/hal2.c 	return snd_pcm_indirect_playback_pointer(substream, &dac->pcm_indirect,
substream         592 sound/mips/hal2.c static void hal2_playback_transfer(struct snd_pcm_substream *substream,
substream         595 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         598 sound/mips/hal2.c 	memcpy(buf, substream->runtime->dma_area + rec->sw_data, bytes);
substream         603 sound/mips/hal2.c static int hal2_playback_ack(struct snd_pcm_substream *substream)
substream         605 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         608 sound/mips/hal2.c 	return snd_pcm_indirect_playback_transfer(substream,
substream         613 sound/mips/hal2.c static int hal2_capture_open(struct snd_pcm_substream *substream)
substream         615 sound/mips/hal2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         616 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         628 sound/mips/hal2.c static int hal2_capture_close(struct snd_pcm_substream *substream)
substream         630 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         636 sound/mips/hal2.c static int hal2_capture_prepare(struct snd_pcm_substream *substream)
substream         638 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         639 sound/mips/hal2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         648 sound/mips/hal2.c 	adc->pcm_indirect.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         649 sound/mips/hal2.c 	adc->substream = substream;
substream         654 sound/mips/hal2.c static int hal2_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         656 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         672 sound/mips/hal2.c hal2_capture_pointer(struct snd_pcm_substream *substream)
substream         674 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         677 sound/mips/hal2.c 	return snd_pcm_indirect_capture_pointer(substream, &adc->pcm_indirect,
substream         681 sound/mips/hal2.c static void hal2_capture_transfer(struct snd_pcm_substream *substream,
substream         684 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         688 sound/mips/hal2.c 	memcpy(substream->runtime->dma_area + rec->sw_data, buf, bytes);
substream         691 sound/mips/hal2.c static int hal2_capture_ack(struct snd_pcm_substream *substream)
substream         693 sound/mips/hal2.c 	struct snd_hal2 *hal2 = snd_pcm_substream_chip(substream);
substream         696 sound/mips/hal2.c 	return snd_pcm_indirect_capture_transfer(substream,
substream          73 sound/mips/sgio2audio.c 	struct snd_pcm_substream *substream;
substream         355 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime;
substream         403 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = chip->channel[ch].substream->runtime;
substream         440 sound/mips/sgio2audio.c static int snd_sgio2audio_dma_start(struct snd_pcm_substream *substream)
substream         442 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         443 sound/mips/sgio2audio.c 	struct snd_sgio2audio_chan *chan = substream->runtime->private_data;
substream         451 sound/mips/sgio2audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         461 sound/mips/sgio2audio.c static int snd_sgio2audio_dma_stop(struct snd_pcm_substream *substream)
substream         463 sound/mips/sgio2audio.c 	struct snd_sgio2audio_chan *chan = substream->runtime->private_data;
substream         472 sound/mips/sgio2audio.c 	struct snd_pcm_substream *substream;
substream         476 sound/mips/sgio2audio.c 	substream = chan->substream;
substream         477 sound/mips/sgio2audio.c 	chip = snd_pcm_substream_chip(substream);
substream         484 sound/mips/sgio2audio.c 		snd_pcm_period_elapsed(substream);
substream         492 sound/mips/sgio2audio.c 	struct snd_pcm_substream *substream;
substream         496 sound/mips/sgio2audio.c 	substream = chan->substream;
substream         497 sound/mips/sgio2audio.c 	chip = snd_pcm_substream_chip(substream);
substream         503 sound/mips/sgio2audio.c 		snd_pcm_period_elapsed(substream);
substream         511 sound/mips/sgio2audio.c 	struct snd_pcm_substream *substream;
substream         513 sound/mips/sgio2audio.c 	substream = chan->substream;
substream         514 sound/mips/sgio2audio.c 	snd_sgio2audio_dma_stop(substream);
substream         515 sound/mips/sgio2audio.c 	snd_sgio2audio_dma_start(substream);
substream         540 sound/mips/sgio2audio.c static int snd_sgio2audio_playback1_open(struct snd_pcm_substream *substream)
substream         542 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         543 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         550 sound/mips/sgio2audio.c static int snd_sgio2audio_playback2_open(struct snd_pcm_substream *substream)
substream         552 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         553 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         561 sound/mips/sgio2audio.c static int snd_sgio2audio_capture_open(struct snd_pcm_substream *substream)
substream         563 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         564 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         572 sound/mips/sgio2audio.c static int snd_sgio2audio_pcm_close(struct snd_pcm_substream *substream)
substream         574 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         582 sound/mips/sgio2audio.c static int snd_sgio2audio_pcm_hw_params(struct snd_pcm_substream *substream,
substream         585 sound/mips/sgio2audio.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         590 sound/mips/sgio2audio.c static int snd_sgio2audio_pcm_hw_free(struct snd_pcm_substream *substream)
substream         592 sound/mips/sgio2audio.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         596 sound/mips/sgio2audio.c static int snd_sgio2audio_pcm_prepare(struct snd_pcm_substream *substream)
substream         598 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         599 sound/mips/sgio2audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         600 sound/mips/sgio2audio.c 	struct snd_sgio2audio_chan *chan = substream->runtime->private_data;
substream         609 sound/mips/sgio2audio.c 	chip->channel[ch].substream = substream;
substream         613 sound/mips/sgio2audio.c 	switch (substream->stream) {
substream         633 sound/mips/sgio2audio.c static int snd_sgio2audio_pcm_trigger(struct snd_pcm_substream *substream,
substream         639 sound/mips/sgio2audio.c 		snd_sgio2audio_dma_start(substream);
substream         643 sound/mips/sgio2audio.c 		snd_sgio2audio_dma_stop(substream);
substream         653 sound/mips/sgio2audio.c snd_sgio2audio_pcm_pointer(struct snd_pcm_substream *substream)
substream         655 sound/mips/sgio2audio.c 	struct snd_sgio2audio *chip = snd_pcm_substream_chip(substream);
substream         656 sound/mips/sgio2audio.c 	struct snd_sgio2audio_chan *chan = substream->runtime->private_data;
substream         659 sound/mips/sgio2audio.c 	return bytes_to_frames(substream->runtime,
substream         261 sound/pci/ad1889.c snd_ad1889_hw_params(struct snd_pcm_substream *substream,
substream         264 sound/pci/ad1889.c 	return snd_pcm_lib_malloc_pages(substream, 
substream         269 sound/pci/ad1889.c snd_ad1889_hw_free(struct snd_pcm_substream *substream)
substream         271 sound/pci/ad1889.c 	return snd_pcm_lib_free_pages(substream);
substream         182 sound/pci/ali5451/ali5451.c 	struct snd_pcm_substream *substream;
substream         853 sound/pci/ali5451/ali5451.c 	if (pvoice->pcm && pvoice->substream) {
substream         861 sound/pci/ali5451/ali5451.c 			snd_pcm_period_elapsed(pvoice->substream);
substream         957 sound/pci/ali5451/ali5451.c 	pvoice->substream = NULL;
substream        1045 sound/pci/ali5451/ali5451.c static unsigned int snd_ali_control_mode(struct snd_pcm_substream *substream)
substream        1048 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1067 sound/pci/ali5451/ali5451.c static int snd_ali_trigger(struct snd_pcm_substream *substream,
substream        1071 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1092 sound/pci/ali5451/ali5451.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1112 sound/pci/ali5451/ali5451.c 			snd_pcm_trigger_done(s, substream);
substream        1134 sound/pci/ali5451/ali5451.c static int snd_ali_playback_hw_params(struct snd_pcm_substream *substream,
substream        1137 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1138 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1143 sound/pci/ali5451/ali5451.c 	err = snd_pcm_lib_malloc_pages(substream,
substream        1159 sound/pci/ali5451/ali5451.c 			evoice->substream = substream;
substream        1171 sound/pci/ali5451/ali5451.c static int snd_ali_playback_hw_free(struct snd_pcm_substream *substream)
substream        1173 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1174 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1178 sound/pci/ali5451/ali5451.c 	snd_pcm_lib_free_pages(substream);
substream        1186 sound/pci/ali5451/ali5451.c static int snd_ali_hw_params(struct snd_pcm_substream *substream,
substream        1189 sound/pci/ali5451/ali5451.c 	return snd_pcm_lib_malloc_pages(substream,
substream        1193 sound/pci/ali5451/ali5451.c static int snd_ali_hw_free(struct snd_pcm_substream *substream)
substream        1195 sound/pci/ali5451/ali5451.c 	return snd_pcm_lib_free_pages(substream);
substream        1198 sound/pci/ali5451/ali5451.c static int snd_ali_playback_prepare(struct snd_pcm_substream *substream)
substream        1200 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1201 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1247 sound/pci/ali5451/ali5451.c 	CTRL = snd_ali_control_mode(substream);
substream        1291 sound/pci/ali5451/ali5451.c static int snd_ali_prepare(struct snd_pcm_substream *substream)
substream        1293 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1294 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1354 sound/pci/ali5451/ali5451.c 	CTRL = snd_ali_control_mode(substream);
substream        1380 sound/pci/ali5451/ali5451.c snd_ali_playback_pointer(struct snd_pcm_substream *substream)
substream        1382 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1383 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1402 sound/pci/ali5451/ali5451.c static snd_pcm_uframes_t snd_ali_pointer(struct snd_pcm_substream *substream)
substream        1404 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1405 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1478 sound/pci/ali5451/ali5451.c static int snd_ali_open(struct snd_pcm_substream *substream, int rec,
substream        1481 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1482 sound/pci/ali5451/ali5451.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1490 sound/pci/ali5451/ali5451.c 	pvoice->substream = substream;
substream        1495 sound/pci/ali5451/ali5451.c 	snd_pcm_set_sync(substream);
substream        1501 sound/pci/ali5451/ali5451.c static int snd_ali_playback_open(struct snd_pcm_substream *substream)
substream        1503 sound/pci/ali5451/ali5451.c 	return snd_ali_open(substream, 0, -1, &snd_ali_playback);
substream        1506 sound/pci/ali5451/ali5451.c static int snd_ali_capture_open(struct snd_pcm_substream *substream)
substream        1508 sound/pci/ali5451/ali5451.c 	return snd_ali_open(substream, 1, -1, &snd_ali_capture);
substream        1511 sound/pci/ali5451/ali5451.c static int snd_ali_playback_close(struct snd_pcm_substream *substream)
substream        1516 sound/pci/ali5451/ali5451.c static int snd_ali_close(struct snd_pcm_substream *substream)
substream        1518 sound/pci/ali5451/ali5451.c 	struct snd_ali *codec = snd_pcm_substream_chip(substream);
substream        1519 sound/pci/ali5451/ali5451.c 	struct snd_ali_voice *pvoice = substream->runtime->private_data;
substream        1552 sound/pci/ali5451/ali5451.c static int snd_ali_modem_hw_params(struct snd_pcm_substream *substream,
substream        1555 sound/pci/ali5451/ali5451.c 	struct snd_ali *chip = snd_pcm_substream_chip(substream);
substream        1560 sound/pci/ali5451/ali5451.c 	return snd_ali_hw_params(substream, hw_params);
substream        1585 sound/pci/ali5451/ali5451.c static int snd_ali_modem_open(struct snd_pcm_substream *substream, int rec,
substream        1594 sound/pci/ali5451/ali5451.c 	int err = snd_ali_open(substream, rec, channel, &snd_ali_modem);
substream        1598 sound/pci/ali5451/ali5451.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1602 sound/pci/ali5451/ali5451.c static int snd_ali_modem_playback_open(struct snd_pcm_substream *substream)
substream        1604 sound/pci/ali5451/ali5451.c 	return snd_ali_modem_open(substream, 0, ALI_MODEM_OUT_CHANNEL);
substream        1607 sound/pci/ali5451/ali5451.c static int snd_ali_modem_capture_open(struct snd_pcm_substream *substream)
substream        1609 sound/pci/ali5451/ali5451.c 	return snd_ali_modem_open(substream, 1, ALI_MODEM_IN_CHANNEL);
substream         356 sound/pci/als300.c static int snd_als300_playback_open(struct snd_pcm_substream *substream)
substream         358 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         359 sound/pci/als300.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         365 sound/pci/als300.c 	chip->playback_substream = substream;
substream         373 sound/pci/als300.c static int snd_als300_playback_close(struct snd_pcm_substream *substream)
substream         375 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         378 sound/pci/als300.c 	data = substream->runtime->private_data;
substream         381 sound/pci/als300.c 	snd_pcm_lib_free_pages(substream);
substream         385 sound/pci/als300.c static int snd_als300_capture_open(struct snd_pcm_substream *substream)
substream         387 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         388 sound/pci/als300.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         394 sound/pci/als300.c 	chip->capture_substream = substream;
substream         402 sound/pci/als300.c static int snd_als300_capture_close(struct snd_pcm_substream *substream)
substream         404 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         407 sound/pci/als300.c 	data = substream->runtime->private_data;
substream         410 sound/pci/als300.c 	snd_pcm_lib_free_pages(substream);
substream         414 sound/pci/als300.c static int snd_als300_pcm_hw_params(struct snd_pcm_substream *substream,
substream         417 sound/pci/als300.c 	return snd_pcm_lib_malloc_pages(substream,
substream         421 sound/pci/als300.c static int snd_als300_pcm_hw_free(struct snd_pcm_substream *substream)
substream         423 sound/pci/als300.c 	return snd_pcm_lib_free_pages(substream);
substream         426 sound/pci/als300.c static int snd_als300_playback_prepare(struct snd_pcm_substream *substream)
substream         429 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         430 sound/pci/als300.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         431 sound/pci/als300.c 	unsigned short period_bytes = snd_pcm_lib_period_bytes(substream);
substream         432 sound/pci/als300.c 	unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
substream         455 sound/pci/als300.c static int snd_als300_capture_prepare(struct snd_pcm_substream *substream)
substream         458 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         459 sound/pci/als300.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         460 sound/pci/als300.c 	unsigned short period_bytes = snd_pcm_lib_period_bytes(substream);
substream         461 sound/pci/als300.c 	unsigned short buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
substream         484 sound/pci/als300.c static int snd_als300_trigger(struct snd_pcm_substream *substream, int cmd)
substream         486 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         492 sound/pci/als300.c 	data = substream->runtime->private_data;
substream         528 sound/pci/als300.c static snd_pcm_uframes_t snd_als300_pointer(struct snd_pcm_substream *substream)
substream         531 sound/pci/als300.c 	struct snd_als300 *chip = snd_pcm_substream_chip(substream);
substream         535 sound/pci/als300.c 	data = substream->runtime->private_data;
substream         536 sound/pci/als300.c 	period_bytes = snd_pcm_lib_period_bytes(substream);
substream         550 sound/pci/als300.c 	return bytes_to_frames(substream->runtime, current_ptr);
substream         357 sound/pci/als4000.c static int snd_als4000_hw_params(struct snd_pcm_substream *substream,
substream         360 sound/pci/als4000.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         363 sound/pci/als4000.c static int snd_als4000_hw_free(struct snd_pcm_substream *substream)
substream         365 sound/pci/als4000.c 	snd_pcm_lib_free_pages(substream);
substream         369 sound/pci/als4000.c static int snd_als4000_capture_prepare(struct snd_pcm_substream *substream)
substream         371 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         372 sound/pci/als4000.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         378 sound/pci/als4000.c 	size = snd_pcm_lib_buffer_bytes(substream);
substream         379 sound/pci/als4000.c 	count = snd_pcm_lib_period_bytes(substream);
substream         396 sound/pci/als4000.c static int snd_als4000_playback_prepare(struct snd_pcm_substream *substream)
substream         398 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         399 sound/pci/als4000.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         405 sound/pci/als4000.c 	size = snd_pcm_lib_buffer_bytes(substream);
substream         406 sound/pci/als4000.c 	count = snd_pcm_lib_period_bytes(substream);
substream         434 sound/pci/als4000.c static int snd_als4000_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         436 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         467 sound/pci/als4000.c static int snd_als4000_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         469 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         492 sound/pci/als4000.c static snd_pcm_uframes_t snd_als4000_capture_pointer(struct snd_pcm_substream *substream)
substream         494 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         501 sound/pci/als4000.c 	return bytes_to_frames( substream->runtime, result );
substream         504 sound/pci/als4000.c static snd_pcm_uframes_t snd_als4000_playback_pointer(struct snd_pcm_substream *substream)
substream         506 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         513 sound/pci/als4000.c 	return bytes_to_frames( substream->runtime, result );
substream         621 sound/pci/als4000.c static int snd_als4000_playback_open(struct snd_pcm_substream *substream)
substream         623 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         624 sound/pci/als4000.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         626 sound/pci/als4000.c 	chip->playback_substream = substream;
substream         631 sound/pci/als4000.c static int snd_als4000_playback_close(struct snd_pcm_substream *substream)
substream         633 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         636 sound/pci/als4000.c 	snd_pcm_lib_free_pages(substream);
substream         640 sound/pci/als4000.c static int snd_als4000_capture_open(struct snd_pcm_substream *substream)
substream         642 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         643 sound/pci/als4000.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         645 sound/pci/als4000.c 	chip->capture_substream = substream;
substream         650 sound/pci/als4000.c static int snd_als4000_capture_close(struct snd_pcm_substream *substream)
substream         652 sound/pci/als4000.c 	struct snd_sb *chip = snd_pcm_substream_chip(substream);
substream         655 sound/pci/als4000.c 	snd_pcm_lib_free_pages(substream);
substream         121 sound/pci/asihpi/asihpi.c 	void (*pcm_start)(struct snd_pcm_substream *substream);
substream         122 sound/pci/asihpi/asihpi.c 	void (*pcm_stop)(struct snd_pcm_substream *substream);
substream         149 sound/pci/asihpi/asihpi.c 	struct snd_pcm_substream *substream;
substream         283 sound/pci/asihpi/asihpi.c static void print_hwparams(struct snd_pcm_substream *substream,
substream         287 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream         440 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_pcm_hw_params(struct snd_pcm_substream *substream,
substream         443 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         445 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi *card = snd_pcm_substream_chip(substream);
substream         451 sound/pci/asihpi/asihpi.c 	print_hwparams(substream, params);
substream         452 sound/pci/asihpi/asihpi.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         463 sound/pci/asihpi/asihpi.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         505 sound/pci/asihpi/asihpi.c snd_card_asihpi_hw_free(struct snd_pcm_substream *substream)
substream         507 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         512 sound/pci/asihpi/asihpi.c 	snd_pcm_lib_free_pages(substream);
substream         523 sound/pci/asihpi/asihpi.c 					    substream)
substream         525 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         536 sound/pci/asihpi/asihpi.c static void snd_card_asihpi_pcm_timer_stop(struct snd_pcm_substream *substream)
substream         538 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         545 sound/pci/asihpi/asihpi.c static void snd_card_asihpi_pcm_int_start(struct snd_pcm_substream *substream)
substream         550 sound/pci/asihpi/asihpi.c 	dpcm = (struct snd_card_asihpi_pcm *)substream->runtime->private_data;
substream         551 sound/pci/asihpi/asihpi.c 	card = snd_pcm_substream_chip(substream);
substream         563 sound/pci/asihpi/asihpi.c static void snd_card_asihpi_pcm_int_stop(struct snd_pcm_substream *substream)
substream         567 sound/pci/asihpi/asihpi.c 	card = snd_pcm_substream_chip(substream);
substream         581 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_trigger(struct snd_pcm_substream *substream,
substream         584 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
substream         585 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi *card = snd_pcm_substream_chip(substream);
substream         590 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream         595 sound/pci/asihpi/asihpi.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         603 sound/pci/asihpi/asihpi.c 			if (substream->stream != s->stream)
substream         630 sound/pci/asihpi/asihpi.c 					snd_pcm_trigger_done(s, substream);
substream         639 sound/pci/asihpi/asihpi.c 		card->pcm_start(substream);
substream         640 sound/pci/asihpi/asihpi.c 		if ((substream->stream == SNDRV_PCM_STREAM_CAPTURE) ||
substream         647 sound/pci/asihpi/asihpi.c 		card->pcm_stop(substream);
substream         648 sound/pci/asihpi/asihpi.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         652 sound/pci/asihpi/asihpi.c 			if (substream->stream != s->stream)
substream         661 sound/pci/asihpi/asihpi.c 				snd_pcm_trigger_done(s, substream);
substream         668 sound/pci/asihpi/asihpi.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         678 sound/pci/asihpi/asihpi.c 		card->pcm_start(substream);
substream         683 sound/pci/asihpi/asihpi.c 		card->pcm_stop(substream);
substream         742 sound/pci/asihpi/asihpi.c 	struct snd_pcm_substream *substream = dpcm->substream;
substream         743 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi *card = snd_pcm_substream_chip(substream);
substream         756 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream         759 sound/pci/asihpi/asihpi.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         767 sound/pci/asihpi/asihpi.c 		if (substream->stream != s->stream)
substream         851 sound/pci/asihpi/asihpi.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         855 sound/pci/asihpi/asihpi.c 		if (substream->stream != s->stream)
substream         950 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_playback_ioctl(struct snd_pcm_substream *substream,
substream         954 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream         956 sound/pci/asihpi/asihpi.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream         960 sound/pci/asihpi/asihpi.c 					    substream)
substream         962 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         965 sound/pci/asihpi/asihpi.c 	snd_printdd("P%d prepare\n", substream->number);
substream         975 sound/pci/asihpi/asihpi.c snd_card_asihpi_playback_pointer(struct snd_pcm_substream *substream)
substream         977 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         981 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream        1021 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_playback_open(struct snd_pcm_substream *substream)
substream        1023 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1025 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi *card = snd_pcm_substream_chip(substream);
substream        1034 sound/pci/asihpi/asihpi.c 			      substream->number, &dpcm->h_stream);
substream        1049 sound/pci/asihpi/asihpi.c 	dpcm->substream = substream;
substream        1088 sound/pci/asihpi/asihpi.c 		snd_pcm_set_sync(substream);
substream        1111 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_playback_close(struct snd_pcm_substream *substream)
substream        1113 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1135 sound/pci/asihpi/asihpi.c snd_card_asihpi_capture_pointer(struct snd_pcm_substream *substream)
substream        1137 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1140 sound/pci/asihpi/asihpi.c 	snd_pcm_debug_name(substream, name, sizeof(name));
substream        1150 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_capture_ioctl(struct snd_pcm_substream *substream,
substream        1153 sound/pci/asihpi/asihpi.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream        1156 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_capture_prepare(struct snd_pcm_substream *substream)
substream        1158 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1166 sound/pci/asihpi/asihpi.c 	snd_printdd("Capture Prepare %d\n", substream->number);
substream        1203 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_capture_open(struct snd_pcm_substream *substream)
substream        1205 sound/pci/asihpi/asihpi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1206 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi *card = snd_pcm_substream_chip(substream);
substream        1216 sound/pci/asihpi/asihpi.c 			card->hpi->adapter->index, substream->number);
substream        1220 sound/pci/asihpi/asihpi.c 			     substream->number, &dpcm->h_stream));
substream        1229 sound/pci/asihpi/asihpi.c 	dpcm->substream = substream;
substream        1275 sound/pci/asihpi/asihpi.c 	snd_pcm_set_sync(substream);
substream        1280 sound/pci/asihpi/asihpi.c static int snd_card_asihpi_capture_close(struct snd_pcm_substream *substream)
substream        1282 sound/pci/asihpi/asihpi.c 	struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
substream         233 sound/pci/atiixp.c 	struct snd_pcm_substream *substream;	/* assigned PCM substream */
substream         343 sound/pci/atiixp.c 				    struct snd_pcm_substream *substream,
substream         374 sound/pci/atiixp.c 	addr = (u32)substream->runtime->dma_addr;
substream         403 sound/pci/atiixp.c 				     struct snd_pcm_substream *substream)
substream         647 sound/pci/atiixp.c static snd_pcm_uframes_t snd_atiixp_pcm_pointer(struct snd_pcm_substream *substream)
substream         649 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         650 sound/pci/atiixp.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         674 sound/pci/atiixp.c 	if (! dma->substream || ! dma->running)
substream         677 sound/pci/atiixp.c 	snd_pcm_stop_xrun(dma->substream);
substream         685 sound/pci/atiixp.c 	if (! dma->substream || ! dma->running)
substream         687 sound/pci/atiixp.c 	snd_pcm_period_elapsed(dma->substream);
substream         707 sound/pci/atiixp.c static int snd_atiixp_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         709 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         710 sound/pci/atiixp.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         861 sound/pci/atiixp.c static int snd_atiixp_spdif_prepare(struct snd_pcm_substream *substream)
substream         863 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         877 sound/pci/atiixp.c 			      substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
substream         888 sound/pci/atiixp.c static int snd_atiixp_playback_prepare(struct snd_pcm_substream *substream)
substream         890 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         895 sound/pci/atiixp.c 	switch (substream->runtime->channels) {
substream         919 sound/pci/atiixp.c 		      substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
substream         926 sound/pci/atiixp.c 		      substream->runtime->channels >= 6 ? ATI_REG_6CH_REORDER_EN: 0);
substream         933 sound/pci/atiixp.c static int snd_atiixp_capture_prepare(struct snd_pcm_substream *substream)
substream         935 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         939 sound/pci/atiixp.c 		      substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE ?
substream         948 sound/pci/atiixp.c static int snd_atiixp_pcm_hw_params(struct snd_pcm_substream *substream,
substream         951 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         952 sound/pci/atiixp.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         955 sound/pci/atiixp.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         958 sound/pci/atiixp.c 	dma->buf_addr = substream->runtime->dma_addr;
substream         961 sound/pci/atiixp.c 	err = atiixp_build_dma_packets(chip, dma, substream,
substream         986 sound/pci/atiixp.c static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream)
substream         988 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream         989 sound/pci/atiixp.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         996 sound/pci/atiixp.c 	atiixp_clear_dma_packets(chip, dma, substream);
substream         997 sound/pci/atiixp.c 	snd_pcm_lib_free_pages(substream);
substream        1025 sound/pci/atiixp.c static int snd_atiixp_pcm_open(struct snd_pcm_substream *substream,
substream        1028 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1029 sound/pci/atiixp.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1037 sound/pci/atiixp.c 	dma->substream = substream;
substream        1060 sound/pci/atiixp.c static int snd_atiixp_pcm_close(struct snd_pcm_substream *substream,
substream        1063 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1070 sound/pci/atiixp.c 	dma->substream = NULL;
substream        1077 sound/pci/atiixp.c static int snd_atiixp_playback_open(struct snd_pcm_substream *substream)
substream        1079 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1083 sound/pci/atiixp.c 	err = snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_PLAYBACK], 0);
substream        1087 sound/pci/atiixp.c 	substream->runtime->hw.channels_max = chip->max_channels;
substream        1090 sound/pci/atiixp.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        1095 sound/pci/atiixp.c static int snd_atiixp_playback_close(struct snd_pcm_substream *substream)
substream        1097 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1100 sound/pci/atiixp.c 	err = snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_PLAYBACK]);
substream        1105 sound/pci/atiixp.c static int snd_atiixp_capture_open(struct snd_pcm_substream *substream)
substream        1107 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1108 sound/pci/atiixp.c 	return snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_CAPTURE], 1);
substream        1111 sound/pci/atiixp.c static int snd_atiixp_capture_close(struct snd_pcm_substream *substream)
substream        1113 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1114 sound/pci/atiixp.c 	return snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_CAPTURE]);
substream        1117 sound/pci/atiixp.c static int snd_atiixp_spdif_open(struct snd_pcm_substream *substream)
substream        1119 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1123 sound/pci/atiixp.c 		err = snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_PLAYBACK], 2);
substream        1125 sound/pci/atiixp.c 		err = snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_SPDIF], -1);
substream        1130 sound/pci/atiixp.c static int snd_atiixp_spdif_close(struct snd_pcm_substream *substream)
substream        1132 sound/pci/atiixp.c 	struct atiixp *chip = snd_pcm_substream_chip(substream);
substream        1136 sound/pci/atiixp.c 		err = snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_PLAYBACK]);
substream        1138 sound/pci/atiixp.c 		err = snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_SPDIF]);
substream        1497 sound/pci/atiixp.c 			if (dma->substream && dma->suspended) {
substream        1499 sound/pci/atiixp.c 				dma->substream->ops->prepare(dma->substream);
substream         209 sound/pci/atiixp_modem.c 	struct snd_pcm_substream *substream;	/* assigned PCM substream */
substream         312 sound/pci/atiixp_modem.c 				    struct snd_pcm_substream *substream,
substream         341 sound/pci/atiixp_modem.c 	addr = (u32)substream->runtime->dma_addr;
substream         371 sound/pci/atiixp_modem.c 				     struct snd_pcm_substream *substream)
substream         596 sound/pci/atiixp_modem.c static snd_pcm_uframes_t snd_atiixp_pcm_pointer(struct snd_pcm_substream *substream)
substream         598 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         599 sound/pci/atiixp_modem.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         624 sound/pci/atiixp_modem.c 	if (! dma->substream || ! dma->running)
substream         627 sound/pci/atiixp_modem.c 	snd_pcm_stop_xrun(dma->substream);
substream         636 sound/pci/atiixp_modem.c 	if (! dma->substream || ! dma->running)
substream         638 sound/pci/atiixp_modem.c 	snd_pcm_period_elapsed(dma->substream);
substream         657 sound/pci/atiixp_modem.c static int snd_atiixp_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         659 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         660 sound/pci/atiixp_modem.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         754 sound/pci/atiixp_modem.c static int snd_atiixp_playback_prepare(struct snd_pcm_substream *substream)
substream         756 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         770 sound/pci/atiixp_modem.c static int snd_atiixp_capture_prepare(struct snd_pcm_substream *substream)
substream         778 sound/pci/atiixp_modem.c static int snd_atiixp_pcm_hw_params(struct snd_pcm_substream *substream,
substream         781 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         782 sound/pci/atiixp_modem.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         786 sound/pci/atiixp_modem.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         789 sound/pci/atiixp_modem.c 	dma->buf_addr = substream->runtime->dma_addr;
substream         792 sound/pci/atiixp_modem.c 	err = atiixp_build_dma_packets(chip, dma, substream,
substream         809 sound/pci/atiixp_modem.c static int snd_atiixp_pcm_hw_free(struct snd_pcm_substream *substream)
substream         811 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         812 sound/pci/atiixp_modem.c 	struct atiixp_dma *dma = substream->runtime->private_data;
substream         814 sound/pci/atiixp_modem.c 	atiixp_clear_dma_packets(chip, dma, substream);
substream         815 sound/pci/atiixp_modem.c 	snd_pcm_lib_free_pages(substream);
substream         843 sound/pci/atiixp_modem.c static int snd_atiixp_pcm_open(struct snd_pcm_substream *substream,
substream         846 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         847 sound/pci/atiixp_modem.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         861 sound/pci/atiixp_modem.c 	dma->substream = substream;
substream         882 sound/pci/atiixp_modem.c static int snd_atiixp_pcm_close(struct snd_pcm_substream *substream,
substream         885 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         892 sound/pci/atiixp_modem.c 	dma->substream = NULL;
substream         899 sound/pci/atiixp_modem.c static int snd_atiixp_playback_open(struct snd_pcm_substream *substream)
substream         901 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         905 sound/pci/atiixp_modem.c 	err = snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_PLAYBACK], 0);
substream         912 sound/pci/atiixp_modem.c static int snd_atiixp_playback_close(struct snd_pcm_substream *substream)
substream         914 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         917 sound/pci/atiixp_modem.c 	err = snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_PLAYBACK]);
substream         922 sound/pci/atiixp_modem.c static int snd_atiixp_capture_open(struct snd_pcm_substream *substream)
substream         924 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         925 sound/pci/atiixp_modem.c 	return snd_atiixp_pcm_open(substream, &chip->dmas[ATI_DMA_CAPTURE], 1);
substream         928 sound/pci/atiixp_modem.c static int snd_atiixp_capture_close(struct snd_pcm_substream *substream)
substream         930 sound/pci/atiixp_modem.c 	struct atiixp_modem *chip = snd_pcm_substream_chip(substream);
substream         931 sound/pci/atiixp_modem.c 	return snd_atiixp_pcm_close(substream, &chip->dmas[ATI_DMA_CAPTURE]);
substream         126 sound/pci/au88x0/au88x0.h 	struct snd_pcm_substream *substream;
substream        1105 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize * 3));
substream        1113 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize * 2));
substream        1120 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize));
substream        1127 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, 0));
substream        1196 sound/pci/au88x0/au88x0_core.c 				snd_pcm_sgbuf_get_addr(dma->substream,
substream        1238 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream,
substream        1383 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize * 3));
substream        1390 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize * 2));
substream        1396 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, psize));
substream        1402 sound/pci/au88x0/au88x0_core.c 			snd_pcm_sgbuf_get_addr(dma->substream, 0));
substream        1467 sound/pci/au88x0/au88x0_core.c 				snd_pcm_sgbuf_get_addr(dma->substream,
substream        2455 sound/pci/au88x0/au88x0_core.c 						       substream);
substream        2470 sound/pci/au88x0/au88x0_core.c 						       substream);
substream         126 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_pcm_open(struct snd_pcm_substream *substream)
substream         128 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *vortex = snd_pcm_substream_chip(substream);
substream         129 sound/pci/au88x0/au88x0_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         146 sound/pci/au88x0/au88x0_pcm.c 	if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
substream         148 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_A3D) {
substream         152 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_SPDIF) {
substream         166 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB
substream         167 sound/pci/au88x0/au88x0_pcm.c 		    || VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_I2S)
substream         170 sound/pci/au88x0/au88x0_pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         172 sound/pci/au88x0/au88x0_pcm.c 			VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
substream         179 sound/pci/au88x0/au88x0_pcm.c 		substream->runtime->private_data = NULL;
substream         184 sound/pci/au88x0/au88x0_pcm.c 		substream->runtime->private_data = NULL;
substream         191 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_pcm_close(struct snd_pcm_substream *substream)
substream         194 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) substream->runtime->private_data;
substream         198 sound/pci/au88x0/au88x0_pcm.c 		stream->substream = NULL;
substream         201 sound/pci/au88x0/au88x0_pcm.c 	substream->runtime->private_data = NULL;
substream         207 sound/pci/au88x0/au88x0_pcm.c snd_vortex_pcm_hw_params(struct snd_pcm_substream *substream,
substream         210 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *chip = snd_pcm_substream_chip(substream);
substream         211 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) (substream->runtime->private_data);
substream         216 sound/pci/au88x0/au88x0_pcm.c 	    snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         227 sound/pci/au88x0/au88x0_pcm.c 	if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
substream         228 sound/pci/au88x0/au88x0_pcm.c 		int dma, type = VORTEX_PCM_TYPE(substream->pcm);
substream         234 sound/pci/au88x0/au88x0_pcm.c 					      substream->number);
substream         239 sound/pci/au88x0/au88x0_pcm.c 					  substream->stream, type,
substream         240 sound/pci/au88x0/au88x0_pcm.c 					  substream->number);
substream         245 sound/pci/au88x0/au88x0_pcm.c 		stream = substream->runtime->private_data = &chip->dma_adb[dma];
substream         246 sound/pci/au88x0/au88x0_pcm.c 		stream->substream = substream;
substream         251 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
substream         252 sound/pci/au88x0/au88x0_pcm.c 			chip->pcm_vol[substream->number].active = 1;
substream         254 sound/pci/au88x0/au88x0_pcm.c 				chip->pcm_vol[substream->number].kctl, 1);
substream         261 sound/pci/au88x0/au88x0_pcm.c 		vortex_wt_allocroute(chip, substream->number,
substream         263 sound/pci/au88x0/au88x0_pcm.c 		stream = substream->runtime->private_data =
substream         264 sound/pci/au88x0/au88x0_pcm.c 		    &chip->dma_wt[substream->number];
substream         265 sound/pci/au88x0/au88x0_pcm.c 		stream->dma = substream->number;
substream         266 sound/pci/au88x0/au88x0_pcm.c 		stream->substream = substream;
substream         267 sound/pci/au88x0/au88x0_pcm.c 		vortex_wtdma_setbuffers(chip, substream->number,
substream         277 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_pcm_hw_free(struct snd_pcm_substream *substream)
substream         279 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *chip = snd_pcm_substream_chip(substream);
substream         280 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) (substream->runtime->private_data);
substream         284 sound/pci/au88x0/au88x0_pcm.c 	if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
substream         286 sound/pci/au88x0/au88x0_pcm.c 			if (VORTEX_PCM_TYPE(substream->pcm) == VORTEX_PCM_ADB) {
substream         287 sound/pci/au88x0/au88x0_pcm.c 				chip->pcm_vol[substream->number].active = 0;
substream         289 sound/pci/au88x0/au88x0_pcm.c 					chip->pcm_vol[substream->number].kctl,
substream         295 sound/pci/au88x0/au88x0_pcm.c 					      substream->number);
substream         304 sound/pci/au88x0/au88x0_pcm.c 	substream->runtime->private_data = NULL;
substream         307 sound/pci/au88x0/au88x0_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         311 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_pcm_prepare(struct snd_pcm_substream *substream)
substream         313 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *chip = snd_pcm_substream_chip(substream);
substream         314 sound/pci/au88x0/au88x0_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         315 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) substream->runtime->private_data;
substream         319 sound/pci/au88x0/au88x0_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         325 sound/pci/au88x0/au88x0_pcm.c 	if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
substream         329 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_SPDIF)
substream         344 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         346 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *chip = snd_pcm_substream_chip(substream);
substream         347 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) substream->runtime->private_data;
substream         356 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT) {
substream         371 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
substream         382 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
substream         391 sound/pci/au88x0/au88x0_pcm.c 		if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
substream         407 sound/pci/au88x0/au88x0_pcm.c static snd_pcm_uframes_t snd_vortex_pcm_pointer(struct snd_pcm_substream *substream)
substream         409 sound/pci/au88x0/au88x0_pcm.c 	vortex_t *chip = snd_pcm_substream_chip(substream);
substream         410 sound/pci/au88x0/au88x0_pcm.c 	stream_t *stream = (stream_t *) substream->runtime->private_data;
substream         415 sound/pci/au88x0/au88x0_pcm.c 	if (VORTEX_PCM_TYPE(substream->pcm) != VORTEX_PCM_WT)
substream         423 sound/pci/au88x0/au88x0_pcm.c 	current_ptr = bytes_to_frames(substream->runtime, current_ptr);
substream         424 sound/pci/au88x0/au88x0_pcm.c 	if (current_ptr >= substream->runtime->buffer_size)
substream         108 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream);
substream         109 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream);
substream         110 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream);
substream         111 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream);
substream         112 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_hw_params(struct snd_pcm_substream *substream,
substream         114 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_hw_free(struct snd_pcm_substream *substream);
substream         115 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream);
substream         116 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream);
substream         117 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
substream         119 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
substream         122 sound/pci/aw2/aw2-alsa.c 						      *substream);
substream         124 sound/pci/aw2/aw2-alsa.c 						     *substream);
substream         382 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream)
substream         384 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         386 sound/pci/aw2/aw2-alsa.c 	dev_dbg(substream->pcm->card->dev, "Playback_open\n");
substream         392 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream)
substream         398 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream)
substream         400 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         402 sound/pci/aw2/aw2-alsa.c 	dev_dbg(substream->pcm->card->dev, "Capture_open\n");
substream         408 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream)
substream         415 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_hw_params(struct snd_pcm_substream *substream,
substream         418 sound/pci/aw2/aw2-alsa.c 	return snd_pcm_lib_malloc_pages(substream,
substream         423 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_hw_free(struct snd_pcm_substream *substream)
substream         425 sound/pci/aw2/aw2-alsa.c 	return snd_pcm_lib_free_pages(substream);
substream         429 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream)
substream         431 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         433 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         438 sound/pci/aw2/aw2-alsa.c 	period_size = snd_pcm_lib_period_bytes(substream);
substream         439 sound/pci/aw2/aw2-alsa.c 	buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         450 sound/pci/aw2/aw2-alsa.c 						    (void *)substream);
substream         458 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream)
substream         460 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         462 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         467 sound/pci/aw2/aw2-alsa.c 	period_size = snd_pcm_lib_period_bytes(substream);
substream         468 sound/pci/aw2/aw2-alsa.c 	buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream         479 sound/pci/aw2/aw2-alsa.c 						   (void *)substream);
substream         487 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
substream         491 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         513 sound/pci/aw2/aw2-alsa.c static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
substream         517 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         540 sound/pci/aw2/aw2-alsa.c 						      *substream)
substream         542 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         547 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         554 sound/pci/aw2/aw2-alsa.c 	return bytes_to_frames(substream->runtime, current_ptr);
substream         559 sound/pci/aw2/aw2-alsa.c 						     *substream)
substream         561 sound/pci/aw2/aw2-alsa.c 	struct aw2_pcm_device *pcm_device = snd_pcm_substream_chip(substream);
substream         566 sound/pci/aw2/aw2-alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         573 sound/pci/aw2/aw2-alsa.c 	return bytes_to_frames(substream->runtime, current_ptr);
substream         254 sound/pci/azt3328.c 	struct snd_pcm_substream *substream;
substream        1209 sound/pci/azt3328.c snd_azf3328_hw_params(struct snd_pcm_substream *substream,
substream        1212 sound/pci/azt3328.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream        1216 sound/pci/azt3328.c snd_azf3328_hw_free(struct snd_pcm_substream *substream)
substream        1218 sound/pci/azt3328.c 	snd_pcm_lib_free_pages(substream);
substream        1442 sound/pci/azt3328.c snd_azf3328_pcm_prepare(struct snd_pcm_substream *substream)
substream        1444 sound/pci/azt3328.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1447 sound/pci/azt3328.c         unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream        1448 sound/pci/azt3328.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream        1465 sound/pci/azt3328.c snd_azf3328_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1467 sound/pci/azt3328.c 	struct snd_azf3328 *chip = snd_pcm_substream_chip(substream);
substream        1468 sound/pci/azt3328.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1505 sound/pci/azt3328.c 			snd_pcm_lib_period_bytes(substream),
substream        1506 sound/pci/azt3328.c 			snd_pcm_lib_buffer_bytes(substream)
substream        1621 sound/pci/azt3328.c snd_azf3328_pcm_pointer(struct snd_pcm_substream *substream
substream        1625 sound/pci/azt3328.c 		substream->runtime->private_data;
substream        1637 sound/pci/azt3328.c 	frmres = bytes_to_frames( substream->runtime, result);
substream        1638 sound/pci/azt3328.c 	dev_dbg(substream->pcm->card->dev, "%08li %s @ 0x%8lx, frames %8ld\n",
substream        1897 sound/pci/azt3328.c 		if (codec->substream) {
substream        1898 sound/pci/azt3328.c 			snd_pcm_period_elapsed(codec->substream);
substream        2029 sound/pci/azt3328.c snd_azf3328_pcm_open(struct snd_pcm_substream *substream,
substream        2033 sound/pci/azt3328.c 	struct snd_azf3328 *chip = snd_pcm_substream_chip(substream);
substream        2034 sound/pci/azt3328.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2037 sound/pci/azt3328.c 	codec->substream = substream;
substream        2049 sound/pci/azt3328.c snd_azf3328_pcm_playback_open(struct snd_pcm_substream *substream)
substream        2051 sound/pci/azt3328.c 	return snd_azf3328_pcm_open(substream, AZF_CODEC_PLAYBACK);
substream        2055 sound/pci/azt3328.c snd_azf3328_pcm_capture_open(struct snd_pcm_substream *substream)
substream        2057 sound/pci/azt3328.c 	return snd_azf3328_pcm_open(substream, AZF_CODEC_CAPTURE);
substream        2061 sound/pci/azt3328.c snd_azf3328_pcm_i2s_out_open(struct snd_pcm_substream *substream)
substream        2063 sound/pci/azt3328.c 	return snd_azf3328_pcm_open(substream, AZF_CODEC_I2S_OUT);
substream        2067 sound/pci/azt3328.c snd_azf3328_pcm_close(struct snd_pcm_substream *substream
substream        2071 sound/pci/azt3328.c 		substream->runtime->private_data;
substream        2073 sound/pci/azt3328.c 	codec->substream = NULL;
substream         187 sound/pci/bt87x.c 	struct snd_pcm_substream *substream;
substream         213 sound/pci/bt87x.c static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substream *substream,
substream         249 sound/pci/bt87x.c 			addr = snd_pcm_sgbuf_get_addr(substream, offset);
substream         337 sound/pci/bt87x.c 		snd_pcm_period_elapsed(chip->substream);
substream         407 sound/pci/bt87x.c static int snd_bt87x_pcm_open(struct snd_pcm_substream *substream)
substream         409 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         410 sound/pci/bt87x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         416 sound/pci/bt87x.c 	if (substream->pcm->device == DEVICE_DIGITAL)
substream         427 sound/pci/bt87x.c 	chip->substream = substream;
substream         436 sound/pci/bt87x.c static int snd_bt87x_close(struct snd_pcm_substream *substream)
substream         438 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         445 sound/pci/bt87x.c 	chip->substream = NULL;
substream         451 sound/pci/bt87x.c static int snd_bt87x_hw_params(struct snd_pcm_substream *substream,
substream         454 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         457 sound/pci/bt87x.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         461 sound/pci/bt87x.c 	return snd_bt87x_create_risc(chip, substream,
substream         466 sound/pci/bt87x.c static int snd_bt87x_hw_free(struct snd_pcm_substream *substream)
substream         468 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         471 sound/pci/bt87x.c 	snd_pcm_lib_free_pages(substream);
substream         475 sound/pci/bt87x.c static int snd_bt87x_prepare(struct snd_pcm_substream *substream)
substream         477 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         478 sound/pci/bt87x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         517 sound/pci/bt87x.c static int snd_bt87x_trigger(struct snd_pcm_substream *substream, int cmd)
substream         519 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         531 sound/pci/bt87x.c static snd_pcm_uframes_t snd_bt87x_pointer(struct snd_pcm_substream *substream)
substream         533 sound/pci/bt87x.c 	struct snd_bt87x *chip = snd_pcm_substream_chip(substream);
substream         534 sound/pci/bt87x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         644 sound/pci/ca0106/ca0106.h 	struct snd_pcm_substream *substream;
substream         546 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_playback_channel(struct snd_pcm_substream *substream,
substream         549 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
substream         552 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         560 sound/pci/ca0106/ca0106_main.c 	epcm->substream = substream;
substream         582 sound/pci/ca0106/ca0106_main.c 	snd_pcm_set_sync(substream);
substream         597 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_close_playback(struct snd_pcm_substream *substream)
substream         599 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
substream         600 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         618 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_playback_front(struct snd_pcm_substream *substream)
substream         620 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_playback_channel(substream, PCM_FRONT_CHANNEL);
substream         623 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_playback_center_lfe(struct snd_pcm_substream *substream)
substream         625 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_playback_channel(substream, PCM_CENTER_LFE_CHANNEL);
substream         628 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_playback_unknown(struct snd_pcm_substream *substream)
substream         630 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_playback_channel(substream, PCM_UNKNOWN_CHANNEL);
substream         633 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_playback_rear(struct snd_pcm_substream *substream)
substream         635 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_playback_channel(substream, PCM_REAR_CHANNEL);
substream         639 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_capture_channel(struct snd_pcm_substream *substream,
substream         642 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
substream         645 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         653 sound/pci/ca0106/ca0106_main.c 	epcm->substream = substream;
substream         680 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_close_capture(struct snd_pcm_substream *substream)
substream         682 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *chip = snd_pcm_substream_chip(substream);
substream         683 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         690 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_0_capture(struct snd_pcm_substream *substream)
substream         692 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_capture_channel(substream, 0);
substream         695 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_1_capture(struct snd_pcm_substream *substream)
substream         697 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_capture_channel(substream, 1);
substream         700 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_2_capture(struct snd_pcm_substream *substream)
substream         702 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_capture_channel(substream, 2);
substream         705 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_open_3_capture(struct snd_pcm_substream *substream)
substream         707 sound/pci/ca0106/ca0106_main.c 	return snd_ca0106_pcm_open_capture_channel(substream, 3);
substream         711 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_hw_params_playback(struct snd_pcm_substream *substream,
substream         714 sound/pci/ca0106/ca0106_main.c 	return snd_pcm_lib_malloc_pages(substream,
substream         719 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_hw_free_playback(struct snd_pcm_substream *substream)
substream         721 sound/pci/ca0106/ca0106_main.c 	return snd_pcm_lib_free_pages(substream);
substream         725 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_hw_params_capture(struct snd_pcm_substream *substream,
substream         728 sound/pci/ca0106/ca0106_main.c 	return snd_pcm_lib_malloc_pages(substream,
substream         733 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_hw_free_capture(struct snd_pcm_substream *substream)
substream         735 sound/pci/ca0106/ca0106_main.c 	return snd_pcm_lib_free_pages(substream);
substream         739 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_prepare_playback(struct snd_pcm_substream *substream)
substream         741 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream         742 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         852 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_prepare_capture(struct snd_pcm_substream *substream)
substream         854 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream         855 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         943 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_trigger_playback(struct snd_pcm_substream *substream,
substream         946 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream         968 sound/pci/ca0106/ca0106_main.c         snd_pcm_group_for_each_entry(s, substream) {
substream         979 sound/pci/ca0106/ca0106_main.c                 snd_pcm_trigger_done(s, substream);
substream        1010 sound/pci/ca0106/ca0106_main.c static int snd_ca0106_pcm_trigger_capture(struct snd_pcm_substream *substream,
substream        1013 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream        1014 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1039 sound/pci/ca0106/ca0106_main.c snd_ca0106_pcm_pointer_playback(struct snd_pcm_substream *substream)
substream        1041 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream        1042 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1069 sound/pci/ca0106/ca0106_main.c snd_ca0106_pcm_pointer_capture(struct snd_pcm_substream *substream)
substream        1071 sound/pci/ca0106/ca0106_main.c 	struct snd_ca0106 *emu = snd_pcm_substream_chip(substream);
substream        1072 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1288 sound/pci/ca0106/ca0106_main.c 				snd_pcm_period_elapsed(pchannel->epcm->substream);
substream        1304 sound/pci/ca0106/ca0106_main.c 				snd_pcm_period_elapsed(pchannel->epcm->substream);
substream        1352 sound/pci/ca0106/ca0106_main.c 	struct snd_pcm_substream *substream;
substream        1388 sound/pci/ca0106/ca0106_main.c 	for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; 
substream        1389 sound/pci/ca0106/ca0106_main.c 	    substream; 
substream        1390 sound/pci/ca0106/ca0106_main.c 	    substream = substream->next) {
substream        1391 sound/pci/ca0106/ca0106_main.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream        1396 sound/pci/ca0106/ca0106_main.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; 
substream        1397 sound/pci/ca0106/ca0106_main.c 	      substream; 
substream        1398 sound/pci/ca0106/ca0106_main.c 	      substream = substream->next) {
substream        1399 sound/pci/ca0106/ca0106_main.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream         108 sound/pci/ca0106/ca_midi.c static int ca_midi_input_open(struct snd_rawmidi_substream *substream)
substream         110 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         117 sound/pci/ca0106/ca_midi.c 	midi->substream_input = substream;
substream         128 sound/pci/ca0106/ca_midi.c static int ca_midi_output_open(struct snd_rawmidi_substream *substream)
substream         130 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         137 sound/pci/ca0106/ca_midi.c 	midi->substream_output = substream;
substream         148 sound/pci/ca0106/ca_midi.c static int ca_midi_input_close(struct snd_rawmidi_substream *substream)
substream         150 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         168 sound/pci/ca0106/ca_midi.c static int ca_midi_output_close(struct snd_rawmidi_substream *substream)
substream         170 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         191 sound/pci/ca0106/ca_midi.c static void ca_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         193 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         205 sound/pci/ca0106/ca_midi.c static void ca_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         207 sound/pci/ca0106/ca_midi.c 	struct snd_ca_midi *midi = substream->rmidi->private_data;
substream         223 sound/pci/ca0106/ca_midi.c 				    snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream         420 sound/pci/cmipci.c 	struct snd_pcm_substream *substream;
substream         669 sound/pci/cmipci.c static int snd_cmipci_hw_params(struct snd_pcm_substream *substream,
substream         672 sound/pci/cmipci.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         675 sound/pci/cmipci.c static int snd_cmipci_playback2_hw_params(struct snd_pcm_substream *substream,
substream         678 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         689 sound/pci/cmipci.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         700 sound/pci/cmipci.c static int snd_cmipci_hw_free(struct snd_pcm_substream *substream)
substream         702 sound/pci/cmipci.c 	return snd_pcm_lib_free_pages(substream);
substream         770 sound/pci/cmipci.c 				 struct snd_pcm_substream *substream)
substream         774 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         928 sound/pci/cmipci.c 						struct snd_pcm_substream *substream)
substream         949 sound/pci/cmipci.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         951 sound/pci/cmipci.c 	if (substream->runtime->channels > 2)
substream         952 sound/pci/cmipci.c 		ptr = (ptr * 2) / substream->runtime->channels;
substream         960 sound/pci/cmipci.c static int snd_cmipci_playback_trigger(struct snd_pcm_substream *substream,
substream         963 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         967 sound/pci/cmipci.c static snd_pcm_uframes_t snd_cmipci_playback_pointer(struct snd_pcm_substream *substream)
substream         969 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         970 sound/pci/cmipci.c 	return snd_cmipci_pcm_pointer(cm, &cm->channel[CM_CH_PLAY], substream);
substream         979 sound/pci/cmipci.c static int snd_cmipci_capture_trigger(struct snd_pcm_substream *substream,
substream         982 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         986 sound/pci/cmipci.c static snd_pcm_uframes_t snd_cmipci_capture_pointer(struct snd_pcm_substream *substream)
substream         988 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         989 sound/pci/cmipci.c 	return snd_cmipci_pcm_pointer(cm, &cm->channel[CM_CH_CAPT], substream);
substream        1283 sound/pci/cmipci.c static int snd_cmipci_playback_prepare(struct snd_pcm_substream *substream)
substream        1285 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1286 sound/pci/cmipci.c 	int rate = substream->runtime->rate;
substream        1290 sound/pci/cmipci.c 		    substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE &&
substream        1291 sound/pci/cmipci.c 		    substream->runtime->channels == 2);
substream        1294 sound/pci/cmipci.c 	if ((err = setup_spdif_playback(cm, substream, do_spdif, do_ac3)) < 0)
substream        1296 sound/pci/cmipci.c 	return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_PLAY], substream);
substream        1300 sound/pci/cmipci.c static int snd_cmipci_playback_spdif_prepare(struct snd_pcm_substream *substream)
substream        1302 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1309 sound/pci/cmipci.c 	if ((err = setup_spdif_playback(cm, substream, 1, do_ac3)) < 0)
substream        1311 sound/pci/cmipci.c 	return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_PLAY], substream);
substream        1324 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = rec->substream->runtime;
substream        1368 sound/pci/cmipci.c static int snd_cmipci_playback_hw_free(struct snd_pcm_substream *substream)
substream        1370 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1371 sound/pci/cmipci.c 	setup_spdif_playback(cm, substream, 0, 0);
substream        1374 sound/pci/cmipci.c 	return snd_cmipci_hw_free(substream);
substream        1377 sound/pci/cmipci.c static int snd_cmipci_playback2_hw_free(struct snd_pcm_substream *substream)
substream        1379 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1381 sound/pci/cmipci.c 	return snd_cmipci_hw_free(substream);
substream        1385 sound/pci/cmipci.c static int snd_cmipci_capture_prepare(struct snd_pcm_substream *substream)
substream        1387 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1388 sound/pci/cmipci.c 	return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_CAPT], substream);
substream        1392 sound/pci/cmipci.c static int snd_cmipci_capture_spdif_prepare(struct snd_pcm_substream *substream)
substream        1394 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1399 sound/pci/cmipci.c 		if (substream->runtime->rate > 48000)
substream        1404 sound/pci/cmipci.c 	if (snd_pcm_format_width(substream->runtime->format) > 16)
substream        1411 sound/pci/cmipci.c 	return snd_cmipci_pcm_prepare(cm, &cm->channel[CM_CH_CAPT], substream);
substream        1455 sound/pci/cmipci.c 			snd_pcm_period_elapsed(cm->channel[0].substream);
substream        1457 sound/pci/cmipci.c 			snd_pcm_period_elapsed(cm->channel[1].substream);
substream        1613 sound/pci/cmipci.c 	cm->channel[ch].substream = subs;
substream        1631 sound/pci/cmipci.c 		if (cm->channel[ch].substream) {
substream        1634 sound/pci/cmipci.c 			cm->channel[ch].substream = NULL;
substream        1651 sound/pci/cmipci.c static int snd_cmipci_playback_open(struct snd_pcm_substream *substream)
substream        1653 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1654 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1657 sound/pci/cmipci.c 	if ((err = open_device_check(cm, CM_OPEN_PLAYBACK, substream)) < 0)
substream        1677 sound/pci/cmipci.c static int snd_cmipci_capture_open(struct snd_pcm_substream *substream)
substream        1679 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1680 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1683 sound/pci/cmipci.c 	if ((err = open_device_check(cm, CM_OPEN_CAPTURE, substream)) < 0)
substream        1701 sound/pci/cmipci.c static int snd_cmipci_playback2_open(struct snd_pcm_substream *substream)
substream        1703 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1704 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1707 sound/pci/cmipci.c 	if ((err = open_device_check(cm, CM_OPEN_PLAYBACK2, substream)) < 0) /* use channel B */
substream        1739 sound/pci/cmipci.c static int snd_cmipci_playback_spdif_open(struct snd_pcm_substream *substream)
substream        1741 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1742 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1745 sound/pci/cmipci.c 	if ((err = open_device_check(cm, CM_OPEN_SPDIF_PLAYBACK, substream)) < 0) /* use channel A */
substream        1766 sound/pci/cmipci.c static int snd_cmipci_capture_spdif_open(struct snd_pcm_substream *substream)
substream        1768 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1769 sound/pci/cmipci.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1772 sound/pci/cmipci.c 	if ((err = open_device_check(cm, CM_OPEN_SPDIF_CAPTURE, substream)) < 0) /* use channel B */
substream        1788 sound/pci/cmipci.c static int snd_cmipci_playback_close(struct snd_pcm_substream *substream)
substream        1790 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1795 sound/pci/cmipci.c static int snd_cmipci_capture_close(struct snd_pcm_substream *substream)
substream        1797 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1802 sound/pci/cmipci.c static int snd_cmipci_playback2_close(struct snd_pcm_substream *substream)
substream        1804 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1810 sound/pci/cmipci.c static int snd_cmipci_playback_spdif_close(struct snd_pcm_substream *substream)
substream        1812 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream        1817 sound/pci/cmipci.c static int snd_cmipci_capture_spdif_close(struct snd_pcm_substream *substream)
substream        1819 sound/pci/cmipci.c 	struct cmipci *cm = snd_pcm_substream_chip(substream);
substream         416 sound/pci/cs4281.c 	struct snd_pcm_substream *substream;
substream         653 sound/pci/cs4281.c static int snd_cs4281_trigger(struct snd_pcm_substream *substream, int cmd)
substream         655 sound/pci/cs4281.c 	struct cs4281_dma *dma = substream->runtime->private_data;
substream         656 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         783 sound/pci/cs4281.c static int snd_cs4281_hw_params(struct snd_pcm_substream *substream,
substream         786 sound/pci/cs4281.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         789 sound/pci/cs4281.c static int snd_cs4281_hw_free(struct snd_pcm_substream *substream)
substream         791 sound/pci/cs4281.c 	return snd_pcm_lib_free_pages(substream);
substream         794 sound/pci/cs4281.c static int snd_cs4281_playback_prepare(struct snd_pcm_substream *substream)
substream         796 sound/pci/cs4281.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         798 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         806 sound/pci/cs4281.c static int snd_cs4281_capture_prepare(struct snd_pcm_substream *substream)
substream         808 sound/pci/cs4281.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         810 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         818 sound/pci/cs4281.c static snd_pcm_uframes_t snd_cs4281_pointer(struct snd_pcm_substream *substream)
substream         820 sound/pci/cs4281.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         822 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         884 sound/pci/cs4281.c static int snd_cs4281_playback_open(struct snd_pcm_substream *substream)
substream         886 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         887 sound/pci/cs4281.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         891 sound/pci/cs4281.c 	dma->substream = substream;
substream         903 sound/pci/cs4281.c static int snd_cs4281_capture_open(struct snd_pcm_substream *substream)
substream         905 sound/pci/cs4281.c 	struct cs4281 *chip = snd_pcm_substream_chip(substream);
substream         906 sound/pci/cs4281.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         910 sound/pci/cs4281.c 	dma->substream = substream;
substream         922 sound/pci/cs4281.c static int snd_cs4281_playback_close(struct snd_pcm_substream *substream)
substream         924 sound/pci/cs4281.c 	struct cs4281_dma *dma = substream->runtime->private_data;
substream         926 sound/pci/cs4281.c 	dma->substream = NULL;
substream         930 sound/pci/cs4281.c static int snd_cs4281_capture_close(struct snd_pcm_substream *substream)
substream         932 sound/pci/cs4281.c 	struct cs4281_dma *dma = substream->runtime->private_data;
substream         934 sound/pci/cs4281.c 	dma->substream = NULL;
substream        1636 sound/pci/cs4281.c static int snd_cs4281_midi_input_open(struct snd_rawmidi_substream *substream)
substream        1638 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1642 sound/pci/cs4281.c 	chip->midi_input = substream;
substream        1652 sound/pci/cs4281.c static int snd_cs4281_midi_input_close(struct snd_rawmidi_substream *substream)
substream        1654 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1669 sound/pci/cs4281.c static int snd_cs4281_midi_output_open(struct snd_rawmidi_substream *substream)
substream        1671 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1676 sound/pci/cs4281.c 	chip->midi_output = substream;
substream        1686 sound/pci/cs4281.c static int snd_cs4281_midi_output_close(struct snd_rawmidi_substream *substream)
substream        1688 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1703 sound/pci/cs4281.c static void snd_cs4281_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1706 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1723 sound/pci/cs4281.c static void snd_cs4281_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1726 sound/pci/cs4281.c 	struct cs4281 *chip = substream->rmidi->private_data;
substream        1736 sound/pci/cs4281.c 				if (snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream        1824 sound/pci/cs4281.c 				snd_pcm_period_elapsed(cdma->substream);
substream        1626 sound/pci/cs46xx/cs46xx.h 	struct snd_pcm_substream *substream;
substream        1664 sound/pci/cs46xx/cs46xx.h 		struct snd_pcm_substream *substream;
substream         864 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_pb_trans_copy(struct snd_pcm_substream *substream,
substream         867 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         872 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_transfer(struct snd_pcm_substream *substream)
substream         874 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         876 sound/pci/cs46xx/cs46xx_lib.c 	return snd_pcm_indirect_playback_transfer(substream, &cpcm->pcm_rec,
substream         880 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_cp_trans_copy(struct snd_pcm_substream *substream,
substream         883 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         884 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         889 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_transfer(struct snd_pcm_substream *substream)
substream         891 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         892 sound/pci/cs46xx/cs46xx_lib.c 	return snd_pcm_indirect_capture_transfer(substream, &chip->capt.pcm_rec,
substream         896 sound/pci/cs46xx/cs46xx_lib.c static snd_pcm_uframes_t snd_cs46xx_playback_direct_pointer(struct snd_pcm_substream *substream)
substream         898 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         900 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
substream         914 sound/pci/cs46xx/cs46xx_lib.c static snd_pcm_uframes_t snd_cs46xx_playback_indirect_pointer(struct snd_pcm_substream *substream)
substream         916 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         918 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
substream         928 sound/pci/cs46xx/cs46xx_lib.c 	return snd_pcm_indirect_playback_pointer(substream, &cpcm->pcm_rec, ptr);
substream         931 sound/pci/cs46xx/cs46xx_lib.c static snd_pcm_uframes_t snd_cs46xx_capture_direct_pointer(struct snd_pcm_substream *substream)
substream         933 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         938 sound/pci/cs46xx/cs46xx_lib.c static snd_pcm_uframes_t snd_cs46xx_capture_indirect_pointer(struct snd_pcm_substream *substream)
substream         940 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         942 sound/pci/cs46xx/cs46xx_lib.c 	return snd_pcm_indirect_capture_pointer(substream, &chip->capt.pcm_rec, ptr);
substream         945 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_trigger(struct snd_pcm_substream *substream,
substream         948 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream         953 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx_pcm *cpcm = substream->runtime->private_data;
substream         969 sound/pci/cs46xx/cs46xx_lib.c 		if (substream->runtime->periods != CS46XX_FRAGS)
substream         970 sound/pci/cs46xx/cs46xx_lib.c 			snd_cs46xx_playback_transfer(substream);
substream         973 sound/pci/cs46xx/cs46xx_lib.c 		if (substream->runtime->periods != CS46XX_FRAGS)
substream         974 sound/pci/cs46xx/cs46xx_lib.c 			snd_cs46xx_playback_transfer(substream);
substream        1010 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_trigger(struct snd_pcm_substream *substream,
substream        1013 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1078 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_hw_params(struct snd_pcm_substream *substream,
substream        1081 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1085 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1122 sound/pci/cs46xx/cs46xx_lib.c 			snd_pcm_lib_free_pages(substream);
substream        1130 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_ops;
substream        1132 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_rear_ops;
substream        1134 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_clfe_ops;
substream        1136 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_iec958_ops;
substream        1141 sound/pci/cs46xx/cs46xx_lib.c 		substream->ops = &snd_cs46xx_playback_ops;
substream        1150 sound/pci/cs46xx/cs46xx_lib.c 		if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0) {
substream        1159 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_indirect_ops;
substream        1161 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_indirect_rear_ops;
substream        1163 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_indirect_clfe_ops;
substream        1165 sound/pci/cs46xx/cs46xx_lib.c 			substream->ops = &snd_cs46xx_playback_indirect_iec958_ops;
substream        1170 sound/pci/cs46xx/cs46xx_lib.c 		substream->ops = &snd_cs46xx_playback_indirect_ops;
substream        1182 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_hw_free(struct snd_pcm_substream *substream)
substream        1185 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1195 sound/pci/cs46xx/cs46xx_lib.c 		snd_pcm_lib_free_pages(substream);
substream        1204 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_prepare(struct snd_pcm_substream *substream)
substream        1208 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1209 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1249 sound/pci/cs46xx/cs46xx_lib.c 	cpcm->pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream        1275 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_hw_params(struct snd_pcm_substream *substream,
substream        1278 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1279 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1287 sound/pci/cs46xx/cs46xx_lib.c 			snd_pcm_lib_free_pages(substream);
substream        1291 sound/pci/cs46xx/cs46xx_lib.c 		substream->ops = &snd_cs46xx_capture_ops;
substream        1298 sound/pci/cs46xx/cs46xx_lib.c 		if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream        1300 sound/pci/cs46xx/cs46xx_lib.c 		substream->ops = &snd_cs46xx_capture_indirect_ops;
substream        1306 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_hw_free(struct snd_pcm_substream *substream)
substream        1308 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1309 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1312 sound/pci/cs46xx/cs46xx_lib.c 		snd_pcm_lib_free_pages(substream);
substream        1320 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_prepare(struct snd_pcm_substream *substream)
substream        1322 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1323 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1328 sound/pci/cs46xx/cs46xx_lib.c 	chip->capt.pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream        1362 sound/pci/cs46xx/cs46xx_lib.c 					if (chip->capt.substream)
substream        1363 sound/pci/cs46xx/cs46xx_lib.c 						snd_pcm_period_elapsed(chip->capt.substream);
substream        1369 sound/pci/cs46xx/cs46xx_lib.c 						snd_pcm_period_elapsed(cpcm->substream);
substream        1379 sound/pci/cs46xx/cs46xx_lib.c 					snd_pcm_period_elapsed(cpcm->substream);
substream        1388 sound/pci/cs46xx/cs46xx_lib.c 		if (chip->playback_pcm->substream)
substream        1389 sound/pci/cs46xx/cs46xx_lib.c 			snd_pcm_period_elapsed(chip->playback_pcm->substream);
substream        1392 sound/pci/cs46xx/cs46xx_lib.c 		if (chip->capt.substream)
substream        1393 sound/pci/cs46xx/cs46xx_lib.c 			snd_pcm_period_elapsed(chip->capt.substream);
substream        1488 sound/pci/cs46xx/cs46xx_lib.c static int _cs46xx_playback_open_channel (struct snd_pcm_substream *substream,int pcm_channel_id)
substream        1490 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1492 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1507 sound/pci/cs46xx/cs46xx_lib.c 	cpcm->substream = substream;
substream        1524 sound/pci/cs46xx/cs46xx_lib.c 		substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
substream        1530 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_open(struct snd_pcm_substream *substream)
substream        1532 sound/pci/cs46xx/cs46xx_lib.c 	dev_dbg(substream->pcm->card->dev, "open front channel\n");
substream        1533 sound/pci/cs46xx/cs46xx_lib.c 	return _cs46xx_playback_open_channel(substream,DSP_PCM_MAIN_CHANNEL);
substream        1537 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_open_rear(struct snd_pcm_substream *substream)
substream        1539 sound/pci/cs46xx/cs46xx_lib.c 	dev_dbg(substream->pcm->card->dev, "open rear channel\n");
substream        1540 sound/pci/cs46xx/cs46xx_lib.c 	return _cs46xx_playback_open_channel(substream,DSP_PCM_REAR_CHANNEL);
substream        1543 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_open_clfe(struct snd_pcm_substream *substream)
substream        1545 sound/pci/cs46xx/cs46xx_lib.c 	dev_dbg(substream->pcm->card->dev, "open center - LFE channel\n");
substream        1546 sound/pci/cs46xx/cs46xx_lib.c 	return _cs46xx_playback_open_channel(substream,DSP_PCM_CENTER_LFE_CHANNEL);
substream        1549 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_open_iec958(struct snd_pcm_substream *substream)
substream        1551 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1559 sound/pci/cs46xx/cs46xx_lib.c 	return _cs46xx_playback_open_channel(substream,DSP_IEC958_CHANNEL);
substream        1562 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_close(struct snd_pcm_substream *substream);
substream        1564 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_close_iec958(struct snd_pcm_substream *substream)
substream        1567 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1571 sound/pci/cs46xx/cs46xx_lib.c 	err = snd_cs46xx_playback_close(substream);
substream        1581 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_open(struct snd_pcm_substream *substream)
substream        1583 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1588 sound/pci/cs46xx/cs46xx_lib.c 	chip->capt.substream = substream;
substream        1589 sound/pci/cs46xx/cs46xx_lib.c 	substream->runtime->hw = snd_cs46xx_capture;
substream        1592 sound/pci/cs46xx/cs46xx_lib.c 		substream->runtime->hw.info |= SNDRV_PCM_INFO_MMAP_VALID;
substream        1597 sound/pci/cs46xx/cs46xx_lib.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1604 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_playback_close(struct snd_pcm_substream *substream)
substream        1606 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1607 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1626 sound/pci/cs46xx/cs46xx_lib.c 	cpcm->substream = NULL;
substream        1633 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_capture_close(struct snd_pcm_substream *substream)
substream        1635 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = snd_pcm_substream_chip(substream);
substream        1637 sound/pci/cs46xx/cs46xx_lib.c 	chip->capt.substream = NULL;
substream        2551 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_midi_input_open(struct snd_rawmidi_substream *substream)
substream        2553 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2559 sound/pci/cs46xx/cs46xx_lib.c 	chip->midi_input = substream;
substream        2569 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_midi_input_close(struct snd_rawmidi_substream *substream)
substream        2571 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2587 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_midi_output_open(struct snd_rawmidi_substream *substream)
substream        2589 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2596 sound/pci/cs46xx/cs46xx_lib.c 	chip->midi_output = substream;
substream        2606 sound/pci/cs46xx/cs46xx_lib.c static int snd_cs46xx_midi_output_close(struct snd_rawmidi_substream *substream)
substream        2608 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2624 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        2627 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2644 sound/pci/cs46xx/cs46xx_lib.c static void snd_cs46xx_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        2647 sound/pci/cs46xx/cs46xx_lib.c 	struct snd_cs46xx *chip = substream->rmidi->private_data;
substream        2657 sound/pci/cs46xx/cs46xx_lib.c 				if (snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream          78 sound/pci/cs5535audio/cs5535audio.h 	struct snd_pcm_substream *substream;
substream          79 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_playback_open(struct snd_pcm_substream *substream)
substream          82 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream          83 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          88 sound/pci/cs5535audio/cs5535audio_pcm.c 	cs5535au->playback_substream = substream;
substream          97 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_playback_close(struct snd_pcm_substream *substream)
substream         107 sound/pci/cs5535audio/cs5535audio_pcm.c 					 struct snd_pcm_substream *substream,
substream         132 sound/pci/cs5535audio/cs5535audio_pcm.c 	addr = (u32) substream->runtime->dma_addr;
substream         151 sound/pci/cs5535audio/cs5535audio_pcm.c 	dma->substream = substream;
substream         225 sound/pci/cs5535audio/cs5535audio_pcm.c 					  struct snd_pcm_substream *substream)
substream         229 sound/pci/cs5535audio/cs5535audio_pcm.c 	dma->substream = NULL;
substream         232 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_hw_params(struct snd_pcm_substream *substream,
substream         235 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         236 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio_dma *dma = substream->runtime->private_data;
substream         239 sound/pci/cs5535audio/cs5535audio_pcm.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         243 sound/pci/cs5535audio/cs5535audio_pcm.c 	dma->buf_addr = substream->runtime->dma_addr;
substream         246 sound/pci/cs5535audio/cs5535audio_pcm.c 	err = cs5535audio_build_dma_packets(cs5535au, dma, substream,
substream         255 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_hw_free(struct snd_pcm_substream *substream)
substream         257 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         258 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio_dma *dma = substream->runtime->private_data;
substream         261 sound/pci/cs5535audio/cs5535audio_pcm.c 		if (substream == cs5535au->playback_substream)
substream         269 sound/pci/cs5535audio/cs5535audio_pcm.c 	cs5535audio_clear_dma_packets(cs5535au, dma, substream);
substream         270 sound/pci/cs5535audio/cs5535audio_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         273 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_playback_prepare(struct snd_pcm_substream *substream)
substream         275 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         277 sound/pci/cs5535audio/cs5535audio_pcm.c 				 substream->runtime->rate);
substream         280 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_trigger(struct snd_pcm_substream *substream, int cmd)
substream         282 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         283 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio_dma *dma = substream->runtime->private_data;
substream         316 sound/pci/cs5535audio/cs5535audio_pcm.c 							*substream)
substream         318 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         322 sound/pci/cs5535audio/cs5535audio_pcm.c 	dma = substream->runtime->private_data;
substream         335 sound/pci/cs5535audio/cs5535audio_pcm.c 	return bytes_to_frames(substream->runtime, curdma);
substream         338 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_capture_open(struct snd_pcm_substream *substream)
substream         341 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         342 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         347 sound/pci/cs5535audio/cs5535audio_pcm.c 	cs5535au->capture_substream = substream;
substream         356 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_capture_close(struct snd_pcm_substream *substream)
substream         358 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         363 sound/pci/cs5535audio/cs5535audio_pcm.c static int snd_cs5535audio_capture_prepare(struct snd_pcm_substream *substream)
substream         365 sound/pci/cs5535audio/cs5535audio_pcm.c 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
substream         367 sound/pci/cs5535audio/cs5535audio_pcm.c 				 substream->runtime->rate);
substream          54 sound/pci/cs5535audio/cs5535audio_pm.c 		if (dma && dma->substream)
substream          87 sound/pci/cs5535audio/cs5535audio_pm.c 		if (dma && dma->substream) {
substream          88 sound/pci/cs5535audio/cs5535audio_pm.c 			dma->substream->ops->prepare(dma->substream);
substream         138 sound/pci/ctxfi/ctatc.c 	if (!apcm->substream)
substream         141 sound/pci/ctxfi/ctatc.c 	runtime = apcm->substream->runtime;
substream         144 sound/pci/ctxfi/ctatc.c 	apcm->vm_block = vm->map(vm, apcm->substream, runtime->dma_bytes);
substream         249 sound/pci/ctxfi/ctatc.c 	int n_amixer = apcm->substream->runtime->channels, i = 0;
substream         250 sound/pci/ctxfi/ctatc.c 	int device = apcm->substream->pcm->device;
substream         257 sound/pci/ctxfi/ctatc.c 	desc.multi = apcm->substream->runtime->channels;
substream         264 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch(apcm->substream->runtime->rate,
substream         269 sound/pci/ctxfi/ctatc.c 	src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
substream         466 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
substream         470 sound/pci/ctxfi/ctatc.c 		*n_srcc = apcm->substream->runtime->channels;
substream         483 sound/pci/ctxfi/ctatc.c 					apcm->substream->runtime->rate);
substream         486 sound/pci/ctxfi/ctatc.c 			*n_srcc = apcm->substream->runtime->channels * 2;
substream         494 sound/pci/ctxfi/ctatc.c 			*n_srcc = apcm->substream->runtime->channels;
substream         523 sound/pci/ctxfi/ctatc.c 	multi = apcm->substream->runtime->channels;
substream         527 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
substream         603 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
substream         622 sound/pci/ctxfi/ctatc.c 	src_dsc.multi = apcm->substream->runtime->channels;
substream         667 sound/pci/ctxfi/ctatc.c 	multi = apcm->substream->runtime->channels;
substream         690 sound/pci/ctxfi/ctatc.c 				apcm->substream->runtime->rate);
substream         732 sound/pci/ctxfi/ctatc.c 	multi = apcm->substream->runtime->channels;
substream         742 sound/pci/ctxfi/ctatc.c 	src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
substream         791 sound/pci/ctxfi/ctatc.c 	int n_amixer = apcm->substream->runtime->channels, i;
substream         798 sound/pci/ctxfi/ctatc.c 	desc.multi = apcm->substream->runtime->channels;
substream         800 sound/pci/ctxfi/ctatc.c 	while (apcm->substream->runtime->rate > (rsr * desc.msr))
substream         808 sound/pci/ctxfi/ctatc.c 	pitch = atc_get_pitch(apcm->substream->runtime->rate, (rsr * desc.msr));
substream         812 sound/pci/ctxfi/ctatc.c 	src->ops->set_sf(src, convert_format(apcm->substream->runtime->format,
substream         859 sound/pci/ctxfi/ctatc.c 	unsigned int rate = apcm->substream->runtime->rate;
substream          55 sound/pci/ctxfi/ctatc.h 	struct snd_pcm_substream *substream;
substream          97 sound/pci/ctxfi/ctpcm.c 	if (!apcm->substream)
substream         100 sound/pci/ctxfi/ctpcm.c 	snd_pcm_period_elapsed(apcm->substream);
substream         106 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(apcm->substream);
substream         115 sound/pci/ctxfi/ctpcm.c static int ct_pcm_playback_open(struct snd_pcm_substream *substream)
substream         117 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         118 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         126 sound/pci/ctxfi/ctpcm.c 	apcm->substream = substream;
substream         128 sound/pci/ctxfi/ctpcm.c 	if (IEC958 == substream->pcm->device) {
substream         133 sound/pci/ctxfi/ctpcm.c 		if (FRONT == substream->pcm->device)
substream         163 sound/pci/ctxfi/ctpcm.c static int ct_pcm_playback_close(struct snd_pcm_substream *substream)
substream         165 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         168 sound/pci/ctxfi/ctpcm.c 	if (IEC958 == substream->pcm->device)
substream         176 sound/pci/ctxfi/ctpcm.c static int ct_pcm_hw_params(struct snd_pcm_substream *substream,
substream         179 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         180 sound/pci/ctxfi/ctpcm.c 	struct ct_atc_pcm *apcm = substream->runtime->private_data;
substream         183 sound/pci/ctxfi/ctpcm.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         192 sound/pci/ctxfi/ctpcm.c static int ct_pcm_hw_free(struct snd_pcm_substream *substream)
substream         194 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         195 sound/pci/ctxfi/ctpcm.c 	struct ct_atc_pcm *apcm = substream->runtime->private_data;
substream         200 sound/pci/ctxfi/ctpcm.c 	return snd_pcm_lib_free_pages(substream);
substream         204 sound/pci/ctxfi/ctpcm.c static int ct_pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         207 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         208 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         211 sound/pci/ctxfi/ctpcm.c 	if (IEC958 == substream->pcm->device)
substream         226 sound/pci/ctxfi/ctpcm.c ct_pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         228 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         229 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         251 sound/pci/ctxfi/ctpcm.c ct_pcm_playback_pointer(struct snd_pcm_substream *substream)
substream         254 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         255 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         267 sound/pci/ctxfi/ctpcm.c static int ct_pcm_capture_open(struct snd_pcm_substream *substream)
substream         269 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         270 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         279 sound/pci/ctxfi/ctpcm.c 	apcm->substream = substream;
substream         310 sound/pci/ctxfi/ctpcm.c static int ct_pcm_capture_close(struct snd_pcm_substream *substream)
substream         317 sound/pci/ctxfi/ctpcm.c static int ct_pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         320 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         321 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         335 sound/pci/ctxfi/ctpcm.c ct_pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         337 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         338 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         357 sound/pci/ctxfi/ctpcm.c ct_pcm_capture_pointer(struct snd_pcm_substream *substream)
substream         360 sound/pci/ctxfi/ctpcm.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         361 sound/pci/ctxfi/ctpcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          34 sound/pci/ctxfi/cttimer.c 	struct snd_pcm_substream *substream;
substream          66 sound/pci/ctxfi/cttimer.c 	struct snd_pcm_substream *substream = ti->substream;
substream          67 sound/pci/ctxfi/cttimer.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          74 sound/pci/ctxfi/cttimer.c 	position = substream->ops->pointer(substream);
substream          98 sound/pci/ctxfi/cttimer.c 	struct snd_pcm_runtime *runtime = ti->substream->runtime;
substream         202 sound/pci/ctxfi/cttimer.c 			period_size = ti->substream->runtime->period_size;
substream         203 sound/pci/ctxfi/cttimer.c 			rate = ti->substream->runtime->rate;
substream         204 sound/pci/ctxfi/cttimer.c 			pos = ti->substream->ops->pointer(ti->substream);
substream         265 sound/pci/ctxfi/cttimer.c 	ti->frag_count = ti->substream->runtime->period_size;
substream         346 sound/pci/ctxfi/cttimer.c 	ti->substream = apcm->substream;
substream         124 sound/pci/ctxfi/ctvmem.c ct_vm_map(struct ct_vm *vm, struct snd_pcm_substream *substream, int size)
substream         130 sound/pci/ctxfi/ctvmem.c 	struct ct_atc *atc = snd_pcm_substream_chip(substream);
substream         144 sound/pci/ctxfi/ctvmem.c 		addr = snd_pcm_sgbuf_get_addr(substream, i << CT_PAGE_SHIFT);
substream         258 sound/pci/echoaudio/echoaudio.c static int pcm_open(struct snd_pcm_substream *substream,
substream         269 sound/pci/echoaudio/echoaudio.c 	chip = snd_pcm_substream_chip(substream);
substream         270 sound/pci/echoaudio/echoaudio.c 	runtime = substream->runtime;
substream         294 sound/pci/echoaudio/echoaudio.c 	snd_pcm_set_sync(substream);
substream         319 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         338 sound/pci/echoaudio/echoaudio.c static int pcm_analog_in_open(struct snd_pcm_substream *substream)
substream         340 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         343 sound/pci/echoaudio/echoaudio.c 	if ((err = pcm_open(substream, num_analog_busses_in(chip) -
substream         344 sound/pci/echoaudio/echoaudio.c 			    substream->number)) < 0)
substream         346 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         351 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         367 sound/pci/echoaudio/echoaudio.c static int pcm_analog_out_open(struct snd_pcm_substream *substream)
substream         369 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         377 sound/pci/echoaudio/echoaudio.c 	if ((err = pcm_open(substream, max_channels - substream->number)) < 0)
substream         379 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         385 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         404 sound/pci/echoaudio/echoaudio.c static int pcm_digital_in_open(struct snd_pcm_substream *substream)
substream         406 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         409 sound/pci/echoaudio/echoaudio.c 	max_channels = num_digital_busses_in(chip) - substream->number;
substream         412 sound/pci/echoaudio/echoaudio.c 		err = pcm_open(substream, max_channels);
substream         416 sound/pci/echoaudio/echoaudio.c 		err = pcm_open(substream, max_channels - ECHOCARD_HAS_ADAT);
substream         421 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         426 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         445 sound/pci/echoaudio/echoaudio.c static int pcm_digital_out_open(struct snd_pcm_substream *substream)
substream         447 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         450 sound/pci/echoaudio/echoaudio.c 	max_channels = num_digital_busses_out(chip) - substream->number;
substream         453 sound/pci/echoaudio/echoaudio.c 		err = pcm_open(substream, max_channels);
substream         457 sound/pci/echoaudio/echoaudio.c 		err = pcm_open(substream, max_channels - ECHOCARD_HAS_ADAT);
substream         462 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         468 sound/pci/echoaudio/echoaudio.c 	if ((err = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         488 sound/pci/echoaudio/echoaudio.c static int pcm_close(struct snd_pcm_substream *substream)
substream         490 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         514 sound/pci/echoaudio/echoaudio.c static int init_engine(struct snd_pcm_substream *substream,
substream         522 sound/pci/echoaudio/echoaudio.c 	chip = snd_pcm_substream_chip(substream);
substream         523 sound/pci/echoaudio/echoaudio.c 	pipe = (struct audiopipe *) substream->runtime->private_data;
substream         533 sound/pci/echoaudio/echoaudio.c 		chip->substream[pipe->index] = NULL;
substream         550 sound/pci/echoaudio/echoaudio.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         570 sound/pci/echoaudio/echoaudio.c 			addr = snd_pcm_sgbuf_get_addr(substream, offs);
substream         599 sound/pci/echoaudio/echoaudio.c 	chip->substream[pipe_index] = substream;
substream         609 sound/pci/echoaudio/echoaudio.c static int pcm_analog_in_hw_params(struct snd_pcm_substream *substream,
substream         612 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         614 sound/pci/echoaudio/echoaudio.c 	return init_engine(substream, hw_params, px_analog_in(chip) +
substream         615 sound/pci/echoaudio/echoaudio.c 			substream->number, params_channels(hw_params));
substream         620 sound/pci/echoaudio/echoaudio.c static int pcm_analog_out_hw_params(struct snd_pcm_substream *substream,
substream         623 sound/pci/echoaudio/echoaudio.c 	return init_engine(substream, hw_params, substream->number,
substream         631 sound/pci/echoaudio/echoaudio.c static int pcm_digital_in_hw_params(struct snd_pcm_substream *substream,
substream         634 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         636 sound/pci/echoaudio/echoaudio.c 	return init_engine(substream, hw_params, px_digital_in(chip) +
substream         637 sound/pci/echoaudio/echoaudio.c 			substream->number, params_channels(hw_params));
substream         643 sound/pci/echoaudio/echoaudio.c static int pcm_digital_out_hw_params(struct snd_pcm_substream *substream,
substream         646 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         648 sound/pci/echoaudio/echoaudio.c 	return init_engine(substream, hw_params, px_digital_out(chip) +
substream         649 sound/pci/echoaudio/echoaudio.c 			substream->number, params_channels(hw_params));
substream         657 sound/pci/echoaudio/echoaudio.c static int pcm_hw_free(struct snd_pcm_substream *substream)
substream         662 sound/pci/echoaudio/echoaudio.c 	chip = snd_pcm_substream_chip(substream);
substream         663 sound/pci/echoaudio/echoaudio.c 	pipe = (struct audiopipe *) substream->runtime->private_data;
substream         669 sound/pci/echoaudio/echoaudio.c 		chip->substream[pipe->index] = NULL;
substream         674 sound/pci/echoaudio/echoaudio.c 	snd_pcm_lib_free_pages(substream);
substream         680 sound/pci/echoaudio/echoaudio.c static int pcm_prepare(struct snd_pcm_substream *substream)
substream         682 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         683 sound/pci/echoaudio/echoaudio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         725 sound/pci/echoaudio/echoaudio.c static int pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         727 sound/pci/echoaudio/echoaudio.c 	struct echoaudio *chip = snd_pcm_substream_chip(substream);
substream         733 sound/pci/echoaudio/echoaudio.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         735 sound/pci/echoaudio/echoaudio.c 			if (s == chip->substream[i]) {
substream         737 sound/pci/echoaudio/echoaudio.c 				snd_pcm_trigger_done(s, substream);
substream         749 sound/pci/echoaudio/echoaudio.c 				pipe = chip->substream[i]->runtime->private_data;
substream         772 sound/pci/echoaudio/echoaudio.c 				pipe = chip->substream[i]->runtime->private_data;
substream         781 sound/pci/echoaudio/echoaudio.c 				pipe = chip->substream[i]->runtime->private_data;
substream         796 sound/pci/echoaudio/echoaudio.c static snd_pcm_uframes_t pcm_pointer(struct snd_pcm_substream *substream)
substream         798 sound/pci/echoaudio/echoaudio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         805 sound/pci/echoaudio/echoaudio.c 	bufsize = substream->runtime->buffer_size;
substream         806 sound/pci/echoaudio/echoaudio.c 	pos = bytes_to_frames(substream->runtime, pipe->position);
substream         809 sound/pci/echoaudio/echoaudio.c 		pipe->position -= frames_to_bytes(substream->runtime, bufsize);
substream         878 sound/pci/echoaudio/echoaudio.c 		for (ss = pcm->streams[stream].substream; ss; ss = ss->next)
substream        1812 sound/pci/echoaudio/echoaudio.c 	struct snd_pcm_substream *substream;
substream        1824 sound/pci/echoaudio/echoaudio.c 		substream = chip->substream[ss];
substream        1825 sound/pci/echoaudio/echoaudio.c 		if (substream && ((struct audiopipe *)substream->runtime->
substream        1827 sound/pci/echoaudio/echoaudio.c 			period = pcm_pointer(substream) /
substream        1828 sound/pci/echoaudio/echoaudio.c 				substream->runtime->period_size;
substream        1832 sound/pci/echoaudio/echoaudio.c 				snd_pcm_period_elapsed(substream);
substream         334 sound/pci/echoaudio/echoaudio.h 	struct snd_pcm_substream *substream[DSP_MAXPIPES];
substream         446 sound/pci/echoaudio/echoaudio.h 			struct snd_rawmidi_substream *substream, int up);
substream         155 sound/pci/echoaudio/midi.c static int snd_echo_midi_input_open(struct snd_rawmidi_substream *substream)
substream         157 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         159 sound/pci/echoaudio/midi.c 	chip->midi_in = substream;
substream         165 sound/pci/echoaudio/midi.c static void snd_echo_midi_input_trigger(struct snd_rawmidi_substream *substream,
substream         168 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         180 sound/pci/echoaudio/midi.c static int snd_echo_midi_input_close(struct snd_rawmidi_substream *substream)
substream         182 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         190 sound/pci/echoaudio/midi.c static int snd_echo_midi_output_open(struct snd_rawmidi_substream *substream)
substream         192 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         196 sound/pci/echoaudio/midi.c 	chip->midi_out = substream;
substream         251 sound/pci/echoaudio/midi.c static void snd_echo_midi_output_trigger(struct snd_rawmidi_substream *substream,
substream         254 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         281 sound/pci/echoaudio/midi.c static int snd_echo_midi_output_close(struct snd_rawmidi_substream *substream)
substream         283 sound/pci/echoaudio/midi.c 	struct echoaudio *chip = substream->rmidi->private_data;
substream         194 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_substream *substream;
substream         355 sound/pci/emu10k1/emu10k1x.c 	if (epcm->substream == NULL)
substream         360 sound/pci/emu10k1/emu10k1x.c 		   epcm->substream->ops->pointer(epcm->substream),
substream         361 sound/pci/emu10k1/emu10k1x.c 		   snd_pcm_lib_period_bytes(epcm->substream),
substream         362 sound/pci/emu10k1/emu10k1x.c 		   snd_pcm_lib_buffer_bytes(epcm->substream));
substream         364 sound/pci/emu10k1/emu10k1x.c 	snd_pcm_period_elapsed(epcm->substream);
substream         368 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_playback_open(struct snd_pcm_substream *substream)
substream         370 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *chip = snd_pcm_substream_chip(substream);
substream         372 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         385 sound/pci/emu10k1/emu10k1x.c 	epcm->substream = substream;
substream         396 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_playback_close(struct snd_pcm_substream *substream)
substream         402 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_hw_params(struct snd_pcm_substream *substream,
substream         405 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         409 sound/pci/emu10k1/emu10k1x.c 		epcm->voice = &epcm->emu->voices[substream->pcm->device];
substream         414 sound/pci/emu10k1/emu10k1x.c 	return snd_pcm_lib_malloc_pages(substream,
substream         419 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_hw_free(struct snd_pcm_substream *substream)
substream         421 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         435 sound/pci/emu10k1/emu10k1x.c 	return snd_pcm_lib_free_pages(substream);
substream         439 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_prepare(struct snd_pcm_substream *substream)
substream         441 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         442 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         468 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_trigger(struct snd_pcm_substream *substream,
substream         471 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         472 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         506 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_pcm_pointer(struct snd_pcm_substream *substream)
substream         508 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         509 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         549 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_open_capture(struct snd_pcm_substream *substream)
substream         551 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *chip = snd_pcm_substream_chip(substream);
substream         553 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         566 sound/pci/emu10k1/emu10k1x.c 	epcm->substream = substream;
substream         577 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_close_capture(struct snd_pcm_substream *substream)
substream         583 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_hw_params_capture(struct snd_pcm_substream *substream,
substream         586 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         597 sound/pci/emu10k1/emu10k1x.c 	return snd_pcm_lib_malloc_pages(substream,
substream         602 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_hw_free_capture(struct snd_pcm_substream *substream)
substream         604 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         618 sound/pci/emu10k1/emu10k1x.c 	return snd_pcm_lib_free_pages(substream);
substream         622 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_prepare_capture(struct snd_pcm_substream *substream)
substream         624 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         625 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         636 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_pcm_trigger_capture(struct snd_pcm_substream *substream,
substream         639 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         640 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         666 sound/pci/emu10k1/emu10k1x.c snd_emu10k1x_pcm_pointer_capture(struct snd_pcm_substream *substream)
substream         668 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x *emu = snd_pcm_substream_chip(substream);
substream         669 sound/pci/emu10k1/emu10k1x.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1313 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi_input_open(struct snd_rawmidi_substream *substream)
substream        1316 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1324 sound/pci/emu10k1/emu10k1x.c 	midi->substream_input = substream;
substream        1340 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi_output_open(struct snd_rawmidi_substream *substream)
substream        1343 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1351 sound/pci/emu10k1/emu10k1x.c 	midi->substream_output = substream;
substream        1367 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream)
substream        1370 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1390 sound/pci/emu10k1/emu10k1x.c static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substream)
substream        1393 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1413 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1416 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1427 sound/pci/emu10k1/emu10k1x.c static void snd_emu10k1x_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1430 sound/pci/emu10k1/emu10k1x.c 	struct emu10k1x_midi *midi = substream->rmidi->private_data;
substream        1446 sound/pci/emu10k1/emu10k1x.c 				    snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream        1014 sound/pci/emu10k1/emufx.c 	if (ipcm->substream >= EMU10K1_FX8010_PCM_COUNT)
substream        1016 sound/pci/emu10k1/emufx.c 	ipcm->substream = array_index_nospec(ipcm->substream,
substream        1020 sound/pci/emu10k1/emufx.c 	pcm = &emu->fx8010.pcm[ipcm->substream];
substream        1062 sound/pci/emu10k1/emufx.c 	if (ipcm->substream >= EMU10K1_FX8010_PCM_COUNT)
substream        1064 sound/pci/emu10k1/emufx.c 	ipcm->substream = array_index_nospec(ipcm->substream,
substream        1066 sound/pci/emu10k1/emufx.c 	pcm = &emu->fx8010.pcm[ipcm->substream];
substream        1899 sound/pci/emu10k1/emufx.c 	ipcm->substream = 0;
substream         141 sound/pci/emu10k1/emumpu401.c static int snd_emu10k1_midi_input_open(struct snd_rawmidi_substream *substream)
substream         144 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         152 sound/pci/emu10k1/emumpu401.c 	midi->substream_input = substream;
substream         168 sound/pci/emu10k1/emumpu401.c static int snd_emu10k1_midi_output_open(struct snd_rawmidi_substream *substream)
substream         171 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         179 sound/pci/emu10k1/emumpu401.c 	midi->substream_output = substream;
substream         195 sound/pci/emu10k1/emumpu401.c static int snd_emu10k1_midi_input_close(struct snd_rawmidi_substream *substream)
substream         198 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         218 sound/pci/emu10k1/emumpu401.c static int snd_emu10k1_midi_output_close(struct snd_rawmidi_substream *substream)
substream         221 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         241 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream         244 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         255 sound/pci/emu10k1/emumpu401.c static void snd_emu10k1_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream         258 sound/pci/emu10k1/emumpu401.c 	struct snd_emu10k1_midi *midi = (struct snd_emu10k1_midi *)substream->rmidi->private_data;
substream         274 sound/pci/emu10k1/emumpu401.c 				    snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream          30 sound/pci/emu10k1/emupcm.c 	if (epcm->substream == NULL)
substream          35 sound/pci/emu10k1/emupcm.c 			epcm->substream->runtime->hw->pointer(emu, epcm->substream),
substream          36 sound/pci/emu10k1/emupcm.c 			snd_pcm_lib_period_bytes(epcm->substream),
substream          37 sound/pci/emu10k1/emupcm.c 			snd_pcm_lib_buffer_bytes(epcm->substream));
substream          39 sound/pci/emu10k1/emupcm.c 	snd_pcm_period_elapsed(epcm->substream);
substream          78 sound/pci/emu10k1/emupcm.c static snd_pcm_uframes_t snd_emu10k1_efx_playback_pointer(struct snd_pcm_substream *substream)
substream          80 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream          81 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         275 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream = evoice->epcm->substream;
substream         276 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         393 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_hw_params(struct snd_pcm_substream *substream,
substream         396 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         397 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         408 sound/pci/emu10k1/emupcm.c 	err = snd_pcm_lib_malloc_pages(substream, alloc_size);
substream         417 sound/pci/emu10k1/emupcm.c 		epcm->memblk = snd_emu10k1_alloc_pages(emu, substream);
substream         429 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_hw_free(struct snd_pcm_substream *substream)
substream         431 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         432 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         455 sound/pci/emu10k1/emupcm.c 	snd_pcm_lib_free_pages(substream);
substream         459 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_efx_playback_hw_free(struct snd_pcm_substream *substream)
substream         461 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         462 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         484 sound/pci/emu10k1/emupcm.c 	snd_pcm_lib_free_pages(substream);
substream         488 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_prepare(struct snd_pcm_substream *substream)
substream         490 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         491 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         496 sound/pci/emu10k1/emupcm.c 	end_addr = snd_pcm_lib_period_bytes(substream);
substream         505 sound/pci/emu10k1/emupcm.c 	end_addr = epcm->start_addr + snd_pcm_lib_buffer_bytes(substream);
substream         508 sound/pci/emu10k1/emupcm.c 				   &emu->pcm_mixer[substream->number]);
substream         512 sound/pci/emu10k1/emupcm.c 					   &emu->pcm_mixer[substream->number]);
substream         516 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_efx_playback_prepare(struct snd_pcm_substream *substream)
substream         518 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         519 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         526 sound/pci/emu10k1/emupcm.c 	end_addr = epcm->start_addr + snd_pcm_lib_buffer_bytes(substream);
substream         572 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_hw_params(struct snd_pcm_substream *substream,
substream         575 sound/pci/emu10k1/emupcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         578 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_hw_free(struct snd_pcm_substream *substream)
substream         580 sound/pci/emu10k1/emupcm.c 	return snd_pcm_lib_free_pages(substream);
substream         583 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_prepare(struct snd_pcm_substream *substream)
substream         585 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         586 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         607 sound/pci/emu10k1/emupcm.c 	epcm->capture_bufsize = snd_pcm_lib_buffer_bytes(substream);
substream         637 sound/pci/emu10k1/emupcm.c 	runtime = evoice->epcm->substream->runtime;
substream         669 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream;
substream         676 sound/pci/emu10k1/emupcm.c 	substream = evoice->epcm->substream;
substream         677 sound/pci/emu10k1/emupcm.c 	runtime = substream->runtime;
substream         692 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream;
substream         698 sound/pci/emu10k1/emupcm.c 	substream = evoice->epcm->substream;
substream         699 sound/pci/emu10k1/emupcm.c 	runtime = substream->runtime;
substream         733 sound/pci/emu10k1/emupcm.c 		struct snd_pcm_substream *substream,
substream         748 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_trigger(struct snd_pcm_substream *substream,
substream         751 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         752 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         771 sound/pci/emu10k1/emupcm.c 			snd_emu10k1_playback_mangle_extra(emu, epcm, substream, runtime);
substream         772 sound/pci/emu10k1/emupcm.c 		mix = &emu->pcm_mixer[substream->number];
substream         797 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_trigger(struct snd_pcm_substream *substream,
substream         800 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         801 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         866 sound/pci/emu10k1/emupcm.c static snd_pcm_uframes_t snd_emu10k1_playback_pointer(struct snd_pcm_substream *substream)
substream         868 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         869 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         899 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_efx_playback_trigger(struct snd_pcm_substream *substream,
substream         902 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         903 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         950 sound/pci/emu10k1/emupcm.c static snd_pcm_uframes_t snd_emu10k1_capture_pointer(struct snd_pcm_substream *substream)
substream         952 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         953 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1075 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_efx_playback_close(struct snd_pcm_substream *substream)
substream        1077 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1089 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_efx_playback_open(struct snd_pcm_substream *substream)
substream        1091 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1094 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1102 sound/pci/emu10k1/emupcm.c 	epcm->substream = substream;
substream        1104 sound/pci/emu10k1/emupcm.c 	emu->pcm_playback_efx_substream = substream;
substream        1122 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_open(struct snd_pcm_substream *substream)
substream        1124 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1127 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1135 sound/pci/emu10k1/emupcm.c 	epcm->substream = substream;
substream        1156 sound/pci/emu10k1/emupcm.c 	mix = &emu->pcm_mixer[substream->number];
substream        1164 sound/pci/emu10k1/emupcm.c 	snd_emu10k1_pcm_mixer_notify(emu, substream->number, 1);
substream        1168 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_playback_close(struct snd_pcm_substream *substream)
substream        1170 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1171 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_pcm_mixer *mix = &emu->pcm_mixer[substream->number];
substream        1174 sound/pci/emu10k1/emupcm.c 	snd_emu10k1_pcm_mixer_notify(emu, substream->number, 0);
substream        1178 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_open(struct snd_pcm_substream *substream)
substream        1180 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1181 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1189 sound/pci/emu10k1/emupcm.c 	epcm->substream = substream;
substream        1199 sound/pci/emu10k1/emupcm.c 	emu->pcm_capture_substream = substream;
substream        1205 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_close(struct snd_pcm_substream *substream)
substream        1207 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1214 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_mic_open(struct snd_pcm_substream *substream)
substream        1216 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1218 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1225 sound/pci/emu10k1/emupcm.c 	epcm->substream = substream;
substream        1231 sound/pci/emu10k1/emupcm.c 	substream->runtime->private_data = epcm;
substream        1232 sound/pci/emu10k1/emupcm.c 	substream->runtime->private_free = snd_emu10k1_pcm_free_substream;
substream        1238 sound/pci/emu10k1/emupcm.c 	emu->pcm_capture_mic_substream = substream;
substream        1243 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_mic_close(struct snd_pcm_substream *substream)
substream        1245 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1252 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_efx_open(struct snd_pcm_substream *substream)
substream        1254 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1256 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1265 sound/pci/emu10k1/emupcm.c 	epcm->substream = substream;
substream        1271 sound/pci/emu10k1/emupcm.c 	substream->runtime->private_data = epcm;
substream        1272 sound/pci/emu10k1/emupcm.c 	substream->runtime->private_free = snd_emu10k1_pcm_free_substream;
substream        1346 sound/pci/emu10k1/emupcm.c 	emu->pcm_capture_efx_substream = substream;
substream        1351 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_capture_efx_close(struct snd_pcm_substream *substream)
substream        1353 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1399 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream;
substream        1415 sound/pci/emu10k1/emupcm.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
substream        1416 sound/pci/emu10k1/emupcm.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV_SG,
substream        1420 sound/pci/emu10k1/emupcm.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; substream; substream = substream->next)
substream        1421 sound/pci/emu10k1/emupcm.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream        1431 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream;
substream        1446 sound/pci/emu10k1/emupcm.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
substream        1447 sound/pci/emu10k1/emupcm.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV_SG,
substream        1571 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_substream *substream = private_data;
substream        1572 sound/pci/emu10k1/emupcm.c 	snd_pcm_period_elapsed(substream);
substream        1600 sound/pci/emu10k1/emupcm.c static void fx8010_pb_trans_copy(struct snd_pcm_substream *substream,
substream        1603 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1604 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1606 sound/pci/emu10k1/emupcm.c 	unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data);
substream        1629 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_transfer(struct snd_pcm_substream *substream)
substream        1631 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1632 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1634 sound/pci/emu10k1/emupcm.c 	return snd_pcm_indirect_playback_transfer(substream, &pcm->pcm_rec,
substream        1638 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_hw_params(struct snd_pcm_substream *substream,
substream        1641 sound/pci/emu10k1/emupcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream        1644 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_hw_free(struct snd_pcm_substream *substream)
substream        1646 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1647 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1652 sound/pci/emu10k1/emupcm.c 	snd_pcm_lib_free_pages(substream);
substream        1656 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_prepare(struct snd_pcm_substream *substream)
substream        1658 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1659 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1660 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1671 sound/pci/emu10k1/emupcm.c 	pcm->pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream        1685 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1687 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1688 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1709 sound/pci/emu10k1/emupcm.c 		result = snd_emu10k1_fx8010_register_irq_handler(emu, snd_emu10k1_fx8010_playback_irq, pcm->gpr_running, substream, &pcm->irq);
substream        1712 sound/pci/emu10k1/emupcm.c 		snd_emu10k1_fx8010_playback_transfer(substream);	/* roll the ball */
substream        1732 sound/pci/emu10k1/emupcm.c static snd_pcm_uframes_t snd_emu10k1_fx8010_playback_pointer(struct snd_pcm_substream *substream)
substream        1734 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1735 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1741 sound/pci/emu10k1/emupcm.c 	return snd_pcm_indirect_playback_pointer(substream, &pcm->pcm_rec, ptr);
substream        1764 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_open(struct snd_pcm_substream *substream)
substream        1766 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1767 sound/pci/emu10k1/emupcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1768 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream        1783 sound/pci/emu10k1/emupcm.c static int snd_emu10k1_fx8010_playback_close(struct snd_pcm_substream *substream)
substream        1785 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream        1786 sound/pci/emu10k1/emupcm.c 	struct snd_emu10k1_fx8010_pcm *pcm = &emu->fx8010.pcm[substream->number];
substream         151 sound/pci/emu10k1/irq.c 						snd_pcm_period_elapsed(pvoice->epcm->substream);
substream         163 sound/pci/emu10k1/irq.c 						snd_pcm_period_elapsed(cvoice->epcm->substream);
substream         297 sound/pci/emu10k1/memory.c snd_emu10k1_alloc_pages(struct snd_emu10k1 *emu, struct snd_pcm_substream *substream)
substream         299 sound/pci/emu10k1/memory.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         331 sound/pci/emu10k1/memory.c 			addr = snd_pcm_sgbuf_get_addr(substream, ofs);
substream         160 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_open_playback_channel(struct snd_pcm_substream *substream, int channel_id)
substream         162 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         165 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         174 sound/pci/emu10k1/p16v.c 	epcm->substream = substream;
substream         200 sound/pci/emu10k1/p16v.c 	runtime->sync.id32[0] = substream->pcm->card->number;
substream         208 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_open_capture_channel(struct snd_pcm_substream *substream, int channel_id)
substream         210 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         213 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         222 sound/pci/emu10k1/p16v.c 	epcm->substream = substream;
substream         253 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_close_playback(struct snd_pcm_substream *substream)
substream         255 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         258 sound/pci/emu10k1/p16v.c 	emu->p16v_voices[substream->pcm->device - emu->p16v_device_offset].use = 0;
substream         264 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_close_capture(struct snd_pcm_substream *substream)
substream         266 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         274 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_open_playback_front(struct snd_pcm_substream *substream)
substream         276 sound/pci/emu10k1/p16v.c 	return snd_p16v_pcm_open_playback_channel(substream, PCM_FRONT_CHANNEL);
substream         279 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_open_capture(struct snd_pcm_substream *substream)
substream         282 sound/pci/emu10k1/p16v.c 	return snd_p16v_pcm_open_capture_channel(substream, 0);
substream         286 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_hw_params_playback(struct snd_pcm_substream *substream,
substream         289 sound/pci/emu10k1/p16v.c 	return snd_pcm_lib_malloc_pages(substream,
substream         294 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_hw_params_capture(struct snd_pcm_substream *substream,
substream         297 sound/pci/emu10k1/p16v.c 	return snd_pcm_lib_malloc_pages(substream,
substream         303 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_hw_free_playback(struct snd_pcm_substream *substream)
substream         305 sound/pci/emu10k1/p16v.c 	return snd_pcm_lib_free_pages(substream);
substream         309 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_hw_free_capture(struct snd_pcm_substream *substream)
substream         311 sound/pci/emu10k1/p16v.c 	return snd_pcm_lib_free_pages(substream);
substream         316 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_prepare_playback(struct snd_pcm_substream *substream)
substream         318 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         319 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         320 sound/pci/emu10k1/p16v.c 	int channel = substream->pcm->device - emu->p16v_device_offset;
substream         378 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_prepare_capture(struct snd_pcm_substream *substream)
substream         380 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         381 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         382 sound/pci/emu10k1/p16v.c 	int channel = substream->pcm->device - emu->p16v_device_offset;
substream         443 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_trigger_playback(struct snd_pcm_substream *substream,
substream         446 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         465 sound/pci/emu10k1/p16v.c         snd_pcm_group_for_each_entry(s, substream) {
substream         471 sound/pci/emu10k1/p16v.c 		channel = substream->pcm->device-emu->p16v_device_offset;
substream         476 sound/pci/emu10k1/p16v.c                 snd_pcm_trigger_done(s, substream);
substream         497 sound/pci/emu10k1/p16v.c static int snd_p16v_pcm_trigger_capture(struct snd_pcm_substream *substream,
substream         500 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         501 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         528 sound/pci/emu10k1/p16v.c snd_p16v_pcm_pointer_playback(struct snd_pcm_substream *substream)
substream         530 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         531 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         534 sound/pci/emu10k1/p16v.c 	int channel = substream->pcm->device - emu->p16v_device_offset;
substream         553 sound/pci/emu10k1/p16v.c snd_p16v_pcm_pointer_capture(struct snd_pcm_substream *substream)
substream         555 sound/pci/emu10k1/p16v.c 	struct snd_emu10k1 *emu = snd_pcm_substream_chip(substream);
substream         556 sound/pci/emu10k1/p16v.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         621 sound/pci/emu10k1/p16v.c 	struct snd_pcm_substream *substream;
substream         642 sound/pci/emu10k1/p16v.c 	for(substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; 
substream         643 sound/pci/emu10k1/p16v.c 	    substream; 
substream         644 sound/pci/emu10k1/p16v.c 	    substream = substream->next) {
substream         645 sound/pci/emu10k1/p16v.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream         655 sound/pci/emu10k1/p16v.c 	for (substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; 
substream         656 sound/pci/emu10k1/p16v.c 	      substream; 
substream         657 sound/pci/emu10k1/p16v.c 	      substream = substream->next) {
substream         658 sound/pci/emu10k1/p16v.c 		snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV,
substream         795 sound/pci/ens1370.c static int snd_ensoniq_trigger(struct snd_pcm_substream *substream, int cmd)
substream         797 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream         804 sound/pci/ens1370.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         807 sound/pci/ens1370.c 				snd_pcm_trigger_done(s, substream);
substream         810 sound/pci/ens1370.c 				snd_pcm_trigger_done(s, substream);
substream         828 sound/pci/ens1370.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         831 sound/pci/ens1370.c 				snd_pcm_trigger_done(s, substream);
substream         834 sound/pci/ens1370.c 				snd_pcm_trigger_done(s, substream);
substream         837 sound/pci/ens1370.c 				snd_pcm_trigger_done(s, substream);
substream         859 sound/pci/ens1370.c static int snd_ensoniq_hw_params(struct snd_pcm_substream *substream,
substream         862 sound/pci/ens1370.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         865 sound/pci/ens1370.c static int snd_ensoniq_hw_free(struct snd_pcm_substream *substream)
substream         867 sound/pci/ens1370.c 	return snd_pcm_lib_free_pages(substream);
substream         870 sound/pci/ens1370.c static int snd_ensoniq_playback1_prepare(struct snd_pcm_substream *substream)
substream         872 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream         873 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         876 sound/pci/ens1370.c 	ensoniq->p1_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         877 sound/pci/ens1370.c 	ensoniq->p1_period_size = snd_pcm_lib_period_bytes(substream);
substream         918 sound/pci/ens1370.c static int snd_ensoniq_playback2_prepare(struct snd_pcm_substream *substream)
substream         920 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream         921 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         924 sound/pci/ens1370.c 	ensoniq->p2_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         925 sound/pci/ens1370.c 	ensoniq->p2_period_size = snd_pcm_lib_period_bytes(substream);
substream         958 sound/pci/ens1370.c static int snd_ensoniq_capture_prepare(struct snd_pcm_substream *substream)
substream         960 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream         961 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         964 sound/pci/ens1370.c 	ensoniq->c_dma_size = snd_pcm_lib_buffer_bytes(substream);
substream         965 sound/pci/ens1370.c 	ensoniq->c_period_size = snd_pcm_lib_period_bytes(substream);
substream         996 sound/pci/ens1370.c static snd_pcm_uframes_t snd_ensoniq_playback1_pointer(struct snd_pcm_substream *substream)
substream         998 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1005 sound/pci/ens1370.c 		ptr = bytes_to_frames(substream->runtime, ptr);
substream        1013 sound/pci/ens1370.c static snd_pcm_uframes_t snd_ensoniq_playback2_pointer(struct snd_pcm_substream *substream)
substream        1015 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1022 sound/pci/ens1370.c 		ptr = bytes_to_frames(substream->runtime, ptr);
substream        1030 sound/pci/ens1370.c static snd_pcm_uframes_t snd_ensoniq_capture_pointer(struct snd_pcm_substream *substream)
substream        1032 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1039 sound/pci/ens1370.c 		ptr = bytes_to_frames(substream->runtime, ptr);
substream        1113 sound/pci/ens1370.c static int snd_ensoniq_playback1_open(struct snd_pcm_substream *substream)
substream        1115 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1116 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1119 sound/pci/ens1370.c 	ensoniq->playback1_substream = substream;
substream        1121 sound/pci/ens1370.c 	snd_pcm_set_sync(substream);
substream        1136 sound/pci/ens1370.c static int snd_ensoniq_playback2_open(struct snd_pcm_substream *substream)
substream        1138 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1139 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1142 sound/pci/ens1370.c 	ensoniq->playback2_substream = substream;
substream        1144 sound/pci/ens1370.c 	snd_pcm_set_sync(substream);
substream        1159 sound/pci/ens1370.c static int snd_ensoniq_capture_open(struct snd_pcm_substream *substream)
substream        1161 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1162 sound/pci/ens1370.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1165 sound/pci/ens1370.c 	ensoniq->capture_substream = substream;
substream        1167 sound/pci/ens1370.c 	snd_pcm_set_sync(substream);
substream        1178 sound/pci/ens1370.c static int snd_ensoniq_playback1_close(struct snd_pcm_substream *substream)
substream        1180 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1187 sound/pci/ens1370.c static int snd_ensoniq_playback2_close(struct snd_pcm_substream *substream)
substream        1189 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        1201 sound/pci/ens1370.c static int snd_ensoniq_capture_close(struct snd_pcm_substream *substream)
substream        1203 sound/pci/ens1370.c 	struct ensoniq *ensoniq = snd_pcm_substream_chip(substream);
substream        2180 sound/pci/ens1370.c static int snd_ensoniq_midi_input_open(struct snd_rawmidi_substream *substream)
substream        2182 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2186 sound/pci/ens1370.c 	ensoniq->midi_input = substream;
substream        2196 sound/pci/ens1370.c static int snd_ensoniq_midi_input_close(struct snd_rawmidi_substream *substream)
substream        2198 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2213 sound/pci/ens1370.c static int snd_ensoniq_midi_output_open(struct snd_rawmidi_substream *substream)
substream        2215 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2219 sound/pci/ens1370.c 	ensoniq->midi_output = substream;
substream        2229 sound/pci/ens1370.c static int snd_ensoniq_midi_output_close(struct snd_rawmidi_substream *substream)
substream        2231 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2246 sound/pci/ens1370.c static void snd_ensoniq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        2249 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2270 sound/pci/ens1370.c static void snd_ensoniq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        2273 sound/pci/ens1370.c 	struct ensoniq *ensoniq = substream->rmidi->private_data;
substream        2283 sound/pci/ens1370.c 				if (snd_rawmidi_transmit(substream, &byte, 1) != 1) {
substream         446 sound/pci/es1938.c 				struct snd_pcm_substream *substream,
substream         450 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         516 sound/pci/es1938.c static int snd_es1938_capture_trigger(struct snd_pcm_substream *substream,
substream         519 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         539 sound/pci/es1938.c static int snd_es1938_playback1_trigger(struct snd_pcm_substream *substream,
substream         542 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         569 sound/pci/es1938.c static int snd_es1938_playback2_trigger(struct snd_pcm_substream *substream,
substream         572 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         592 sound/pci/es1938.c static int snd_es1938_playback_trigger(struct snd_pcm_substream *substream,
substream         595 sound/pci/es1938.c 	switch (substream->number) {
substream         597 sound/pci/es1938.c 		return snd_es1938_playback1_trigger(substream, cmd);
substream         599 sound/pci/es1938.c 		return snd_es1938_playback2_trigger(substream, cmd);
substream         608 sound/pci/es1938.c static int snd_es1938_capture_prepare(struct snd_pcm_substream *substream)
substream         610 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         611 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         613 sound/pci/es1938.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         614 sound/pci/es1938.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         631 sound/pci/es1938.c         snd_es1938_rate_set(chip, substream, ADC1);
substream         656 sound/pci/es1938.c static int snd_es1938_playback1_prepare(struct snd_pcm_substream *substream)
substream         658 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         659 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         661 sound/pci/es1938.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         662 sound/pci/es1938.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         676 sound/pci/es1938.c         snd_es1938_rate_set(chip, substream, DAC2);
substream         693 sound/pci/es1938.c static int snd_es1938_playback2_prepare(struct snd_pcm_substream *substream)
substream         695 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         696 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         698 sound/pci/es1938.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         699 sound/pci/es1938.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         718 sound/pci/es1938.c         snd_es1938_rate_set(chip, substream, DAC1);
substream         735 sound/pci/es1938.c static int snd_es1938_playback_prepare(struct snd_pcm_substream *substream)
substream         737 sound/pci/es1938.c 	switch (substream->number) {
substream         739 sound/pci/es1938.c 		return snd_es1938_playback1_prepare(substream);
substream         741 sound/pci/es1938.c 		return snd_es1938_playback2_prepare(substream);
substream         755 sound/pci/es1938.c static snd_pcm_uframes_t snd_es1938_capture_pointer(struct snd_pcm_substream *substream)
substream         757 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         785 sound/pci/es1938.c static snd_pcm_uframes_t snd_es1938_playback1_pointer(struct snd_pcm_substream *substream)
substream         787 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         797 sound/pci/es1938.c static snd_pcm_uframes_t snd_es1938_playback2_pointer(struct snd_pcm_substream *substream)
substream         799 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         814 sound/pci/es1938.c static snd_pcm_uframes_t snd_es1938_playback_pointer(struct snd_pcm_substream *substream)
substream         816 sound/pci/es1938.c 	switch (substream->number) {
substream         818 sound/pci/es1938.c 		return snd_es1938_playback1_pointer(substream);
substream         820 sound/pci/es1938.c 		return snd_es1938_playback2_pointer(substream);
substream         826 sound/pci/es1938.c static int snd_es1938_capture_copy(struct snd_pcm_substream *substream,
substream         830 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         831 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         848 sound/pci/es1938.c static int snd_es1938_capture_copy_kernel(struct snd_pcm_substream *substream,
substream         852 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         853 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         869 sound/pci/es1938.c static int snd_es1938_pcm_hw_params(struct snd_pcm_substream *substream,
substream         875 sound/pci/es1938.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         880 sound/pci/es1938.c static int snd_es1938_pcm_hw_free(struct snd_pcm_substream *substream)
substream         882 sound/pci/es1938.c 	return snd_pcm_lib_free_pages(substream);
substream         930 sound/pci/es1938.c static int snd_es1938_capture_open(struct snd_pcm_substream *substream)
substream         932 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         933 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         937 sound/pci/es1938.c 	chip->capture_substream = substream;
substream         945 sound/pci/es1938.c static int snd_es1938_playback_open(struct snd_pcm_substream *substream)
substream         947 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         948 sound/pci/es1938.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         950 sound/pci/es1938.c 	switch (substream->number) {
substream         952 sound/pci/es1938.c 		chip->playback1_substream = substream;
substream         957 sound/pci/es1938.c 		chip->playback2_substream = substream;
substream         970 sound/pci/es1938.c static int snd_es1938_capture_close(struct snd_pcm_substream *substream)
substream         972 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         978 sound/pci/es1938.c static int snd_es1938_playback_close(struct snd_pcm_substream *substream)
substream         980 sound/pci/es1938.c 	struct es1938 *chip = snd_pcm_substream_chip(substream);
substream         982 sound/pci/es1938.c 	switch (substream->number) {
substream         475 sound/pci/es1968.c 	struct snd_pcm_substream *substream;
substream        1206 sound/pci/es1968.c static int snd_es1968_pcm_prepare(struct snd_pcm_substream *substream)
substream        1208 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1209 sound/pci/es1968.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1212 sound/pci/es1968.c 	es->dma_size = snd_pcm_lib_buffer_bytes(substream);
substream        1213 sound/pci/es1968.c 	es->frag_size = snd_pcm_lib_period_bytes(substream);
substream        1238 sound/pci/es1968.c static int snd_es1968_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1240 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1241 sound/pci/es1968.c 	struct esschan *es = substream->runtime->private_data;
substream        1268 sound/pci/es1968.c static snd_pcm_uframes_t snd_es1968_pcm_pointer(struct snd_pcm_substream *substream)
substream        1270 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1271 sound/pci/es1968.c 	struct esschan *es = substream->runtime->private_data;
substream        1276 sound/pci/es1968.c 	return bytes_to_frames(substream->runtime, ptr % es->dma_size);
substream        1462 sound/pci/es1968.c static int snd_es1968_hw_params(struct snd_pcm_substream *substream,
substream        1465 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1466 sound/pci/es1968.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1483 sound/pci/es1968.c 	snd_pcm_set_runtime_buffer(substream, &chan->memory->buf);
substream        1488 sound/pci/es1968.c static int snd_es1968_hw_free(struct snd_pcm_substream *substream)
substream        1490 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1491 sound/pci/es1968.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1535 sound/pci/es1968.c static int snd_es1968_playback_open(struct snd_pcm_substream *substream)
substream        1537 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1538 sound/pci/es1968.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1558 sound/pci/es1968.c 	es->substream = substream;
substream        1573 sound/pci/es1968.c static int snd_es1968_capture_open(struct snd_pcm_substream *substream)
substream        1575 sound/pci/es1968.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1576 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1605 sound/pci/es1968.c 	es->substream = substream;
substream        1630 sound/pci/es1968.c static int snd_es1968_playback_close(struct snd_pcm_substream *substream)
substream        1632 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1635 sound/pci/es1968.c 	if (substream->runtime->private_data == NULL)
substream        1637 sound/pci/es1968.c 	es = substream->runtime->private_data;
substream        1647 sound/pci/es1968.c static int snd_es1968_capture_close(struct snd_pcm_substream *substream)
substream        1649 sound/pci/es1968.c 	struct es1968 *chip = snd_pcm_substream_chip(substream);
substream        1652 sound/pci/es1968.c 	if (substream->runtime->private_data == NULL)
substream        1654 sound/pci/es1968.c 	es = substream->runtime->private_data;
substream        1854 sound/pci/es1968.c 	struct snd_pcm_substream *subs = es->substream;
substream        2411 sound/pci/es1968.c 			snd_es1968_playback_setup(chip, es, es->substream->runtime);
substream        2414 sound/pci/es1968.c 			snd_es1968_capture_setup(chip, es, es->substream->runtime);
substream         368 sound/pci/fm801.c static int snd_fm801_playback_trigger(struct snd_pcm_substream *substream,
substream         371 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         403 sound/pci/fm801.c static int snd_fm801_capture_trigger(struct snd_pcm_substream *substream,
substream         406 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         438 sound/pci/fm801.c static int snd_fm801_hw_params(struct snd_pcm_substream *substream,
substream         441 sound/pci/fm801.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         444 sound/pci/fm801.c static int snd_fm801_hw_free(struct snd_pcm_substream *substream)
substream         446 sound/pci/fm801.c 	return snd_pcm_lib_free_pages(substream);
substream         449 sound/pci/fm801.c static int snd_fm801_playback_prepare(struct snd_pcm_substream *substream)
substream         451 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         452 sound/pci/fm801.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         454 sound/pci/fm801.c 	chip->ply_size = snd_pcm_lib_buffer_bytes(substream);
substream         455 sound/pci/fm801.c 	chip->ply_count = snd_pcm_lib_period_bytes(substream);
substream         482 sound/pci/fm801.c static int snd_fm801_capture_prepare(struct snd_pcm_substream *substream)
substream         484 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         485 sound/pci/fm801.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         487 sound/pci/fm801.c 	chip->cap_size = snd_pcm_lib_buffer_bytes(substream);
substream         488 sound/pci/fm801.c 	chip->cap_count = snd_pcm_lib_period_bytes(substream);
substream         509 sound/pci/fm801.c static snd_pcm_uframes_t snd_fm801_playback_pointer(struct snd_pcm_substream *substream)
substream         511 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         523 sound/pci/fm801.c 	return bytes_to_frames(substream->runtime, ptr);
substream         526 sound/pci/fm801.c static snd_pcm_uframes_t snd_fm801_capture_pointer(struct snd_pcm_substream *substream)
substream         528 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         540 sound/pci/fm801.c 	return bytes_to_frames(substream->runtime, ptr);
substream         632 sound/pci/fm801.c static int snd_fm801_playback_open(struct snd_pcm_substream *substream)
substream         634 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         635 sound/pci/fm801.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         638 sound/pci/fm801.c 	chip->playback_substream = substream;
substream         653 sound/pci/fm801.c static int snd_fm801_capture_open(struct snd_pcm_substream *substream)
substream         655 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         656 sound/pci/fm801.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         659 sound/pci/fm801.c 	chip->capture_substream = substream;
substream         668 sound/pci/fm801.c static int snd_fm801_playback_close(struct snd_pcm_substream *substream)
substream         670 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream         676 sound/pci/fm801.c static int snd_fm801_capture_close(struct snd_pcm_substream *substream)
substream         678 sound/pci/fm801.c 	struct fm801 *chip = snd_pcm_substream_chip(substream);
substream        3085 sound/pci/hda/hda_codec.c 				      struct snd_pcm_substream *substream)
substream        3094 sound/pci/hda/hda_codec.c 				   struct snd_pcm_substream *substream)
substream        3102 sound/pci/hda/hda_codec.c 				   struct snd_pcm_substream *substream)
substream        3157 sound/pci/hda/hda_codec.c 			  struct snd_pcm_substream *substream)
substream        3163 sound/pci/hda/hda_codec.c 					 substream);
substream        3183 sound/pci/hda/hda_codec.c 			   struct snd_pcm_substream *substream)
substream        3187 sound/pci/hda/hda_codec.c 		hinfo->ops.cleanup(hinfo, codec, substream);
substream        3628 sound/pci/hda/hda_codec.c 				  struct snd_pcm_substream *substream)
substream        3680 sound/pci/hda/hda_codec.c 				  struct snd_pcm_substream *substream,
substream        3683 sound/pci/hda/hda_codec.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        3716 sound/pci/hda/hda_codec.c 	return snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        3736 sound/pci/hda/hda_codec.c 				     struct snd_pcm_substream *substream)
substream        3739 sound/pci/hda/hda_codec.c 	int chs = substream->runtime->channels;
substream          39 sound/pci/hda/hda_controller.c azx_assign_device(struct azx *chip, struct snd_pcm_substream *substream)
substream          43 sound/pci/hda/hda_controller.c 	s = snd_hdac_stream_assign(azx_bus(chip), substream);
substream          56 sound/pci/hda/hda_controller.c to_hda_pcm_stream(struct snd_pcm_substream *substream)
substream          58 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream          59 sound/pci/hda/hda_controller.c 	return &apcm->info->stream[substream->stream];
substream          62 sound/pci/hda/hda_controller.c static u64 azx_adjust_codec_delay(struct snd_pcm_substream *substream,
substream          65 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream          66 sound/pci/hda/hda_controller.c 	struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream          72 sound/pci/hda/hda_controller.c 	codec_frames = hinfo->ops.get_delay(hinfo, apcm->codec, substream);
substream          74 sound/pci/hda/hda_controller.c 			      substream->runtime->rate);
substream          76 sound/pci/hda/hda_controller.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          86 sound/pci/hda/hda_controller.c static int azx_pcm_close(struct snd_pcm_substream *substream)
substream          88 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream          89 sound/pci/hda/hda_controller.c 	struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream          91 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream          97 sound/pci/hda/hda_controller.c 		hinfo->ops.close(hinfo, apcm->codec, substream);
substream         104 sound/pci/hda/hda_controller.c static int azx_pcm_hw_params(struct snd_pcm_substream *substream,
substream         107 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         109 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         122 sound/pci/hda/hda_controller.c 	ret = snd_pcm_lib_malloc_pages(substream,
substream         130 sound/pci/hda/hda_controller.c static int azx_pcm_hw_free(struct snd_pcm_substream *substream)
substream         132 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         133 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         134 sound/pci/hda/hda_controller.c 	struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream         142 sound/pci/hda/hda_controller.c 	snd_hda_codec_cleanup(apcm->codec, hinfo, substream);
substream         144 sound/pci/hda/hda_controller.c 	err = snd_pcm_lib_free_pages(substream);
substream         150 sound/pci/hda/hda_controller.c static int azx_pcm_prepare(struct snd_pcm_substream *substream)
substream         152 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         154 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         155 sound/pci/hda/hda_controller.c 	struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream         156 sound/pci/hda/hda_controller.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         196 sound/pci/hda/hda_controller.c 				     azx_dev->core.format_val, substream);
substream         205 sound/pci/hda/hda_controller.c static int azx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         207 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         217 sound/pci/hda/hda_controller.c 	azx_dev = get_azx_dev(substream);
substream         244 sound/pci/hda/hda_controller.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         245 sound/pci/hda/hda_controller.c 		if (s->pcm->card != substream->pcm->card)
substream         249 sound/pci/hda/hda_controller.c 		snd_pcm_trigger_done(s, substream);
substream         257 sound/pci/hda/hda_controller.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         258 sound/pci/hda/hda_controller.c 		if (s->pcm->card != substream->pcm->card)
substream         296 sound/pci/hda/hda_controller.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
substream         298 sound/pci/hda/hda_controller.c 	int stream = substream->stream;
substream         309 sound/pci/hda/hda_controller.c 	if (substream->runtime) {
substream         310 sound/pci/hda/hda_controller.c 		struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         311 sound/pci/hda/hda_controller.c 		struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream         317 sound/pci/hda/hda_controller.c 						      substream);
substream         318 sound/pci/hda/hda_controller.c 		substream->runtime->delay = delay;
substream         326 sound/pci/hda/hda_controller.c static snd_pcm_uframes_t azx_pcm_pointer(struct snd_pcm_substream *substream)
substream         328 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         330 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         331 sound/pci/hda/hda_controller.c 	return bytes_to_frames(substream->runtime,
substream         370 sound/pci/hda/hda_controller.c 	struct snd_pcm_substream *substream = ctx;
substream         371 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         372 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         383 sound/pci/hda/hda_controller.c 	runtime = substream->runtime;
substream         385 sound/pci/hda/hda_controller.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         476 sound/pci/hda/hda_controller.c static int azx_get_crosststamp(struct snd_pcm_substream *substream,
substream         480 sound/pci/hda/hda_controller.c 					substream, NULL, xtstamp);
substream         493 sound/pci/hda/hda_controller.c static int azx_get_time_info(struct snd_pcm_substream *substream,
substream         498 sound/pci/hda/hda_controller.c 	struct azx_dev *azx_dev = get_azx_dev(substream);
substream         499 sound/pci/hda/hda_controller.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         504 sound/pci/hda/hda_controller.c 	if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) &&
substream         507 sound/pci/hda/hda_controller.c 		snd_pcm_gettime(substream->runtime, system_ts);
substream         512 sound/pci/hda/hda_controller.c 			nsec = azx_adjust_codec_delay(substream, nsec);
substream         522 sound/pci/hda/hda_controller.c 		ret = azx_get_crosststamp(substream, &xtstamp);
substream         581 sound/pci/hda/hda_controller.c static int azx_pcm_open(struct snd_pcm_substream *substream)
substream         583 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         584 sound/pci/hda/hda_controller.c 	struct hda_pcm_stream *hinfo = to_hda_pcm_stream(substream);
substream         587 sound/pci/hda/hda_controller.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         593 sound/pci/hda/hda_controller.c 	azx_dev = azx_assign_device(chip, substream);
substream         644 sound/pci/hda/hda_controller.c 		err = hinfo->ops.open(hinfo, apcm->codec, substream);
substream         659 sound/pci/hda/hda_controller.c 			hinfo->ops.close(hinfo, apcm->codec, substream);
substream         666 sound/pci/hda/hda_controller.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         671 sound/pci/hda/hda_controller.c 	snd_pcm_set_sync(substream);
substream         683 sound/pci/hda/hda_controller.c static int azx_pcm_mmap(struct snd_pcm_substream *substream,
substream         686 sound/pci/hda/hda_controller.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         689 sound/pci/hda/hda_controller.c 		chip->ops->pcm_mmap_prepare(substream, area);
substream         690 sound/pci/hda/hda_controller.c 	return snd_pcm_lib_default_mmap(substream, area);
substream        1128 sound/pci/hda/hda_controller.c 		snd_pcm_period_elapsed(azx_stream(azx_dev)->substream);
substream          77 sound/pci/hda/hda_controller.h 	void (*pcm_mmap_prepare)(struct snd_pcm_substream *substream,
substream         184 sound/pci/hda/hda_controller.h static inline struct azx_dev *get_azx_dev(struct snd_pcm_substream *substream)
substream         186 sound/pci/hda/hda_controller.h 	return substream->runtime->private_data;
substream        5277 sound/pci/hda/hda_generic.c 				   struct snd_pcm_substream *substream,
substream        5282 sound/pci/hda/hda_generic.c 		spec->pcm_playback_hook(hinfo, codec, substream, action);
substream        5287 sound/pci/hda/hda_generic.c 				  struct snd_pcm_substream *substream,
substream        5292 sound/pci/hda/hda_generic.c 		spec->pcm_capture_hook(hinfo, codec, substream, action);
substream        5300 sound/pci/hda/hda_generic.c 			     struct snd_pcm_substream *substream)
substream        5307 sound/pci/hda/hda_generic.c 					    &spec->multiout, substream,
substream        5311 sound/pci/hda/hda_generic.c 		call_pcm_playback_hook(hinfo, codec, substream,
substream        5322 sound/pci/hda/hda_generic.c 				struct snd_pcm_substream *substream)
substream        5328 sound/pci/hda/hda_generic.c 					       stream_tag, format, substream);
substream        5330 sound/pci/hda/hda_generic.c 		call_pcm_playback_hook(hinfo, codec, substream,
substream        5337 sound/pci/hda/hda_generic.c 				struct snd_pcm_substream *substream)
substream        5344 sound/pci/hda/hda_generic.c 		call_pcm_playback_hook(hinfo, codec, substream,
substream        5351 sound/pci/hda/hda_generic.c 			      struct snd_pcm_substream *substream)
substream        5356 sound/pci/hda/hda_generic.c 	call_pcm_playback_hook(hinfo, codec, substream,
substream        5364 sound/pci/hda/hda_generic.c 			    struct snd_pcm_substream *substream)
substream        5366 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_OPEN);
substream        5374 sound/pci/hda/hda_generic.c 			       struct snd_pcm_substream *substream)
substream        5377 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream,
substream        5384 sound/pci/hda/hda_generic.c 			       struct snd_pcm_substream *substream)
substream        5387 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream,
substream        5394 sound/pci/hda/hda_generic.c 			     struct snd_pcm_substream *substream)
substream        5396 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_CLOSE);
substream        5402 sound/pci/hda/hda_generic.c 				 struct snd_pcm_substream *substream)
substream        5412 sound/pci/hda/hda_generic.c 	call_pcm_playback_hook(hinfo, codec, substream,
substream        5420 sound/pci/hda/hda_generic.c 				  struct snd_pcm_substream *substream)
substream        5425 sound/pci/hda/hda_generic.c 	call_pcm_playback_hook(hinfo, codec, substream,
substream        5435 sound/pci/hda/hda_generic.c 				    struct snd_pcm_substream *substream)
substream        5438 sound/pci/hda/hda_generic.c 	call_pcm_playback_hook(hinfo, codec, substream,
substream        5445 sound/pci/hda/hda_generic.c 				    struct snd_pcm_substream *substream)
substream        5448 sound/pci/hda/hda_generic.c 	call_pcm_playback_hook(hinfo, codec, substream,
substream        5458 sound/pci/hda/hda_generic.c 				 struct snd_pcm_substream *substream)
substream        5468 sound/pci/hda/hda_generic.c 				    struct snd_pcm_substream *substream)
substream        5472 sound/pci/hda/hda_generic.c 					     stream_tag, format, substream);
substream        5477 sound/pci/hda/hda_generic.c 				    struct snd_pcm_substream *substream)
substream        5485 sound/pci/hda/hda_generic.c 				  struct snd_pcm_substream *substream)
substream        5501 sound/pci/hda/hda_generic.c 				   struct snd_pcm_substream *substream)
substream        5505 sound/pci/hda/hda_generic.c 	snd_hda_codec_setup_stream(codec, spec->adc_nids[substream->number + 1],
substream        5507 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream,
substream        5514 sound/pci/hda/hda_generic.c 				   struct snd_pcm_substream *substream)
substream        5519 sound/pci/hda/hda_generic.c 				     spec->adc_nids[substream->number + 1]);
substream        5520 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream,
substream        5631 sound/pci/hda/hda_generic.c 				       struct snd_pcm_substream *substream)
substream        5638 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_PREPARE);
substream        5644 sound/pci/hda/hda_generic.c 				       struct snd_pcm_substream *substream)
substream        5649 sound/pci/hda/hda_generic.c 	call_pcm_capture_hook(hinfo, codec, substream, HDA_GEN_PCM_ACT_CLEANUP);
substream         292 sound/pci/hda/hda_generic.h 				  struct snd_pcm_substream *substream,
substream         296 sound/pci/hda/hda_generic.h 				 struct snd_pcm_substream *substream,
substream         615 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
substream         616 sound/pci/hda/hda_intel.c 	int stream = substream->stream;
substream         640 sound/pci/hda/hda_intel.c 	return bytes_to_frames(substream->runtime, delay);
substream         677 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
substream         678 sound/pci/hda/hda_intel.c 	int stream = substream->stream;
substream         744 sound/pci/hda/hda_intel.c 			    !s->substream ||
substream         751 sound/pci/hda/hda_intel.c 				snd_pcm_period_elapsed(s->substream);
substream         807 sound/pci/hda/hda_intel.c 	if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         856 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
substream         857 sound/pci/hda/hda_intel.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         876 sound/pci/hda/hda_intel.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         888 sound/pci/hda/hda_intel.c 	struct snd_pcm_substream *substream = azx_dev->core.substream;
substream         891 sound/pci/hda/hda_intel.c 	return substream->runtime->delay;
substream         907 sound/pci/hda/hda_intel.c 	if (azx_dev->core.substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2011 sound/pci/hda/hda_intel.c static void pcm_mmap_prepare(struct snd_pcm_substream *substream,
substream        2015 sound/pci/hda/hda_intel.c 	struct azx_pcm *apcm = snd_pcm_substream_chip(substream);
substream         243 sound/pci/hda/hda_local.h 				  struct snd_pcm_substream *substream);
substream         248 sound/pci/hda/hda_local.h 				  struct snd_pcm_substream *substream,
substream         254 sound/pci/hda/hda_local.h 				     struct snd_pcm_substream *substream);
substream        3501 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3512 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3531 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3535 sound/pci/hda/patch_ca0132.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        3559 sound/pci/hda/patch_ca0132.c 					struct snd_pcm_substream *substream)
substream        3569 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3573 sound/pci/hda/patch_ca0132.c 					     stream_tag, format, substream);
substream        3578 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3586 sound/pci/hda/patch_ca0132.c 					 struct snd_pcm_substream *substream)
substream        3599 sound/pci/hda/patch_ca0132.c 					struct snd_pcm_substream *substream)
substream        3609 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3622 sound/pci/hda/patch_ca0132.c 			struct snd_pcm_substream *substream)
substream        3626 sound/pci/hda/patch_ca0132.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         418 sound/pci/hda/patch_conexant.c 				 struct snd_pcm_substream *substream,
substream        1155 sound/pci/hda/patch_hdmi.c 			 struct snd_pcm_substream *substream)
substream        1158 sound/pci/hda/patch_hdmi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1193 sound/pci/hda/patch_hdmi.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        1203 sound/pci/hda/patch_hdmi.c 			 struct snd_pcm_substream *substream)
substream        1206 sound/pci/hda/patch_hdmi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1230 sound/pci/hda/patch_hdmi.c 			err = hdmi_pcm_open_no_pin(hinfo, codec, substream);
substream        1250 sound/pci/hda/patch_hdmi.c 		azx_stream(get_azx_dev(substream))->stripe = 1;
substream        1289 sound/pci/hda/patch_hdmi.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        1393 sound/pci/hda/patch_hdmi.c 	struct snd_pcm_substream *substream;
substream        1408 sound/pci/hda/patch_hdmi.c 	substream = pcm->pcm->streams[0].substream;
substream        1423 sound/pci/hda/patch_hdmi.c 	if (substream->runtime)
substream        1424 sound/pci/hda/patch_hdmi.c 		per_pin->channels = substream->runtime->channels;
substream        1881 sound/pci/hda/patch_hdmi.c 					   struct snd_pcm_substream *substream)
substream        1888 sound/pci/hda/patch_hdmi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1931 sound/pci/hda/patch_hdmi.c 	per_pin->channels = substream->runtime->channels;
substream        1936 sound/pci/hda/patch_hdmi.c 							substream);
substream        1962 sound/pci/hda/patch_hdmi.c 					     struct snd_pcm_substream *substream)
substream        1970 sound/pci/hda/patch_hdmi.c 			  struct snd_pcm_substream *substream)
substream        1992 sound/pci/hda/patch_hdmi.c 		azx_stream(get_azx_dev(substream))->stripe = 0;
substream        3095 sound/pci/hda/patch_hdmi.c 				    struct snd_pcm_substream *substream)
substream        3115 sound/pci/hda/patch_hdmi.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        3119 sound/pci/hda/patch_hdmi.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        3128 sound/pci/hda/patch_hdmi.c 				     struct snd_pcm_substream *substream)
substream        3138 sound/pci/hda/patch_hdmi.c 				       struct snd_pcm_substream *substream)
substream        3142 sound/pci/hda/patch_hdmi.c 					     stream_tag, format, substream);
substream        3234 sound/pci/hda/patch_hdmi.c 				   struct snd_pcm_substream *substream)
substream        3261 sound/pci/hda/patch_hdmi.c 				     struct snd_pcm_substream *substream)
substream        3274 sound/pci/hda/patch_hdmi.c 	chs = substream->runtime->channels;
substream        3588 sound/pci/hda/patch_hdmi.c 				  struct snd_pcm_substream *substream)
substream        3593 sound/pci/hda/patch_hdmi.c 						format, substream);
substream        3605 sound/pci/hda/patch_hdmi.c 				  struct snd_pcm_substream *substream)
substream        3610 sound/pci/hda/patch_hdmi.c 	return generic_hdmi_playback_pcm_cleanup(hinfo, codec, substream);
substream         139 sound/pci/hda/patch_si3054.c 			      struct snd_pcm_substream *substream)
substream         143 sound/pci/hda/patch_si3054.c 	SET_REG(codec, SI3054_LINE_RATE, substream->runtime->rate);
substream         145 sound/pci/hda/patch_si3054.c 	val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK));
substream         146 sound/pci/hda/patch_si3054.c 	val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK));
substream         156 sound/pci/hda/patch_si3054.c 			    struct snd_pcm_substream *substream)
substream         164 sound/pci/hda/patch_si3054.c 	substream->runtime->hw.period_bytes_min = 80;
substream         165 sound/pci/hda/patch_si3054.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         242 sound/pci/hda/patch_sigmatel.c 				   struct snd_pcm_substream *substream,
substream         252 sound/pci/hda/patch_sigmatel.c 				  struct snd_pcm_substream *substream,
substream          95 sound/pci/hda/patch_via.c 				  struct snd_pcm_substream *substream,
substream         368 sound/pci/hda/patch_via.c 				  struct snd_pcm_substream *substream,
substream         374 sound/pci/ice1712/delta.c static void delta_open_spdif(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
substream         300 sound/pci/ice1712/ews.c static void ews88_open_spdif(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
substream         358 sound/pci/ice1712/ice1712.c static void open_cs8427(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
substream         363 sound/pci/ice1712/ice1712.c static void close_cs8427(struct snd_ice1712 *ice, struct snd_pcm_substream *substream)
substream         454 sound/pci/ice1712/ice1712.c 			struct snd_pcm_substream *substream;
substream         460 sound/pci/ice1712/ice1712.c 				substream = ice->playback_con_substream_ds[idx];
substream         461 sound/pci/ice1712/ice1712.c 				if (substream != NULL)
substream         462 sound/pci/ice1712/ice1712.c 					snd_pcm_period_elapsed(substream);
substream         486 sound/pci/ice1712/ice1712.c static int snd_ice1712_hw_params(struct snd_pcm_substream *substream,
substream         489 sound/pci/ice1712/ice1712.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         492 sound/pci/ice1712/ice1712.c static int snd_ice1712_hw_free(struct snd_pcm_substream *substream)
substream         494 sound/pci/ice1712/ice1712.c 	return snd_pcm_lib_free_pages(substream);
substream         501 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_trigger(struct snd_pcm_substream *substream,
substream         504 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         526 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_ds_trigger(struct snd_pcm_substream *substream,
substream         529 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         534 sound/pci/ice1712/ice1712.c 	tmp = snd_ice1712_ds_read(ice, substream->number * 2, ICE1712_DSC_CONTROL);
substream         546 sound/pci/ice1712/ice1712.c 	snd_ice1712_ds_write(ice, substream->number * 2, ICE1712_DSC_CONTROL, tmp);
substream         551 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_trigger(struct snd_pcm_substream *substream,
substream         554 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         572 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_prepare(struct snd_pcm_substream *substream)
substream         574 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         575 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         578 sound/pci/ice1712/ice1712.c 	period_size = (snd_pcm_lib_period_bytes(substream) >> 2) - 1;
substream         579 sound/pci/ice1712/ice1712.c 	buf_size = snd_pcm_lib_buffer_bytes(substream) - 1;
substream         605 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_ds_prepare(struct snd_pcm_substream *substream)
substream         607 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         608 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         611 sound/pci/ice1712/ice1712.c 	period_size = snd_pcm_lib_period_bytes(substream) - 1;
substream         620 sound/pci/ice1712/ice1712.c 	ice->playback_con_active_buf[substream->number] = 0;
substream         621 sound/pci/ice1712/ice1712.c 	ice->playback_con_virt_addr[substream->number] = runtime->dma_addr;
substream         622 sound/pci/ice1712/ice1712.c 	chn = substream->number * 2;
substream         639 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_prepare(struct snd_pcm_substream *substream)
substream         641 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         642 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         646 sound/pci/ice1712/ice1712.c 	period_size = (snd_pcm_lib_period_bytes(substream) >> 2) - 1;
substream         647 sound/pci/ice1712/ice1712.c 	buf_size = snd_pcm_lib_buffer_bytes(substream) - 1;
substream         664 sound/pci/ice1712/ice1712.c static snd_pcm_uframes_t snd_ice1712_playback_pointer(struct snd_pcm_substream *substream)
substream         666 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         667 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         673 sound/pci/ice1712/ice1712.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         679 sound/pci/ice1712/ice1712.c static snd_pcm_uframes_t snd_ice1712_playback_ds_pointer(struct snd_pcm_substream *substream)
substream         681 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         685 sound/pci/ice1712/ice1712.c 	if (!(snd_ice1712_ds_read(ice, substream->number * 2, ICE1712_DSC_CONTROL) & 1))
substream         687 sound/pci/ice1712/ice1712.c 	if (ice->playback_con_active_buf[substream->number])
substream         691 sound/pci/ice1712/ice1712.c 	ptr = snd_ice1712_ds_read(ice, substream->number * 2, addr) -
substream         692 sound/pci/ice1712/ice1712.c 		ice->playback_con_virt_addr[substream->number];
substream         693 sound/pci/ice1712/ice1712.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         694 sound/pci/ice1712/ice1712.c 	if (ptr == substream->runtime->buffer_size)
substream         699 sound/pci/ice1712/ice1712.c static snd_pcm_uframes_t snd_ice1712_capture_pointer(struct snd_pcm_substream *substream)
substream         701 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         707 sound/pci/ice1712/ice1712.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         708 sound/pci/ice1712/ice1712.c 	if (ptr == substream->runtime->buffer_size)
substream         769 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_open(struct snd_pcm_substream *substream)
substream         771 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         772 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         774 sound/pci/ice1712/ice1712.c 	ice->playback_con_substream = substream;
substream         779 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_ds_open(struct snd_pcm_substream *substream)
substream         781 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         782 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         785 sound/pci/ice1712/ice1712.c 	ice->playback_con_substream_ds[substream->number] = substream;
substream         788 sound/pci/ice1712/ice1712.c 	tmp = inw(ICEDS(ice, INTMASK)) & ~(1 << (substream->number * 2));
substream         794 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_open(struct snd_pcm_substream *substream)
substream         796 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         797 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         799 sound/pci/ice1712/ice1712.c 	ice->capture_con_substream = substream;
substream         807 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_close(struct snd_pcm_substream *substream)
substream         809 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         815 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_ds_close(struct snd_pcm_substream *substream)
substream         817 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         821 sound/pci/ice1712/ice1712.c 	tmp = inw(ICEDS(ice, INTMASK)) | (3 << (substream->number * 2));
substream         824 sound/pci/ice1712/ice1712.c 	ice->playback_con_substream_ds[substream->number] = NULL;
substream         828 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_close(struct snd_pcm_substream *substream)
substream         830 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         930 sound/pci/ice1712/ice1712.c static int snd_ice1712_pro_trigger(struct snd_pcm_substream *substream,
substream         933 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         940 sound/pci/ice1712/ice1712.c 		if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         943 sound/pci/ice1712/ice1712.c 		snd_pcm_trigger_done(substream, substream);
substream         961 sound/pci/ice1712/ice1712.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         964 sound/pci/ice1712/ice1712.c 				snd_pcm_trigger_done(s, substream);
substream         967 sound/pci/ice1712/ice1712.c 				snd_pcm_trigger_done(s, substream);
substream        1044 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_pro_prepare(struct snd_pcm_substream *substream)
substream        1046 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1048 sound/pci/ice1712/ice1712.c 	ice->playback_pro_size = snd_pcm_lib_buffer_bytes(substream);
substream        1050 sound/pci/ice1712/ice1712.c 	outl(substream->runtime->dma_addr, ICEMT(ice, PLAYBACK_ADDR));
substream        1052 sound/pci/ice1712/ice1712.c 	outw((snd_pcm_lib_period_bytes(substream) >> 2) - 1, ICEMT(ice, PLAYBACK_COUNT));
substream        1058 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_pro_hw_params(struct snd_pcm_substream *substream,
substream        1061 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1064 sound/pci/ice1712/ice1712.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream        1067 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_pro_prepare(struct snd_pcm_substream *substream)
substream        1069 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1071 sound/pci/ice1712/ice1712.c 	ice->capture_pro_size = snd_pcm_lib_buffer_bytes(substream);
substream        1073 sound/pci/ice1712/ice1712.c 	outl(substream->runtime->dma_addr, ICEMT(ice, CAPTURE_ADDR));
substream        1075 sound/pci/ice1712/ice1712.c 	outw((snd_pcm_lib_period_bytes(substream) >> 2) - 1, ICEMT(ice, CAPTURE_COUNT));
substream        1080 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_pro_hw_params(struct snd_pcm_substream *substream,
substream        1083 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1086 sound/pci/ice1712/ice1712.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream        1089 sound/pci/ice1712/ice1712.c static snd_pcm_uframes_t snd_ice1712_playback_pro_pointer(struct snd_pcm_substream *substream)
substream        1091 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1097 sound/pci/ice1712/ice1712.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream        1098 sound/pci/ice1712/ice1712.c 	if (ptr == substream->runtime->buffer_size)
substream        1103 sound/pci/ice1712/ice1712.c static snd_pcm_uframes_t snd_ice1712_capture_pro_pointer(struct snd_pcm_substream *substream)
substream        1105 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1111 sound/pci/ice1712/ice1712.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream        1112 sound/pci/ice1712/ice1712.c 	if (ptr == substream->runtime->buffer_size)
substream        1155 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_pro_open(struct snd_pcm_substream *substream)
substream        1157 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1158 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1160 sound/pci/ice1712/ice1712.c 	ice->playback_pro_substream = substream;
substream        1162 sound/pci/ice1712/ice1712.c 	snd_pcm_set_sync(substream);
substream        1171 sound/pci/ice1712/ice1712.c 		ice->spdif.ops.open(ice, substream);
substream        1176 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_pro_open(struct snd_pcm_substream *substream)
substream        1178 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1179 sound/pci/ice1712/ice1712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1181 sound/pci/ice1712/ice1712.c 	ice->capture_pro_substream = substream;
substream        1183 sound/pci/ice1712/ice1712.c 	snd_pcm_set_sync(substream);
substream        1194 sound/pci/ice1712/ice1712.c static int snd_ice1712_playback_pro_close(struct snd_pcm_substream *substream)
substream        1196 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1202 sound/pci/ice1712/ice1712.c 		ice->spdif.ops.close(ice, substream);
substream        1207 sound/pci/ice1712/ice1712.c static int snd_ice1712_capture_pro_close(struct snd_pcm_substream *substream)
substream        1209 sound/pci/ice1712/ice1712.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1263 sound/pci/ice1712/ice1712.c 					      pcm->streams[0].substream,
substream        1264 sound/pci/ice1712/ice1712.c 					      pcm->streams[1].substream);
substream         305 sound/pci/ice1712/ice1724.c static void vt1724_enable_midi_irq(struct snd_rawmidi_substream *substream,
substream         308 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = substream->rmidi->private_data;
substream         541 sound/pci/ice1712/ice1724.c static int snd_vt1724_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         543 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         549 sound/pci/ice1712/ice1724.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         554 sound/pci/ice1712/ice1724.c 			snd_pcm_trigger_done(s, substream);
substream         706 sound/pci/ice1712/ice1724.c static int snd_vt1724_pcm_hw_params(struct snd_pcm_substream *substream,
substream         709 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         715 sound/pci/ice1712/ice1724.c 	if (substream == ice->playback_pro_substream) {
substream         720 sound/pci/ice1712/ice1724.c 			    ice->pcm_reserved[i] != substream) {
substream         724 sound/pci/ice1712/ice1724.c 			ice->pcm_reserved[i] = substream;
substream         727 sound/pci/ice1712/ice1724.c 			if (ice->pcm_reserved[i] == substream)
substream         733 sound/pci/ice1712/ice1724.c 			if (ice->playback_con_substream_ds[i] == substream) {
substream         735 sound/pci/ice1712/ice1724.c 				    ice->pcm_reserved[i] != substream) {
substream         739 sound/pci/ice1712/ice1724.c 				ice->pcm_reserved[i] = substream;
substream         750 sound/pci/ice1712/ice1724.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         753 sound/pci/ice1712/ice1724.c static int snd_vt1724_pcm_hw_free(struct snd_pcm_substream *substream)
substream         755 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         761 sound/pci/ice1712/ice1724.c 		if (ice->pcm_reserved[i] == substream)
substream         764 sound/pci/ice1712/ice1724.c 	return snd_pcm_lib_free_pages(substream);
substream         767 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_pro_prepare(struct snd_pcm_substream *substream)
substream         769 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         774 sound/pci/ice1712/ice1724.c 	val = (8 - substream->runtime->channels) >> 1;
substream         777 sound/pci/ice1712/ice1724.c 	outl(substream->runtime->dma_addr, ICEMT1724(ice, PLAYBACK_ADDR));
substream         779 sound/pci/ice1712/ice1724.c 	size = (snd_pcm_lib_buffer_bytes(substream) >> 2) - 1;
substream         783 sound/pci/ice1712/ice1724.c 	size = (snd_pcm_lib_period_bytes(substream) >> 2) - 1;
substream         801 sound/pci/ice1712/ice1724.c static snd_pcm_uframes_t snd_vt1724_playback_pro_pointer(struct snd_pcm_substream *substream)
substream         803 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         810 sound/pci/ice1712/ice1724.c 	if (ptr < substream->runtime->dma_addr) {
substream         814 sound/pci/ice1712/ice1724.c 	ptr -= substream->runtime->dma_addr;
substream         815 sound/pci/ice1712/ice1724.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         816 sound/pci/ice1712/ice1724.c 	if (ptr >= substream->runtime->buffer_size) {
substream         818 sound/pci/ice1712/ice1724.c 			   (int)ptr, (int)substream->runtime->period_size);
substream         824 sound/pci/ice1712/ice1724.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         827 sound/pci/ice1712/ice1724.c 	else if (ptr <= substream->runtime->buffer_size)
substream         828 sound/pci/ice1712/ice1724.c 		ptr = substream->runtime->buffer_size - ptr;
substream         831 sound/pci/ice1712/ice1724.c 			   (int)ptr, (int)substream->runtime->buffer_size);
substream         838 sound/pci/ice1712/ice1724.c static int snd_vt1724_pcm_prepare(struct snd_pcm_substream *substream)
substream         840 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         841 sound/pci/ice1712/ice1724.c 	const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
substream         844 sound/pci/ice1712/ice1724.c 	outl(substream->runtime->dma_addr, ice->profi_port + reg->addr);
substream         845 sound/pci/ice1712/ice1724.c 	outw((snd_pcm_lib_buffer_bytes(substream) >> 2) - 1,
substream         847 sound/pci/ice1712/ice1724.c 	outw((snd_pcm_lib_period_bytes(substream) >> 2) - 1,
substream         853 sound/pci/ice1712/ice1724.c static snd_pcm_uframes_t snd_vt1724_pcm_pointer(struct snd_pcm_substream *substream)
substream         855 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream         856 sound/pci/ice1712/ice1724.c 	const struct vt1724_pcm_reg *reg = substream->runtime->private_data;
substream         863 sound/pci/ice1712/ice1724.c 	ptr -= substream->runtime->dma_addr;
substream         864 sound/pci/ice1712/ice1724.c 	return bytes_to_frames(substream->runtime, ptr);
substream         868 sound/pci/ice1712/ice1724.c 	ptr = bytes_to_frames(substream->runtime, ptr);
substream         871 sound/pci/ice1712/ice1724.c 	else if (ptr <= substream->runtime->buffer_size)
substream         872 sound/pci/ice1712/ice1724.c 		ptr = substream->runtime->buffer_size - ptr;
substream         875 sound/pci/ice1712/ice1724.c 			   (int)ptr, (int)substream->runtime->buffer_size);
substream         991 sound/pci/ice1712/ice1724.c 				struct snd_pcm_substream *substream)
substream         993 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1006 sound/pci/ice1712/ice1724.c static void constrain_rate_if_locked(struct snd_pcm_substream *substream)
substream        1008 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1009 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1027 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_pro_open(struct snd_pcm_substream *substream)
substream        1029 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1030 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1034 sound/pci/ice1712/ice1724.c 	ice->playback_pro_substream = substream;
substream        1036 sound/pci/ice1712/ice1724.c 	snd_pcm_set_sync(substream);
substream        1038 sound/pci/ice1712/ice1724.c 	set_rate_constraints(ice, substream);
substream        1055 sound/pci/ice1712/ice1724.c 	constrain_rate_if_locked(substream);
substream        1057 sound/pci/ice1712/ice1724.c 		ice->pro_open(ice, substream);
substream        1061 sound/pci/ice1712/ice1724.c static int snd_vt1724_capture_pro_open(struct snd_pcm_substream *substream)
substream        1063 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1064 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1067 sound/pci/ice1712/ice1724.c 	ice->capture_pro_substream = substream;
substream        1069 sound/pci/ice1712/ice1724.c 	snd_pcm_set_sync(substream);
substream        1071 sound/pci/ice1712/ice1724.c 	set_rate_constraints(ice, substream);
substream        1076 sound/pci/ice1712/ice1724.c 	constrain_rate_if_locked(substream);
substream        1078 sound/pci/ice1712/ice1724.c 		ice->pro_open(ice, substream);
substream        1082 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_pro_close(struct snd_pcm_substream *substream)
substream        1084 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1093 sound/pci/ice1712/ice1724.c static int snd_vt1724_capture_pro_close(struct snd_pcm_substream *substream)
substream        1095 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1200 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_spdif_prepare(struct snd_pcm_substream *substream)
substream        1202 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1204 sound/pci/ice1712/ice1724.c 		update_spdif_rate(ice, substream->runtime->rate);
substream        1205 sound/pci/ice1712/ice1724.c 	return snd_vt1724_pcm_prepare(substream);
substream        1208 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_spdif_open(struct snd_pcm_substream *substream)
substream        1210 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1211 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1214 sound/pci/ice1712/ice1724.c 	ice->playback_con_substream = substream;
substream        1217 sound/pci/ice1712/ice1724.c 		set_rate_constraints(ice, substream);
substream        1220 sound/pci/ice1712/ice1724.c 	snd_pcm_set_sync(substream);
substream        1226 sound/pci/ice1712/ice1724.c 	constrain_rate_if_locked(substream);
substream        1228 sound/pci/ice1712/ice1724.c 		ice->spdif.ops.open(ice, substream);
substream        1232 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_spdif_close(struct snd_pcm_substream *substream)
substream        1234 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1240 sound/pci/ice1712/ice1724.c 		ice->spdif.ops.close(ice, substream);
substream        1245 sound/pci/ice1712/ice1724.c static int snd_vt1724_capture_spdif_open(struct snd_pcm_substream *substream)
substream        1247 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1248 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1251 sound/pci/ice1712/ice1724.c 	ice->capture_con_substream = substream;
substream        1254 sound/pci/ice1712/ice1724.c 		set_rate_constraints(ice, substream);
substream        1257 sound/pci/ice1712/ice1724.c 	snd_pcm_set_sync(substream);
substream        1263 sound/pci/ice1712/ice1724.c 	constrain_rate_if_locked(substream);
substream        1265 sound/pci/ice1712/ice1724.c 		ice->spdif.ops.open(ice, substream);
substream        1269 sound/pci/ice1712/ice1724.c static int snd_vt1724_capture_spdif_close(struct snd_pcm_substream *substream)
substream        1271 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1277 sound/pci/ice1712/ice1724.c 		ice->spdif.ops.close(ice, substream);
substream        1381 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_indep_prepare(struct snd_pcm_substream *substream)
substream        1383 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1387 sound/pci/ice1712/ice1724.c 	val = 3 - substream->number;
substream        1391 sound/pci/ice1712/ice1724.c 	return snd_vt1724_pcm_prepare(substream);
substream        1394 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_indep_open(struct snd_pcm_substream *substream)
substream        1396 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1397 sound/pci/ice1712/ice1724.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1401 sound/pci/ice1712/ice1724.c 	if (ice->pcm_reserved[substream->number]) {
substream        1406 sound/pci/ice1712/ice1724.c 	runtime->private_data = (void *)&vt1724_playback_dma_regs[substream->number];
substream        1407 sound/pci/ice1712/ice1724.c 	ice->playback_con_substream_ds[substream->number] = substream;
substream        1409 sound/pci/ice1712/ice1724.c 	snd_pcm_set_sync(substream);
substream        1411 sound/pci/ice1712/ice1724.c 	set_rate_constraints(ice, substream);
substream        1415 sound/pci/ice1712/ice1724.c static int snd_vt1724_playback_indep_close(struct snd_pcm_substream *substream)
substream        1417 sound/pci/ice1712/ice1724.c 	struct snd_ice1712 *ice = snd_pcm_substream_chip(substream);
substream        1421 sound/pci/ice1712/ice1724.c 	ice->playback_con_substream_ds[substream->number] = NULL;
substream        1422 sound/pci/ice1712/ice1724.c 	ice->pcm_reserved[substream->number] = NULL;
substream         167 sound/pci/ice1712/juli.c 				struct snd_pcm_substream *substream)
substream         170 sound/pci/ice1712/juli.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         173 sound/pci/ice1712/juli.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream         464 sound/pci/ice1712/juli.c 			ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream         668 sound/pci/ice1712/prodigy192.c 				ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream         815 sound/pci/ice1712/quartet.c 			ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream         948 sound/pci/ice1712/quartet.c 		struct snd_pcm_substream *substream)
substream         951 sound/pci/ice1712/quartet.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         599 sound/pci/ice1712/revo.c 		   ice->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream         329 sound/pci/intel8x0.c #define get_ichdev(substream) (substream->runtime->private_data)
substream         336 sound/pci/intel8x0.c 	struct snd_pcm_substream *substream;
substream         759 sound/pci/intel8x0.c 	if (ack && ichdev->substream) {
substream         760 sound/pci/intel8x0.c 		snd_pcm_period_elapsed(ichdev->substream);
substream         803 sound/pci/intel8x0.c static int snd_intel8x0_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         805 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream         806 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         841 sound/pci/intel8x0.c static int snd_intel8x0_ali_trigger(struct snd_pcm_substream *substream, int cmd)
substream         843 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream         844 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         858 sound/pci/intel8x0.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         896 sound/pci/intel8x0.c static int snd_intel8x0_hw_params(struct snd_pcm_substream *substream,
substream         899 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream         900 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         904 sound/pci/intel8x0.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         924 sound/pci/intel8x0.c static int snd_intel8x0_hw_free(struct snd_pcm_substream *substream)
substream         926 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         932 sound/pci/intel8x0.c 	return snd_pcm_lib_free_pages(substream);
substream         990 sound/pci/intel8x0.c static int snd_intel8x0_pcm_prepare(struct snd_pcm_substream *substream)
substream         992 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream         993 sound/pci/intel8x0.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         994 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         997 sound/pci/intel8x0.c 	ichdev->size = snd_pcm_lib_buffer_bytes(substream);
substream         998 sound/pci/intel8x0.c 	ichdev->fragsize = snd_pcm_lib_period_bytes(substream);
substream        1008 sound/pci/intel8x0.c static snd_pcm_uframes_t snd_intel8x0_pcm_pointer(struct snd_pcm_substream *substream)
substream        1010 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1011 sound/pci/intel8x0.c 	struct ichdev *ichdev = get_ichdev(substream);
substream        1059 sound/pci/intel8x0.c 	return bytes_to_frames(substream->runtime, ptr);
substream        1113 sound/pci/intel8x0.c static int snd_intel8x0_pcm_open(struct snd_pcm_substream *substream, struct ichdev *ichdev)
substream        1115 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1116 sound/pci/intel8x0.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1119 sound/pci/intel8x0.c 	ichdev->substream = substream;
substream        1133 sound/pci/intel8x0.c static int snd_intel8x0_playback_open(struct snd_pcm_substream *substream)
substream        1135 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1136 sound/pci/intel8x0.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1139 sound/pci/intel8x0.c 	err = snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMOUT]);
substream        1167 sound/pci/intel8x0.c static int snd_intel8x0_playback_close(struct snd_pcm_substream *substream)
substream        1169 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1171 sound/pci/intel8x0.c 	chip->ichd[ICHD_PCMOUT].substream = NULL;
substream        1175 sound/pci/intel8x0.c static int snd_intel8x0_capture_open(struct snd_pcm_substream *substream)
substream        1177 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1179 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCMIN]);
substream        1182 sound/pci/intel8x0.c static int snd_intel8x0_capture_close(struct snd_pcm_substream *substream)
substream        1184 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1186 sound/pci/intel8x0.c 	chip->ichd[ICHD_PCMIN].substream = NULL;
substream        1190 sound/pci/intel8x0.c static int snd_intel8x0_mic_open(struct snd_pcm_substream *substream)
substream        1192 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1194 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC]);
substream        1197 sound/pci/intel8x0.c static int snd_intel8x0_mic_close(struct snd_pcm_substream *substream)
substream        1199 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1201 sound/pci/intel8x0.c 	chip->ichd[ICHD_MIC].substream = NULL;
substream        1205 sound/pci/intel8x0.c static int snd_intel8x0_mic2_open(struct snd_pcm_substream *substream)
substream        1207 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1209 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_MIC2]);
substream        1212 sound/pci/intel8x0.c static int snd_intel8x0_mic2_close(struct snd_pcm_substream *substream)
substream        1214 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1216 sound/pci/intel8x0.c 	chip->ichd[ICHD_MIC2].substream = NULL;
substream        1220 sound/pci/intel8x0.c static int snd_intel8x0_capture2_open(struct snd_pcm_substream *substream)
substream        1222 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1224 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ICHD_PCM2IN]);
substream        1227 sound/pci/intel8x0.c static int snd_intel8x0_capture2_close(struct snd_pcm_substream *substream)
substream        1229 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1231 sound/pci/intel8x0.c 	chip->ichd[ICHD_PCM2IN].substream = NULL;
substream        1235 sound/pci/intel8x0.c static int snd_intel8x0_spdif_open(struct snd_pcm_substream *substream)
substream        1237 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1240 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[idx]);
substream        1243 sound/pci/intel8x0.c static int snd_intel8x0_spdif_close(struct snd_pcm_substream *substream)
substream        1245 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1248 sound/pci/intel8x0.c 	chip->ichd[idx].substream = NULL;
substream        1252 sound/pci/intel8x0.c static int snd_intel8x0_ali_ac97spdifout_open(struct snd_pcm_substream *substream)
substream        1254 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1264 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_AC97SPDIFOUT]);
substream        1267 sound/pci/intel8x0.c static int snd_intel8x0_ali_ac97spdifout_close(struct snd_pcm_substream *substream)
substream        1269 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1272 sound/pci/intel8x0.c 	chip->ichd[ALID_AC97SPDIFOUT].substream = NULL;
substream        1283 sound/pci/intel8x0.c static int snd_intel8x0_ali_spdifin_open(struct snd_pcm_substream *substream)
substream        1285 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1287 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFIN]);
substream        1290 sound/pci/intel8x0.c static int snd_intel8x0_ali_spdifin_close(struct snd_pcm_substream *substream)
substream        1292 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1294 sound/pci/intel8x0.c 	chip->ichd[ALID_SPDIFIN].substream = NULL;
substream        1298 sound/pci/intel8x0.c static int snd_intel8x0_ali_spdifout_open(struct snd_pcm_substream *substream)
substream        1300 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1302 sound/pci/intel8x0.c 	return snd_intel8x0_pcm_open(substream, &chip->ichd[ALID_SPDIFOUT]);
substream        1305 sound/pci/intel8x0.c static int snd_intel8x0_ali_spdifout_close(struct snd_pcm_substream *substream)
substream        1307 sound/pci/intel8x0.c 	struct intel8x0 *chip = snd_pcm_substream_chip(substream);
substream        1309 sound/pci/intel8x0.c 	chip->ichd[ALID_SPDIFOUT].substream = NULL;
substream        2649 sound/pci/intel8x0.c 		if (! ichdev->substream || ! ichdev->suspended)
substream        2652 sound/pci/intel8x0.c 			snd_intel8x0_setup_pcm_out(chip, ichdev->substream->runtime);
substream        2684 sound/pci/intel8x0.c 	subs = chip->pcm[0]->streams[0].substream;
substream        2693 sound/pci/intel8x0.c 	ichdev->substream = NULL; /* don't process interrupts */
substream         151 sound/pci/intel8x0m.c #define get_ichdev(substream) (substream->runtime->private_data)
substream         158 sound/pci/intel8x0m.c 	struct snd_pcm_substream *substream;
substream         476 sound/pci/intel8x0m.c 	if (ack && ichdev->substream) {
substream         478 sound/pci/intel8x0m.c 		snd_pcm_period_elapsed(ichdev->substream);
substream         521 sound/pci/intel8x0m.c static int snd_intel8x0m_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         523 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         524 sound/pci/intel8x0m.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         556 sound/pci/intel8x0m.c static int snd_intel8x0m_hw_params(struct snd_pcm_substream *substream,
substream         559 sound/pci/intel8x0m.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         562 sound/pci/intel8x0m.c static int snd_intel8x0m_hw_free(struct snd_pcm_substream *substream)
substream         564 sound/pci/intel8x0m.c 	return snd_pcm_lib_free_pages(substream);
substream         567 sound/pci/intel8x0m.c static snd_pcm_uframes_t snd_intel8x0m_pcm_pointer(struct snd_pcm_substream *substream)
substream         569 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         570 sound/pci/intel8x0m.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         581 sound/pci/intel8x0m.c 	return bytes_to_frames(substream->runtime, ptr);
substream         584 sound/pci/intel8x0m.c static int snd_intel8x0m_pcm_prepare(struct snd_pcm_substream *substream)
substream         586 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         587 sound/pci/intel8x0m.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         588 sound/pci/intel8x0m.c 	struct ichdev *ichdev = get_ichdev(substream);
substream         591 sound/pci/intel8x0m.c 	ichdev->size = snd_pcm_lib_buffer_bytes(substream);
substream         592 sound/pci/intel8x0m.c 	ichdev->fragsize = snd_pcm_lib_period_bytes(substream);
substream         621 sound/pci/intel8x0m.c static int snd_intel8x0m_pcm_open(struct snd_pcm_substream *substream, struct ichdev *ichdev)
substream         629 sound/pci/intel8x0m.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         632 sound/pci/intel8x0m.c 	ichdev->substream = substream;
substream         642 sound/pci/intel8x0m.c static int snd_intel8x0m_playback_open(struct snd_pcm_substream *substream)
substream         644 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         646 sound/pci/intel8x0m.c 	return snd_intel8x0m_pcm_open(substream, &chip->ichd[ICHD_MDMOUT]);
substream         649 sound/pci/intel8x0m.c static int snd_intel8x0m_playback_close(struct snd_pcm_substream *substream)
substream         651 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         653 sound/pci/intel8x0m.c 	chip->ichd[ICHD_MDMOUT].substream = NULL;
substream         657 sound/pci/intel8x0m.c static int snd_intel8x0m_capture_open(struct snd_pcm_substream *substream)
substream         659 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         661 sound/pci/intel8x0m.c 	return snd_intel8x0m_pcm_open(substream, &chip->ichd[ICHD_MDMIN]);
substream         664 sound/pci/intel8x0m.c static int snd_intel8x0m_capture_close(struct snd_pcm_substream *substream)
substream         666 sound/pci/intel8x0m.c 	struct intel8x0m *chip = snd_pcm_substream_chip(substream);
substream         668 sound/pci/intel8x0m.c 	chip->ichd[ICHD_MDMIN].substream = NULL;
substream        1288 sound/pci/korg1212/korg1212.c static int snd_korg1212_copy_to(struct snd_pcm_substream *substream,
substream        1292 sound/pci/korg1212/korg1212.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1293 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1325 sound/pci/korg1212/korg1212.c static int snd_korg1212_copy_from(struct snd_pcm_substream *substream,
substream        1329 sound/pci/korg1212/korg1212.c         struct snd_pcm_runtime *runtime = substream->runtime;
substream        1330 sound/pci/korg1212/korg1212.c 	struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1374 sound/pci/korg1212/korg1212.c static int snd_korg1212_playback_open(struct snd_pcm_substream *substream)
substream        1377 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1378 sound/pci/korg1212/korg1212.c         struct snd_pcm_runtime *runtime = substream->runtime;
substream        1386 sound/pci/korg1212/korg1212.c 	snd_pcm_set_runtime_buffer(substream, &korg1212->dma_play);
substream        1390 sound/pci/korg1212/korg1212.c         korg1212->playback_substream = substream;
substream        1405 sound/pci/korg1212/korg1212.c static int snd_korg1212_capture_open(struct snd_pcm_substream *substream)
substream        1408 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1409 sound/pci/korg1212/korg1212.c         struct snd_pcm_runtime *runtime = substream->runtime;
substream        1417 sound/pci/korg1212/korg1212.c 	snd_pcm_set_runtime_buffer(substream, &korg1212->dma_rec);
substream        1421 sound/pci/korg1212/korg1212.c         korg1212->capture_substream = substream;
substream        1433 sound/pci/korg1212/korg1212.c static int snd_korg1212_playback_close(struct snd_pcm_substream *substream)
substream        1436 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1455 sound/pci/korg1212/korg1212.c static int snd_korg1212_capture_close(struct snd_pcm_substream *substream)
substream        1458 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1475 sound/pci/korg1212/korg1212.c static int snd_korg1212_ioctl(struct snd_pcm_substream *substream,
substream        1489 sound/pci/korg1212/korg1212.c         return snd_pcm_lib_ioctl(substream, cmd, arg);
substream        1492 sound/pci/korg1212/korg1212.c static int snd_korg1212_hw_params(struct snd_pcm_substream *substream,
substream        1496 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1506 sound/pci/korg1212/korg1212.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1544 sound/pci/korg1212/korg1212.c static int snd_korg1212_prepare(struct snd_pcm_substream *substream)
substream        1546 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1576 sound/pci/korg1212/korg1212.c static int snd_korg1212_trigger(struct snd_pcm_substream *substream,
substream        1579 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1617 sound/pci/korg1212/korg1212.c static snd_pcm_uframes_t snd_korg1212_playback_pointer(struct snd_pcm_substream *substream)
substream        1619 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1630 sound/pci/korg1212/korg1212.c static snd_pcm_uframes_t snd_korg1212_capture_pointer(struct snd_pcm_substream *substream)
substream        1632 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1643 sound/pci/korg1212/korg1212.c static int snd_korg1212_playback_copy(struct snd_pcm_substream *substream,
substream        1647 sound/pci/korg1212/korg1212.c 	return snd_korg1212_copy_from(substream, src, pos, count, false);
substream        1650 sound/pci/korg1212/korg1212.c static int snd_korg1212_playback_copy_kernel(struct snd_pcm_substream *substream,
substream        1654 sound/pci/korg1212/korg1212.c 	return snd_korg1212_copy_from(substream, (void __user *)src,
substream        1658 sound/pci/korg1212/korg1212.c static int snd_korg1212_playback_silence(struct snd_pcm_substream *substream,
substream        1663 sound/pci/korg1212/korg1212.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1664 sound/pci/korg1212/korg1212.c         struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
substream        1671 sound/pci/korg1212/korg1212.c static int snd_korg1212_capture_copy(struct snd_pcm_substream *substream,
substream        1675 sound/pci/korg1212/korg1212.c 	return snd_korg1212_copy_to(substream, dst, pos, count, false);
substream        1678 sound/pci/korg1212/korg1212.c static int snd_korg1212_capture_copy_kernel(struct snd_pcm_substream *substream,
substream        1682 sound/pci/korg1212/korg1212.c 	return snd_korg1212_copy_to(substream, (void __user *)dst,
substream         283 sound/pci/lola/lola.h 	struct snd_pcm_substream *substream; /* assigned PCM substream */
substream          21 sound/pci/lola/lola_pcm.c static struct lola_pcm *lola_get_pcm(struct snd_pcm_substream *substream)
substream          23 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream          24 sound/pci/lola/lola_pcm.c 	return &chip->pcm[substream->stream];
substream          27 sound/pci/lola/lola_pcm.c static struct lola_stream *lola_get_stream(struct snd_pcm_substream *substream)
substream          29 sound/pci/lola/lola_pcm.c 	struct lola_pcm *pcm = lola_get_pcm(substream);
substream          30 sound/pci/lola/lola_pcm.c 	unsigned int idx = substream->number;
substream         116 sound/pci/lola/lola_pcm.c 				   struct snd_pcm_substream *substream,
substream         126 sound/pci/lola/lola_pcm.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         128 sound/pci/lola/lola_pcm.c 			if (s->pcm->card != substream->pcm->card)
substream         152 sound/pci/lola/lola_pcm.c 			    struct snd_pcm_substream *substream)
substream         156 sound/pci/lola/lola_pcm.c 	lola_sync_wait_for_fifo(chip, substream, false);
substream         157 sound/pci/lola/lola_pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         159 sound/pci/lola/lola_pcm.c 		if (s->pcm->card != substream->pcm->card)
substream         166 sound/pci/lola/lola_pcm.c 	lola_sync_wait_for_fifo(chip, substream, true);
substream         173 sound/pci/lola/lola_pcm.c 			lola_sync_pause(chip, str->substream);
substream         210 sound/pci/lola/lola_pcm.c static int lola_pcm_open(struct snd_pcm_substream *substream)
substream         212 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         213 sound/pci/lola/lola_pcm.c 	struct lola_pcm *pcm = lola_get_pcm(substream);
substream         214 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         215 sound/pci/lola/lola_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         222 sound/pci/lola/lola_pcm.c 	str->substream = substream;
substream         259 sound/pci/lola/lola_pcm.c static int lola_pcm_close(struct snd_pcm_substream *substream)
substream         261 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         262 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         265 sound/pci/lola/lola_pcm.c 	if (str->substream == substream) {
substream         266 sound/pci/lola/lola_pcm.c 		str->substream = NULL;
substream         277 sound/pci/lola/lola_pcm.c static int lola_pcm_hw_params(struct snd_pcm_substream *substream,
substream         280 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         285 sound/pci/lola/lola_pcm.c 	return snd_pcm_lib_malloc_pages(substream,
substream         289 sound/pci/lola/lola_pcm.c static int lola_pcm_hw_free(struct snd_pcm_substream *substream)
substream         291 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         292 sound/pci/lola/lola_pcm.c 	struct lola_pcm *pcm = lola_get_pcm(substream);
substream         293 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         299 sound/pci/lola/lola_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         305 sound/pci/lola/lola_pcm.c static int setup_bdle(struct snd_pcm_substream *substream,
substream         318 sound/pci/lola/lola_pcm.c 		addr = snd_pcm_sgbuf_get_addr(substream, ofs);
substream         323 sound/pci/lola/lola_pcm.c 		chunk = snd_pcm_sgbuf_get_chunk_size(substream, ofs, size);
substream         342 sound/pci/lola/lola_pcm.c 			      struct snd_pcm_substream *substream,
substream         356 sound/pci/lola/lola_pcm.c 		ofs = setup_bdle(substream, str, &bdl, ofs, period_bytes);
substream         368 sound/pci/lola/lola_pcm.c static unsigned int lola_get_format_verb(struct snd_pcm_substream *substream)
substream         372 sound/pci/lola/lola_pcm.c 	switch (substream->runtime->format) {
substream         388 sound/pci/lola/lola_pcm.c 	verb |= substream->runtime->channels;
substream         452 sound/pci/lola/lola_pcm.c static int lola_pcm_prepare(struct snd_pcm_substream *substream)
substream         454 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         455 sound/pci/lola/lola_pcm.c 	struct lola_pcm *pcm = lola_get_pcm(substream);
substream         456 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         457 sound/pci/lola/lola_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         474 sound/pci/lola/lola_pcm.c 	bufsize = snd_pcm_lib_buffer_bytes(substream);
substream         475 sound/pci/lola/lola_pcm.c 	period_bytes = snd_pcm_lib_period_bytes(substream);
substream         476 sound/pci/lola/lola_pcm.c 	format_verb = lola_get_format_verb(substream);
substream         482 sound/pci/lola/lola_pcm.c 	err = lola_setup_periods(chip, pcm, substream, str);
substream         504 sound/pci/lola/lola_pcm.c static int lola_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         506 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         532 sound/pci/lola/lola_pcm.c 	sync_streams = (start && snd_pcm_stream_linked(substream));
substream         535 sound/pci/lola/lola_pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         536 sound/pci/lola/lola_pcm.c 		if (s->pcm->card != substream->pcm->card)
substream         545 sound/pci/lola/lola_pcm.c 		snd_pcm_trigger_done(s, substream);
substream         551 sound/pci/lola/lola_pcm.c static snd_pcm_uframes_t lola_pcm_pointer(struct snd_pcm_substream *substream)
substream         553 sound/pci/lola/lola_pcm.c 	struct lola *chip = snd_pcm_substream_chip(substream);
substream         554 sound/pci/lola/lola_pcm.c 	struct lola_stream *str = lola_get_stream(substream);
substream         559 sound/pci/lola/lola_pcm.c 	return bytes_to_frames(substream->runtime, pos);
substream         569 sound/pci/lola/lola_pcm.c 			if (str->substream && str->running)
substream         570 sound/pci/lola/lola_pcm.c 				snd_pcm_period_elapsed(str->substream);
substream          98 sound/pci/lx6464es/lx6464es.c 			    struct snd_pcm_substream *substream)
substream         101 sound/pci/lx6464es/lx6464es.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         103 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         125 sound/pci/lx6464es/lx6464es.c 			     struct snd_pcm_substream *substream)
substream         128 sound/pci/lx6464es/lx6464es.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         129 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         157 sound/pci/lx6464es/lx6464es.c 			    struct snd_pcm_substream *substream)
substream         160 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         188 sound/pci/lx6464es/lx6464es.c 			     struct snd_pcm_substream *substream)
substream         191 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         204 sound/pci/lx6464es/lx6464es.c static int lx_pcm_open(struct snd_pcm_substream *substream)
substream         206 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         207 sound/pci/lx6464es/lx6464es.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         251 sound/pci/lx6464es/lx6464es.c 	snd_pcm_set_sync(substream);
substream         262 sound/pci/lx6464es/lx6464es.c static int lx_pcm_close(struct snd_pcm_substream *substream)
substream         264 sound/pci/lx6464es/lx6464es.c 	dev_dbg(substream->pcm->card->dev, "->lx_pcm_close\n");
substream         269 sound/pci/lx6464es/lx6464es.c 					       *substream)
substream         271 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         273 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         281 sound/pci/lx6464es/lx6464es.c 	pos = lx_stream->frame_pos * substream->runtime->period_size;
substream         288 sound/pci/lx6464es/lx6464es.c static int lx_pcm_prepare(struct snd_pcm_substream *substream)
substream         290 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         292 sound/pci/lx6464es/lx6464es.c 	const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         299 sound/pci/lx6464es/lx6464es.c 		err = lx_hardware_stop(chip, substream);
substream         306 sound/pci/lx6464es/lx6464es.c 		err = lx_hardware_close(chip, substream);
substream         315 sound/pci/lx6464es/lx6464es.c 	err = lx_hardware_open(chip, substream);
substream         322 sound/pci/lx6464es/lx6464es.c 	err = lx_hardware_start(chip, substream);
substream         331 sound/pci/lx6464es/lx6464es.c 	if (chip->board_sample_rate != substream->runtime->rate) {
substream         333 sound/pci/lx6464es/lx6464es.c 			chip->board_sample_rate = substream->runtime->rate;
substream         341 sound/pci/lx6464es/lx6464es.c static int lx_pcm_hw_params(struct snd_pcm_substream *substream,
substream         344 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         352 sound/pci/lx6464es/lx6464es.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         356 sound/pci/lx6464es/lx6464es.c 		chip->capture_stream.stream = substream;
substream         358 sound/pci/lx6464es/lx6464es.c 		chip->playback_stream.stream = substream;
substream         364 sound/pci/lx6464es/lx6464es.c static int lx_pcm_hw_params_playback(struct snd_pcm_substream *substream,
substream         367 sound/pci/lx6464es/lx6464es.c 	return lx_pcm_hw_params(substream, hw_params, 0);
substream         370 sound/pci/lx6464es/lx6464es.c static int lx_pcm_hw_params_capture(struct snd_pcm_substream *substream,
substream         373 sound/pci/lx6464es/lx6464es.c 	return lx_pcm_hw_params(substream, hw_params, 1);
substream         376 sound/pci/lx6464es/lx6464es.c static int lx_pcm_hw_free(struct snd_pcm_substream *substream)
substream         378 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         380 sound/pci/lx6464es/lx6464es.c 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         386 sound/pci/lx6464es/lx6464es.c 		err = lx_hardware_stop(chip, substream);
substream         393 sound/pci/lx6464es/lx6464es.c 		err = lx_hardware_close(chip, substream);
substream         403 sound/pci/lx6464es/lx6464es.c 	err = snd_pcm_lib_free_pages(substream);
substream         417 sound/pci/lx6464es/lx6464es.c 	struct snd_pcm_substream *substream = lx_stream->stream;
substream         422 sound/pci/lx6464es/lx6464es.c 	const u32 channels = substream->runtime->channels;
substream         424 sound/pci/lx6464es/lx6464es.c 	const u32 period_size = substream->runtime->period_size;
substream         425 sound/pci/lx6464es/lx6464es.c 	const u32 periods = substream->runtime->periods;
substream         428 sound/pci/lx6464es/lx6464es.c 	dma_addr_t buf = substream->dma_buffer.addr;
substream         524 sound/pci/lx6464es/lx6464es.c static int lx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         526 sound/pci/lx6464es/lx6464es.c 	struct lx6464es *chip = snd_pcm_substream_chip(substream);
substream         527 sound/pci/lx6464es/lx6464es.c 	const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream        1019 sound/pci/lx6464es/lx_core.c 	struct snd_pcm_substream *substream = lx_stream->stream;
substream        1023 sound/pci/lx6464es/lx_core.c 	const u32 channels = substream->runtime->channels;
substream        1025 sound/pci/lx6464es/lx_core.c 	const u32 period_size = substream->runtime->period_size;
substream        1028 sound/pci/lx6464es/lx_core.c 	const u32 next_pos = ((pos+1) == substream->runtime->periods) ?
substream        1031 sound/pci/lx6464es/lx_core.c 	dma_addr_t buf = substream->dma_buffer.addr + pos * period_bytes;
substream         700 sound/pci/maestro3.c 	struct snd_pcm_substream *substream;
substream        1380 sound/pci/maestro3.c static int snd_m3_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1383 sound/pci/maestro3.c 	struct m3_dma *s = substream->runtime->private_data;
substream        1386 sound/pci/maestro3.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream        1389 sound/pci/maestro3.c 	s->buffer_addr = substream->runtime->dma_addr;
substream        1391 sound/pci/maestro3.c 		dev_err(substream->pcm->card->dev, "oh my, not aligned\n");
substream        1397 sound/pci/maestro3.c static int snd_m3_pcm_hw_free(struct snd_pcm_substream *substream)
substream        1401 sound/pci/maestro3.c 	if (substream->runtime->private_data == NULL)
substream        1403 sound/pci/maestro3.c 	s = substream->runtime->private_data;
substream        1404 sound/pci/maestro3.c 	snd_pcm_lib_free_pages(substream);
substream        1491 sound/pci/maestro3.c 	struct snd_pcm_substream *subs = s->substream;
substream        1735 sound/pci/maestro3.c 	s->substream = subs;
substream        1757 sound/pci/maestro3.c 	if (s->substream && s->running)
substream        1758 sound/pci/maestro3.c 		snd_m3_pcm_stop(chip, s, s->substream); /* does this happen? */
substream        2365 sound/pci/maestro3.c 			if (s->substream && s->running)
substream        2366 sound/pci/maestro3.c 				snd_m3_pcm_stop(chip, s, s->substream);
substream         387 sound/pci/mixart/mixart.c 	if(!stream->substream)
substream         393 sound/pci/mixart/mixart.c 	stream_state_req.stream_info.stream_desc.stream_idx = stream->substream->number;
substream         395 sound/pci/mixart/mixart.c 	if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         408 sound/pci/mixart/mixart.c 	chip = snd_pcm_substream_chip(stream->substream);
substream         512 sound/pci/mixart/mixart.c 	chip = snd_pcm_substream_chip(stream->substream);
substream         570 sound/pci/mixart/mixart.c 	stream_param.stream_desc[0].stream_idx = stream->substream->number;
substream         766 sound/pci/mixart/mixart.c 	stream->substream   = subs;
substream         847 sound/pci/mixart/mixart.c 	stream->substream   = subs;
substream         896 sound/pci/mixart/mixart.c 	stream->substream = NULL;
substream         943 sound/pci/mixart/mixart.c 		for (subs = pcm->streams[stream].substream; subs; subs = subs->next, idx++)
substream         120 sound/pci/mixart/mixart.h 	struct snd_pcm_substream *substream;
substream         471 sound/pci/mixart/mixart_core.c 					if (stream->substream && (stream->status == MIXART_STREAM_STATUS_RUNNING)) {
substream         472 sound/pci/mixart/mixart_core.c 						struct snd_pcm_runtime *runtime = stream->substream->runtime;
substream         496 sound/pci/mixart/mixart_core.c 							snd_pcm_period_elapsed(stream->substream);
substream         176 sound/pci/nm256/nm256.c 	struct snd_pcm_substream *substream;
substream         416 sound/pci/nm256/nm256.c 		     struct snd_pcm_substream *substream)
substream         418 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         434 sound/pci/nm256/nm256.c 	switch (substream->stream) {
substream         499 sound/pci/nm256/nm256.c 			 struct snd_pcm_substream *substream)
substream         516 sound/pci/nm256/nm256.c 			struct snd_pcm_substream *substream)
substream         548 sound/pci/nm256/nm256.c snd_nm256_playback_trigger(struct snd_pcm_substream *substream, int cmd)
substream         550 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         551 sound/pci/nm256/nm256.c 	struct nm256_stream *s = substream->runtime->private_data;
substream         564 sound/pci/nm256/nm256.c 			snd_nm256_playback_start(chip, s, substream);
substream         586 sound/pci/nm256/nm256.c snd_nm256_capture_trigger(struct snd_pcm_substream *substream, int cmd)
substream         588 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         589 sound/pci/nm256/nm256.c 	struct nm256_stream *s = substream->runtime->private_data;
substream         600 sound/pci/nm256/nm256.c 			snd_nm256_capture_start(chip, s, substream);
substream         623 sound/pci/nm256/nm256.c static int snd_nm256_pcm_prepare(struct snd_pcm_substream *substream)
substream         625 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         626 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         631 sound/pci/nm256/nm256.c 	s->dma_size = frames_to_bytes(runtime, substream->runtime->buffer_size);
substream         632 sound/pci/nm256/nm256.c 	s->period_size = frames_to_bytes(runtime, substream->runtime->period_size);
substream         633 sound/pci/nm256/nm256.c 	s->periods = substream->runtime->periods;
substream         638 sound/pci/nm256/nm256.c 	snd_nm256_set_format(chip, s, substream);
substream         649 sound/pci/nm256/nm256.c snd_nm256_playback_pointer(struct snd_pcm_substream *substream)
substream         651 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         652 sound/pci/nm256/nm256.c 	struct nm256_stream *s = substream->runtime->private_data;
substream         659 sound/pci/nm256/nm256.c 	return bytes_to_frames(substream->runtime, curp);
substream         663 sound/pci/nm256/nm256.c snd_nm256_capture_pointer(struct snd_pcm_substream *substream)
substream         665 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         666 sound/pci/nm256/nm256.c 	struct nm256_stream *s = substream->runtime->private_data;
substream         673 sound/pci/nm256/nm256.c 	return bytes_to_frames(substream->runtime, curp);
substream         683 sound/pci/nm256/nm256.c snd_nm256_playback_silence(struct snd_pcm_substream *substream,
substream         686 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         694 sound/pci/nm256/nm256.c snd_nm256_playback_copy(struct snd_pcm_substream *substream,
substream         698 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         707 sound/pci/nm256/nm256.c snd_nm256_playback_copy_kernel(struct snd_pcm_substream *substream,
substream         711 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         722 sound/pci/nm256/nm256.c snd_nm256_capture_copy(struct snd_pcm_substream *substream,
substream         726 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         735 sound/pci/nm256/nm256.c snd_nm256_capture_copy_kernel(struct snd_pcm_substream *substream,
substream         739 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         760 sound/pci/nm256/nm256.c 	if (s->running && s->substream) {
substream         762 sound/pci/nm256/nm256.c 		snd_pcm_period_elapsed(s->substream);
substream         775 sound/pci/nm256/nm256.c 	if (s->running && s->substream) {
substream         777 sound/pci/nm256/nm256.c 		snd_pcm_period_elapsed(s->substream);
substream         826 sound/pci/nm256/nm256.c static int snd_nm256_pcm_hw_params(struct snd_pcm_substream *substream,
substream         830 sound/pci/nm256/nm256.c 	substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
substream         838 sound/pci/nm256/nm256.c 				   struct snd_pcm_substream *substream,
substream         841 sound/pci/nm256/nm256.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         851 sound/pci/nm256/nm256.c 	s->substream = substream;
substream         858 sound/pci/nm256/nm256.c snd_nm256_playback_open(struct snd_pcm_substream *substream)
substream         860 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         865 sound/pci/nm256/nm256.c 			       substream, &snd_nm256_playback);
substream         870 sound/pci/nm256/nm256.c snd_nm256_capture_open(struct snd_pcm_substream *substream)
substream         872 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         877 sound/pci/nm256/nm256.c 			       substream, &snd_nm256_capture);
substream         885 sound/pci/nm256/nm256.c snd_nm256_playback_close(struct snd_pcm_substream *substream)
substream         887 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream         895 sound/pci/nm256/nm256.c snd_nm256_capture_close(struct snd_pcm_substream *substream)
substream         897 sound/pci/nm256/nm256.c 	struct nm256 *chip = snd_pcm_substream_chip(substream);
substream        1423 sound/pci/nm256/nm256.c 		if (s->substream && s->suspended) {
substream        1425 sound/pci/nm256/nm256.c 			snd_nm256_set_format(chip, s, s->substream);
substream         115 sound/pci/oxygen/oxygen_pcm.c oxygen_substream_channel(struct snd_pcm_substream *substream)
substream         117 sound/pci/oxygen/oxygen_pcm.c 	return (unsigned int)(uintptr_t)substream->runtime->private_data;
substream         120 sound/pci/oxygen/oxygen_pcm.c static int oxygen_open(struct snd_pcm_substream *substream,
substream         123 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         124 sound/pci/oxygen/oxygen_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         171 sound/pci/oxygen/oxygen_pcm.c 	snd_pcm_set_sync(substream);
substream         172 sound/pci/oxygen/oxygen_pcm.c 	chip->streams[channel] = substream;
substream         189 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_a_open(struct snd_pcm_substream *substream)
substream         191 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_A);
substream         194 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_b_open(struct snd_pcm_substream *substream)
substream         196 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_B);
substream         199 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_c_open(struct snd_pcm_substream *substream)
substream         201 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_C);
substream         204 sound/pci/oxygen/oxygen_pcm.c static int oxygen_spdif_open(struct snd_pcm_substream *substream)
substream         206 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_SPDIF);
substream         209 sound/pci/oxygen/oxygen_pcm.c static int oxygen_multich_open(struct snd_pcm_substream *substream)
substream         211 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_MULTICH);
substream         214 sound/pci/oxygen/oxygen_pcm.c static int oxygen_ac97_open(struct snd_pcm_substream *substream)
substream         216 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_open(substream, PCM_AC97);
substream         219 sound/pci/oxygen/oxygen_pcm.c static int oxygen_close(struct snd_pcm_substream *substream)
substream         221 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         222 sound/pci/oxygen/oxygen_pcm.c 	unsigned int channel = oxygen_substream_channel(substream);
substream         302 sound/pci/oxygen/oxygen_pcm.c static int oxygen_hw_params(struct snd_pcm_substream *substream,
substream         305 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         306 sound/pci/oxygen/oxygen_pcm.c 	unsigned int channel = oxygen_substream_channel(substream);
substream         309 sound/pci/oxygen/oxygen_pcm.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         315 sound/pci/oxygen/oxygen_pcm.c 		       (u32)substream->runtime->dma_addr);
substream         350 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_a_hw_params(struct snd_pcm_substream *substream,
substream         353 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         356 sound/pci/oxygen/oxygen_pcm.c 	err = oxygen_hw_params(substream, hw_params);
substream         381 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_b_hw_params(struct snd_pcm_substream *substream,
substream         384 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         388 sound/pci/oxygen/oxygen_pcm.c 	err = oxygen_hw_params(substream, hw_params);
substream         419 sound/pci/oxygen/oxygen_pcm.c static int oxygen_rec_c_hw_params(struct snd_pcm_substream *substream,
substream         422 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         426 sound/pci/oxygen/oxygen_pcm.c 	err = oxygen_hw_params(substream, hw_params);
substream         456 sound/pci/oxygen/oxygen_pcm.c static int oxygen_spdif_hw_params(struct snd_pcm_substream *substream,
substream         459 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         462 sound/pci/oxygen/oxygen_pcm.c 	err = oxygen_hw_params(substream, hw_params);
substream         482 sound/pci/oxygen/oxygen_pcm.c static int oxygen_multich_hw_params(struct snd_pcm_substream *substream,
substream         485 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         488 sound/pci/oxygen/oxygen_pcm.c 	err = oxygen_hw_params(substream, hw_params);
substream         518 sound/pci/oxygen/oxygen_pcm.c static int oxygen_hw_free(struct snd_pcm_substream *substream)
substream         520 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         521 sound/pci/oxygen/oxygen_pcm.c 	unsigned int channel = oxygen_substream_channel(substream);
substream         532 sound/pci/oxygen/oxygen_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         535 sound/pci/oxygen/oxygen_pcm.c static int oxygen_spdif_hw_free(struct snd_pcm_substream *substream)
substream         537 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         543 sound/pci/oxygen/oxygen_pcm.c 	return oxygen_hw_free(substream);
substream         546 sound/pci/oxygen/oxygen_pcm.c static int oxygen_prepare(struct snd_pcm_substream *substream)
substream         548 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         549 sound/pci/oxygen/oxygen_pcm.c 	unsigned int channel = oxygen_substream_channel(substream);
substream         556 sound/pci/oxygen/oxygen_pcm.c 	if (substream->runtime->no_period_wakeup)
substream         565 sound/pci/oxygen/oxygen_pcm.c static int oxygen_trigger(struct snd_pcm_substream *substream, int cmd)
substream         567 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         586 sound/pci/oxygen/oxygen_pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         589 sound/pci/oxygen/oxygen_pcm.c 			snd_pcm_trigger_done(s, substream);
substream         610 sound/pci/oxygen/oxygen_pcm.c static snd_pcm_uframes_t oxygen_pointer(struct snd_pcm_substream *substream)
substream         612 sound/pci/oxygen/oxygen_pcm.c 	struct oxygen *chip = snd_pcm_substream_chip(substream);
substream         613 sound/pci/oxygen/oxygen_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         614 sound/pci/oxygen/oxygen_pcm.c 	unsigned int channel = oxygen_substream_channel(substream);
substream         714 sound/pci/oxygen/oxygen_pcm.c 			snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
substream         720 sound/pci/oxygen/oxygen_pcm.c 			snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
substream         508 sound/pci/pcxhr/pcxhr.c 	if (!stream->substream)
substream         517 sound/pci/pcxhr/pcxhr.c 	  stream->pipe->is_capture ? 1 : 1<<stream->substream->number;
substream         523 sound/pci/pcxhr/pcxhr.c 	chip = snd_pcm_substream_chip(stream->substream);
substream         550 sound/pci/pcxhr/pcxhr.c 	chip = snd_pcm_substream_chip(stream->substream);
substream         589 sound/pci/pcxhr/pcxhr.c 	stream_num = is_capture ? 0 : stream->substream->number;
substream         627 sound/pci/pcxhr/pcxhr.c 	struct snd_pcm_substream *subs = stream->substream;
substream         668 sound/pci/pcxhr/pcxhr.c 	pcxhr_t *chip = snd_pcm_substream_chip(stream->substream);
substream        1070 sound/pci/pcxhr/pcxhr.c 	stream->substream   = subs;
substream        1107 sound/pci/pcxhr/pcxhr.c 	stream->substream = NULL;
substream         126 sound/pci/pcxhr/pcxhr.h 	struct snd_pcm_substream *substream;
substream        1122 sound/pci/pcxhr/pcxhr_core.c 	stream_mask = stream->pipe->is_capture ? 1 : 1<<stream->substream->number;
substream        1140 sound/pci/pcxhr/pcxhr_core.c 		    stream->substream->number,
substream        1151 sound/pci/pcxhr/pcxhr_core.c 	if (stream->substream &&
substream        1156 sound/pci/pcxhr/pcxhr_core.c 		struct snd_pcm_runtime *runtime = stream->substream->runtime;
substream        1211 sound/pci/pcxhr/pcxhr_core.c 			snd_pcm_period_elapsed(stream->substream);
substream         412 sound/pci/riptide/riptide.c #define get_pcmhwdev(substream) (struct pcmhw *)(substream->runtime->private_data)
substream        1077 sound/pci/riptide/riptide.c 	struct snd_pcm_substream *substream[PLAYBACK_SUBSTREAMS + 1];
substream        1089 sound/pci/riptide/riptide.c 		substream[i] = chip->playback_substream[i];
substream        1090 sound/pci/riptide/riptide.c 	substream[i] = chip->capture_substream;
substream        1092 sound/pci/riptide/riptide.c 		if (substream[i] &&
substream        1093 sound/pci/riptide/riptide.c 		    (runtime = substream[i]->runtime) &&
substream        1133 sound/pci/riptide/riptide.c 					snd_pcm_period_elapsed(substream[i]);
substream        1343 sound/pci/riptide/riptide.c 					     *substream)
substream        1345 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1346 sound/pci/riptide/riptide.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1347 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1376 sound/pci/riptide/riptide.c static int snd_riptide_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1379 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1380 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1438 sound/pci/riptide/riptide.c static int snd_riptide_prepare(struct snd_pcm_substream *substream)
substream        1440 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1441 sound/pci/riptide/riptide.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1442 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1502 sound/pci/riptide/riptide.c 			addr = snd_pcm_sgbuf_get_addr(substream, ofs) + pt;
substream        1539 sound/pci/riptide/riptide.c snd_riptide_hw_params(struct snd_pcm_substream *substream,
substream        1542 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1543 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1561 sound/pci/riptide/riptide.c 	return snd_pcm_lib_malloc_pages(substream,
substream        1565 sound/pci/riptide/riptide.c static int snd_riptide_hw_free(struct snd_pcm_substream *substream)
substream        1567 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1568 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1584 sound/pci/riptide/riptide.c 	return snd_pcm_lib_free_pages(substream);
substream        1587 sound/pci/riptide/riptide.c static int snd_riptide_playback_open(struct snd_pcm_substream *substream)
substream        1589 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1590 sound/pci/riptide/riptide.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1592 sound/pci/riptide/riptide.c 	int sub_num = substream->number;
substream        1594 sound/pci/riptide/riptide.c 	chip->playback_substream[sub_num] = substream;
substream        1611 sound/pci/riptide/riptide.c static int snd_riptide_capture_open(struct snd_pcm_substream *substream)
substream        1613 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1614 sound/pci/riptide/riptide.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1617 sound/pci/riptide/riptide.c 	chip->capture_substream = substream;
substream        1634 sound/pci/riptide/riptide.c static int snd_riptide_playback_close(struct snd_pcm_substream *substream)
substream        1636 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1637 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1638 sound/pci/riptide/riptide.c 	int sub_num = substream->number;
substream        1640 sound/pci/riptide/riptide.c 	substream->runtime->private_data = NULL;
substream        1646 sound/pci/riptide/riptide.c static int snd_riptide_capture_close(struct snd_pcm_substream *substream)
substream        1648 sound/pci/riptide/riptide.c 	struct snd_riptide *chip = snd_pcm_substream_chip(substream);
substream        1649 sound/pci/riptide/riptide.c 	struct pcmhw *data = get_pcmhwdev(substream);
substream        1651 sound/pci/riptide/riptide.c 	substream->runtime->private_data = NULL;
substream         226 sound/pci/rme32.c static int snd_rme32_playback_prepare(struct snd_pcm_substream *substream);
substream         228 sound/pci/rme32.c static int snd_rme32_capture_prepare(struct snd_pcm_substream *substream);
substream         230 sound/pci/rme32.c static int snd_rme32_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
substream         243 sound/pci/rme32.c static int snd_rme32_playback_silence(struct snd_pcm_substream *substream,
substream         247 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         254 sound/pci/rme32.c static int snd_rme32_playback_copy(struct snd_pcm_substream *substream,
substream         258 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         266 sound/pci/rme32.c static int snd_rme32_playback_copy_kernel(struct snd_pcm_substream *substream,
substream         270 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         277 sound/pci/rme32.c static int snd_rme32_capture_copy(struct snd_pcm_substream *substream,
substream         281 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         290 sound/pci/rme32.c static int snd_rme32_capture_copy_kernel(struct snd_pcm_substream *substream,
substream         294 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         658 sound/pci/rme32.c snd_rme32_playback_hw_params(struct snd_pcm_substream *substream,
substream         662 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         663 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         666 sound/pci/rme32.c 		err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         713 sound/pci/rme32.c snd_rme32_capture_hw_params(struct snd_pcm_substream *substream,
substream         717 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         718 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         721 sound/pci/rme32.c 		err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         774 sound/pci/rme32.c static int snd_rme32_pcm_hw_free(struct snd_pcm_substream *substream)
substream         776 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         779 sound/pci/rme32.c 	return snd_pcm_lib_free_pages(substream);
substream         849 sound/pci/rme32.c static int snd_rme32_playback_spdif_open(struct snd_pcm_substream *substream)
substream         852 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         853 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         855 sound/pci/rme32.c 	snd_pcm_set_sync(substream);
substream         864 sound/pci/rme32.c 	rme32->playback_substream = substream;
substream         892 sound/pci/rme32.c static int snd_rme32_capture_spdif_open(struct snd_pcm_substream *substream)
substream         895 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         896 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         898 sound/pci/rme32.c 	snd_pcm_set_sync(substream);
substream         905 sound/pci/rme32.c 	rme32->capture_substream = substream;
substream         931 sound/pci/rme32.c snd_rme32_playback_adat_open(struct snd_pcm_substream *substream)
substream         934 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         935 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         937 sound/pci/rme32.c 	snd_pcm_set_sync(substream);
substream         946 sound/pci/rme32.c 	rme32->playback_substream = substream;
substream         966 sound/pci/rme32.c snd_rme32_capture_adat_open(struct snd_pcm_substream *substream)
substream         969 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream         970 sound/pci/rme32.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         985 sound/pci/rme32.c 	snd_pcm_set_sync(substream);
substream         992 sound/pci/rme32.c 	rme32->capture_substream = substream;
substream         999 sound/pci/rme32.c static int snd_rme32_playback_close(struct snd_pcm_substream *substream)
substream        1001 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1018 sound/pci/rme32.c static int snd_rme32_capture_close(struct snd_pcm_substream *substream)
substream        1020 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1029 sound/pci/rme32.c static int snd_rme32_playback_prepare(struct snd_pcm_substream *substream)
substream        1031 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1037 sound/pci/rme32.c 		rme32->playback_pcm.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream        1048 sound/pci/rme32.c static int snd_rme32_capture_prepare(struct snd_pcm_substream *substream)
substream        1050 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1057 sound/pci/rme32.c 		rme32->capture_pcm.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
substream        1066 sound/pci/rme32.c snd_rme32_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1068 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1072 sound/pci/rme32.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1094 sound/pci/rme32.c 		snd_pcm_trigger_done(s, substream);
substream        1121 sound/pci/rme32.c snd_rme32_playback_pointer(struct snd_pcm_substream *substream)
substream        1123 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1128 sound/pci/rme32.c snd_rme32_capture_pointer(struct snd_pcm_substream *substream)
substream        1130 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1136 sound/pci/rme32.c static void snd_rme32_pb_trans_copy(struct snd_pcm_substream *substream,
substream        1139 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1141 sound/pci/rme32.c 		    substream->runtime->dma_area + rec->sw_data, bytes);
substream        1144 sound/pci/rme32.c static int snd_rme32_playback_fd_ack(struct snd_pcm_substream *substream)
substream        1146 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1156 sound/pci/rme32.c 	return snd_pcm_indirect_playback_transfer(substream, rec,
substream        1160 sound/pci/rme32.c static void snd_rme32_cp_trans_copy(struct snd_pcm_substream *substream,
substream        1163 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1164 sound/pci/rme32.c 	memcpy_fromio(substream->runtime->dma_area + rec->sw_data,
substream        1169 sound/pci/rme32.c static int snd_rme32_capture_fd_ack(struct snd_pcm_substream *substream)
substream        1171 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1172 sound/pci/rme32.c 	return snd_pcm_indirect_capture_transfer(substream, &rme32->capture_pcm,
substream        1177 sound/pci/rme32.c snd_rme32_playback_fd_pointer(struct snd_pcm_substream *substream)
substream        1179 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1180 sound/pci/rme32.c 	return snd_pcm_indirect_playback_pointer(substream, &rme32->playback_pcm,
substream        1185 sound/pci/rme32.c snd_rme32_capture_fd_pointer(struct snd_pcm_substream *substream)
substream        1187 sound/pci/rme32.c 	struct rme32 *rme32 = snd_pcm_substream_chip(substream);
substream        1188 sound/pci/rme32.c 	return snd_pcm_indirect_capture_pointer(substream, &rme32->capture_pcm,
substream         272 sound/pci/rme96.c snd_rme96_playback_prepare(struct snd_pcm_substream *substream);
substream         275 sound/pci/rme96.c snd_rme96_capture_prepare(struct snd_pcm_substream *substream);
substream         278 sound/pci/rme96.c snd_rme96_playback_trigger(struct snd_pcm_substream *substream, 
substream         282 sound/pci/rme96.c snd_rme96_capture_trigger(struct snd_pcm_substream *substream, 
substream         286 sound/pci/rme96.c snd_rme96_playback_pointer(struct snd_pcm_substream *substream);
substream         289 sound/pci/rme96.c snd_rme96_capture_pointer(struct snd_pcm_substream *substream);
substream         315 sound/pci/rme96.c snd_rme96_playback_silence(struct snd_pcm_substream *substream,
substream         318 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         326 sound/pci/rme96.c snd_rme96_playback_copy(struct snd_pcm_substream *substream,
substream         330 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         337 sound/pci/rme96.c snd_rme96_playback_copy_kernel(struct snd_pcm_substream *substream,
substream         341 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         348 sound/pci/rme96.c snd_rme96_capture_copy(struct snd_pcm_substream *substream,
substream         352 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         360 sound/pci/rme96.c snd_rme96_capture_copy_kernel(struct snd_pcm_substream *substream,
substream         364 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         978 sound/pci/rme96.c snd_rme96_playback_hw_params(struct snd_pcm_substream *substream,
substream         981 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream         982 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1041 sound/pci/rme96.c snd_rme96_capture_hw_params(struct snd_pcm_substream *substream,
substream        1044 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1045 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1180 sound/pci/rme96.c snd_rme96_playback_spdif_open(struct snd_pcm_substream *substream)
substream        1183 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1184 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1186 sound/pci/rme96.c 	snd_pcm_set_sync(substream);
substream        1194 sound/pci/rme96.c 	rme96->playback_substream = substream;
substream        1217 sound/pci/rme96.c snd_rme96_capture_spdif_open(struct snd_pcm_substream *substream)
substream        1220 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1221 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1223 sound/pci/rme96.c 	snd_pcm_set_sync(substream);
substream        1241 sound/pci/rme96.c 	rme96->capture_substream = substream;
substream        1249 sound/pci/rme96.c snd_rme96_playback_adat_open(struct snd_pcm_substream *substream)
substream        1252 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1253 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;        
substream        1255 sound/pci/rme96.c 	snd_pcm_set_sync(substream);
substream        1263 sound/pci/rme96.c 	rme96->playback_substream = substream;
substream        1281 sound/pci/rme96.c snd_rme96_capture_adat_open(struct snd_pcm_substream *substream)
substream        1284 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1285 sound/pci/rme96.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1287 sound/pci/rme96.c 	snd_pcm_set_sync(substream);
substream        1308 sound/pci/rme96.c 	rme96->capture_substream = substream;
substream        1316 sound/pci/rme96.c snd_rme96_playback_close(struct snd_pcm_substream *substream)
substream        1318 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1338 sound/pci/rme96.c snd_rme96_capture_close(struct snd_pcm_substream *substream)
substream        1340 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1353 sound/pci/rme96.c snd_rme96_playback_prepare(struct snd_pcm_substream *substream)
substream        1355 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1367 sound/pci/rme96.c snd_rme96_capture_prepare(struct snd_pcm_substream *substream)
substream        1369 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1381 sound/pci/rme96.c snd_rme96_playback_trigger(struct snd_pcm_substream *substream, 
substream        1384 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1388 sound/pci/rme96.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1390 sound/pci/rme96.c 			snd_pcm_trigger_done(s, substream);
substream        1400 sound/pci/rme96.c 			if (substream != rme96->playback_substream)
substream        1410 sound/pci/rme96.c 			if (substream != rme96->playback_substream)
substream        1438 sound/pci/rme96.c snd_rme96_capture_trigger(struct snd_pcm_substream *substream, 
substream        1441 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1445 sound/pci/rme96.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1447 sound/pci/rme96.c 			snd_pcm_trigger_done(s, substream);
substream        1457 sound/pci/rme96.c 			if (substream != rme96->capture_substream)
substream        1467 sound/pci/rme96.c 			if (substream != rme96->capture_substream)
substream        1495 sound/pci/rme96.c snd_rme96_playback_pointer(struct snd_pcm_substream *substream)
substream        1497 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1502 sound/pci/rme96.c snd_rme96_capture_pointer(struct snd_pcm_substream *substream)
substream        1504 sound/pci/rme96.c 	struct rme96 *rme96 = snd_pcm_substream_chip(substream);
substream        1375 sound/pci/rme9652/hdsp.c static void snd_hdsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1382 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        1420 sound/pci/rme9652/hdsp.c static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1425 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        1443 sound/pci/rme9652/hdsp.c static int snd_hdsp_midi_input_open(struct snd_rawmidi_substream *substream)
substream        1447 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        1450 sound/pci/rme9652/hdsp.c 	hmidi->input = substream;
substream        1456 sound/pci/rme9652/hdsp.c static int snd_hdsp_midi_output_open(struct snd_rawmidi_substream *substream)
substream        1460 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        1462 sound/pci/rme9652/hdsp.c 	hmidi->output = substream;
substream        1468 sound/pci/rme9652/hdsp.c static int snd_hdsp_midi_input_close(struct snd_rawmidi_substream *substream)
substream        1472 sound/pci/rme9652/hdsp.c 	snd_hdsp_midi_input_trigger (substream, 0);
substream        1474 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        1482 sound/pci/rme9652/hdsp.c static int snd_hdsp_midi_output_close(struct snd_rawmidi_substream *substream)
substream        1486 sound/pci/rme9652/hdsp.c 	snd_hdsp_midi_output_trigger (substream, 0);
substream        1488 sound/pci/rme9652/hdsp.c 	hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
substream        3838 sound/pci/rme9652/hdsp.c 			snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream        3841 sound/pci/rme9652/hdsp.c 			snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
substream        3871 sound/pci/rme9652/hdsp.c static snd_pcm_uframes_t snd_hdsp_hw_pointer(struct snd_pcm_substream *substream)
substream        3873 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3896 sound/pci/rme9652/hdsp.c static int snd_hdsp_playback_copy(struct snd_pcm_substream *substream,
substream        3900 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3906 sound/pci/rme9652/hdsp.c 	channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
substream        3914 sound/pci/rme9652/hdsp.c static int snd_hdsp_playback_copy_kernel(struct snd_pcm_substream *substream,
substream        3918 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3921 sound/pci/rme9652/hdsp.c 	channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel);
substream        3928 sound/pci/rme9652/hdsp.c static int snd_hdsp_capture_copy(struct snd_pcm_substream *substream,
substream        3932 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3938 sound/pci/rme9652/hdsp.c 	channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
substream        3946 sound/pci/rme9652/hdsp.c static int snd_hdsp_capture_copy_kernel(struct snd_pcm_substream *substream,
substream        3950 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3953 sound/pci/rme9652/hdsp.c 	channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel);
substream        3960 sound/pci/rme9652/hdsp.c static int snd_hdsp_hw_silence(struct snd_pcm_substream *substream,
substream        3964 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3967 sound/pci/rme9652/hdsp.c 	channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
substream        3974 sound/pci/rme9652/hdsp.c static int snd_hdsp_reset(struct snd_pcm_substream *substream)
substream        3976 sound/pci/rme9652/hdsp.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        3977 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        3979 sound/pci/rme9652/hdsp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        3990 sound/pci/rme9652/hdsp.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        4000 sound/pci/rme9652/hdsp.c static int snd_hdsp_hw_params(struct snd_pcm_substream *substream,
substream        4003 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4016 sound/pci/rme9652/hdsp.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        4075 sound/pci/rme9652/hdsp.c static int snd_hdsp_channel_info(struct snd_pcm_substream *substream,
substream        4078 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4094 sound/pci/rme9652/hdsp.c static int snd_hdsp_ioctl(struct snd_pcm_substream *substream,
substream        4099 sound/pci/rme9652/hdsp.c 		return snd_hdsp_reset(substream);
substream        4101 sound/pci/rme9652/hdsp.c 		return snd_hdsp_channel_info(substream, arg);
substream        4106 sound/pci/rme9652/hdsp.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream        4109 sound/pci/rme9652/hdsp.c static int snd_hdsp_trigger(struct snd_pcm_substream *substream, int cmd)
substream        4111 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4125 sound/pci/rme9652/hdsp.c 		running |= 1 << substream->stream;
substream        4128 sound/pci/rme9652/hdsp.c 		running &= ~(1 << substream->stream);
substream        4135 sound/pci/rme9652/hdsp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        4142 sound/pci/rme9652/hdsp.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        4144 sound/pci/rme9652/hdsp.c 				snd_pcm_trigger_done(s, substream);
substream        4154 sound/pci/rme9652/hdsp.c 			    substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        4158 sound/pci/rme9652/hdsp.c 			    substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        4162 sound/pci/rme9652/hdsp.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        4166 sound/pci/rme9652/hdsp.c 	snd_pcm_trigger_done(substream, substream);
substream        4177 sound/pci/rme9652/hdsp.c static int snd_hdsp_prepare(struct snd_pcm_substream *substream)
substream        4179 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4431 sound/pci/rme9652/hdsp.c static int snd_hdsp_playback_open(struct snd_pcm_substream *substream)
substream        4433 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4434 sound/pci/rme9652/hdsp.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        4444 sound/pci/rme9652/hdsp.c 	snd_pcm_set_sync(substream);
substream        4451 sound/pci/rme9652/hdsp.c 	hdsp->playback_substream = substream;
substream        4488 sound/pci/rme9652/hdsp.c static int snd_hdsp_playback_release(struct snd_pcm_substream *substream)
substream        4490 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4508 sound/pci/rme9652/hdsp.c static int snd_hdsp_capture_open(struct snd_pcm_substream *substream)
substream        4510 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        4511 sound/pci/rme9652/hdsp.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        4521 sound/pci/rme9652/hdsp.c 	snd_pcm_set_sync(substream);
substream        4528 sound/pci/rme9652/hdsp.c 	hdsp->capture_substream = substream;
substream        4553 sound/pci/rme9652/hdsp.c static int snd_hdsp_capture_release(struct snd_pcm_substream *substream)
substream        4555 sound/pci/rme9652/hdsp.c 	struct hdsp *hdsp = snd_pcm_substream_chip(substream);
substream        1098 sound/pci/rme9652/hdspm.c 				       struct snd_pcm_substream *substream,
substream        1916 sound/pci/rme9652/hdspm.c snd_hdspm_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1922 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        1960 sound/pci/rme9652/hdspm.c snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream        1965 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        1983 sound/pci/rme9652/hdspm.c static int snd_hdspm_midi_input_open(struct snd_rawmidi_substream *substream)
substream        1987 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        1990 sound/pci/rme9652/hdspm.c 	hmidi->input = substream;
substream        1996 sound/pci/rme9652/hdspm.c static int snd_hdspm_midi_output_open(struct snd_rawmidi_substream *substream)
substream        2000 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        2002 sound/pci/rme9652/hdspm.c 	hmidi->output = substream;
substream        2008 sound/pci/rme9652/hdspm.c static int snd_hdspm_midi_input_close(struct snd_rawmidi_substream *substream)
substream        2012 sound/pci/rme9652/hdspm.c 	snd_hdspm_midi_input_trigger (substream, 0);
substream        2014 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        2022 sound/pci/rme9652/hdspm.c static int snd_hdspm_midi_output_close(struct snd_rawmidi_substream *substream)
substream        2026 sound/pci/rme9652/hdspm.c 	snd_hdspm_midi_output_trigger (substream, 0);
substream        2028 sound/pci/rme9652/hdspm.c 	hmidi = substream->rmidi->private_data;
substream        5460 sound/pci/rme9652/hdspm.c 					      *substream)
substream        5462 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5467 sound/pci/rme9652/hdspm.c static int snd_hdspm_reset(struct snd_pcm_substream *substream)
substream        5469 sound/pci/rme9652/hdspm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        5470 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5473 sound/pci/rme9652/hdspm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        5485 sound/pci/rme9652/hdspm.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        5496 sound/pci/rme9652/hdspm.c static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
substream        5499 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5507 sound/pci/rme9652/hdspm.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        5571 sound/pci/rme9652/hdspm.c 		snd_pcm_lib_malloc_pages(substream, HDSPM_DMA_AREA_BYTES);
substream        5578 sound/pci/rme9652/hdspm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        5585 sound/pci/rme9652/hdspm.c 			hdspm_set_channel_dma_addr(hdspm, substream,
substream        5592 sound/pci/rme9652/hdspm.c 			(unsigned char *) substream->runtime->dma_area;
substream        5602 sound/pci/rme9652/hdspm.c 			hdspm_set_channel_dma_addr(hdspm, substream,
substream        5609 sound/pci/rme9652/hdspm.c 			(unsigned char *) substream->runtime->dma_area;
substream        5661 sound/pci/rme9652/hdspm.c static int snd_hdspm_hw_free(struct snd_pcm_substream *substream)
substream        5664 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5666 sound/pci/rme9652/hdspm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        5680 sound/pci/rme9652/hdspm.c 	snd_pcm_lib_free_pages(substream);
substream        5686 sound/pci/rme9652/hdspm.c static int snd_hdspm_channel_info(struct snd_pcm_substream *substream,
substream        5689 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5692 sound/pci/rme9652/hdspm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        5736 sound/pci/rme9652/hdspm.c static int snd_hdspm_ioctl(struct snd_pcm_substream *substream,
substream        5741 sound/pci/rme9652/hdspm.c 		return snd_hdspm_reset(substream);
substream        5746 sound/pci/rme9652/hdspm.c 			return snd_hdspm_channel_info(substream, info);
substream        5752 sound/pci/rme9652/hdspm.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream        5755 sound/pci/rme9652/hdspm.c static int snd_hdspm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        5757 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        5765 sound/pci/rme9652/hdspm.c 		running |= 1 << substream->stream;
substream        5768 sound/pci/rme9652/hdspm.c 		running &= ~(1 << substream->stream);
substream        5775 sound/pci/rme9652/hdspm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        5782 sound/pci/rme9652/hdspm.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        5784 sound/pci/rme9652/hdspm.c 				snd_pcm_trigger_done(s, substream);
substream        5794 sound/pci/rme9652/hdspm.c 					&& substream->stream ==
substream        5799 sound/pci/rme9652/hdspm.c 				substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        5803 sound/pci/rme9652/hdspm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        5807 sound/pci/rme9652/hdspm.c 	snd_pcm_trigger_done(substream, substream);
substream        5818 sound/pci/rme9652/hdspm.c static int snd_hdspm_prepare(struct snd_pcm_substream *substream)
substream        6052 sound/pci/rme9652/hdspm.c static int snd_hdspm_open(struct snd_pcm_substream *substream)
substream        6054 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        6055 sound/pci/rme9652/hdspm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        6056 sound/pci/rme9652/hdspm.c 	bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream        6059 sound/pci/rme9652/hdspm.c 	snd_pcm_set_sync(substream);
substream        6068 sound/pci/rme9652/hdspm.c 		hdspm->playback_substream = substream;
substream        6074 sound/pci/rme9652/hdspm.c 		hdspm->capture_substream = substream;
substream        6128 sound/pci/rme9652/hdspm.c static int snd_hdspm_release(struct snd_pcm_substream *substream)
substream        6130 sound/pci/rme9652/hdspm.c 	struct hdspm *hdspm = snd_pcm_substream_chip(substream);
substream        6131 sound/pci/rme9652/hdspm.c 	bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream        6419 sound/pci/rme9652/hdspm.c 				       struct snd_pcm_substream *substream,
substream        6426 sound/pci/rme9652/hdspm.c 			    snd_pcm_sgbuf_get_addr(substream, 4096 * i));
substream        1833 sound/pci/rme9652/rme9652.c 		snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream        1837 sound/pci/rme9652/rme9652.c 		snd_pcm_period_elapsed(rme9652->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
substream        1842 sound/pci/rme9652/rme9652.c static snd_pcm_uframes_t snd_rme9652_hw_pointer(struct snd_pcm_substream *substream)
substream        1844 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1871 sound/pci/rme9652/rme9652.c static int snd_rme9652_playback_copy(struct snd_pcm_substream *substream,
substream        1875 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1882 sound/pci/rme9652/rme9652.c 						       substream->pstr->stream,
substream        1891 sound/pci/rme9652/rme9652.c static int snd_rme9652_playback_copy_kernel(struct snd_pcm_substream *substream,
substream        1895 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1899 sound/pci/rme9652/rme9652.c 						      substream->pstr->stream,
substream        1907 sound/pci/rme9652/rme9652.c static int snd_rme9652_capture_copy(struct snd_pcm_substream *substream,
substream        1911 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1918 sound/pci/rme9652/rme9652.c 						       substream->pstr->stream,
substream        1927 sound/pci/rme9652/rme9652.c static int snd_rme9652_capture_copy_kernel(struct snd_pcm_substream *substream,
substream        1931 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1935 sound/pci/rme9652/rme9652.c 						      substream->pstr->stream,
substream        1943 sound/pci/rme9652/rme9652.c static int snd_rme9652_hw_silence(struct snd_pcm_substream *substream,
substream        1947 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1951 sound/pci/rme9652/rme9652.c 						       substream->pstr->stream,
substream        1959 sound/pci/rme9652/rme9652.c static int snd_rme9652_reset(struct snd_pcm_substream *substream)
substream        1961 sound/pci/rme9652/rme9652.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1962 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1964 sound/pci/rme9652/rme9652.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1975 sound/pci/rme9652/rme9652.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        1985 sound/pci/rme9652/rme9652.c static int snd_rme9652_hw_params(struct snd_pcm_substream *substream,
substream        1988 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        1995 sound/pci/rme9652/rme9652.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        2050 sound/pci/rme9652/rme9652.c static int snd_rme9652_channel_info(struct snd_pcm_substream *substream,
substream        2053 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2070 sound/pci/rme9652/rme9652.c static int snd_rme9652_ioctl(struct snd_pcm_substream *substream,
substream        2076 sound/pci/rme9652/rme9652.c 		return snd_rme9652_reset(substream);
substream        2081 sound/pci/rme9652/rme9652.c 		return snd_rme9652_channel_info(substream, info);
substream        2087 sound/pci/rme9652/rme9652.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream        2095 sound/pci/rme9652/rme9652.c static int snd_rme9652_trigger(struct snd_pcm_substream *substream,
substream        2098 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2105 sound/pci/rme9652/rme9652.c 		running |= 1 << substream->stream;
substream        2108 sound/pci/rme9652/rme9652.c 		running &= ~(1 << substream->stream);
substream        2115 sound/pci/rme9652/rme9652.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2122 sound/pci/rme9652/rme9652.c 		snd_pcm_group_for_each_entry(s, substream) {
substream        2124 sound/pci/rme9652/rme9652.c 				snd_pcm_trigger_done(s, substream);
substream        2134 sound/pci/rme9652/rme9652.c 			    substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        2138 sound/pci/rme9652/rme9652.c 			    substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2142 sound/pci/rme9652/rme9652.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) 
substream        2146 sound/pci/rme9652/rme9652.c 	snd_pcm_trigger_done(substream, substream);
substream        2157 sound/pci/rme9652/rme9652.c static int snd_rme9652_prepare(struct snd_pcm_substream *substream)
substream        2159 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2281 sound/pci/rme9652/rme9652.c static int snd_rme9652_playback_open(struct snd_pcm_substream *substream)
substream        2283 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2284 sound/pci/rme9652/rme9652.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2288 sound/pci/rme9652/rme9652.c 	snd_pcm_set_sync(substream);
substream        2300 sound/pci/rme9652/rme9652.c 	rme9652->playback_substream = substream;
substream        2323 sound/pci/rme9652/rme9652.c static int snd_rme9652_playback_release(struct snd_pcm_substream *substream)
substream        2325 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2341 sound/pci/rme9652/rme9652.c static int snd_rme9652_capture_open(struct snd_pcm_substream *substream)
substream        2343 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream        2344 sound/pci/rme9652/rme9652.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2348 sound/pci/rme9652/rme9652.c 	snd_pcm_set_sync(substream);
substream        2360 sound/pci/rme9652/rme9652.c 	rme9652->capture_substream = substream;
substream        2378 sound/pci/rme9652/rme9652.c static int snd_rme9652_capture_release(struct snd_pcm_substream *substream)
substream        2380 sound/pci/rme9652/rme9652.c 	struct snd_rme9652 *rme9652 = snd_pcm_substream_chip(substream);
substream          82 sound/pci/sis7019.c 	struct snd_pcm_substream *substream;
substream         281 sound/pci/sis7019.c 	snd_pcm_period_elapsed(voice->substream);
substream         333 sound/pci/sis7019.c 				snd_pcm_period_elapsed(voice->substream);
substream         435 sound/pci/sis7019.c static int sis_alloc_timing_voice(struct snd_pcm_substream *substream,
substream         438 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         439 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         462 sound/pci/sis7019.c 		voice->timing->substream = substream;
substream         471 sound/pci/sis7019.c static int sis_playback_open(struct snd_pcm_substream *substream)
substream         473 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         474 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         481 sound/pci/sis7019.c 	voice->substream = substream;
substream         488 sound/pci/sis7019.c 	snd_pcm_set_sync(substream);
substream         492 sound/pci/sis7019.c static int sis_substream_close(struct snd_pcm_substream *substream)
substream         494 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         495 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         502 sound/pci/sis7019.c static int sis_playback_hw_params(struct snd_pcm_substream *substream,
substream         505 sound/pci/sis7019.c 	return snd_pcm_lib_malloc_pages(substream,
substream         509 sound/pci/sis7019.c static int sis_hw_free(struct snd_pcm_substream *substream)
substream         511 sound/pci/sis7019.c 	return snd_pcm_lib_free_pages(substream);
substream         514 sound/pci/sis7019.c static int sis_pcm_playback_prepare(struct snd_pcm_substream *substream)
substream         516 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         580 sound/pci/sis7019.c static int sis_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         582 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         610 sound/pci/sis7019.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         628 sound/pci/sis7019.c 		snd_pcm_trigger_done(s, substream);
substream         649 sound/pci/sis7019.c static snd_pcm_uframes_t sis_pcm_pointer(struct snd_pcm_substream *substream)
substream         651 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         660 sound/pci/sis7019.c static int sis_capture_open(struct snd_pcm_substream *substream)
substream         662 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         663 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         680 sound/pci/sis7019.c 	voice->substream = substream;
substream         689 sound/pci/sis7019.c 	snd_pcm_set_sync(substream);
substream         693 sound/pci/sis7019.c static int sis_capture_hw_params(struct snd_pcm_substream *substream,
substream         696 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         704 sound/pci/sis7019.c 	rc = snd_pcm_lib_malloc_pages(substream,
substream         709 sound/pci/sis7019.c 	rc = sis_alloc_timing_voice(substream, hw_params);
substream         716 sound/pci/sis7019.c 					struct snd_pcm_substream *substream)
substream         718 sound/pci/sis7019.c 	struct sis7019 *sis = snd_pcm_substream_chip(substream);
substream         719 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         818 sound/pci/sis7019.c static int sis_pcm_capture_prepare(struct snd_pcm_substream *substream)
substream         820 sound/pci/sis7019.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         846 sound/pci/sis7019.c 		sis_prepare_timing_voice(voice, substream);
substream         670 sound/pci/sonicvibes.c static int snd_sonicvibes_playback_trigger(struct snd_pcm_substream *substream,
substream         673 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         677 sound/pci/sonicvibes.c static int snd_sonicvibes_capture_trigger(struct snd_pcm_substream *substream,
substream         680 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         684 sound/pci/sonicvibes.c static int snd_sonicvibes_hw_params(struct snd_pcm_substream *substream,
substream         687 sound/pci/sonicvibes.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         690 sound/pci/sonicvibes.c static int snd_sonicvibes_hw_free(struct snd_pcm_substream *substream)
substream         692 sound/pci/sonicvibes.c 	return snd_pcm_lib_free_pages(substream);
substream         695 sound/pci/sonicvibes.c static int snd_sonicvibes_playback_prepare(struct snd_pcm_substream *substream)
substream         697 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         698 sound/pci/sonicvibes.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         700 sound/pci/sonicvibes.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         701 sound/pci/sonicvibes.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         719 sound/pci/sonicvibes.c static int snd_sonicvibes_capture_prepare(struct snd_pcm_substream *substream)
substream         721 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         722 sound/pci/sonicvibes.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         724 sound/pci/sonicvibes.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         725 sound/pci/sonicvibes.c 	unsigned int count = snd_pcm_lib_period_bytes(substream);
substream         744 sound/pci/sonicvibes.c static snd_pcm_uframes_t snd_sonicvibes_playback_pointer(struct snd_pcm_substream *substream)
substream         746 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         752 sound/pci/sonicvibes.c 	return bytes_to_frames(substream->runtime, ptr);
substream         755 sound/pci/sonicvibes.c static snd_pcm_uframes_t snd_sonicvibes_capture_pointer(struct snd_pcm_substream *substream)
substream         757 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         762 sound/pci/sonicvibes.c 	return bytes_to_frames(substream->runtime, ptr);
substream         803 sound/pci/sonicvibes.c static int snd_sonicvibes_playback_open(struct snd_pcm_substream *substream)
substream         805 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         806 sound/pci/sonicvibes.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         809 sound/pci/sonicvibes.c 	sonic->playback_substream = substream;
substream         815 sound/pci/sonicvibes.c static int snd_sonicvibes_capture_open(struct snd_pcm_substream *substream)
substream         817 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         818 sound/pci/sonicvibes.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         821 sound/pci/sonicvibes.c 	sonic->capture_substream = substream;
substream         828 sound/pci/sonicvibes.c static int snd_sonicvibes_playback_close(struct snd_pcm_substream *substream)
substream         830 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         837 sound/pci/sonicvibes.c static int snd_sonicvibes_capture_close(struct snd_pcm_substream *substream)
substream         839 sound/pci/sonicvibes.c 	struct sonicvibes *sonic = snd_pcm_substream_chip(substream);
substream         298 sound/pci/trident/trident.h 	struct snd_pcm_substream *substream;
substream         422 sound/pci/trident/trident.h 						struct snd_pcm_substream *substream);
substream          36 sound/pci/trident/trident_main.c 				       struct snd_pcm_substream *substream);
substream          39 sound/pci/trident/trident_main.c 				      struct snd_pcm_substream *substream);
substream         748 sound/pci/trident/trident_main.c static unsigned int snd_trident_control_mode(struct snd_pcm_substream *substream)
substream         751 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         783 sound/pci/trident/trident_main.c static int snd_trident_ioctl(struct snd_pcm_substream *substream,
substream         790 sound/pci/trident/trident_main.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream         805 sound/pci/trident/trident_main.c static int snd_trident_allocate_pcm_mem(struct snd_pcm_substream *substream,
substream         808 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream         809 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         813 sound/pci/trident/trident_main.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         819 sound/pci/trident/trident_main.c 			voice->memblk = snd_trident_alloc_pages(trident, substream);
substream         839 sound/pci/trident/trident_main.c static int snd_trident_allocate_evoice(struct snd_pcm_substream *substream,
substream         842 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream         843 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         855 sound/pci/trident/trident_main.c 			evoice->substream = substream;
substream         879 sound/pci/trident/trident_main.c static int snd_trident_hw_params(struct snd_pcm_substream *substream,
substream         884 sound/pci/trident/trident_main.c 	err = snd_trident_allocate_pcm_mem(substream, hw_params);
substream         886 sound/pci/trident/trident_main.c 		err = snd_trident_allocate_evoice(substream, hw_params);
substream         901 sound/pci/trident/trident_main.c static int snd_trident_hw_free(struct snd_pcm_substream *substream)
substream         903 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream         904 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         914 sound/pci/trident/trident_main.c 	snd_pcm_lib_free_pages(substream);
substream         933 sound/pci/trident/trident_main.c static int snd_trident_playback_prepare(struct snd_pcm_substream *substream)
substream         935 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream         936 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         939 sound/pci/trident/trident_main.c 	struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number];
substream         955 sound/pci/trident/trident_main.c 	voice->CTRL = snd_trident_control_mode(substream);
substream        1019 sound/pci/trident/trident_main.c static int snd_trident_capture_hw_params(struct snd_pcm_substream *substream,
substream        1022 sound/pci/trident/trident_main.c 	return snd_trident_allocate_pcm_mem(substream, hw_params);
substream        1036 sound/pci/trident/trident_main.c static int snd_trident_capture_prepare(struct snd_pcm_substream *substream)
substream        1038 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1039 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1058 sound/pci/trident/trident_main.c 	ESO_bytes = snd_pcm_lib_buffer_bytes(substream) - 1;
substream        1098 sound/pci/trident/trident_main.c 	voice->CTRL = snd_trident_control_mode(substream);
substream        1128 sound/pci/trident/trident_main.c static int snd_trident_si7018_capture_hw_params(struct snd_pcm_substream *substream,
substream        1133 sound/pci/trident/trident_main.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream        1136 sound/pci/trident/trident_main.c 	return snd_trident_allocate_evoice(substream, hw_params);
substream        1150 sound/pci/trident/trident_main.c static int snd_trident_si7018_capture_hw_free(struct snd_pcm_substream *substream)
substream        1152 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1153 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1157 sound/pci/trident/trident_main.c 	snd_pcm_lib_free_pages(substream);
substream        1176 sound/pci/trident/trident_main.c static int snd_trident_si7018_capture_prepare(struct snd_pcm_substream *substream)
substream        1178 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1179 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1192 sound/pci/trident/trident_main.c 	voice->CTRL = snd_trident_control_mode(substream);
substream        1247 sound/pci/trident/trident_main.c static int snd_trident_foldback_prepare(struct snd_pcm_substream *substream)
substream        1249 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1250 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1270 sound/pci/trident/trident_main.c 	voice->CTRL = snd_trident_control_mode(substream);
substream        1325 sound/pci/trident/trident_main.c static int snd_trident_spdif_hw_params(struct snd_pcm_substream *substream,
substream        1328 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1332 sound/pci/trident/trident_main.c 	err = snd_trident_allocate_pcm_mem(substream, hw_params);
substream        1337 sound/pci/trident/trident_main.c 		err = snd_trident_allocate_evoice(substream, hw_params);
substream        1390 sound/pci/trident/trident_main.c static int snd_trident_spdif_prepare(struct snd_pcm_substream *substream)
substream        1392 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1393 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1396 sound/pci/trident/trident_main.c 	struct snd_trident_pcm_mixer *mix = &trident->pcm_mixer[substream->number];
substream        1425 sound/pci/trident/trident_main.c 		voice->CTRL = snd_trident_control_mode(substream);
substream        1466 sound/pci/trident/trident_main.c 		voice->CTRL = snd_trident_control_mode(substream);
substream        1529 sound/pci/trident/trident_main.c static int snd_trident_trigger(struct snd_pcm_substream *substream,
substream        1533 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1556 sound/pci/trident/trident_main.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1575 sound/pci/trident/trident_main.c 			snd_pcm_trigger_done(s, substream);
substream        1628 sound/pci/trident/trident_main.c static snd_pcm_uframes_t snd_trident_playback_pointer(struct snd_pcm_substream *substream)
substream        1630 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1631 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1667 sound/pci/trident/trident_main.c static snd_pcm_uframes_t snd_trident_capture_pointer(struct snd_pcm_substream *substream)
substream        1669 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1670 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1697 sound/pci/trident/trident_main.c static snd_pcm_uframes_t snd_trident_spdif_pointer(struct snd_pcm_substream *substream)
substream        1699 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1700 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1842 sound/pci/trident/trident_main.c static int snd_trident_playback_open(struct snd_pcm_substream *substream)
substream        1844 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1845 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1851 sound/pci/trident/trident_main.c 	snd_trident_pcm_mixer_build(trident, voice, substream);
substream        1852 sound/pci/trident/trident_main.c 	voice->substream = substream;
substream        1856 sound/pci/trident/trident_main.c 	snd_pcm_set_sync(substream);
substream        1870 sound/pci/trident/trident_main.c static int snd_trident_playback_close(struct snd_pcm_substream *substream)
substream        1872 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1873 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1876 sound/pci/trident/trident_main.c 	snd_trident_pcm_mixer_free(trident, voice, substream);
substream        1891 sound/pci/trident/trident_main.c static int snd_trident_spdif_open(struct snd_pcm_substream *substream)
substream        1893 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1895 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1901 sound/pci/trident/trident_main.c 	voice->substream = substream;
substream        1932 sound/pci/trident/trident_main.c static int snd_trident_spdif_close(struct snd_pcm_substream *substream)
substream        1934 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1970 sound/pci/trident/trident_main.c static int snd_trident_capture_open(struct snd_pcm_substream *substream)
substream        1972 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        1974 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1980 sound/pci/trident/trident_main.c 	voice->substream = substream;
substream        1984 sound/pci/trident/trident_main.c 	snd_pcm_set_sync(substream);
substream        1998 sound/pci/trident/trident_main.c static int snd_trident_capture_close(struct snd_pcm_substream *substream)
substream        2014 sound/pci/trident/trident_main.c static int snd_trident_foldback_open(struct snd_pcm_substream *substream)
substream        2016 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        2018 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2023 sound/pci/trident/trident_main.c 	voice->foldback_chan = substream->number;
substream        2024 sound/pci/trident/trident_main.c 	voice->substream = substream;
substream        2041 sound/pci/trident/trident_main.c static int snd_trident_foldback_close(struct snd_pcm_substream *substream)
substream        2043 sound/pci/trident/trident_main.c 	struct snd_trident *trident = snd_pcm_substream_chip(substream);
substream        2045 sound/pci/trident/trident_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2186 sound/pci/trident/trident_main.c 		struct snd_pcm_substream *substream;
substream        2187 sound/pci/trident/trident_main.c 		for (substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; substream; substream = substream->next)
substream        2188 sound/pci/trident/trident_main.c 			snd_pcm_lib_preallocate_pages(substream, SNDRV_DMA_TYPE_DEV_SG,
substream        2191 sound/pci/trident/trident_main.c 		snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
substream        2218 sound/pci/trident/trident_main.c 	struct snd_pcm_substream *substream;
substream        2232 sound/pci/trident/trident_main.c 	substream = foldback->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream        2233 sound/pci/trident/trident_main.c 	strcpy(substream->name, "Front Mixer");
substream        2234 sound/pci/trident/trident_main.c 	substream = substream->next;
substream        2235 sound/pci/trident/trident_main.c 	strcpy(substream->name, "Reverb Mixer");
substream        2236 sound/pci/trident/trident_main.c 	substream = substream->next;
substream        2237 sound/pci/trident/trident_main.c 	strcpy(substream->name, "Chorus Mixer");
substream        2239 sound/pci/trident/trident_main.c 		substream = substream->next;
substream        2240 sound/pci/trident/trident_main.c 		strcpy(substream->name, "Second AC'97 ADC");
substream        2907 sound/pci/trident/trident_main.c 				       struct snd_pcm_substream *substream)
substream        2911 sound/pci/trident/trident_main.c 	if (snd_BUG_ON(!trident || !voice || !substream))
substream        2913 sound/pci/trident/trident_main.c 	tmix = &trident->pcm_mixer[substream->number];
substream        2919 sound/pci/trident/trident_main.c 	snd_trident_notify_pcm_change(trident, tmix, substream->number, 1);
substream        2923 sound/pci/trident/trident_main.c static int snd_trident_pcm_mixer_free(struct snd_trident *trident, struct snd_trident_voice *voice, struct snd_pcm_substream *substream)
substream        2927 sound/pci/trident/trident_main.c 	if (snd_BUG_ON(!trident || !substream))
substream        2929 sound/pci/trident/trident_main.c 	tmix = &trident->pcm_mixer[substream->number];
substream        2931 sound/pci/trident/trident_main.c 	snd_trident_notify_pcm_change(trident, tmix, substream->number, 0);
substream        3730 sound/pci/trident/trident_main.c 			if (!voice->pcm || voice->substream == NULL) {
substream        3782 sound/pci/trident/trident_main.c 			snd_pcm_period_elapsed(voice->substream);
substream        3819 sound/pci/trident/trident_main.c 		pvoice->substream = NULL;
substream        3865 sound/pci/trident/trident_main.c 	voice->substream = NULL;
substream         175 sound/pci/trident/trident_memory.c 			   struct snd_pcm_substream *substream)
substream         179 sound/pci/trident/trident_memory.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         203 sound/pci/trident/trident_memory.c 		dma_addr_t addr = snd_pcm_sgbuf_get_addr(substream, ofs);
substream         205 sound/pci/trident/trident_memory.c 			snd_pcm_sgbuf_get_ptr(substream, ofs);
substream         222 sound/pci/trident/trident_memory.c 			     struct snd_pcm_substream *substream)
substream         227 sound/pci/trident/trident_memory.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         267 sound/pci/trident/trident_memory.c 			struct snd_pcm_substream *substream)
substream         269 sound/pci/trident/trident_memory.c 	if (snd_BUG_ON(!trident || !substream))
substream         271 sound/pci/trident/trident_memory.c 	if (substream->dma_buffer.dev.type == SNDRV_DMA_TYPE_DEV_SG)
substream         272 sound/pci/trident/trident_memory.c 		return snd_trident_alloc_sg_pages(trident, substream);
substream         274 sound/pci/trident/trident_memory.c 		return snd_trident_alloc_cont_pages(trident, substream);
substream         314 sound/pci/via82xx.c         struct snd_pcm_substream *substream;
substream         411 sound/pci/via82xx.c static int build_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
substream         416 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         453 sound/pci/via82xx.c 			addr = snd_pcm_sgbuf_get_addr(substream, ofs);
substream         455 sound/pci/via82xx.c 			r = snd_pcm_sgbuf_get_chunk_size(substream, ofs, rest);
substream         484 sound/pci/via82xx.c static int clean_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
substream         637 sound/pci/via82xx.c 		if (viadev->substream && viadev->running) {
substream         649 sound/pci/via82xx.c 			snd_pcm_period_elapsed(viadev->substream);
substream         675 sound/pci/via82xx.c 		struct snd_pcm_substream *substream;
substream         685 sound/pci/via82xx.c 		substream = viadev->substream;
substream         686 sound/pci/via82xx.c 		if (substream && viadev->running) {
substream         701 sound/pci/via82xx.c 			snd_pcm_period_elapsed(substream);
substream         720 sound/pci/via82xx.c static int snd_via82xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         722 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         723 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         825 sound/pci/via82xx.c static snd_pcm_uframes_t snd_via686_pcm_pointer(struct snd_pcm_substream *substream)
substream         827 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         828 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         850 sound/pci/via82xx.c 	return bytes_to_frames(substream->runtime, res);
substream         856 sound/pci/via82xx.c static snd_pcm_uframes_t snd_via8233_pcm_pointer(struct snd_pcm_substream *substream)
substream         858 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         859 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         875 sound/pci/via82xx.c 		snd_via82xx_pcm_trigger(substream, SNDRV_PCM_TRIGGER_START);
substream         909 sound/pci/via82xx.c 	return bytes_to_frames(substream->runtime, res);
substream         917 sound/pci/via82xx.c static int snd_via82xx_hw_params(struct snd_pcm_substream *substream,
substream         920 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         921 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         924 sound/pci/via82xx.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         927 sound/pci/via82xx.c 	err = build_via_table(viadev, substream, chip->pci,
substream         940 sound/pci/via82xx.c static int snd_via82xx_hw_free(struct snd_pcm_substream *substream)
substream         942 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         943 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         945 sound/pci/via82xx.c 	clean_via_table(viadev, substream, chip->pci);
substream         946 sound/pci/via82xx.c 	snd_pcm_lib_free_pages(substream);
substream         979 sound/pci/via82xx.c static int snd_via686_playback_prepare(struct snd_pcm_substream *substream)
substream         981 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         982 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         983 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         991 sound/pci/via82xx.c static int snd_via686_capture_prepare(struct snd_pcm_substream *substream)
substream         993 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream         994 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream         995 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1025 sound/pci/via82xx.c static int snd_via8233_playback_prepare(struct snd_pcm_substream *substream)
substream        1027 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1028 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream        1029 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1067 sound/pci/via82xx.c static int snd_via8233_multi_prepare(struct snd_pcm_substream *substream)
substream        1069 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1070 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream        1071 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1116 sound/pci/via82xx.c static int snd_via8233_capture_prepare(struct snd_pcm_substream *substream)
substream        1118 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1119 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream        1120 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1167 sound/pci/via82xx.c 				struct snd_pcm_substream *substream)
substream        1169 sound/pci/via82xx.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1218 sound/pci/via82xx.c 	viadev->substream = substream;
substream        1227 sound/pci/via82xx.c static int snd_via686_playback_open(struct snd_pcm_substream *substream)
substream        1229 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1230 sound/pci/via82xx.c 	struct viadev *viadev = &chip->devs[chip->playback_devno + substream->number];
substream        1233 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
substream        1241 sound/pci/via82xx.c static int snd_via8233_playback_open(struct snd_pcm_substream *substream)
substream        1243 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1248 sound/pci/via82xx.c 	viadev = &chip->devs[chip->playback_devno + substream->number];
substream        1249 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
substream        1269 sound/pci/via82xx.c static int snd_via8233_multi_open(struct snd_pcm_substream *substream)
substream        1271 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1286 sound/pci/via82xx.c 	if ((err = snd_via82xx_pcm_open(chip, viadev, substream)) < 0)
substream        1288 sound/pci/via82xx.c 	substream->runtime->hw.channels_max = 6;
substream        1290 sound/pci/via82xx.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1299 sound/pci/via82xx.c static int snd_via82xx_capture_open(struct snd_pcm_substream *substream)
substream        1301 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1302 sound/pci/via82xx.c 	struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
substream        1304 sound/pci/via82xx.c 	return snd_via82xx_pcm_open(chip, viadev, substream);
substream        1310 sound/pci/via82xx.c static int snd_via82xx_pcm_close(struct snd_pcm_substream *substream)
substream        1312 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1313 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream        1335 sound/pci/via82xx.c 	viadev->substream = NULL;
substream        1339 sound/pci/via82xx.c static int snd_via8233_playback_close(struct snd_pcm_substream *substream)
substream        1341 sound/pci/via82xx.c 	struct via82xx *chip = snd_pcm_substream_chip(substream);
substream        1342 sound/pci/via82xx.c 	struct viadev *viadev = substream->runtime->private_data;
substream        1352 sound/pci/via82xx.c 	return snd_via82xx_pcm_close(substream);
substream         209 sound/pci/via82xx_modem.c         struct snd_pcm_substream *substream;
substream         264 sound/pci/via82xx_modem.c static int build_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
substream         269 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         306 sound/pci/via82xx_modem.c 			addr = snd_pcm_sgbuf_get_addr(substream, ofs);
substream         338 sound/pci/via82xx_modem.c static int clean_via_table(struct viadev *dev, struct snd_pcm_substream *substream,
substream         491 sound/pci/via82xx_modem.c 		if (viadev->substream && viadev->running) {
substream         493 sound/pci/via82xx_modem.c 			snd_pcm_period_elapsed(viadev->substream);
substream         509 sound/pci/via82xx_modem.c static int snd_via82xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         511 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         512 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         606 sound/pci/via82xx_modem.c static snd_pcm_uframes_t snd_via686_pcm_pointer(struct snd_pcm_substream *substream)
substream         608 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         609 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         631 sound/pci/via82xx_modem.c 	return bytes_to_frames(substream->runtime, res);
substream         638 sound/pci/via82xx_modem.c static int snd_via82xx_hw_params(struct snd_pcm_substream *substream,
substream         641 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         642 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         645 sound/pci/via82xx_modem.c 	err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         648 sound/pci/via82xx_modem.c 	err = build_via_table(viadev, substream, chip->pci,
substream         664 sound/pci/via82xx_modem.c static int snd_via82xx_hw_free(struct snd_pcm_substream *substream)
substream         666 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         667 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         669 sound/pci/via82xx_modem.c 	clean_via_table(viadev, substream, chip->pci);
substream         670 sound/pci/via82xx_modem.c 	snd_pcm_lib_free_pages(substream);
substream         689 sound/pci/via82xx_modem.c static int snd_via82xx_pcm_prepare(struct snd_pcm_substream *substream)
substream         691 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         692 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         731 sound/pci/via82xx_modem.c 				      struct snd_pcm_substream *substream)
substream         733 sound/pci/via82xx_modem.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         754 sound/pci/via82xx_modem.c 	viadev->substream = substream;
substream         763 sound/pci/via82xx_modem.c static int snd_via82xx_playback_open(struct snd_pcm_substream *substream)
substream         765 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         766 sound/pci/via82xx_modem.c 	struct viadev *viadev = &chip->devs[chip->playback_devno + substream->number];
substream         768 sound/pci/via82xx_modem.c 	return snd_via82xx_modem_pcm_open(chip, viadev, substream);
substream         774 sound/pci/via82xx_modem.c static int snd_via82xx_capture_open(struct snd_pcm_substream *substream)
substream         776 sound/pci/via82xx_modem.c 	struct via82xx_modem *chip = snd_pcm_substream_chip(substream);
substream         777 sound/pci/via82xx_modem.c 	struct viadev *viadev = &chip->devs[chip->capture_devno + substream->pcm->device];
substream         779 sound/pci/via82xx_modem.c 	return snd_via82xx_modem_pcm_open(chip, viadev, substream);
substream         785 sound/pci/via82xx_modem.c static int snd_via82xx_pcm_close(struct snd_pcm_substream *substream)
substream         787 sound/pci/via82xx_modem.c 	struct viadev *viadev = substream->runtime->private_data;
substream         789 sound/pci/via82xx_modem.c 	viadev->substream = NULL;
substream         255 sound/pci/ymfpci/ymfpci.h 	struct snd_pcm_substream *substream;
substream         297 sound/pci/ymfpci/ymfpci_main.c 	if (ypcm->substream == NULL)
substream         317 sound/pci/ymfpci/ymfpci_main.c 			snd_pcm_period_elapsed(ypcm->substream);
substream         322 sound/pci/ymfpci/ymfpci_main.c 			unsigned int subs = ypcm->substream->number;
substream         344 sound/pci/ymfpci/ymfpci_main.c static void snd_ymfpci_pcm_capture_interrupt(struct snd_pcm_substream *substream)
substream         346 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         369 sound/pci/ymfpci/ymfpci_main.c 			snd_pcm_period_elapsed(substream);
substream         376 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_trigger(struct snd_pcm_substream *substream,
substream         379 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         380 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
substream         399 sound/pci/ymfpci/ymfpci_main.c 		if (substream->pcm == chip->pcm && !ypcm->use_441_slot) {
substream         400 sound/pci/ymfpci/ymfpci_main.c 			kctl = chip->pcm_mixer[substream->number].ctl;
substream         421 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_trigger(struct snd_pcm_substream *substream,
substream         424 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         425 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
substream         509 sound/pci/ymfpci/ymfpci_main.c 				       [ypcm->substream->number].left << 15);
substream         511 sound/pci/ymfpci/ymfpci_main.c 					[ypcm->substream->number].right << 15);
substream         624 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_hw_params(struct snd_pcm_substream *substream,
substream         627 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         631 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params))) < 0)
substream         638 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_hw_free(struct snd_pcm_substream *substream)
substream         640 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         641 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         650 sound/pci/ymfpci/ymfpci_main.c 	snd_pcm_lib_free_pages(substream);
substream         662 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_prepare(struct snd_pcm_substream *substream)
substream         664 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         665 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         676 sound/pci/ymfpci/ymfpci_main.c 					  substream->pcm == chip->pcm);
substream         678 sound/pci/ymfpci/ymfpci_main.c 	if (substream->pcm == chip->pcm && !ypcm->use_441_slot) {
substream         679 sound/pci/ymfpci/ymfpci_main.c 		kctl = chip->pcm_mixer[substream->number].ctl;
substream         686 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_hw_params(struct snd_pcm_substream *substream,
substream         689 sound/pci/ymfpci/ymfpci_main.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         692 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_hw_free(struct snd_pcm_substream *substream)
substream         694 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         698 sound/pci/ymfpci/ymfpci_main.c 	return snd_pcm_lib_free_pages(substream);
substream         701 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_prepare(struct snd_pcm_substream *substream)
substream         703 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         704 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         745 sound/pci/ymfpci/ymfpci_main.c static snd_pcm_uframes_t snd_ymfpci_playback_pointer(struct snd_pcm_substream *substream)
substream         747 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         748 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         757 sound/pci/ymfpci/ymfpci_main.c static snd_pcm_uframes_t snd_ymfpci_capture_pointer(struct snd_pcm_substream *substream)
substream         759 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         760 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         883 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_open_1(struct snd_pcm_substream *substream)
substream         885 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         886 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         906 sound/pci/ymfpci/ymfpci_main.c 	ypcm->substream = substream;
substream         937 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_open(struct snd_pcm_substream *substream)
substream         939 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         940 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         944 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ymfpci_playback_open_1(substream)) < 0)
substream         959 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_spdif_open(struct snd_pcm_substream *substream)
substream         961 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         962 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         966 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ymfpci_playback_open_1(substream)) < 0)
substream         987 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_4ch_open(struct snd_pcm_substream *substream)
substream         989 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream         990 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         994 sound/pci/ymfpci/ymfpci_main.c 	if ((err = snd_ymfpci_playback_open_1(substream)) < 0)
substream        1007 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_open(struct snd_pcm_substream *substream,
substream        1010 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream        1011 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1031 sound/pci/ymfpci/ymfpci_main.c 	ypcm->substream = substream;	
substream        1033 sound/pci/ymfpci/ymfpci_main.c 	chip->capture_substream[capture_bank_number] = substream;
substream        1040 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_rec_open(struct snd_pcm_substream *substream)
substream        1042 sound/pci/ymfpci/ymfpci_main.c 	return snd_ymfpci_capture_open(substream, 0);
substream        1045 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_ac97_open(struct snd_pcm_substream *substream)
substream        1047 sound/pci/ymfpci/ymfpci_main.c 	return snd_ymfpci_capture_open(substream, 1);
substream        1050 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_close_1(struct snd_pcm_substream *substream)
substream        1055 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_close(struct snd_pcm_substream *substream)
substream        1057 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream        1058 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
substream        1066 sound/pci/ymfpci/ymfpci_main.c 	return snd_ymfpci_playback_close_1(substream);
substream        1069 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_spdif_close(struct snd_pcm_substream *substream)
substream        1071 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream        1083 sound/pci/ymfpci/ymfpci_main.c 	return snd_ymfpci_playback_close_1(substream);
substream        1086 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_playback_4ch_close(struct snd_pcm_substream *substream)
substream        1088 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream        1096 sound/pci/ymfpci/ymfpci_main.c 	return snd_ymfpci_playback_close_1(substream);
substream        1099 sound/pci/ymfpci/ymfpci_main.c static int snd_ymfpci_capture_close(struct snd_pcm_substream *substream)
substream        1101 sound/pci/ymfpci/ymfpci_main.c 	struct snd_ymfpci *chip = snd_pcm_substream_chip(substream);
substream        1102 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1740 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_substream *substream;
substream        1752 sound/pci/ymfpci/ymfpci_main.c 		substream = (struct snd_pcm_substream *)kcontrol->private_value;
substream        1754 sound/pci/ymfpci/ymfpci_main.c 		if (substream->runtime && substream->runtime->private_data) {
substream        1755 sound/pci/ymfpci/ymfpci_main.c 			struct snd_ymfpci_pcm *ypcm = substream->runtime->private_data;
substream        1796 sound/pci/ymfpci/ymfpci_main.c 	struct snd_pcm_substream *substream;
substream        1858 sound/pci/ymfpci/ymfpci_main.c 	substream = chip->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream        1865 sound/pci/ymfpci/ymfpci_main.c 		kctl->private_value = (unsigned long)substream;
substream        1871 sound/pci/ymfpci/ymfpci_main.c 		substream = substream->next;
substream         289 sound/pcmcia/pdaudiocf/pdaudiocf_pcm.c 	err = snd_ak4117_build(chip->ak4117, pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
substream         487 sound/ppc/pmac.c 			snd_pcm_period_elapsed(rec->substream);
substream         604 sound/ppc/pmac.c 	rec->substream = subs;
substream          63 sound/ppc/pmac.h 	struct snd_pcm_substream *substream;
substream         338 sound/ppc/snd_ps3.c 			snd_pcm_period_elapsed(card->substream);
substream         438 sound/ppc/snd_ps3.c static int snd_ps3_set_avsetting(struct snd_pcm_substream *substream)
substream         440 sound/ppc/snd_ps3.c 	struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
substream         447 sound/ppc/snd_ps3.c 		 substream->runtime->rate,
substream         448 sound/ppc/snd_ps3.c 		 snd_pcm_format_width(substream->runtime->format));
substream         454 sound/ppc/snd_ps3.c 	switch (substream->runtime->rate) {
substream         469 sound/ppc/snd_ps3.c 			substream->runtime->rate);
substream         474 sound/ppc/snd_ps3.c 	switch (snd_pcm_format_width(substream->runtime->format)) {
substream         483 sound/ppc/snd_ps3.c 			snd_pcm_format_width(substream->runtime->format));
substream         511 sound/ppc/snd_ps3.c static int snd_ps3_pcm_open(struct snd_pcm_substream *substream)
substream         513 sound/ppc/snd_ps3.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         514 sound/ppc/snd_ps3.c 	struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
substream         517 sound/ppc/snd_ps3.c 	card->substream = substream;
substream         531 sound/ppc/snd_ps3.c static int snd_ps3_pcm_close(struct snd_pcm_substream *substream)
substream         538 sound/ppc/snd_ps3.c static int snd_ps3_pcm_hw_params(struct snd_pcm_substream *substream,
substream         545 sound/ppc/snd_ps3.c 	snd_pcm_lib_malloc_pages(substream, size);
substream         549 sound/ppc/snd_ps3.c static int snd_ps3_pcm_hw_free(struct snd_pcm_substream *substream)
substream         551 sound/ppc/snd_ps3.c 	return snd_pcm_lib_free_pages(substream);
substream         554 sound/ppc/snd_ps3.c static int snd_ps3_delay_to_bytes(struct snd_pcm_substream *substream,
substream         560 sound/ppc/snd_ps3.c 	rate = substream->runtime->rate;
substream         561 sound/ppc/snd_ps3.c 	ret = snd_pcm_format_size(substream->runtime->format,
substream         563 sound/ppc/snd_ps3.c 		* substream->runtime->channels;
substream         569 sound/ppc/snd_ps3.c 		 snd_pcm_format_size(substream->runtime->format, rate),
substream         576 sound/ppc/snd_ps3.c static int snd_ps3_pcm_prepare(struct snd_pcm_substream *substream)
substream         578 sound/ppc/snd_ps3.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         579 sound/ppc/snd_ps3.c 	struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
substream         582 sound/ppc/snd_ps3.c 	if (!snd_ps3_set_avsetting(substream)) {
substream         591 sound/ppc/snd_ps3.c 		card->silent = snd_ps3_delay_to_bytes(substream,
substream         627 sound/ppc/snd_ps3.c static int snd_ps3_pcm_trigger(struct snd_pcm_substream *substream,
substream         630 sound/ppc/snd_ps3.c 	struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
substream         674 sound/ppc/snd_ps3.c 	struct snd_pcm_substream *substream)
substream         676 sound/ppc/snd_ps3.c 	struct snd_ps3_card_info *card = snd_pcm_substream_chip(substream);
substream         687 sound/ppc/snd_ps3.c 	ret = bytes_to_frames(substream->runtime, bytes * 2);
substream          53 sound/ppc/snd_ps3.h 	struct snd_pcm_substream *substream;
substream         216 sound/sh/aica.c 			     struct snd_pcm_substream *substream)
substream         223 sound/sh/aica.c 	dreamcastcard = substream->pcm->private_data;
substream         226 sound/sh/aica.c 	runtime = substream->runtime;
substream         262 sound/sh/aica.c 	runtime = dreamcastcard->substream->runtime;
substream         269 sound/sh/aica.c 				  dreamcastcard->substream);
substream         277 sound/sh/aica.c 				  dreamcastcard->substream);
substream         278 sound/sh/aica.c 		snd_pcm_period_elapsed(dreamcastcard->substream);
substream         290 sound/sh/aica.c 	struct snd_pcm_substream *substream = dreamcastcard->substream;
substream         294 sound/sh/aica.c 	runtime = substream->runtime;
substream         295 sound/sh/aica.c 	dreamcastcard = substream->pcm->private_data;
substream         314 sound/sh/aica.c static void spu_begin_dma(struct snd_pcm_substream *substream)
substream         318 sound/sh/aica.c 	runtime = substream->runtime;
substream         319 sound/sh/aica.c 	dreamcastcard = substream->pcm->private_data;
substream         326 sound/sh/aica.c 				*substream)
substream         333 sound/sh/aica.c 	dreamcastcard = substream->pcm->private_data;
substream         345 sound/sh/aica.c 	runtime = substream->runtime;
substream         355 sound/sh/aica.c 				 *substream)
substream         357 sound/sh/aica.c 	struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
substream         360 sound/sh/aica.c 	dreamcastcard->substream = NULL;
substream         367 sound/sh/aica.c 				   *substream)
substream         370 sound/sh/aica.c 	return snd_pcm_lib_free_pages(substream);
substream         374 sound/sh/aica.c 				     *substream, struct snd_pcm_hw_params
substream         379 sound/sh/aica.c 	    snd_pcm_lib_malloc_pages(substream,
substream         384 sound/sh/aica.c 				   *substream)
substream         386 sound/sh/aica.c 	struct snd_card_aica *dreamcastcard = substream->pcm->private_data;
substream         387 sound/sh/aica.c 	if ((substream->runtime)->format == SNDRV_PCM_FORMAT_S16_LE)
substream         389 sound/sh/aica.c 	dreamcastcard->channel->freq = substream->runtime->rate;
substream         390 sound/sh/aica.c 	dreamcastcard->substream = substream;
substream         395 sound/sh/aica.c 				   *substream, int cmd)
substream         399 sound/sh/aica.c 		spu_begin_dma(substream);
substream         411 sound/sh/aica.c 					     *substream)
substream          62 sound/sh/aica.h 	struct snd_pcm_substream *substream;
substream          41 sound/sh/sh_dac_audio.c 	struct snd_pcm_substream *substream;
substream          99 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_open(struct snd_pcm_substream *substream)
substream         101 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         102 sound/sh/sh_dac_audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         106 sound/sh/sh_dac_audio.c 	chip->substream = substream;
substream         116 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_close(struct snd_pcm_substream *substream)
substream         118 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         120 sound/sh/sh_dac_audio.c 	chip->substream = NULL;
substream         128 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_hw_params(struct snd_pcm_substream *substream,
substream         131 sound/sh/sh_dac_audio.c 	return snd_pcm_lib_malloc_pages(substream,
substream         135 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_hw_free(struct snd_pcm_substream *substream)
substream         137 sound/sh/sh_dac_audio.c 	return snd_pcm_lib_free_pages(substream);
substream         140 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_prepare(struct snd_pcm_substream *substream)
substream         142 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         143 sound/sh/sh_dac_audio.c 	struct snd_pcm_runtime *runtime = chip->substream->runtime;
substream         151 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         153 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         172 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_copy(struct snd_pcm_substream *substream,
substream         177 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         191 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_copy_kernel(struct snd_pcm_substream *substream,
substream         196 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         209 sound/sh/sh_dac_audio.c static int snd_sh_dac_pcm_silence(struct snd_pcm_substream *substream,
substream         214 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         228 sound/sh/sh_dac_audio.c snd_pcm_uframes_t snd_sh_dac_pcm_pointer(struct snd_pcm_substream *substream)
substream         230 sound/sh/sh_dac_audio.c 	struct snd_sh_dac *chip = snd_pcm_substream_chip(substream);
substream         305 sound/sh/sh_dac_audio.c 	struct snd_pcm_runtime *runtime = chip->substream->runtime;
substream         315 sound/sh/sh_dac_audio.c 			snd_pcm_period_elapsed(chip->substream);
substream          57 sound/soc/adi/axi-i2s.c static int axi_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream          63 sound/soc/adi/axi-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          88 sound/soc/adi/axi-i2s.c static int axi_i2s_hw_params(struct snd_pcm_substream *substream,
substream         106 sound/soc/adi/axi-i2s.c static int axi_i2s_startup(struct snd_pcm_substream *substream,
substream         113 sound/soc/adi/axi-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         120 sound/soc/adi/axi-i2s.c 	ret = snd_pcm_hw_constraint_ratnums(substream->runtime, 0,
substream         129 sound/soc/adi/axi-i2s.c static void axi_i2s_shutdown(struct snd_pcm_substream *substream,
substream          48 sound/soc/adi/axi-spdif.c static int axi_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream          75 sound/soc/adi/axi-spdif.c static int axi_spdif_hw_params(struct snd_pcm_substream *substream,
substream         117 sound/soc/adi/axi-spdif.c static int axi_spdif_startup(struct snd_pcm_substream *substream,
substream         123 sound/soc/adi/axi-spdif.c 	ret = snd_pcm_hw_constraint_ratnums(substream->runtime, 0,
substream         139 sound/soc/adi/axi-spdif.c static void axi_spdif_shutdown(struct snd_pcm_substream *substream,
substream          99 sound/soc/amd/acp-da7219-max98357a.c static int da7219_clk_enable(struct snd_pcm_substream *substream,
substream         103 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         141 sound/soc/amd/acp-da7219-max98357a.c static int cz_da7219_play_startup(struct snd_pcm_substream *substream)
substream         143 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         144 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         162 sound/soc/amd/acp-da7219-max98357a.c static int cz_da7219_cap_startup(struct snd_pcm_substream *substream)
substream         164 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         165 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         184 sound/soc/amd/acp-da7219-max98357a.c static int cz_max_startup(struct snd_pcm_substream *substream)
substream         186 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         187 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         205 sound/soc/amd/acp-da7219-max98357a.c static int cz_dmic0_startup(struct snd_pcm_substream *substream)
substream         207 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         208 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         226 sound/soc/amd/acp-da7219-max98357a.c static int cz_dmic1_startup(struct snd_pcm_substream *substream)
substream         228 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         229 sound/soc/amd/acp-da7219-max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         248 sound/soc/amd/acp-da7219-max98357a.c static int cz_da7219_params(struct snd_pcm_substream *substream,
substream         263 sound/soc/amd/acp-da7219-max98357a.c 	return da7219_clk_enable(substream, wclk, bclk);
substream         266 sound/soc/amd/acp-da7219-max98357a.c static void cz_da7219_shutdown(struct snd_pcm_substream *substream)
substream         762 sound/soc/amd/acp-pcm-dma.c static int acp_dma_open(struct snd_pcm_substream *substream)
substream         766 sound/soc/amd/acp-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         767 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         776 sound/soc/amd/acp-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         815 sound/soc/amd/acp-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         837 sound/soc/amd/acp-pcm-dma.c static int acp_dma_hw_params(struct snd_pcm_substream *substream,
substream         845 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         852 sound/soc/amd/acp-pcm-dma.c 	runtime = substream->runtime;
substream         859 sound/soc/amd/acp-pcm-dma.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         869 sound/soc/amd/acp-pcm-dma.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         892 sound/soc/amd/acp-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         906 sound/soc/amd/acp-pcm-dma.c 			adata->play_i2sbt_stream = substream;
substream         927 sound/soc/amd/acp-pcm-dma.c 			adata->play_i2ssp_stream = substream;
substream         944 sound/soc/amd/acp-pcm-dma.c 			adata->capture_i2sbt_stream = substream;
substream         968 sound/soc/amd/acp-pcm-dma.c 			adata->capture_i2ssp_stream = substream;
substream         973 sound/soc/amd/acp-pcm-dma.c 	status = snd_pcm_lib_malloc_pages(substream, size);
substream         977 sound/soc/amd/acp-pcm-dma.c 	memset(substream->runtime->dma_area, 0, params_buffer_bytes(params));
substream         979 sound/soc/amd/acp-pcm-dma.c 	if (substream->dma_buffer.area) {
substream         982 sound/soc/amd/acp-pcm-dma.c 		rtd->dma_addr = substream->dma_buffer.addr;
substream         988 sound/soc/amd/acp-pcm-dma.c 		rtd->direction = substream->stream;
substream         998 sound/soc/amd/acp-pcm-dma.c static int acp_dma_hw_free(struct snd_pcm_substream *substream)
substream        1000 sound/soc/amd/acp-pcm-dma.c 	return snd_pcm_lib_free_pages(substream);
substream        1014 sound/soc/amd/acp-pcm-dma.c static snd_pcm_uframes_t acp_dma_pointer(struct snd_pcm_substream *substream)
substream        1022 sound/soc/amd/acp-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1028 sound/soc/amd/acp-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream        1056 sound/soc/amd/acp-pcm-dma.c static int acp_dma_mmap(struct snd_pcm_substream *substream,
substream        1059 sound/soc/amd/acp-pcm-dma.c 	return snd_pcm_lib_default_mmap(substream, vma);
substream        1062 sound/soc/amd/acp-pcm-dma.c static int acp_dma_prepare(struct snd_pcm_substream *substream)
substream        1064 sound/soc/amd/acp-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1089 sound/soc/amd/acp-pcm-dma.c static int acp_dma_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1093 sound/soc/amd/acp-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1103 sound/soc/amd/acp-pcm-dma.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream        1161 sound/soc/amd/acp-pcm-dma.c static int acp_dma_close(struct snd_pcm_substream *substream)
substream        1164 sound/soc/amd/acp-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1166 sound/soc/amd/acp-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream        1171 sound/soc/amd/acp-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          46 sound/soc/amd/acp-rt5645.c static int cz_aif1_hw_params(struct snd_pcm_substream *substream,
substream          50 sound/soc/amd/acp-rt5645.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         278 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dma_open(struct snd_pcm_substream *substream)
substream         282 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         283 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         293 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         309 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         310 sound/soc/amd/raven/acp3x-pcm-dma.c 		adata->play_stream = substream;
substream         312 sound/soc/amd/raven/acp3x-pcm-dma.c 		adata->capture_stream = substream;
substream         337 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dma_hw_params(struct snd_pcm_substream *substream,
substream         342 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         349 sound/soc/amd/raven/acp3x-pcm-dma.c 	status = snd_pcm_lib_malloc_pages(substream, size);
substream         353 sound/soc/amd/raven/acp3x-pcm-dma.c 	memset(substream->runtime->dma_area, 0, params_buffer_bytes(params));
substream         354 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (substream->dma_buffer.area) {
substream         355 sound/soc/amd/raven/acp3x-pcm-dma.c 		rtd->dma_addr = substream->dma_buffer.addr;
substream         357 sound/soc/amd/raven/acp3x-pcm-dma.c 		config_acp3x_dma(rtd, substream->stream);
substream         365 sound/soc/amd/raven/acp3x-pcm-dma.c static snd_pcm_uframes_t acp3x_dma_pointer(struct snd_pcm_substream *substream)
substream         371 sound/soc/amd/raven/acp3x-pcm-dma.c 		substream->runtime->private_data;
substream         373 sound/soc/amd/raven/acp3x-pcm-dma.c 	buffersize = frames_to_bytes(substream->runtime,
substream         374 sound/soc/amd/raven/acp3x-pcm-dma.c 				     substream->runtime->buffer_size);
substream         375 sound/soc/amd/raven/acp3x-pcm-dma.c 	bytescount = acp_get_byte_count(rtd, substream->stream);
substream         379 sound/soc/amd/raven/acp3x-pcm-dma.c 	return bytes_to_frames(substream->runtime, pos);
substream         392 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dma_hw_free(struct snd_pcm_substream *substream)
substream         394 sound/soc/amd/raven/acp3x-pcm-dma.c 	return snd_pcm_lib_free_pages(substream);
substream         397 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dma_mmap(struct snd_pcm_substream *substream,
substream         400 sound/soc/amd/raven/acp3x-pcm-dma.c 	return snd_pcm_lib_default_mmap(substream, vma);
substream         403 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dma_close(struct snd_pcm_substream *substream)
substream         405 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         406 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct i2s_stream_instance *rtd = substream->runtime->private_data;
substream         411 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         493 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dai_i2s_hwparams(struct snd_pcm_substream *substream,
substream         498 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct i2s_stream_instance *rtd = substream->runtime->private_data;
substream         519 sound/soc/amd/raven/acp3x-pcm-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         527 sound/soc/amd/raven/acp3x-pcm-dma.c static int acp3x_dai_i2s_trigger(struct snd_pcm_substream *substream,
substream         531 sound/soc/amd/raven/acp3x-pcm-dma.c 	struct i2s_stream_instance *rtd = substream->runtime->private_data;
substream         534 sound/soc/amd/raven/acp3x-pcm-dma.c 	period_bytes = frames_to_bytes(substream->runtime,
substream         535 sound/soc/amd/raven/acp3x-pcm-dma.c 				       substream->runtime->period_size);
substream         540 sound/soc/amd/raven/acp3x-pcm-dma.c 		rtd->bytescount = acp_get_byte_count(rtd, substream->stream);
substream         541 sound/soc/amd/raven/acp3x-pcm-dma.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         559 sound/soc/amd/raven/acp3x-pcm-dma.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         118 sound/soc/atmel/atmel-classd.c static int atmel_classd_cpu_dai_startup(struct snd_pcm_substream *substream,
substream         121 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         129 sound/soc/atmel/atmel-classd.c static void atmel_classd_cpu_dai_shutdown(struct snd_pcm_substream *substream,
substream         132 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         158 sound/soc/atmel/atmel-classd.c atmel_classd_platform_configure_dma(struct snd_pcm_substream *substream,
substream         162 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         321 sound/soc/atmel/atmel-classd.c static int atmel_classd_codec_dai_startup(struct snd_pcm_substream *substream,
substream         324 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         376 sound/soc/atmel/atmel-classd.c atmel_classd_codec_dai_hw_params(struct snd_pcm_substream *substream,
substream         380 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         420 sound/soc/atmel/atmel-classd.c atmel_classd_codec_dai_shutdown(struct snd_pcm_substream *substream,
substream         423 sound/soc/atmel/atmel-classd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         429 sound/soc/atmel/atmel-classd.c static int atmel_classd_codec_dai_prepare(struct snd_pcm_substream *substream,
substream         442 sound/soc/atmel/atmel-classd.c static int atmel_classd_codec_dai_trigger(struct snd_pcm_substream *substream,
substream         267 sound/soc/atmel/atmel-i2s.c static int atmel_i2s_prepare(struct snd_pcm_substream *substream,
substream         271 sound/soc/atmel/atmel-i2s.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         318 sound/soc/atmel/atmel-i2s.c static int atmel_i2s_hw_params(struct snd_pcm_substream *substream,
substream         323 sound/soc/atmel/atmel-i2s.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         465 sound/soc/atmel/atmel-i2s.c static int atmel_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         469 sound/soc/atmel/atmel-i2s.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream          54 sound/soc/atmel/atmel-pcm-dma.c 	struct snd_pcm_substream *substream)
substream          56 sound/soc/atmel/atmel-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          59 sound/soc/atmel/atmel-pcm-dma.c 	prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream          62 sound/soc/atmel/atmel-pcm-dma.c 		if (snd_pcm_running(substream))
substream          64 sound/soc/atmel/atmel-pcm-dma.c 				substream->stream == SNDRV_PCM_STREAM_PLAYBACK
substream          70 sound/soc/atmel/atmel-pcm-dma.c 		snd_pcm_stop_xrun(substream);
substream          78 sound/soc/atmel/atmel-pcm-dma.c static int atmel_pcm_configure_dma(struct snd_pcm_substream *substream,
substream          81 sound/soc/atmel/atmel-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          86 sound/soc/atmel/atmel-pcm-dma.c 	prtd = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream          89 sound/soc/atmel/atmel-pcm-dma.c 	ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config);
substream          40 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream          41 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream          59 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_mmap(struct snd_pcm_substream *substream,
substream          63 sound/soc/atmel/atmel-pcm-pdc.c 		       substream->dma_buffer.addr >> PAGE_SHIFT,
substream          77 sound/soc/atmel/atmel-pcm-pdc.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream          85 sound/soc/atmel/atmel-pcm-pdc.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream          98 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_substream *substream;
substream         103 sound/soc/atmel/atmel-pcm-pdc.c 		substream = pcm->streams[stream].substream;
substream         104 sound/soc/atmel/atmel-pcm-pdc.c 		if (!substream)
substream         107 sound/soc/atmel/atmel-pcm-pdc.c 		buf = &substream->dma_buffer;
substream         151 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_substream *substream)
substream         153 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
substream         161 sound/soc/atmel/atmel-pcm-pdc.c 				substream->stream == SNDRV_PCM_STREAM_PLAYBACK
substream         192 sound/soc/atmel/atmel-pcm-pdc.c 	snd_pcm_period_elapsed(substream);
substream         199 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_hw_params(struct snd_pcm_substream *substream,
substream         202 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         204 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         209 sound/soc/atmel/atmel-pcm-pdc.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         212 sound/soc/atmel/atmel-pcm-pdc.c 	prtd->params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         228 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_hw_free(struct snd_pcm_substream *substream)
substream         230 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
substream         242 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_prepare(struct snd_pcm_substream *substream)
substream         244 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
substream         254 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_trigger(struct snd_pcm_substream *substream,
substream         257 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_runtime *rtd = substream->runtime;
substream         321 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_substream *substream)
substream         323 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         338 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_open(struct snd_pcm_substream *substream)
substream         340 sound/soc/atmel/atmel-pcm-pdc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         344 sound/soc/atmel/atmel-pcm-pdc.c 	snd_soc_set_runtime_hwparams(substream, &atmel_pcm_hardware);
substream         363 sound/soc/atmel/atmel-pcm-pdc.c static int atmel_pcm_close(struct snd_pcm_substream *substream)
substream         365 sound/soc/atmel/atmel-pcm-pdc.c 	struct atmel_runtime_data *prtd = substream->runtime->private_data;
substream          63 sound/soc/atmel/atmel-pcm.h 	struct snd_pcm_substream *substream;
substream          34 sound/soc/atmel/atmel-pdmic.c 	struct snd_pcm_substream *substream;
substream         104 sound/soc/atmel/atmel-pdmic.c static int atmel_pdmic_cpu_dai_startup(struct snd_pcm_substream *substream,
substream         107 sound/soc/atmel/atmel-pdmic.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         124 sound/soc/atmel/atmel-pdmic.c 	dd->substream = substream;
substream         132 sound/soc/atmel/atmel-pdmic.c static void atmel_pdmic_cpu_dai_shutdown(struct snd_pcm_substream *substream,
substream         135 sound/soc/atmel/atmel-pdmic.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         145 sound/soc/atmel/atmel-pdmic.c static int atmel_pdmic_cpu_dai_prepare(struct snd_pcm_substream *substream,
substream         148 sound/soc/atmel/atmel-pdmic.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         196 sound/soc/atmel/atmel-pdmic.c atmel_pdmic_platform_configure_dma(struct snd_pcm_substream *substream,
substream         200 sound/soc/atmel/atmel-pdmic.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         204 sound/soc/atmel/atmel-pdmic.c 	ret = snd_hwparams_to_dma_slave_config(substream, params,
substream         372 sound/soc/atmel/atmel-pdmic.c atmel_pdmic_codec_dai_hw_params(struct snd_pcm_substream *substream,
substream         376 sound/soc/atmel/atmel-pdmic.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         379 sound/soc/atmel/atmel-pdmic.c 	unsigned int rate_min = substream->runtime->hw.rate_min;
substream         380 sound/soc/atmel/atmel-pdmic.c 	unsigned int rate_max = substream->runtime->hw.rate_max;
substream         448 sound/soc/atmel/atmel-pdmic.c static int atmel_pdmic_codec_dai_prepare(struct snd_pcm_substream *substream,
substream         459 sound/soc/atmel/atmel-pdmic.c static int atmel_pdmic_codec_dai_trigger(struct snd_pcm_substream *substream,
substream         575 sound/soc/atmel/atmel-pdmic.c 		snd_pcm_stop_xrun(dd->substream);
substream         166 sound/soc/atmel/atmel_ssc_dai.c 						substream);
substream         269 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_startup(struct snd_pcm_substream *substream,
substream         290 sound/soc/atmel/atmel_ssc_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         298 sound/soc/atmel/atmel_ssc_dai.c 	ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         311 sound/soc/atmel/atmel_ssc_dai.c 	dma_params->substream = substream;
substream         315 sound/soc/atmel/atmel_ssc_dai.c 	snd_soc_dai_set_dma_data(dai, substream, dma_params);
substream         329 sound/soc/atmel/atmel_ssc_dai.c static void atmel_ssc_shutdown(struct snd_pcm_substream *substream,
substream         337 sound/soc/atmel/atmel_ssc_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         346 sound/soc/atmel/atmel_ssc_dai.c 		dma_params->substream = NULL;
substream         454 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_hw_params(struct snd_pcm_substream *substream,
substream         476 sound/soc/atmel/atmel_ssc_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         709 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_prepare(struct snd_pcm_substream *substream,
substream         717 sound/soc/atmel/atmel_ssc_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         733 sound/soc/atmel/atmel_ssc_dai.c static int atmel_ssc_trigger(struct snd_pcm_substream *substream,
substream         741 sound/soc/atmel/atmel_ssc_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          26 sound/soc/atmel/atmel_wm8904.c static int atmel_asoc_wm8904_hw_params(struct snd_pcm_substream *substream,
substream          29 sound/soc/atmel/atmel_wm8904.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         485 sound/soc/atmel/mchp-i2s-mcc.c static int mchp_i2s_mcc_hw_params(struct snd_pcm_substream *substream,
substream         498 sound/soc/atmel/mchp-i2s-mcc.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         687 sound/soc/atmel/mchp-i2s-mcc.c static int mchp_i2s_mcc_hw_free(struct snd_pcm_substream *substream,
substream         691 sound/soc/atmel/mchp-i2s-mcc.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         734 sound/soc/atmel/mchp-i2s-mcc.c static int mchp_i2s_mcc_trigger(struct snd_pcm_substream *substream, int cmd,
substream         738 sound/soc/atmel/mchp-i2s-mcc.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         796 sound/soc/atmel/mchp-i2s-mcc.c static int mchp_i2s_mcc_startup(struct snd_pcm_substream *substream,
substream         190 sound/soc/au1x/ac97c.c static int alchemy_ac97c_startup(struct snd_pcm_substream *substream,
substream         194 sound/soc/au1x/ac97c.c 	snd_soc_dai_set_dma_data(dai, substream, &ctx->dmaids[0]);
substream          95 sound/soc/au1x/db1200.c static int db1200_i2s_startup(struct snd_pcm_substream *substream)
substream          97 sound/soc/au1x/db1200.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          46 sound/soc/au1x/dbdma2.c 	struct snd_pcm_substream *substream;
substream         115 sound/soc/au1x/dbdma2.c 	snd_pcm_period_elapsed(cd->substream);
substream         128 sound/soc/au1x/dbdma2.c 	snd_pcm_period_elapsed(cd->substream);
substream         193 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_hw_params(struct snd_pcm_substream *substream,
substream         196 sound/soc/au1x/dbdma2.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         200 sound/soc/au1x/dbdma2.c 	ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         204 sound/soc/au1x/dbdma2.c 	stype = substream->stream;
substream         205 sound/soc/au1x/dbdma2.c 	pcd = to_dmadata(substream);
substream         222 sound/soc/au1x/dbdma2.c 	pcd->substream = substream;
substream         235 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_hw_free(struct snd_pcm_substream *substream)
substream         237 sound/soc/au1x/dbdma2.c 	snd_pcm_lib_free_pages(substream);
substream         241 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_prepare(struct snd_pcm_substream *substream)
substream         243 sound/soc/au1x/dbdma2.c 	struct au1xpsc_audio_dmadata *pcd = to_dmadata(substream);
substream         247 sound/soc/au1x/dbdma2.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         258 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         260 sound/soc/au1x/dbdma2.c 	u32 c = to_dmadata(substream)->ddma_chan;
substream         278 sound/soc/au1x/dbdma2.c au1xpsc_pcm_pointer(struct snd_pcm_substream *substream)
substream         280 sound/soc/au1x/dbdma2.c 	return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos);
substream         283 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_open(struct snd_pcm_substream *substream)
substream         285 sound/soc/au1x/dbdma2.c 	struct au1xpsc_audio_dmadata *pcd = to_dmadata(substream);
substream         286 sound/soc/au1x/dbdma2.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         287 sound/soc/au1x/dbdma2.c 	int stype = substream->stream, *dmaids;
substream         289 sound/soc/au1x/dbdma2.c 	dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         295 sound/soc/au1x/dbdma2.c 	snd_soc_set_runtime_hwparams(substream, &au1xpsc_pcm_hardware);
substream         299 sound/soc/au1x/dbdma2.c static int au1xpsc_pcm_close(struct snd_pcm_substream *substream)
substream         301 sound/soc/au1x/dbdma2.c 	au1x_pcm_dbdma_free(to_dmadata(substream));
substream          34 sound/soc/au1x/dma.c 	struct snd_pcm_substream *substream;
substream          67 sound/soc/au1x/dma.c 	struct snd_pcm_substream *substream = stream->substream;
substream          68 sound/soc/au1x/dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         137 sound/soc/au1x/dma.c 	struct snd_pcm_substream *substream = stream->substream;
substream         162 sound/soc/au1x/dma.c 	snd_pcm_period_elapsed(substream);
substream         190 sound/soc/au1x/dma.c static int alchemy_pcm_open(struct snd_pcm_substream *substream)
substream         192 sound/soc/au1x/dma.c 	struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream);
substream         193 sound/soc/au1x/dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         194 sound/soc/au1x/dma.c 	int *dmaids, s = substream->stream;
substream         197 sound/soc/au1x/dma.c 	dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         209 sound/soc/au1x/dma.c 	ctx->stream[s].substream = substream;
substream         211 sound/soc/au1x/dma.c 	snd_soc_set_runtime_hwparams(substream, &alchemy_pcm_hardware);
substream         216 sound/soc/au1x/dma.c static int alchemy_pcm_close(struct snd_pcm_substream *substream)
substream         218 sound/soc/au1x/dma.c 	struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream);
substream         219 sound/soc/au1x/dma.c 	int stype = substream->stream;
substream         221 sound/soc/au1x/dma.c 	ctx->stream[stype].substream = NULL;
substream         227 sound/soc/au1x/dma.c static int alchemy_pcm_hw_params(struct snd_pcm_substream *substream,
substream         230 sound/soc/au1x/dma.c 	struct audio_stream *stream = ss_to_as(substream);
substream         233 sound/soc/au1x/dma.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         241 sound/soc/au1x/dma.c 		snd_pcm_lib_free_pages(substream);
substream         246 sound/soc/au1x/dma.c static int alchemy_pcm_hw_free(struct snd_pcm_substream *substream)
substream         248 sound/soc/au1x/dma.c 	struct audio_stream *stream = ss_to_as(substream);
substream         250 sound/soc/au1x/dma.c 	return snd_pcm_lib_free_pages(substream);
substream         253 sound/soc/au1x/dma.c static int alchemy_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         255 sound/soc/au1x/dma.c 	struct audio_stream *stream = ss_to_as(substream);
substream         136 sound/soc/au1x/i2sc.c static int au1xi2s_trigger(struct snd_pcm_substream *substream,
substream         140 sound/soc/au1x/i2sc.c 	int stype = SUBSTREAM_TYPE(substream);
substream         181 sound/soc/au1x/i2sc.c static int au1xi2s_hw_params(struct snd_pcm_substream *substream,
substream         197 sound/soc/au1x/i2sc.c static int au1xi2s_startup(struct snd_pcm_substream *substream,
substream         201 sound/soc/au1x/i2sc.c 	snd_soc_dai_set_dma_data(dai, substream, &ctx->dmaids[0]);
substream         207 sound/soc/au1x/psc-ac97.c static int au1xpsc_ac97_hw_params(struct snd_pcm_substream *substream,
substream         213 sound/soc/au1x/psc-ac97.c 	int chans, t, stype = substream->stream;
substream         288 sound/soc/au1x/psc-ac97.c static int au1xpsc_ac97_trigger(struct snd_pcm_substream *substream,
substream         292 sound/soc/au1x/psc-ac97.c 	int ret, stype = substream->stream;
substream         322 sound/soc/au1x/psc-ac97.c static int au1xpsc_ac97_startup(struct snd_pcm_substream *substream,
substream         326 sound/soc/au1x/psc-ac97.c 	snd_soc_dai_set_dma_data(dai, substream, &pscdata->dmaids[0]);
substream         110 sound/soc/au1x/psc-i2s.c static int au1xpsc_i2s_hw_params(struct snd_pcm_substream *substream,
substream         236 sound/soc/au1x/psc-i2s.c static int au1xpsc_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         240 sound/soc/au1x/psc-i2s.c 	int ret, stype = substream->stream;
substream         257 sound/soc/au1x/psc-i2s.c static int au1xpsc_i2s_startup(struct snd_pcm_substream *substream,
substream         261 sound/soc/au1x/psc-i2s.c 	snd_soc_dai_set_dma_data(dai, substream, &pscdata->dmaids[0]);
substream         329 sound/soc/bcm/bcm2835-i2s.c static int bcm2835_i2s_hw_params(struct snd_pcm_substream *substream,
substream         617 sound/soc/bcm/bcm2835-i2s.c static int bcm2835_i2s_prepare(struct snd_pcm_substream *substream,
substream         631 sound/soc/bcm/bcm2835-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK
substream         634 sound/soc/bcm/bcm2835-i2s.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE
substream         642 sound/soc/bcm/bcm2835-i2s.c 		struct snd_pcm_substream *substream,
substream         647 sound/soc/bcm/bcm2835-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         660 sound/soc/bcm/bcm2835-i2s.c static int bcm2835_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         672 sound/soc/bcm/bcm2835-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         684 sound/soc/bcm/bcm2835-i2s.c 		bcm2835_i2s_stop(dev, substream, dai);
substream         693 sound/soc/bcm/bcm2835-i2s.c static int bcm2835_i2s_startup(struct snd_pcm_substream *substream,
substream         718 sound/soc/bcm/bcm2835-i2s.c static void bcm2835_i2s_shutdown(struct snd_pcm_substream *substream,
substream         723 sound/soc/bcm/bcm2835-i2s.c 	bcm2835_i2s_stop(dev, substream, dai);
substream         208 sound/soc/bcm/cygnus-pcm.c 				struct snd_pcm_substream *substream)
substream         210 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         212 sound/soc/bcm/cygnus-pcm.c 	return snd_soc_dai_get_dma_data(soc_runtime->cpu_dai, substream);
substream         256 sound/soc/bcm/cygnus-pcm.c static int configure_ringbuf_regs(struct snd_pcm_substream *substream)
substream         262 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         265 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         305 sound/soc/bcm/cygnus-pcm.c static struct ringbuf_regs *get_ringbuf(struct snd_pcm_substream *substream)
substream         310 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         312 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         320 sound/soc/bcm/cygnus-pcm.c static void enable_intr(struct snd_pcm_substream *substream)
substream         325 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         330 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         354 sound/soc/bcm/cygnus-pcm.c static void disable_intr(struct snd_pcm_substream *substream)
substream         356 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         360 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         367 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         379 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         386 sound/soc/bcm/cygnus-pcm.c 		enable_intr(substream);
substream         391 sound/soc/bcm/cygnus-pcm.c 		disable_intr(substream);
substream         400 sound/soc/bcm/cygnus-pcm.c static void cygnus_pcm_period_elapsed(struct snd_pcm_substream *substream)
substream         406 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         408 sound/soc/bcm/cygnus-pcm.c 	p_rbuf = get_ringbuf(substream);
substream         414 sound/soc/bcm/cygnus-pcm.c 	snd_pcm_period_elapsed(substream);
substream         416 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         580 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_open(struct snd_pcm_substream *substream)
substream         582 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         583 sound/soc/bcm/cygnus-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         587 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         593 sound/soc/bcm/cygnus-pcm.c 	snd_soc_set_runtime_hwparams(substream, &cygnus_pcm_hw);
substream         608 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         609 sound/soc/bcm/cygnus-pcm.c 		aio->play_stream = substream;
substream         611 sound/soc/bcm/cygnus-pcm.c 		aio->capture_stream = substream;
substream         616 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_close(struct snd_pcm_substream *substream)
substream         618 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         621 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         625 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         636 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_hw_params(struct snd_pcm_substream *substream,
substream         639 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         640 sound/soc/bcm/cygnus-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         643 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         646 sound/soc/bcm/cygnus-pcm.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         652 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_hw_free(struct snd_pcm_substream *substream)
substream         654 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         657 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         660 sound/soc/bcm/cygnus-pcm.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         664 sound/soc/bcm/cygnus-pcm.c static int cygnus_pcm_prepare(struct snd_pcm_substream *substream)
substream         666 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         667 sound/soc/bcm/cygnus-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         674 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         677 sound/soc/bcm/cygnus-pcm.c 	bufsize = snd_pcm_lib_buffer_bytes(substream);
substream         678 sound/soc/bcm/cygnus-pcm.c 	periodsize = snd_pcm_lib_period_bytes(substream);
substream         683 sound/soc/bcm/cygnus-pcm.c 	configure_ringbuf_regs(substream);
substream         685 sound/soc/bcm/cygnus-pcm.c 	p_rbuf = get_ringbuf(substream);
substream         689 sound/soc/bcm/cygnus-pcm.c 	is_play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0;
substream         697 sound/soc/bcm/cygnus-pcm.c static snd_pcm_uframes_t cygnus_pcm_pointer(struct snd_pcm_substream *substream)
substream         703 sound/soc/bcm/cygnus-pcm.c 	aio = cygnus_dai_get_dma_data(substream);
substream         709 sound/soc/bcm/cygnus-pcm.c 	p_rbuf = get_ringbuf(substream);
substream         710 sound/soc/bcm/cygnus-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         723 sound/soc/bcm/cygnus-pcm.c 	return bytes_to_frames(substream->runtime, res);
substream         728 sound/soc/bcm/cygnus-pcm.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream         729 sound/soc/bcm/cygnus-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         730 sound/soc/bcm/cygnus-pcm.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         767 sound/soc/bcm/cygnus-pcm.c 	struct snd_pcm_substream *substream;
substream         770 sound/soc/bcm/cygnus-pcm.c 	substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         771 sound/soc/bcm/cygnus-pcm.c 	if (substream) {
substream         772 sound/soc/bcm/cygnus-pcm.c 		buf = &substream->dma_buffer;
substream         780 sound/soc/bcm/cygnus-pcm.c 	substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         781 sound/soc/bcm/cygnus-pcm.c 	if (substream) {
substream         782 sound/soc/bcm/cygnus-pcm.c 		buf = &substream->dma_buffer;
substream         802 sound/soc/bcm/cygnus-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         809 sound/soc/bcm/cygnus-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         620 sound/soc/bcm/cygnus-ssp.c static int cygnus_ssp_hw_params(struct snd_pcm_substream *substream,
substream         655 sound/soc/bcm/cygnus-ssp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         743 sound/soc/bcm/cygnus-ssp.c static int cygnus_ssp_startup(struct snd_pcm_substream *substream,
substream         748 sound/soc/bcm/cygnus-ssp.c 	snd_soc_dai_set_dma_data(dai, substream, aio);
substream         749 sound/soc/bcm/cygnus-ssp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         754 sound/soc/bcm/cygnus-ssp.c 	substream->runtime->hw.rate_min = CYGNUS_RATE_MIN;
substream         755 sound/soc/bcm/cygnus-ssp.c 	substream->runtime->hw.rate_max = CYGNUS_RATE_MAX;
substream         757 sound/soc/bcm/cygnus-ssp.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         762 sound/soc/bcm/cygnus-ssp.c static void cygnus_ssp_shutdown(struct snd_pcm_substream *substream,
substream         767 sound/soc/bcm/cygnus-ssp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         783 sound/soc/bcm/cygnus-ssp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         932 sound/soc/bcm/cygnus-ssp.c static int cygnus_ssp_trigger(struct snd_pcm_substream *substream, int cmd,
substream         945 sound/soc/bcm/cygnus-ssp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         956 sound/soc/bcm/cygnus-ssp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          22 sound/soc/cirrus/edb93xx.c static int edb93xx_hw_params(struct snd_pcm_substream *substream,
substream          25 sound/soc/cirrus/edb93xx.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         250 sound/soc/cirrus/ep93xx-ac97.c static int ep93xx_ac97_trigger(struct snd_pcm_substream *substream,
substream         260 sound/soc/cirrus/ep93xx-ac97.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         284 sound/soc/cirrus/ep93xx-ac97.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         211 sound/soc/cirrus/ep93xx-i2s.c static void ep93xx_i2s_shutdown(struct snd_pcm_substream *substream,
substream         216 sound/soc/cirrus/ep93xx-i2s.c 	ep93xx_i2s_disable(info, substream->stream);
substream         295 sound/soc/cirrus/ep93xx-i2s.c static int ep93xx_i2s_hw_params(struct snd_pcm_substream *substream,
substream         320 sound/soc/cirrus/ep93xx-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         351 sound/soc/cirrus/ep93xx-i2s.c 	ep93xx_i2s_enable(info, substream->stream);
substream          22 sound/soc/cirrus/snappercl15.c static int snappercl15_hw_params(struct snd_pcm_substream *substream,
substream          25 sound/soc/cirrus/snappercl15.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         918 sound/soc/codecs/88pm860x-codec.c static int pm860x_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1015 sound/soc/codecs/88pm860x-codec.c static int pm860x_i2s_hw_params(struct snd_pcm_substream *substream,
substream          32 sound/soc/codecs/ac97.c static int ac97_prepare(struct snd_pcm_substream *substream,
substream          38 sound/soc/codecs/ac97.c 	int reg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
substream          40 sound/soc/codecs/ac97.c 	return snd_ac97_set_rate(ac97, reg, substream->runtime->rate);
substream         162 sound/soc/codecs/ad1836.c static int ad1836_hw_params(struct snd_pcm_substream *substream,
substream         312 sound/soc/codecs/ad193x.c static int ad193x_hw_params(struct snd_pcm_substream *substream,
substream         363 sound/soc/codecs/ad193x.c static int ad193x_startup(struct snd_pcm_substream *substream,
substream         366 sound/soc/codecs/ad193x.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1030 sound/soc/codecs/adau1373.c static int adau1373_hw_params(struct snd_pcm_substream *substream,
substream         434 sound/soc/codecs/adau1701.c static int adau1701_hw_params(struct snd_pcm_substream *substream,
substream         471 sound/soc/codecs/adau1701.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         617 sound/soc/codecs/adau1701.c static int adau1701_startup(struct snd_pcm_substream *substream,
substream         622 sound/soc/codecs/adau1701.c 	return sigmadsp_restrict_params(adau1701->sigmadsp, substream);
substream         458 sound/soc/codecs/adau17x1.c static int adau17x1_hw_params(struct snd_pcm_substream *substream,
substream         748 sound/soc/codecs/adau17x1.c static int adau17x1_startup(struct snd_pcm_substream *substream,
substream         754 sound/soc/codecs/adau17x1.c 		return sigmadsp_restrict_params(adau->sigmadsp, substream);
substream         293 sound/soc/codecs/adau1977.c static int adau1977_hw_params(struct snd_pcm_substream *substream,
substream         703 sound/soc/codecs/adau1977.c static int adau1977_startup(struct snd_pcm_substream *substream,
substream         715 sound/soc/codecs/adau1977.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         719 sound/soc/codecs/adau1977.c 		snd_pcm_hw_constraint_minmax(substream->runtime,
substream         723 sound/soc/codecs/adau1977.c 		snd_pcm_hw_constraint_mask64(substream->runtime,
substream         513 sound/soc/codecs/adav80x.c static int adav80x_hw_params(struct snd_pcm_substream *substream,
substream         523 sound/soc/codecs/adav80x.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         722 sound/soc/codecs/adav80x.c static int adav80x_dai_startup(struct snd_pcm_substream *substream,
substream         731 sound/soc/codecs/adav80x.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         735 sound/soc/codecs/adav80x.c static void adav80x_dai_shutdown(struct snd_pcm_substream *substream,
substream          97 sound/soc/codecs/ak4104.c static int ak4104_hw_params(struct snd_pcm_substream *substream,
substream         235 sound/soc/codecs/ak4118.c static int ak4118_hw_params(struct snd_pcm_substream *substream,
substream         313 sound/soc/codecs/ak4458.c static int ak4458_hw_params(struct snd_pcm_substream *substream,
substream         482 sound/soc/codecs/ak4458.c static int ak4458_startup(struct snd_pcm_substream *substream,
substream         487 sound/soc/codecs/ak4458.c 	ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         258 sound/soc/codecs/ak4535.c static int ak4535_hw_params(struct snd_pcm_substream *substream,
substream         239 sound/soc/codecs/ak4613.c static void ak4613_dai_shutdown(struct snd_pcm_substream *substream,
substream         301 sound/soc/codecs/ak4613.c static int ak4613_dai_startup(struct snd_pcm_substream *substream,
substream         309 sound/soc/codecs/ak4613.c 	ak4613_hw_constraints(priv, substream->runtime);
substream         361 sound/soc/codecs/ak4613.c static int ak4613_dai_hw_params(struct snd_pcm_substream *substream,
substream         372 sound/soc/codecs/ak4613.c 	int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         500 sound/soc/codecs/ak4613.c static int ak4613_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         533 sound/soc/codecs/ak4613.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         314 sound/soc/codecs/ak4641.c static int ak4641_i2s_hw_params(struct snd_pcm_substream *substream,
substream         347 sound/soc/codecs/ak4641.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         277 sound/soc/codecs/ak4642.c static int ak4642_dai_startup(struct snd_pcm_substream *substream,
substream         280 sound/soc/codecs/ak4642.c 	int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         320 sound/soc/codecs/ak4642.c static void ak4642_dai_shutdown(struct snd_pcm_substream *substream,
substream         323 sound/soc/codecs/ak4642.c 	int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         467 sound/soc/codecs/ak4642.c static int ak4642_dai_hw_params(struct snd_pcm_substream *substream,
substream         421 sound/soc/codecs/ak4671.c static int ak4671_hw_params(struct snd_pcm_substream *substream,
substream          98 sound/soc/codecs/ak5386.c static int ak5386_hw_params(struct snd_pcm_substream *substream,
substream         121 sound/soc/codecs/ak5386.c static int ak5386_hw_free(struct snd_pcm_substream *substream,
substream         124 sound/soc/codecs/ak5558.c static int ak5558_hw_params(struct snd_pcm_substream *substream,
substream         234 sound/soc/codecs/ak5558.c static int ak5558_startup(struct snd_pcm_substream *substream,
substream         237 sound/soc/codecs/ak5558.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         696 sound/soc/codecs/alc5623.c static int alc5623_pcm_hw_params(struct snd_pcm_substream *substream,
substream         867 sound/soc/codecs/alc5632.c static int alc5632_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1615 sound/soc/codecs/arizona.c static int arizona_startup(struct snd_pcm_substream *substream,
substream        1623 sound/soc/codecs/arizona.c 	if (!substream->runtime)
substream        1644 sound/soc/codecs/arizona.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1674 sound/soc/codecs/arizona.c static int arizona_hw_params_rate(struct snd_pcm_substream *substream,
substream        1774 sound/soc/codecs/arizona.c static int arizona_hw_params(struct snd_pcm_substream *substream,
substream        1860 sound/soc/codecs/arizona.c 	ret = arizona_hw_params_rate(substream, params, dai);
substream        1114 sound/soc/codecs/cpcap.c static int cpcap_hifi_hw_params(struct snd_pcm_substream *substream,
substream        1243 sound/soc/codecs/cpcap.c static int cpcap_voice_hw_params(struct snd_pcm_substream *substream,
substream        1253 sound/soc/codecs/cpcap.c 	int direction = substream->stream;
substream         175 sound/soc/codecs/cros_ec_codec.c static int cros_ec_i2s_hw_params(struct snd_pcm_substream *substream,
substream         478 sound/soc/codecs/cs35l33.c static int cs35l33_pcm_hw_params(struct snd_pcm_substream *substream,
substream         520 sound/soc/codecs/cs35l33.c static int cs35l33_pcm_startup(struct snd_pcm_substream *substream,
substream         523 sound/soc/codecs/cs35l33.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         541 sound/soc/codecs/cs35l34.c static int cs35l34_pcm_hw_params(struct snd_pcm_substream *substream,
substream         576 sound/soc/codecs/cs35l34.c static int cs35l34_pcm_startup(struct snd_pcm_substream *substream,
substream         580 sound/soc/codecs/cs35l34.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         465 sound/soc/codecs/cs35l35.c static int cs35l35_hw_params(struct snd_pcm_substream *substream,
substream         518 sound/soc/codecs/cs35l35.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         603 sound/soc/codecs/cs35l35.c static int cs35l35_pcm_startup(struct snd_pcm_substream *substream,
substream         609 sound/soc/codecs/cs35l35.c 	if (!substream->runtime)
substream         612 sound/soc/codecs/cs35l35.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         631 sound/soc/codecs/cs35l35.c static int cs35l35_pdm_startup(struct snd_pcm_substream *substream,
substream         637 sound/soc/codecs/cs35l35.c 	if (!substream->runtime)
substream         640 sound/soc/codecs/cs35l35.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         863 sound/soc/codecs/cs35l36.c static int cs35l36_pcm_hw_params(struct snd_pcm_substream *substream,
substream         895 sound/soc/codecs/cs35l36.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         963 sound/soc/codecs/cs35l36.c static int cs35l36_pcm_startup(struct snd_pcm_substream *substream,
substream         966 sound/soc/codecs/cs35l36.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         403 sound/soc/codecs/cs4265.c static int cs4265_pcm_hw_params(struct snd_pcm_substream *substream,
substream         411 sound/soc/codecs/cs4265.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
substream         325 sound/soc/codecs/cs4270.c static int cs4270_hw_params(struct snd_pcm_substream *substream,
substream         339 sound/soc/codecs/cs4271.c static int cs4271_hw_params(struct snd_pcm_substream *substream,
substream         358 sound/soc/codecs/cs4271.c 		if ((substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         360 sound/soc/codecs/cs4271.c 		    (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
substream         825 sound/soc/codecs/cs42l42.c static int cs42l42_pcm_hw_params(struct snd_pcm_substream *substream,
substream         363 sound/soc/codecs/cs42l51.c static int cs42l51_hw_params(struct snd_pcm_substream *substream,
substream         803 sound/soc/codecs/cs42l52.c static int cs42l52_pcm_hw_params(struct snd_pcm_substream *substream,
substream         858 sound/soc/codecs/cs42l56.c static int cs42l56_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1044 sound/soc/codecs/cs42l73.c static int cs42l73_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1144 sound/soc/codecs/cs42l73.c static int cs42l73_pcm_startup(struct snd_pcm_substream *substream,
substream        1147 sound/soc/codecs/cs42l73.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         260 sound/soc/codecs/cs42xx8.c static int cs42xx8_hw_params(struct snd_pcm_substream *substream,
substream         266 sound/soc/codecs/cs42xx8.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         349 sound/soc/codecs/cs42xx8.c static int cs42xx8_hw_free(struct snd_pcm_substream *substream,
substream         354 sound/soc/codecs/cs42xx8.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         770 sound/soc/codecs/cs43130.c static int cs43130_dsd_hw_params(struct snd_pcm_substream *substream,
substream         829 sound/soc/codecs/cs43130.c static int cs43130_hw_params(struct snd_pcm_substream *substream,
substream         943 sound/soc/codecs/cs43130.c static int cs43130_hw_free(struct snd_pcm_substream *substream,
substream        1444 sound/soc/codecs/cs43130.c static int cs43130_pcm_startup(struct snd_pcm_substream *substream,
substream        1447 sound/soc/codecs/cs43130.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        1461 sound/soc/codecs/cs43130.c static int cs43130_dop_startup(struct snd_pcm_substream *substream,
substream        1464 sound/soc/codecs/cs43130.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream          78 sound/soc/codecs/cs4341.c static int cs4341_hw_params(struct snd_pcm_substream *substream,
substream          93 sound/soc/codecs/cs4349.c static int cs4349_pcm_hw_params(struct snd_pcm_substream *substream,
substream         621 sound/soc/codecs/cs53l30.c static int cs53l30_pcm_hw_params(struct snd_pcm_substream *substream,
substream         751 sound/soc/codecs/cs53l30.c static int cs53l30_pcm_startup(struct snd_pcm_substream *substream,
substream         754 sound/soc/codecs/cs53l30.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         913 sound/soc/codecs/cx2072x.c static int cx2072x_hw_params(struct snd_pcm_substream *substream,
substream         754 sound/soc/codecs/da7210.c static int da7210_hw_params(struct snd_pcm_substream *substream,
substream        1145 sound/soc/codecs/da7213.c static int da7213_hw_params(struct snd_pcm_substream *substream,
substream        2087 sound/soc/codecs/da7218.c static int da7218_hw_params(struct snd_pcm_substream *substream,
substream        1550 sound/soc/codecs/da7219.c static int da7219_hw_params(struct snd_pcm_substream *substream,
substream         945 sound/soc/codecs/da732x.c static int da732x_hw_params(struct snd_pcm_substream *substream,
substream        1047 sound/soc/codecs/da9055.c static int da9055_hw_params(struct snd_pcm_substream *substream,
substream          33 sound/soc/codecs/dmic.c static int dmic_daiops_trigger(struct snd_pcm_substream *substream,
substream          65 sound/soc/codecs/es7134.c static int es7134_hw_params(struct snd_pcm_substream *substream,
substream          86 sound/soc/codecs/es7241.c static int es7241_hw_params(struct snd_pcm_substream *substream,
substream         451 sound/soc/codecs/es8316.c static int es8316_pcm_startup(struct snd_pcm_substream *substream,
substream         458 sound/soc/codecs/es8316.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         465 sound/soc/codecs/es8316.c static int es8316_pcm_hw_params(struct snd_pcm_substream *substream,
substream         459 sound/soc/codecs/es8328.c static int es8328_startup(struct snd_pcm_substream *substream,
substream         466 sound/soc/codecs/es8328.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         473 sound/soc/codecs/es8328.c static int es8328_hw_params(struct snd_pcm_substream *substream,
substream         484 sound/soc/codecs/es8328.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         536 sound/soc/codecs/es8328.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          35 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_open(struct snd_pcm_substream *substream,
substream          37 sound/soc/codecs/hdac_hda.c static void hdac_hda_dai_close(struct snd_pcm_substream *substream,
substream          39 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_prepare(struct snd_pcm_substream *substream,
substream          41 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_hw_params(struct snd_pcm_substream *substream,
substream          44 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_hw_free(struct snd_pcm_substream *substream,
substream         146 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_hw_params(struct snd_pcm_substream *substream,
substream         155 sound/soc/codecs/hdac_hda.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         175 sound/soc/codecs/hdac_hda.c 	hda_pvt->pcm[dai->id].format_val[substream->stream] = format_val;
substream         179 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_hw_free(struct snd_pcm_substream *substream,
substream         192 sound/soc/codecs/hdac_hda.c 	hda_stream = &pcm->stream[substream->stream];
substream         193 sound/soc/codecs/hdac_hda.c 	snd_hda_codec_cleanup(&hda_pvt->codec, hda_stream, substream);
substream         198 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_prepare(struct snd_pcm_substream *substream,
substream         216 sound/soc/codecs/hdac_hda.c 	hda_stream = &pcm->stream[substream->stream];
substream         218 sound/soc/codecs/hdac_hda.c 	stream = hda_pvt->pcm[dai->id].stream_tag[substream->stream];
substream         219 sound/soc/codecs/hdac_hda.c 	format_val = hda_pvt->pcm[dai->id].format_val[substream->stream];
substream         222 sound/soc/codecs/hdac_hda.c 				    stream, format_val, substream);
substream         229 sound/soc/codecs/hdac_hda.c static int hdac_hda_dai_open(struct snd_pcm_substream *substream,
substream         245 sound/soc/codecs/hdac_hda.c 	hda_stream = &pcm->stream[substream->stream];
substream         247 sound/soc/codecs/hdac_hda.c 	ret = hda_stream->ops.open(hda_stream, &hda_pvt->codec, substream);
substream         254 sound/soc/codecs/hdac_hda.c static void hdac_hda_dai_close(struct snd_pcm_substream *substream,
substream         267 sound/soc/codecs/hdac_hda.c 	hda_stream = &pcm->stream[substream->stream];
substream         269 sound/soc/codecs/hdac_hda.c 	hda_stream->ops.close(hda_stream, &hda_pvt->codec, substream);
substream         466 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_set_hw_params(struct snd_pcm_substream *substream,
substream         589 sound/soc/codecs/hdac_hdmi.c static int hdac_hdmi_pcm_open(struct snd_pcm_substream *substream,
substream         623 sound/soc/codecs/hdac_hdmi.c 	ret = hdac_hdmi_eld_limit_formats(substream->runtime,
substream         628 sound/soc/codecs/hdac_hdmi.c 	return snd_pcm_hw_constraint_eld(substream->runtime,
substream         632 sound/soc/codecs/hdac_hdmi.c static void hdac_hdmi_pcm_close(struct snd_pcm_substream *substream,
substream         387 sound/soc/codecs/hdmi-codec.c static int hdmi_codec_startup(struct snd_pcm_substream *substream,
substream         410 sound/soc/codecs/hdmi-codec.c 			ret = snd_pcm_hw_constraint_eld(substream->runtime,
substream         426 sound/soc/codecs/hdmi-codec.c static void hdmi_codec_shutdown(struct snd_pcm_substream *substream,
substream         437 sound/soc/codecs/hdmi-codec.c static int hdmi_codec_hw_params(struct snd_pcm_substream *substream,
substream         268 sound/soc/codecs/inno_rk3036.c static int rk3036_codec_dai_hw_params(struct snd_pcm_substream *substream,
substream         910 sound/soc/codecs/isabelle.c static int isabelle_hw_params(struct snd_pcm_substream *substream,
substream         375 sound/soc/codecs/jz4725b.c static int jz4725b_codec_hw_params(struct snd_pcm_substream *substream,
substream         406 sound/soc/codecs/jz4725b.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         150 sound/soc/codecs/jz4740.c static int jz4740_codec_hw_params(struct snd_pcm_substream *substream,
substream        1106 sound/soc/codecs/lm49453.c static int lm49453_hw_params(struct snd_pcm_substream *substream,
substream          69 sound/soc/codecs/lochnagar-sc.c static int lochnagar_sc_startup(struct snd_pcm_substream *substream,
substream          76 sound/soc/codecs/lochnagar-sc.c 	ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
substream          82 sound/soc/codecs/lochnagar-sc.c 	return snd_pcm_hw_rule_add(substream->runtime, 0,
substream          88 sound/soc/codecs/lochnagar-sc.c static int lochnagar_sc_line_startup(struct snd_pcm_substream *substream,
substream         101 sound/soc/codecs/lochnagar-sc.c 	ret = lochnagar_sc_startup(substream, dai);
substream         105 sound/soc/codecs/lochnagar-sc.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         110 sound/soc/codecs/lochnagar-sc.c static void lochnagar_sc_line_shutdown(struct snd_pcm_substream *substream,
substream        2896 sound/soc/codecs/madera.c static int madera_startup(struct snd_pcm_substream *substream,
substream        2905 sound/soc/codecs/madera.c 	if (!substream->runtime)
substream        2943 sound/soc/codecs/madera.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream        2948 sound/soc/codecs/madera.c static int madera_hw_params_rate(struct snd_pcm_substream *substream,
substream        3064 sound/soc/codecs/madera.c static int madera_hw_params(struct snd_pcm_substream *substream,
substream        3159 sound/soc/codecs/madera.c 	ret = madera_hw_params_rate(substream, params, dai);
substream         961 sound/soc/codecs/max98088.c static int max98088_dai1_hw_params(struct snd_pcm_substream *substream,
substream        1028 sound/soc/codecs/max98088.c static int max98088_dai2_hw_params(struct snd_pcm_substream *substream,
substream        1909 sound/soc/codecs/max98090.c static int max98090_dai_startup(struct snd_pcm_substream *substream,
substream        1918 sound/soc/codecs/max98090.c 		substream->runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE;
substream        1919 sound/soc/codecs/max98090.c 		snd_pcm_hw_constraint_msbits(substream->runtime, 0, 16, 16);
substream        1924 sound/soc/codecs/max98090.c static int max98090_dai_hw_params(struct snd_pcm_substream *substream,
substream        2032 sound/soc/codecs/max98090.c static int max98090_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         938 sound/soc/codecs/max98095.c static int max98095_dai1_hw_params(struct snd_pcm_substream *substream,
substream         999 sound/soc/codecs/max98095.c static int max98095_dai2_hw_params(struct snd_pcm_substream *substream,
substream        1060 sound/soc/codecs/max98095.c static int max98095_dai3_hw_params(struct snd_pcm_substream *substream,
substream          27 sound/soc/codecs/max98357a.c static int max98357a_daiops_trigger(struct snd_pcm_substream *substream,
substream         214 sound/soc/codecs/max98371.c static int max98371_dai_hw_params(struct snd_pcm_substream *substream,
substream         207 sound/soc/codecs/max98373.c static int max98373_dai_hw_params(struct snd_pcm_substream *substream,
substream         111 sound/soc/codecs/max9850.c static int max9850_hw_params(struct snd_pcm_substream *substream,
substream         251 sound/soc/codecs/max9860.c static int max9860_hw_params(struct snd_pcm_substream *substream,
substream         169 sound/soc/codecs/max9867.c static int max9867_startup(struct snd_pcm_substream *substream,
substream         176 sound/soc/codecs/max9867.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         182 sound/soc/codecs/max9867.c static int max9867_dai_hw_params(struct snd_pcm_substream *substream,
substream         424 sound/soc/codecs/max98925.c static int max98925_dai_hw_params(struct snd_pcm_substream *substream,
substream         367 sound/soc/codecs/max98926.c static int max98926_dai_hw_params(struct snd_pcm_substream *substream,
substream         306 sound/soc/codecs/max98927.c static int max98927_dai_hw_params(struct snd_pcm_substream *substream,
substream          93 sound/soc/codecs/mc13783.c static int mc13783_pcm_hw_params_dac(struct snd_pcm_substream *substream,
substream         112 sound/soc/codecs/mc13783.c static int mc13783_pcm_hw_params_codec(struct snd_pcm_substream *substream,
substream         137 sound/soc/codecs/mc13783.c static int mc13783_pcm_hw_params_sync(struct snd_pcm_substream *substream,
substream         141 sound/soc/codecs/mc13783.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         142 sound/soc/codecs/mc13783.c 		return mc13783_pcm_hw_params_dac(substream, params, dai);
substream         144 sound/soc/codecs/mc13783.c 		return mc13783_pcm_hw_params_codec(substream, params, dai);
substream          39 sound/soc/codecs/ml26124.c 	struct snd_pcm_substream *substream;
substream         324 sound/soc/codecs/ml26124.c static int ml26124_hw_params(struct snd_pcm_substream *substream,
substream         335 sound/soc/codecs/ml26124.c 	priv->substream = substream;
substream         380 sound/soc/codecs/ml26124.c 	switch (priv->substream->stream) {
substream         862 sound/soc/codecs/msm8916-wcd-digital.c static int msm8916_wcd_digital_hw_params(struct snd_pcm_substream *substream,
substream         892 sound/soc/codecs/msm8916-wcd-digital.c 	switch (substream->stream) {
substream        1072 sound/soc/codecs/msm8916-wcd-digital.c static int msm8916_wcd_digital_startup(struct snd_pcm_substream *substream,
substream        1106 sound/soc/codecs/msm8916-wcd-digital.c static void msm8916_wcd_digital_shutdown(struct snd_pcm_substream *substream,
substream         262 sound/soc/codecs/mt6351.c static int mt6351_codec_dai_hw_params(struct snd_pcm_substream *substream,
substream         271 sound/soc/codecs/mt6351.c 		__func__, substream->stream, rate);
substream         273 sound/soc/codecs/mt6351.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         275 sound/soc/codecs/mt6351.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        2203 sound/soc/codecs/mt6358.c static int mt6358_codec_dai_hw_params(struct snd_pcm_substream *substream,
substream        2213 sound/soc/codecs/mt6358.c 		 substream->stream,
substream        2215 sound/soc/codecs/mt6358.c 		 substream->number);
substream        2217 sound/soc/codecs/mt6358.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        2219 sound/soc/codecs/mt6358.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         373 sound/soc/codecs/nau8540.c static int nau8540_hw_params(struct snd_pcm_substream *substream,
substream         662 sound/soc/codecs/nau8810.c static int nau8810_pcm_hw_params(struct snd_pcm_substream *substream,
substream         824 sound/soc/codecs/nau8822.c static int nau8822_hw_params(struct snd_pcm_substream *substream,
substream        1062 sound/soc/codecs/nau8824.c static int nau8824_hw_params(struct snd_pcm_substream *substream,
substream        1078 sound/soc/codecs/nau8824.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1082 sound/soc/codecs/nau8824.c 		if (nau8824_clock_check(nau8824, substream->stream,
substream        1092 sound/soc/codecs/nau8824.c 		if (nau8824_clock_check(nau8824, substream->stream,
substream        1241 sound/soc/codecs/nau8825.c static int nau8825_hw_params(struct snd_pcm_substream *substream,
substream        1257 sound/soc/codecs/nau8825.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1260 sound/soc/codecs/nau8825.c 		if (nau8825_clock_check(nau8825, substream->stream,
substream        1271 sound/soc/codecs/nau8825.c 		if (nau8825_clock_check(nau8825, substream->stream,
substream         164 sound/soc/codecs/pcm1681.c static int pcm1681_hw_params(struct snd_pcm_substream *substream,
substream          73 sound/soc/codecs/pcm1789.c static int pcm1789_hw_params(struct snd_pcm_substream *substream,
substream         143 sound/soc/codecs/pcm1789.c static int pcm1789_trigger(struct snd_pcm_substream *substream, int cmd,
substream          93 sound/soc/codecs/pcm179x.c static int pcm179x_hw_params(struct snd_pcm_substream *substream,
substream         261 sound/soc/codecs/pcm186x.c static int pcm186x_hw_params(struct snd_pcm_substream *substream,
substream         108 sound/soc/codecs/pcm3060.c static int pcm3060_hw_params(struct snd_pcm_substream *substream,
substream         415 sound/soc/codecs/pcm3168a.c static int pcm3168a_hw_params(struct snd_pcm_substream *substream,
substream         533 sound/soc/codecs/pcm3168a.c static int pcm3168a_startup(struct snd_pcm_substream *substream,
substream         574 sound/soc/codecs/pcm3168a.c 	snd_pcm_hw_constraint_minmax(substream->runtime,
substream         582 sound/soc/codecs/pcm3168a.c 	snd_pcm_hw_constraint_minmax(substream->runtime,
substream         579 sound/soc/codecs/pcm512x.c static int pcm512x_dai_startup_master(struct snd_pcm_substream *substream,
substream         595 sound/soc/codecs/pcm512x.c 		return snd_pcm_hw_rule_add(substream->runtime, 0,
substream         616 sound/soc/codecs/pcm512x.c 	return snd_pcm_hw_constraint_ratnums(substream->runtime, 0,
substream         621 sound/soc/codecs/pcm512x.c static int pcm512x_dai_startup_slave(struct snd_pcm_substream *substream,
substream         642 sound/soc/codecs/pcm512x.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         647 sound/soc/codecs/pcm512x.c static int pcm512x_dai_startup(struct snd_pcm_substream *substream,
substream         656 sound/soc/codecs/pcm512x.c 		return pcm512x_dai_startup_master(substream, dai);
substream         659 sound/soc/codecs/pcm512x.c 		return pcm512x_dai_startup_slave(substream, dai);
substream        1163 sound/soc/codecs/pcm512x.c static int pcm512x_hw_params(struct snd_pcm_substream *substream,
substream         274 sound/soc/codecs/rk3328_codec.c static int rk3328_hw_params(struct snd_pcm_substream *substream,
substream         307 sound/soc/codecs/rk3328_codec.c static int rk3328_pcm_startup(struct snd_pcm_substream *substream,
substream         316 sound/soc/codecs/rk3328_codec.c static void rk3328_pcm_shutdown(struct snd_pcm_substream *substream,
substream        1536 sound/soc/codecs/rt1011.c static int rt1011_hw_params(struct snd_pcm_substream *substream,
substream         625 sound/soc/codecs/rt1305.c static int rt1305_hw_params(struct snd_pcm_substream *substream,
substream         453 sound/soc/codecs/rt1308.c static int rt1308_hw_params(struct snd_pcm_substream *substream,
substream         613 sound/soc/codecs/rt274.c static int rt274_hw_params(struct snd_pcm_substream *substream,
substream         671 sound/soc/codecs/rt286.c static int rt286_hw_params(struct snd_pcm_substream *substream,
substream         742 sound/soc/codecs/rt298.c static int rt298_hw_params(struct snd_pcm_substream *substream,
substream          43 sound/soc/codecs/rt5514-spi.c 	struct snd_pcm_substream *substream;
substream          84 sound/soc/codecs/rt5514-spi.c 	if (!rt5514_dsp->substream) {
substream          89 sound/soc/codecs/rt5514-spi.c 	runtime = rt5514_dsp->substream->runtime;
substream          90 sound/soc/codecs/rt5514-spi.c 	period_bytes = snd_pcm_lib_period_bytes(rt5514_dsp->substream);
substream         147 sound/soc/codecs/rt5514-spi.c 	snd_pcm_period_elapsed(rt5514_dsp->substream);
substream         159 sound/soc/codecs/rt5514-spi.c 	if (!rt5514_dsp->substream)
substream         204 sound/soc/codecs/rt5514-spi.c static int rt5514_spi_pcm_open(struct snd_pcm_substream *substream)
substream         206 sound/soc/codecs/rt5514-spi.c 	snd_soc_set_runtime_hwparams(substream, &rt5514_spi_pcm_hardware);
substream         211 sound/soc/codecs/rt5514-spi.c static int rt5514_spi_hw_params(struct snd_pcm_substream *substream,
substream         214 sound/soc/codecs/rt5514-spi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         222 sound/soc/codecs/rt5514-spi.c 	ret = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         224 sound/soc/codecs/rt5514-spi.c 	rt5514_dsp->substream = substream;
substream         237 sound/soc/codecs/rt5514-spi.c static int rt5514_spi_hw_free(struct snd_pcm_substream *substream)
substream         239 sound/soc/codecs/rt5514-spi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         245 sound/soc/codecs/rt5514-spi.c 	rt5514_dsp->substream = NULL;
substream         250 sound/soc/codecs/rt5514-spi.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         254 sound/soc/codecs/rt5514-spi.c 		struct snd_pcm_substream *substream)
substream         256 sound/soc/codecs/rt5514-spi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         257 sound/soc/codecs/rt5514-spi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         481 sound/soc/codecs/rt5514-spi.c 		if (rt5514_dsp->substream) {
substream         751 sound/soc/codecs/rt5514.c static int rt5514_hw_params(struct snd_pcm_substream *substream,
substream         956 sound/soc/codecs/rt5616.c static int rt5616_hw_params(struct snd_pcm_substream *substream,
substream        1348 sound/soc/codecs/rt5631.c static int rt5631_hifi_pcm_params(struct snd_pcm_substream *substream,
substream        1697 sound/soc/codecs/rt5640.c static int rt5640_hw_params(struct snd_pcm_substream *substream,
substream        2731 sound/soc/codecs/rt5645.c static int rt5645_hw_params(struct snd_pcm_substream *substream,
substream        1281 sound/soc/codecs/rt5651.c static int rt5651_hw_params(struct snd_pcm_substream *substream,
substream        3310 sound/soc/codecs/rt5659.c static int rt5659_hw_params(struct snd_pcm_substream *substream,
substream         835 sound/soc/codecs/rt5660.c static int rt5660_hw_params(struct snd_pcm_substream *substream,
substream        2762 sound/soc/codecs/rt5663.c static int rt5663_hw_params(struct snd_pcm_substream *substream,
substream        4105 sound/soc/codecs/rt5665.c static int rt5665_hw_params(struct snd_pcm_substream *substream,
substream        1917 sound/soc/codecs/rt5668.c static int rt5668_hw_params(struct snd_pcm_substream *substream,
substream        2265 sound/soc/codecs/rt5670.c static int rt5670_hw_params(struct snd_pcm_substream *substream,
substream        4102 sound/soc/codecs/rt5677.c static int rt5677_hw_params(struct snd_pcm_substream *substream,
substream        1995 sound/soc/codecs/rt5682.c static int rt5682_hw_params(struct snd_pcm_substream *substream,
substream        1047 sound/soc/codecs/sgtl5000.c static int sgtl5000_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1064 sound/soc/codecs/sgtl5000.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         148 sound/soc/codecs/si476x.c static int si476x_codec_hw_params(struct snd_pcm_substream *substream,
substream         802 sound/soc/codecs/sigmadsp.c 	struct snd_pcm_substream *substream)
substream         807 sound/soc/codecs/sigmadsp.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream          50 sound/soc/codecs/sigmadsp.h 	struct snd_pcm_substream *substream);
substream         331 sound/soc/codecs/sirf-audio-codec.c static int sirf_audio_codec_trigger(struct snd_pcm_substream *substream,
substream         337 sound/soc/codecs/sirf-audio-codec.c 	int playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         363 sound/soc/codecs/sirf-audio-codec.c 				substream->runtime->channels);
substream         335 sound/soc/codecs/ssm2518.c static int ssm2518_hw_params(struct snd_pcm_substream *substream,
substream         608 sound/soc/codecs/ssm2518.c static int ssm2518_startup(struct snd_pcm_substream *substream,
substream         614 sound/soc/codecs/ssm2518.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         290 sound/soc/codecs/ssm2602.c static int ssm2602_hw_params(struct snd_pcm_substream *substream,
substream         326 sound/soc/codecs/ssm2602.c static int ssm2602_startup(struct snd_pcm_substream *substream,
substream         333 sound/soc/codecs/ssm2602.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         198 sound/soc/codecs/ssm4567.c static int ssm4567_hw_params(struct snd_pcm_substream *substream,
substream         648 sound/soc/codecs/sta32x.c static int sta32x_hw_params(struct snd_pcm_substream *substream,
substream         677 sound/soc/codecs/sta350.c static int sta350_hw_params(struct snd_pcm_substream *substream,
substream         186 sound/soc/codecs/sta529.c static int sta529_hw_params(struct snd_pcm_substream *substream,
substream         235 sound/soc/codecs/sta529.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         164 sound/soc/codecs/stac9766.c static int ac97_analog_prepare(struct snd_pcm_substream *substream,
substream         168 sound/soc/codecs/stac9766.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         174 sound/soc/codecs/stac9766.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         182 sound/soc/codecs/stac9766.c static int ac97_digital_prepare(struct snd_pcm_substream *substream,
substream         186 sound/soc/codecs/stac9766.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         221 sound/soc/codecs/sti-sas.c static int sti_sas_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         285 sound/soc/codecs/sti-sas.c static int sti_sas_prepare(struct snd_pcm_substream *substream,
substream         290 sound/soc/codecs/sti-sas.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         235 sound/soc/codecs/tas2552.c static int tas2552_hw_params(struct snd_pcm_substream *substream,
substream         325 sound/soc/codecs/tas2552.c static int tas2552_prepare(struct snd_pcm_substream *substream,
substream         351 sound/soc/codecs/tas5086.c static int tas5086_hw_params(struct snd_pcm_substream *substream,
substream         274 sound/soc/codecs/tas571x.c static int tas571x_hw_params(struct snd_pcm_substream *substream,
substream          53 sound/soc/codecs/tas5720.c static int tas5720_hw_params(struct snd_pcm_substream *substream,
substream         110 sound/soc/codecs/tas6424.c static int tas6424_hw_params(struct snd_pcm_substream *substream,
substream          23 sound/soc/codecs/tfa9879.c static int tfa9879_hw_params(struct snd_pcm_substream *substream,
substream         333 sound/soc/codecs/tlv320aic23.c static int tlv320aic23_hw_params(struct snd_pcm_substream *substream,
substream         345 sound/soc/codecs/tlv320aic23.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         379 sound/soc/codecs/tlv320aic23.c static int tlv320aic23_pcm_prepare(struct snd_pcm_substream *substream,
substream         390 sound/soc/codecs/tlv320aic23.c static void tlv320aic23_shutdown(struct snd_pcm_substream *substream,
substream         401 sound/soc/codecs/tlv320aic23.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          64 sound/soc/codecs/tlv320aic26.c static int aic26_hw_params(struct snd_pcm_substream *substream,
substream          74 sound/soc/codecs/tlv320aic26.c 		substream, params);
substream         899 sound/soc/codecs/tlv320aic31xx.c static int aic31xx_hw_params(struct snd_pcm_substream *substream,
substream         766 sound/soc/codecs/tlv320aic32x4.c static int aic32x4_hw_params(struct snd_pcm_substream *substream,
substream        1043 sound/soc/codecs/tlv320aic3x.c static int aic3x_hw_params(struct snd_pcm_substream *substream,
substream        1196 sound/soc/codecs/tlv320aic3x.c static int aic3x_prepare(struct snd_pcm_substream *substream,
substream        1205 sound/soc/codecs/tlv320aic3x.c 		width = substream->runtime->sample_bits;
substream          51 sound/soc/codecs/tlv320dac33.c static void dac33_calculate_times(struct snd_pcm_substream *substream,
substream          53 sound/soc/codecs/tlv320dac33.c static int dac33_prepare_chip(struct snd_pcm_substream *substream,
substream          82 sound/soc/codecs/tlv320dac33.c 	struct snd_pcm_substream *substream;
substream         419 sound/soc/codecs/tlv320dac33.c 		if (likely(dac33->substream)) {
substream         420 sound/soc/codecs/tlv320dac33.c 			dac33_calculate_times(dac33->substream, component);
substream         421 sound/soc/codecs/tlv320dac33.c 			dac33_prepare_chip(dac33->substream, component);
substream         781 sound/soc/codecs/tlv320dac33.c static int dac33_startup(struct snd_pcm_substream *substream,
substream         788 sound/soc/codecs/tlv320dac33.c 	dac33->substream = substream;
substream         793 sound/soc/codecs/tlv320dac33.c static void dac33_shutdown(struct snd_pcm_substream *substream,
substream         799 sound/soc/codecs/tlv320dac33.c 	dac33->substream = NULL;
substream         804 sound/soc/codecs/tlv320dac33.c static int dac33_hw_params(struct snd_pcm_substream *substream,
substream         850 sound/soc/codecs/tlv320dac33.c static int dac33_prepare_chip(struct snd_pcm_substream *substream,
substream         857 sound/soc/codecs/tlv320dac33.c 	switch (substream->runtime->rate) {
substream         860 sound/soc/codecs/tlv320dac33.c 		oscset = CALC_OSCSET(substream->runtime->rate, dac33->refclk);
substream         861 sound/soc/codecs/tlv320dac33.c 		ratioset = CALC_RATIOSET(substream->runtime->rate,
substream         866 sound/soc/codecs/tlv320dac33.c 			substream->runtime->rate);
substream         878 sound/soc/codecs/tlv320dac33.c 	switch (substream->runtime->format) {
substream         888 sound/soc/codecs/tlv320dac33.c 			substream->runtime->format);
substream        1020 sound/soc/codecs/tlv320dac33.c 		if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE)
substream        1048 sound/soc/codecs/tlv320dac33.c static void dac33_calculate_times(struct snd_pcm_substream *substream,
substream        1052 sound/soc/codecs/tlv320dac33.c 	unsigned int period_size = substream->runtime->period_size;
substream        1053 sound/soc/codecs/tlv320dac33.c 	unsigned int rate = substream->runtime->rate;
substream        1095 sound/soc/codecs/tlv320dac33.c 				SAMPLES_TO_US(substream->runtime->rate,
substream        1105 sound/soc/codecs/tlv320dac33.c static int dac33_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
substream        1137 sound/soc/codecs/tlv320dac33.c 			struct snd_pcm_substream *substream,
substream        1169 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
substream        1183 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
substream        1205 sound/soc/codecs/tlv320dac33.c 						substream->runtime->rate,
substream        1246 sound/soc/codecs/tlv320dac33.c 					substream->runtime->rate,
substream        1261 sound/soc/codecs/tlv320dac33.c 					substream->runtime->rate,
substream        1089 sound/soc/codecs/tscs42xx.c static int tscs42xx_hw_params(struct snd_pcm_substream *substream,
substream        3178 sound/soc/codecs/tscs454.c static int tscs454_hw_params(struct snd_pcm_substream *substream,
substream        3236 sound/soc/codecs/tscs454.c 			substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream        3248 sound/soc/codecs/tscs454.c static int tscs454_hw_free(struct snd_pcm_substream *substream,
substream        3256 sound/soc/codecs/tscs454.c 			substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream        3259 sound/soc/codecs/tscs454.c static int tscs454_prepare(struct snd_pcm_substream *substream,
substream        1637 sound/soc/codecs/twl4030.c static int twl4030_startup(struct snd_pcm_substream *substream,
substream        1644 sound/soc/codecs/twl4030.c 		twl4030->slave_substream = substream;
substream        1656 sound/soc/codecs/twl4030.c 			snd_pcm_hw_constraint_single(substream->runtime,
substream        1660 sound/soc/codecs/twl4030.c 		twl4030->master_substream = substream;
substream        1666 sound/soc/codecs/twl4030.c static void twl4030_shutdown(struct snd_pcm_substream *substream,
substream        1672 sound/soc/codecs/twl4030.c 	if (twl4030->master_substream == substream)
substream        1685 sound/soc/codecs/twl4030.c 	if (substream->runtime->channels == 4)
substream        1686 sound/soc/codecs/twl4030.c 		twl4030_tdm_enable(component, substream->stream, 0);
substream        1689 sound/soc/codecs/twl4030.c static int twl4030_hw_params(struct snd_pcm_substream *substream,
substream        1706 sound/soc/codecs/twl4030.c 			twl4030_tdm_enable(component, substream->stream, 1);
substream        1802 sound/soc/codecs/twl4030.c 		twl4030_constraints(twl4030, substream);
substream        1922 sound/soc/codecs/twl4030.c static int twl4030_voice_startup(struct snd_pcm_substream *substream,
substream        1954 sound/soc/codecs/twl4030.c static void twl4030_voice_shutdown(struct snd_pcm_substream *substream,
substream        1960 sound/soc/codecs/twl4030.c 	twl4030_voice_enable(component, substream->stream, 0);
substream        1963 sound/soc/codecs/twl4030.c static int twl4030_voice_hw_params(struct snd_pcm_substream *substream,
substream        1972 sound/soc/codecs/twl4030.c 	twl4030_voice_enable(component, substream->stream, 1);
substream         859 sound/soc/codecs/twl6040.c static int twl6040_startup(struct snd_pcm_substream *substream,
substream         865 sound/soc/codecs/twl6040.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         872 sound/soc/codecs/twl6040.c static int twl6040_hw_params(struct snd_pcm_substream *substream,
substream         909 sound/soc/codecs/twl6040.c static int twl6040_prepare(struct snd_pcm_substream *substream,
substream          90 sound/soc/codecs/uda1334.c static int uda1334_startup(struct snd_pcm_substream *substream,
substream         106 sound/soc/codecs/uda1334.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         115 sound/soc/codecs/uda1334.c static void uda1334_shutdown(struct snd_pcm_substream *substream,
substream         136 sound/soc/codecs/uda134x.c static int uda134x_startup(struct snd_pcm_substream *substream,
substream         150 sound/soc/codecs/uda134x.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         154 sound/soc/codecs/uda134x.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         158 sound/soc/codecs/uda134x.c 		uda134x->slave_substream = substream;
substream         160 sound/soc/codecs/uda134x.c 		uda134x->master_substream = substream;
substream         165 sound/soc/codecs/uda134x.c static void uda134x_shutdown(struct snd_pcm_substream *substream,
substream         171 sound/soc/codecs/uda134x.c 	if (uda134x->master_substream == substream)
substream         177 sound/soc/codecs/uda134x.c static int uda134x_hw_params(struct snd_pcm_substream *substream,
substream         185 sound/soc/codecs/uda134x.c 	if (substream == uda134x->slave_substream) {
substream         506 sound/soc/codecs/uda1380.c static int uda1380_trigger(struct snd_pcm_substream *substream, int cmd,
substream         530 sound/soc/codecs/uda1380.c static int uda1380_pcm_hw_params(struct snd_pcm_substream *substream,
substream         559 sound/soc/codecs/uda1380.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         568 sound/soc/codecs/uda1380.c static void uda1380_pcm_shutdown(struct snd_pcm_substream *substream,
substream         580 sound/soc/codecs/uda1380.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1866 sound/soc/codecs/wcd9335.c static int wcd9335_hw_params(struct snd_pcm_substream *substream,
substream        1875 sound/soc/codecs/wcd9335.c 	switch (substream->stream) {
substream        1942 sound/soc/codecs/wcd9335.c 			substream->stream);
substream        1947 sound/soc/codecs/wcd9335.c 	wcd9335_slim_set_hw_params(wcd, &wcd->dai[dai->id], substream->stream);
substream        1952 sound/soc/codecs/wcd9335.c static int wcd9335_trigger(struct snd_pcm_substream *substream, int cmd,
substream         287 sound/soc/codecs/wl1273.c static int wl1273_startup(struct snd_pcm_substream *substream,
substream         295 sound/soc/codecs/wl1273.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         297 sound/soc/codecs/wl1273.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         301 sound/soc/codecs/wl1273.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         307 sound/soc/codecs/wl1273.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         320 sound/soc/codecs/wl1273.c static int wl1273_hw_params(struct snd_pcm_substream *substream,
substream         352 sound/soc/codecs/wl1273.c 	    substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         358 sound/soc/codecs/wl1273.c 	    substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          75 sound/soc/codecs/wm1250-ev1.c static int wm1250_ev1_hw_params(struct snd_pcm_substream *substream,
substream        1692 sound/soc/codecs/wm2200.c static int wm2200_hw_params(struct snd_pcm_substream *substream,
substream        1757 sound/soc/codecs/wm2200.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream        1766 sound/soc/codecs/wm2200.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1395 sound/soc/codecs/wm5100.c static int wm5100_hw_params(struct snd_pcm_substream *substream,
substream        1478 sound/soc/codecs/wm5100.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream        1487 sound/soc/codecs/wm5100.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         903 sound/soc/codecs/wm8350.c static int wm8350_pcm_hw_params(struct snd_pcm_substream *substream,
substream         933 sound/soc/codecs/wm8350.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1080 sound/soc/codecs/wm8400.c static int wm8400_hw_params(struct snd_pcm_substream *substream,
substream         440 sound/soc/codecs/wm8510.c static int wm8510_pcm_hw_params(struct snd_pcm_substream *substream,
substream         121 sound/soc/codecs/wm8523.c static int wm8523_startup(struct snd_pcm_substream *substream,
substream         136 sound/soc/codecs/wm8523.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         143 sound/soc/codecs/wm8523.c static int wm8523_hw_params(struct snd_pcm_substream *substream,
substream          59 sound/soc/codecs/wm8524.c static int wm8524_startup(struct snd_pcm_substream *substream,
substream          74 sound/soc/codecs/wm8524.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream          83 sound/soc/codecs/wm8524.c static void wm8524_shutdown(struct snd_pcm_substream *substream,
substream         534 sound/soc/codecs/wm8580.c static int wm8580_paif_hw_params(struct snd_pcm_substream *substream,
substream         579 sound/soc/codecs/wm8580.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         849 sound/soc/codecs/wm8580.c static int wm8580_playback_startup(struct snd_pcm_substream *substream,
substream         855 sound/soc/codecs/wm8580.c 	return snd_pcm_hw_constraint_minmax(substream->runtime,
substream         155 sound/soc/codecs/wm8711.c static int wm8711_hw_params(struct snd_pcm_substream *substream,
substream         184 sound/soc/codecs/wm8711.c static int wm8711_pcm_prepare(struct snd_pcm_substream *substream,
substream         195 sound/soc/codecs/wm8711.c static void wm8711_shutdown(struct snd_pcm_substream *substream,
substream          85 sound/soc/codecs/wm8728.c static int wm8728_hw_params(struct snd_pcm_substream *substream,
substream         333 sound/soc/codecs/wm8731.c static int wm8731_hw_params(struct snd_pcm_substream *substream,
substream         528 sound/soc/codecs/wm8731.c static int wm8731_startup(struct snd_pcm_substream *substream,
substream         534 sound/soc/codecs/wm8731.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         324 sound/soc/codecs/wm8737.c static int wm8737_hw_params(struct snd_pcm_substream *substream,
substream         175 sound/soc/codecs/wm8741.c static int wm8741_startup(struct snd_pcm_substream *substream,
substream         182 sound/soc/codecs/wm8741.c 		snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         189 sound/soc/codecs/wm8741.c static int wm8741_hw_params(struct snd_pcm_substream *substream,
substream         575 sound/soc/codecs/wm8750.c static int wm8750_pcm_hw_params(struct snd_pcm_substream *substream,
substream         920 sound/soc/codecs/wm8753.c static int wm8753_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1149 sound/soc/codecs/wm8753.c static int wm8753_i2s_hw_params(struct snd_pcm_substream *substream,
substream         407 sound/soc/codecs/wm8770.c static int wm8770_hw_params(struct snd_pcm_substream *substream,
substream         436 sound/soc/codecs/wm8770.c 	switch (substream->stream) {
substream         239 sound/soc/codecs/wm8776.c static int wm8776_hw_params(struct snd_pcm_substream *substream,
substream         287 sound/soc/codecs/wm8804.c static int wm8804_hw_params(struct snd_pcm_substream *substream,
substream         631 sound/soc/codecs/wm8900.c static int wm8900_hw_params(struct snd_pcm_substream *substream,
substream         658 sound/soc/codecs/wm8900.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1438 sound/soc/codecs/wm8903.c static int wm8903_hw_params(struct snd_pcm_substream *substream,
substream        1286 sound/soc/codecs/wm8904.c static int wm8904_hw_params(struct snd_pcm_substream *substream,
substream         390 sound/soc/codecs/wm8940.c static int wm8940_i2s_hw_params(struct snd_pcm_substream *substream,
substream         402 sound/soc/codecs/wm8940.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE
substream         588 sound/soc/codecs/wm8955.c static int wm8955_hw_params(struct snd_pcm_substream *substream,
substream         809 sound/soc/codecs/wm8960.c static int wm8960_hw_params(struct snd_pcm_substream *substream,
substream         816 sound/soc/codecs/wm8960.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         869 sound/soc/codecs/wm8960.c static int wm8960_hw_free(struct snd_pcm_substream *substream,
substream         874 sound/soc/codecs/wm8960.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         501 sound/soc/codecs/wm8961.c static int wm8961_hw_params(struct snd_pcm_substream *substream,
substream         534 sound/soc/codecs/wm8961.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && target < 64) {
substream         539 sound/soc/codecs/wm8961.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE && target < 256) {
substream        2551 sound/soc/codecs/wm8962.c static int wm8962_hw_params(struct snd_pcm_substream *substream,
substream         505 sound/soc/codecs/wm8971.c static int wm8971_pcm_hw_params(struct snd_pcm_substream *substream,
substream         513 sound/soc/codecs/wm8974.c static int wm8974_pcm_hw_params(struct snd_pcm_substream *substream,
substream         716 sound/soc/codecs/wm8978.c static int wm8978_hw_params(struct snd_pcm_substream *substream,
substream         646 sound/soc/codecs/wm8983.c static int wm8983_hw_params(struct snd_pcm_substream *substream,
substream         746 sound/soc/codecs/wm8985.c static int wm8985_hw_params(struct snd_pcm_substream *substream,
substream         642 sound/soc/codecs/wm8988.c static int wm8988_pcm_startup(struct snd_pcm_substream *substream,
substream         657 sound/soc/codecs/wm8988.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         664 sound/soc/codecs/wm8988.c static int wm8988_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1061 sound/soc/codecs/wm8990.c static int wm8990_hw_params(struct snd_pcm_substream *substream,
substream        1048 sound/soc/codecs/wm8991.c static int wm8991_hw_params(struct snd_pcm_substream *substream,
substream        1184 sound/soc/codecs/wm8993.c static int wm8993_hw_params(struct snd_pcm_substream *substream,
substream        2770 sound/soc/codecs/wm8994.c static int wm8994_hw_params(struct snd_pcm_substream *substream,
substream        2798 sound/soc/codecs/wm8994.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream        2811 sound/soc/codecs/wm8994.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream        2933 sound/soc/codecs/wm8994.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        2950 sound/soc/codecs/wm8994.c static int wm8994_aif3_hw_params(struct snd_pcm_substream *substream,
substream        1543 sound/soc/codecs/wm8995.c static int wm8995_hw_params(struct snd_pcm_substream *substream,
substream        1566 sound/soc/codecs/wm8995.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* ||
substream        1578 sound/soc/codecs/wm8995.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK /* ||
substream        1729 sound/soc/codecs/wm8996.c static int wm8996_hw_params(struct snd_pcm_substream *substream,
substream        1743 sound/soc/codecs/wm8996.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream        1754 sound/soc/codecs/wm8996.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ||
substream         991 sound/soc/codecs/wm9081.c static int wm9081_hw_params(struct snd_pcm_substream *substream,
substream         231 sound/soc/codecs/wm9705.c static int ac97_prepare(struct snd_pcm_substream *substream,
substream         239 sound/soc/codecs/wm9705.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         244 sound/soc/codecs/wm9705.c 	return snd_soc_component_write(component, reg, substream->runtime->rate);
substream         523 sound/soc/codecs/wm9712.c static int ac97_prepare(struct snd_pcm_substream *substream,
substream         528 sound/soc/codecs/wm9712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         532 sound/soc/codecs/wm9712.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         540 sound/soc/codecs/wm9712.c static int ac97_aux_prepare(struct snd_pcm_substream *substream,
substream         544 sound/soc/codecs/wm9712.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         549 sound/soc/codecs/wm9712.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream        1000 sound/soc/codecs/wm9713.c static int wm9713_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1026 sound/soc/codecs/wm9713.c static int ac97_hifi_prepare(struct snd_pcm_substream *substream,
substream        1030 sound/soc/codecs/wm9713.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1035 sound/soc/codecs/wm9713.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1043 sound/soc/codecs/wm9713.c static int ac97_aux_prepare(struct snd_pcm_substream *substream,
substream        1047 sound/soc/codecs/wm9713.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1052 sound/soc/codecs/wm9713.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         153 sound/soc/dwc/dwc-i2s.c 		      struct snd_pcm_substream *substream)
substream         158 sound/soc/dwc/dwc-i2s.c 	i2s_enable_irqs(dev, substream->stream, config->chan_nr);
substream         160 sound/soc/dwc/dwc-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         169 sound/soc/dwc/dwc-i2s.c 		struct snd_pcm_substream *substream)
substream         172 sound/soc/dwc/dwc-i2s.c 	i2s_clear_irqs(dev, substream->stream);
substream         173 sound/soc/dwc/dwc-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         178 sound/soc/dwc/dwc-i2s.c 	i2s_disable_irqs(dev, substream->stream, 8);
substream         186 sound/soc/dwc/dwc-i2s.c static int dw_i2s_startup(struct snd_pcm_substream *substream,
substream         193 sound/soc/dwc/dwc-i2s.c 			(substream->stream == SNDRV_PCM_STREAM_CAPTURE))
substream         197 sound/soc/dwc/dwc-i2s.c 			(substream->stream == SNDRV_PCM_STREAM_PLAYBACK))
substream         200 sound/soc/dwc/dwc-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         202 sound/soc/dwc/dwc-i2s.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         205 sound/soc/dwc/dwc-i2s.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, (void *)dma_data);
substream         236 sound/soc/dwc/dwc-i2s.c static int dw_i2s_hw_params(struct snd_pcm_substream *substream,
substream         280 sound/soc/dwc/dwc-i2s.c 	dw_i2s_config(dev, substream->stream);
substream         308 sound/soc/dwc/dwc-i2s.c static void dw_i2s_shutdown(struct snd_pcm_substream *substream,
substream         311 sound/soc/dwc/dwc-i2s.c 	snd_soc_dai_set_dma_data(dai, substream, NULL);
substream         314 sound/soc/dwc/dwc-i2s.c static int dw_i2s_prepare(struct snd_pcm_substream *substream,
substream         319 sound/soc/dwc/dwc-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         327 sound/soc/dwc/dwc-i2s.c static int dw_i2s_trigger(struct snd_pcm_substream *substream,
substream         338 sound/soc/dwc/dwc-i2s.c 		i2s_start(dev, substream);
substream         345 sound/soc/dwc/dwc-i2s.c 		i2s_stop(dev, substream);
substream          97 sound/soc/dwc/dwc-pcm.c 	struct snd_pcm_substream *substream;
substream         102 sound/soc/dwc/dwc-pcm.c 		substream = rcu_dereference(dev->tx_substream);
substream         104 sound/soc/dwc/dwc-pcm.c 		substream = rcu_dereference(dev->rx_substream);
substream         105 sound/soc/dwc/dwc-pcm.c 	active = substream && snd_pcm_running(substream);
substream         112 sound/soc/dwc/dwc-pcm.c 			new_ptr = dev->tx_fn(dev, substream->runtime, ptr,
substream         117 sound/soc/dwc/dwc-pcm.c 			new_ptr = dev->rx_fn(dev, substream->runtime, ptr,
substream         123 sound/soc/dwc/dwc-pcm.c 			snd_pcm_period_elapsed(substream);
substream         138 sound/soc/dwc/dwc-pcm.c static int dw_pcm_open(struct snd_pcm_substream *substream)
substream         140 sound/soc/dwc/dwc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         141 sound/soc/dwc/dwc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         144 sound/soc/dwc/dwc-pcm.c 	snd_soc_set_runtime_hwparams(substream, &dw_pcm_hardware);
substream         151 sound/soc/dwc/dwc-pcm.c static int dw_pcm_close(struct snd_pcm_substream *substream)
substream         157 sound/soc/dwc/dwc-pcm.c static int dw_pcm_hw_params(struct snd_pcm_substream *substream,
substream         160 sound/soc/dwc/dwc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         187 sound/soc/dwc/dwc-pcm.c 	ret = snd_pcm_lib_malloc_pages(substream,
substream         195 sound/soc/dwc/dwc-pcm.c static int dw_pcm_hw_free(struct snd_pcm_substream *substream)
substream         197 sound/soc/dwc/dwc-pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         200 sound/soc/dwc/dwc-pcm.c static int dw_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         202 sound/soc/dwc/dwc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         210 sound/soc/dwc/dwc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         212 sound/soc/dwc/dwc-pcm.c 			rcu_assign_pointer(dev->tx_substream, substream);
substream         215 sound/soc/dwc/dwc-pcm.c 			rcu_assign_pointer(dev->rx_substream, substream);
substream         221 sound/soc/dwc/dwc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         234 sound/soc/dwc/dwc-pcm.c static snd_pcm_uframes_t dw_pcm_pointer(struct snd_pcm_substream *substream)
substream         236 sound/soc/dwc/dwc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         240 sound/soc/dwc/dwc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          30 sound/soc/fsl/eukrea-tlv320.c static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
substream          33 sound/soc/fsl/eukrea-tlv320.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         138 sound/soc/fsl/fsl-asoc-card.c static int fsl_asoc_card_hw_params(struct snd_pcm_substream *substream,
substream         141 sound/soc/fsl/fsl-asoc-card.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         143 sound/soc/fsl/fsl-asoc-card.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         480 sound/soc/fsl/fsl_asrc.c static int fsl_asrc_dai_startup(struct snd_pcm_substream *substream,
substream         487 sound/soc/fsl/fsl_asrc.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         491 sound/soc/fsl/fsl_asrc.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         495 sound/soc/fsl/fsl_asrc.c static int fsl_asrc_dai_hw_params(struct snd_pcm_substream *substream,
substream         501 sound/soc/fsl/fsl_asrc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         531 sound/soc/fsl/fsl_asrc.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         552 sound/soc/fsl/fsl_asrc.c static int fsl_asrc_dai_hw_free(struct snd_pcm_substream *substream,
substream         555 sound/soc/fsl/fsl_asrc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         564 sound/soc/fsl/fsl_asrc.c static int fsl_asrc_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         567 sound/soc/fsl/fsl_asrc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          46 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_substream *substream = arg;
substream          47 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          50 sound/soc/fsl/fsl_asrc_dma.c 	pair->pos += snd_pcm_lib_period_bytes(substream);
substream          51 sound/soc/fsl/fsl_asrc_dma.c 	if (pair->pos >= snd_pcm_lib_buffer_bytes(substream))
substream          54 sound/soc/fsl/fsl_asrc_dma.c 	snd_pcm_period_elapsed(substream);
substream          57 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream)
substream          59 sound/soc/fsl/fsl_asrc_dma.c 	u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN;
substream          60 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          61 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          68 sound/soc/fsl/fsl_asrc_dma.c 	if (!substream->runtime->no_period_wakeup)
substream          74 sound/soc/fsl/fsl_asrc_dma.c 			snd_pcm_lib_buffer_bytes(substream),
substream          75 sound/soc/fsl/fsl_asrc_dma.c 			snd_pcm_lib_period_bytes(substream),
substream          83 sound/soc/fsl/fsl_asrc_dma.c 	pair->desc[!dir]->callback_param = substream;
substream         100 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_trigger(struct snd_pcm_substream *substream, int cmd)
substream         102 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         110 sound/soc/fsl/fsl_asrc_dma.c 		ret = fsl_asrc_dma_prepare_and_submit(substream);
substream         129 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_hw_params(struct snd_pcm_substream *substream,
substream         133 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         134 sound/soc/fsl/fsl_asrc_dma.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         138 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         144 sound/soc/fsl/fsl_asrc_dma.c 	int stream = substream->stream;
substream         174 sound/soc/fsl/fsl_asrc_dma.c 	dma_params_fe = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         185 sound/soc/fsl/fsl_asrc_dma.c 	ret = snd_dmaengine_pcm_prepare_slave_config(substream, params, &config_fe);
substream         247 sound/soc/fsl/fsl_asrc_dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         252 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_hw_free(struct snd_pcm_substream *substream)
substream         254 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         257 sound/soc/fsl/fsl_asrc_dma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         271 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_startup(struct snd_pcm_substream *substream)
substream         273 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         274 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         288 sound/soc/fsl/fsl_asrc_dma.c 	snd_pcm_hw_constraint_integer(substream->runtime,
substream         290 sound/soc/fsl/fsl_asrc_dma.c 	snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
substream         295 sound/soc/fsl/fsl_asrc_dma.c static int fsl_asrc_dma_shutdown(struct snd_pcm_substream *substream)
substream         297 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         314 sound/soc/fsl/fsl_asrc_dma.c static snd_pcm_uframes_t fsl_asrc_dma_pcm_pointer(struct snd_pcm_substream *substream)
substream         316 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         319 sound/soc/fsl/fsl_asrc_dma.c 	return bytes_to_frames(substream->runtime, pair->pos);
substream         335 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_substream *substream;
substream         346 sound/soc/fsl/fsl_asrc_dma.c 		substream = pcm->streams[i].substream;
substream         347 sound/soc/fsl/fsl_asrc_dma.c 		if (!substream)
substream         351 sound/soc/fsl/fsl_asrc_dma.c 				FSL_ASRC_DMABUF_SIZE, &substream->dma_buffer);
substream         361 sound/soc/fsl/fsl_asrc_dma.c 	if (--i == 0 && pcm->streams[i].substream)
substream         362 sound/soc/fsl/fsl_asrc_dma.c 		snd_dma_free_pages(&pcm->streams[i].substream->dma_buffer);
substream         369 sound/soc/fsl/fsl_asrc_dma.c 	struct snd_pcm_substream *substream;
substream         373 sound/soc/fsl/fsl_asrc_dma.c 		substream = pcm->streams[i].substream;
substream         374 sound/soc/fsl/fsl_asrc_dma.c 		if (!substream)
substream         377 sound/soc/fsl/fsl_asrc_dma.c 		snd_dma_free_pages(&substream->dma_buffer);
substream         378 sound/soc/fsl/fsl_asrc_dma.c 		substream->dma_buffer.area = NULL;
substream         379 sound/soc/fsl/fsl_asrc_dma.c 		substream->dma_buffer.addr = 0;
substream         285 sound/soc/fsl/fsl_audmix.c static int fsl_audmix_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         292 sound/soc/fsl/fsl_audmix.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          97 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_substream *substream;
substream         149 sound/soc/fsl/fsl_dma.c static void fsl_dma_abort_stream(struct snd_pcm_substream *substream)
substream         151 sound/soc/fsl/fsl_dma.c 	snd_pcm_stop_xrun(substream);
substream         169 sound/soc/fsl/fsl_dma.c 	if (dma_private->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         202 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_substream *substream = dma_private->substream;
substream         203 sound/soc/fsl/fsl_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         217 sound/soc/fsl/fsl_dma.c 		fsl_dma_abort_stream(substream);
substream         227 sound/soc/fsl/fsl_dma.c 		fsl_dma_abort_stream(substream);
substream         242 sound/soc/fsl/fsl_dma.c 		snd_pcm_period_elapsed(substream);
substream         297 sound/soc/fsl/fsl_dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         300 sound/soc/fsl/fsl_dma.c 			&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer);
substream         307 sound/soc/fsl/fsl_dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         310 sound/soc/fsl/fsl_dma.c 			&pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer);
substream         313 sound/soc/fsl/fsl_dma.c 			snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer);
substream         383 sound/soc/fsl/fsl_dma.c static int fsl_dma_open(struct snd_pcm_substream *substream)
substream         385 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         386 sound/soc/fsl/fsl_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         412 sound/soc/fsl/fsl_dma.c 	channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1;
substream         425 sound/soc/fsl/fsl_dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         433 sound/soc/fsl/fsl_dma.c 	dma_private->substream = substream;
substream         435 sound/soc/fsl/fsl_dma.c 	dma_private->dma_buf_phys = substream->dma_buffer.addr;
substream         449 sound/soc/fsl/fsl_dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         450 sound/soc/fsl/fsl_dma.c 	snd_soc_set_runtime_hwparams(substream, &fsl_dma_hardware);
substream         504 sound/soc/fsl/fsl_dma.c 	mr |= (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
substream         536 sound/soc/fsl/fsl_dma.c static int fsl_dma_hw_params(struct snd_pcm_substream *substream,
substream         539 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         541 sound/soc/fsl/fsl_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         562 sound/soc/fsl/fsl_dma.c 	dma_addr_t temp_addr = substream->dma_buffer.addr;
substream         665 sound/soc/fsl/fsl_dma.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         701 sound/soc/fsl/fsl_dma.c static snd_pcm_uframes_t fsl_dma_pointer(struct snd_pcm_substream *substream)
substream         703 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         705 sound/soc/fsl/fsl_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         716 sound/soc/fsl/fsl_dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         766 sound/soc/fsl/fsl_dma.c static int fsl_dma_hw_free(struct snd_pcm_substream *substream)
substream         768 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         799 sound/soc/fsl/fsl_dma.c static int fsl_dma_close(struct snd_pcm_substream *substream)
substream         801 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         803 sound/soc/fsl/fsl_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         816 sound/soc/fsl/fsl_dma.c 		substream->runtime->private_data = NULL;
substream         829 sound/soc/fsl/fsl_dma.c 	struct snd_pcm_substream *substream;
substream         833 sound/soc/fsl/fsl_dma.c 		substream = pcm->streams[i].substream;
substream         834 sound/soc/fsl/fsl_dma.c 		if (substream) {
substream         835 sound/soc/fsl/fsl_dma.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         836 sound/soc/fsl/fsl_dma.c 			substream->dma_buffer.area = NULL;
substream         837 sound/soc/fsl/fsl_dma.c 			substream->dma_buffer.addr = 0;
substream         482 sound/soc/fsl/fsl_esai.c static int fsl_esai_startup(struct snd_pcm_substream *substream,
substream         504 sound/soc/fsl/fsl_esai.c static int fsl_esai_hw_params(struct snd_pcm_substream *substream,
substream         509 sound/soc/fsl/fsl_esai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         726 sound/soc/fsl/fsl_esai.c static int fsl_esai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         730 sound/soc/fsl/fsl_esai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         733 sound/soc/fsl/fsl_esai.c 	esai_priv->channels[tx] = substream->runtime->channels;
substream         214 sound/soc/fsl/fsl_micfil.c static int fsl_micfil_startup(struct snd_pcm_substream *substream,
substream         228 sound/soc/fsl/fsl_micfil.c static int fsl_micfil_trigger(struct snd_pcm_substream *substream, int cmd,
substream         328 sound/soc/fsl/fsl_micfil.c static int fsl_micfil_hw_params(struct snd_pcm_substream *substream,
substream         415 sound/soc/fsl/fsl_sai.c static int fsl_sai_hw_params(struct snd_pcm_substream *substream,
substream         421 sound/soc/fsl/fsl_sai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         448 sound/soc/fsl/fsl_sai.c 		if (!(sai->mclk_streams & BIT(substream->stream))) {
substream         453 sound/soc/fsl/fsl_sai.c 			sai->mclk_streams |= BIT(substream->stream);
substream         510 sound/soc/fsl/fsl_sai.c static int fsl_sai_hw_free(struct snd_pcm_substream *substream,
substream         514 sound/soc/fsl/fsl_sai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         517 sound/soc/fsl/fsl_sai.c 			sai->mclk_streams & BIT(substream->stream)) {
substream         519 sound/soc/fsl/fsl_sai.c 		sai->mclk_streams &= ~BIT(substream->stream);
substream         526 sound/soc/fsl/fsl_sai.c static int fsl_sai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         532 sound/soc/fsl/fsl_sai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         619 sound/soc/fsl/fsl_sai.c static int fsl_sai_startup(struct snd_pcm_substream *substream,
substream         624 sound/soc/fsl/fsl_sai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         636 sound/soc/fsl/fsl_sai.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         641 sound/soc/fsl/fsl_sai.c 	ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         647 sound/soc/fsl/fsl_sai.c static void fsl_sai_shutdown(struct snd_pcm_substream *substream,
substream         652 sound/soc/fsl/fsl_sai.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         369 sound/soc/fsl/fsl_spdif.c static int spdif_set_sample_rate(struct snd_pcm_substream *substream,
substream         372 sound/soc/fsl/fsl_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         457 sound/soc/fsl/fsl_spdif.c static int fsl_spdif_startup(struct snd_pcm_substream *substream,
substream         460 sound/soc/fsl/fsl_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         494 sound/soc/fsl/fsl_spdif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         533 sound/soc/fsl/fsl_spdif.c static void fsl_spdif_shutdown(struct snd_pcm_substream *substream,
substream         536 sound/soc/fsl/fsl_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         541 sound/soc/fsl/fsl_spdif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         567 sound/soc/fsl/fsl_spdif.c static int fsl_spdif_hw_params(struct snd_pcm_substream *substream,
substream         571 sound/soc/fsl/fsl_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         578 sound/soc/fsl/fsl_spdif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         579 sound/soc/fsl/fsl_spdif.c 		ret  = spdif_set_sample_rate(substream, sample_rate);
substream         596 sound/soc/fsl/fsl_spdif.c static int fsl_spdif_trigger(struct snd_pcm_substream *substream,
substream         599 sound/soc/fsl/fsl_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         602 sound/soc/fsl/fsl_spdif.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         630 sound/soc/fsl/fsl_ssi.c static int fsl_ssi_startup(struct snd_pcm_substream *substream,
substream         633 sound/soc/fsl/fsl_ssi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         648 sound/soc/fsl/fsl_ssi.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         654 sound/soc/fsl/fsl_ssi.c static void fsl_ssi_shutdown(struct snd_pcm_substream *substream,
substream         657 sound/soc/fsl/fsl_ssi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         672 sound/soc/fsl/fsl_ssi.c static int fsl_ssi_set_bclk(struct snd_pcm_substream *substream,
substream         676 sound/soc/fsl/fsl_ssi.c 	bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         711 sound/soc/fsl/fsl_ssi.c 	baudclk_is_used = ssi->baudclk_streams & ~(BIT(substream->stream));
substream         790 sound/soc/fsl/fsl_ssi.c static int fsl_ssi_hw_params(struct snd_pcm_substream *substream,
substream         794 sound/soc/fsl/fsl_ssi.c 	bool tx2, tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         803 sound/soc/fsl/fsl_ssi.c 		ret = fsl_ssi_set_bclk(substream, dai, hw_params);
substream         808 sound/soc/fsl/fsl_ssi.c 		if (!(ssi->baudclk_streams & BIT(substream->stream))) {
substream         813 sound/soc/fsl/fsl_ssi.c 			ssi->baudclk_streams |= BIT(substream->stream);
substream         853 sound/soc/fsl/fsl_ssi.c static int fsl_ssi_hw_free(struct snd_pcm_substream *substream,
substream         856 sound/soc/fsl/fsl_ssi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         860 sound/soc/fsl/fsl_ssi.c 	    ssi->baudclk_streams & BIT(substream->stream)) {
substream         862 sound/soc/fsl/fsl_ssi.c 		ssi->baudclk_streams &= ~BIT(substream->stream);
substream        1058 sound/soc/fsl/fsl_ssi.c static int fsl_ssi_trigger(struct snd_pcm_substream *substream, int cmd,
substream        1061 sound/soc/fsl/fsl_ssi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1063 sound/soc/fsl/fsl_ssi.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream          45 sound/soc/fsl/imx-audmix.c static int imx_audmix_fe_startup(struct snd_pcm_substream *substream)
substream          47 sound/soc/fsl/imx-audmix.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          49 sound/soc/fsl/imx-audmix.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          73 sound/soc/fsl/imx-audmix.c static int imx_audmix_fe_hw_params(struct snd_pcm_substream *substream,
substream          76 sound/soc/fsl/imx-audmix.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          78 sound/soc/fsl/imx-audmix.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         112 sound/soc/fsl/imx-audmix.c static int imx_audmix_be_hw_params(struct snd_pcm_substream *substream,
substream         115 sound/soc/fsl/imx-audmix.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         117 sound/soc/fsl/imx-audmix.c 	bool tx = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream          26 sound/soc/fsl/imx-mc13783.c static int imx_mc13783_hifi_hw_params(struct snd_pcm_substream *substream,
substream          29 sound/soc/fsl/imx-mc13783.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          39 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_substream *substream;
substream          48 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_substream *substream = iprtd->substream;
substream          56 sound/soc/fsl/imx-pcm-fiq.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          61 sound/soc/fsl/imx-pcm-fiq.c 	snd_pcm_period_elapsed(substream);
substream          72 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_pcm_hw_params(struct snd_pcm_substream *substream,
substream          75 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          83 sound/soc/fsl/imx-pcm-fiq.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream          88 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_pcm_prepare(struct snd_pcm_substream *substream)
substream          90 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          95 sound/soc/fsl/imx-pcm-fiq.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         107 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         109 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         116 sound/soc/fsl/imx-pcm-fiq.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         128 sound/soc/fsl/imx-pcm-fiq.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         144 sound/soc/fsl/imx-pcm-fiq.c static snd_pcm_uframes_t snd_imx_pcm_pointer(struct snd_pcm_substream *substream)
substream         146 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         149 sound/soc/fsl/imx-pcm-fiq.c 	return bytes_to_frames(substream->runtime, iprtd->offset);
substream         168 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_open(struct snd_pcm_substream *substream)
substream         170 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         179 sound/soc/fsl/imx-pcm-fiq.c 	iprtd->substream = substream;
substream         186 sound/soc/fsl/imx-pcm-fiq.c 	ret = snd_pcm_hw_constraint_integer(substream->runtime,
substream         193 sound/soc/fsl/imx-pcm-fiq.c 	snd_soc_set_runtime_hwparams(substream, &snd_imx_hardware);
substream         197 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_close(struct snd_pcm_substream *substream)
substream         199 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         209 sound/soc/fsl/imx-pcm-fiq.c static int snd_imx_pcm_mmap(struct snd_pcm_substream *substream,
substream         212 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         215 sound/soc/fsl/imx-pcm-fiq.c 	ret = dma_mmap_wc(substream->pcm->card->dev, vma, runtime->dma_area,
substream         238 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream         239 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         263 sound/soc/fsl/imx-pcm-fiq.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         270 sound/soc/fsl/imx-pcm-fiq.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         285 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_substream *substream;
substream         292 sound/soc/fsl/imx-pcm-fiq.c 	substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         293 sound/soc/fsl/imx-pcm-fiq.c 	if (substream) {
substream         294 sound/soc/fsl/imx-pcm-fiq.c 		struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         299 sound/soc/fsl/imx-pcm-fiq.c 	substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         300 sound/soc/fsl/imx-pcm-fiq.c 	if (substream) {
substream         301 sound/soc/fsl/imx-pcm-fiq.c 		struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         314 sound/soc/fsl/imx-pcm-fiq.c 	struct snd_pcm_substream *substream;
substream         319 sound/soc/fsl/imx-pcm-fiq.c 		substream = pcm->streams[stream].substream;
substream         320 sound/soc/fsl/imx-pcm-fiq.c 		if (!substream)
substream         323 sound/soc/fsl/imx-pcm-fiq.c 		buf = &substream->dma_buffer;
substream         232 sound/soc/fsl/imx-ssi.c static int imx_ssi_hw_params(struct snd_pcm_substream *substream,
substream         240 sound/soc/fsl/imx-ssi.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         268 sound/soc/fsl/imx-ssi.c static int imx_ssi_trigger(struct snd_pcm_substream *substream, int cmd,
substream         278 sound/soc/fsl/imx-ssi.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         294 sound/soc/fsl/imx-ssi.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         307 sound/soc/fsl/imx-ssi.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         101 sound/soc/fsl/mpc5200_dma.c static int psc_dma_hw_free(struct snd_pcm_substream *substream)
substream         103 sound/soc/fsl/mpc5200_dma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         113 sound/soc/fsl/mpc5200_dma.c static int psc_dma_trigger(struct snd_pcm_substream *substream, int cmd)
substream         115 sound/soc/fsl/mpc5200_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         117 sound/soc/fsl/mpc5200_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         118 sound/soc/fsl/mpc5200_dma.c 	struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma);
substream         127 sound/soc/fsl/mpc5200_dma.c 			substream->pstr->stream, runtime->frame_bits,
substream         142 sound/soc/fsl/mpc5200_dma.c 		if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         160 sound/soc/fsl/mpc5200_dma.c 			substream->pstr->stream, s->period_count);
substream         165 sound/soc/fsl/mpc5200_dma.c 		if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         175 sound/soc/fsl/mpc5200_dma.c 			substream->pstr->stream, cmd);
substream         213 sound/soc/fsl/mpc5200_dma.c static int psc_dma_open(struct snd_pcm_substream *substream)
substream         215 sound/soc/fsl/mpc5200_dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         216 sound/soc/fsl/mpc5200_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         221 sound/soc/fsl/mpc5200_dma.c 	dev_dbg(psc_dma->dev, "psc_dma_open(substream=%p)\n", substream);
substream         223 sound/soc/fsl/mpc5200_dma.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         228 sound/soc/fsl/mpc5200_dma.c 	snd_soc_set_runtime_hwparams(substream, &psc_dma_hardware);
substream         233 sound/soc/fsl/mpc5200_dma.c 		dev_err(substream->pcm->card->dev, "invalid buffer size\n");
substream         237 sound/soc/fsl/mpc5200_dma.c 	s->stream = substream;
substream         241 sound/soc/fsl/mpc5200_dma.c static int psc_dma_close(struct snd_pcm_substream *substream)
substream         243 sound/soc/fsl/mpc5200_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         247 sound/soc/fsl/mpc5200_dma.c 	dev_dbg(psc_dma->dev, "psc_dma_close(substream=%p)\n", substream);
substream         249 sound/soc/fsl/mpc5200_dma.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         266 sound/soc/fsl/mpc5200_dma.c psc_dma_pointer(struct snd_pcm_substream *substream)
substream         268 sound/soc/fsl/mpc5200_dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         273 sound/soc/fsl/mpc5200_dma.c 	if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         280 sound/soc/fsl/mpc5200_dma.c 	return bytes_to_frames(substream->runtime, count);
substream         284 sound/soc/fsl/mpc5200_dma.c psc_dma_hw_params(struct snd_pcm_substream *substream,
substream         287 sound/soc/fsl/mpc5200_dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         318 sound/soc/fsl/mpc5200_dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         320 sound/soc/fsl/mpc5200_dma.c 				size, &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer);
substream         325 sound/soc/fsl/mpc5200_dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         327 sound/soc/fsl/mpc5200_dma.c 				size, &pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->dma_buffer);
substream         335 sound/soc/fsl/mpc5200_dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
substream         336 sound/soc/fsl/mpc5200_dma.c 		snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer);
substream         348 sound/soc/fsl/mpc5200_dma.c 	struct snd_pcm_substream *substream;
substream         354 sound/soc/fsl/mpc5200_dma.c 		substream = pcm->streams[stream].substream;
substream         355 sound/soc/fsl/mpc5200_dma.c 		if (substream) {
substream         356 sound/soc/fsl/mpc5200_dma.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         357 sound/soc/fsl/mpc5200_dma.c 			substream->dma_buffer.area = NULL;
substream         358 sound/soc/fsl/mpc5200_dma.c 			substream->dma_buffer.addr = 0;
substream          78 sound/soc/fsl/mpc5200_dma.h to_psc_dma_stream(struct snd_pcm_substream *substream, struct psc_dma *psc_dma)
substream          80 sound/soc/fsl/mpc5200_dma.h 	if (substream->pstr->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         137 sound/soc/fsl/mpc5200_psc_ac97.c static int psc_ac97_hw_analog_params(struct snd_pcm_substream *substream,
substream         142 sound/soc/fsl/mpc5200_psc_ac97.c 	struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma);
substream         147 sound/soc/fsl/mpc5200_psc_ac97.c 		__func__, substream, params_period_size(params),
substream         155 sound/soc/fsl/mpc5200_psc_ac97.c 	if (substream->pstr->stream != SNDRV_PCM_STREAM_CAPTURE)
substream         160 sound/soc/fsl/mpc5200_psc_ac97.c static int psc_ac97_hw_digital_params(struct snd_pcm_substream *substream,
substream         166 sound/soc/fsl/mpc5200_psc_ac97.c 	dev_dbg(psc_dma->dev, "%s(substream=%p)\n", __func__, substream);
substream         176 sound/soc/fsl/mpc5200_psc_ac97.c static int psc_ac97_trigger(struct snd_pcm_substream *substream, int cmd,
substream         180 sound/soc/fsl/mpc5200_psc_ac97.c 	struct psc_dma_stream *s = to_psc_dma_stream(substream, psc_dma);
substream         185 sound/soc/fsl/mpc5200_psc_ac97.c 			substream->pstr->stream);
substream         194 sound/soc/fsl/mpc5200_psc_ac97.c 			substream->pstr->stream);
substream          37 sound/soc/fsl/mpc5200_psc_i2s.c static int psc_i2s_hw_params(struct snd_pcm_substream *substream,
substream          41 sound/soc/fsl/mpc5200_psc_i2s.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          47 sound/soc/fsl/mpc5200_psc_i2s.c 		__func__, substream, params_period_size(params),
substream          99 sound/soc/fsl/mpc8610_hpcd.c static int mpc8610_hpcd_startup(struct snd_pcm_substream *substream)
substream         101 sound/soc/fsl/mpc8610_hpcd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          36 sound/soc/fsl/mx27vis-aic32x4.c static int mx27vis_aic32x4_hw_params(struct snd_pcm_substream *substream,
substream          39 sound/soc/fsl/mx27vis-aic32x4.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         122 sound/soc/fsl/p1022_ds.c static int p1022_ds_startup(struct snd_pcm_substream *substream)
substream         124 sound/soc/fsl/p1022_ds.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         128 sound/soc/fsl/p1022_rdk.c static int p1022_rdk_startup(struct snd_pcm_substream *substream)
substream         130 sound/soc/fsl/p1022_rdk.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          75 sound/soc/fsl/wm1133-ev1.c static int wm1133_ev1_hw_params(struct snd_pcm_substream *substream,
substream          78 sound/soc/fsl/wm1133-ev1.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         194 sound/soc/generic/simple-card-utils.c int asoc_simple_startup(struct snd_pcm_substream *substream)
substream         196 sound/soc/generic/simple-card-utils.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         213 sound/soc/generic/simple-card-utils.c void asoc_simple_shutdown(struct snd_pcm_substream *substream)
substream         215 sound/soc/generic/simple-card-utils.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         248 sound/soc/generic/simple-card-utils.c int asoc_simple_hw_params(struct snd_pcm_substream *substream,
substream         251 sound/soc/generic/simple-card-utils.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          91 sound/soc/hisilicon/hi6210-i2s.c static int hi6210_i2s_startup(struct snd_pcm_substream *substream,
substream         170 sound/soc/hisilicon/hi6210-i2s.c static void hi6210_i2s_shutdown(struct snd_pcm_substream *substream,
substream         252 sound/soc/hisilicon/hi6210-i2s.c static int hi6210_i2s_hw_params(struct snd_pcm_substream *substream,
substream         309 sound/soc/hisilicon/hi6210-i2s.c 	dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream);
substream         423 sound/soc/hisilicon/hi6210-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         473 sound/soc/hisilicon/hi6210-i2s.c static int hi6210_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         480 sound/soc/hisilicon/hi6210-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         487 sound/soc/hisilicon/hi6210-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         160 sound/soc/img/img-i2s-in.c static int img_i2s_in_trigger(struct snd_pcm_substream *substream, int cmd,
substream         214 sound/soc/img/img-i2s-in.c static int img_i2s_in_hw_params(struct snd_pcm_substream *substream,
substream         185 sound/soc/img/img-i2s-out.c static int img_i2s_out_trigger(struct snd_pcm_substream *substream, int cmd,
substream         213 sound/soc/img/img-i2s-out.c static int img_i2s_out_hw_params(struct snd_pcm_substream *substream,
substream          91 sound/soc/img/img-parallel-out.c static int img_prl_out_trigger(struct snd_pcm_substream *substream, int cmd,
substream         117 sound/soc/img/img-parallel-out.c static int img_prl_out_hw_params(struct snd_pcm_substream *substream,
substream         625 sound/soc/img/img-spdif-in.c static int img_spdif_in_trigger(struct snd_pcm_substream *substream, int cmd,
substream         665 sound/soc/img/img-spdif-in.c static int img_spdif_in_hw_params(struct snd_pcm_substream *substream,
substream         203 sound/soc/img/img-spdif-out.c static int img_spdif_out_trigger(struct snd_pcm_substream *substream, int cmd,
substream         232 sound/soc/img/img-spdif-out.c static int img_spdif_out_hw_params(struct snd_pcm_substream *substream,
substream         123 sound/soc/intel/atom/sst-mfld-platform-pcm.c static void sst_fill_alloc_params(struct snd_pcm_substream *substream,
substream         129 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
substream         130 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	u32 buffer_addr = virt_to_phys(substream->dma_buffer.area);
substream         132 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	channels = substream->runtime->channels;
substream         133 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	period_size = substream->runtime->period_size;
substream         134 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	periodbytes = samples_to_bytes(substream->runtime, period_size);
substream         142 sound/soc/intel/atom/sst-mfld-platform-pcm.c static void sst_fill_pcm_params(struct snd_pcm_substream *substream,
substream         145 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	param->uc.pcm_params.num_chan = (u8) substream->runtime->channels;
substream         146 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	param->uc.pcm_params.pcm_wd_sz = substream->runtime->sample_bits;
substream         147 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	param->uc.pcm_params.sfreq = substream->runtime->rate;
substream         173 sound/soc/intel/atom/sst-mfld-platform-pcm.c int sst_fill_stream_params(void *substream,
substream         186 sound/soc/intel/atom/sst-mfld-platform-pcm.c 		cstream = (struct snd_compr_stream *)substream;
substream         188 sound/soc/intel/atom/sst-mfld-platform-pcm.c 		pstream = (struct snd_pcm_substream *)substream;
substream         222 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_platform_alloc_stream(struct snd_pcm_substream *substream,
substream         226 sound/soc/intel/atom/sst-mfld-platform-pcm.c 			substream->runtime->private_data;
substream         234 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	sst_fill_pcm_params(substream, &param);
substream         235 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	sst_fill_alloc_params(substream, &alloc_params);
substream         236 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	substream->runtime->dma_area = substream->dma_buffer.area;
substream         242 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	ret_val = sst_fill_stream_params(substream, ctx, &str_params, false);
substream         258 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	struct snd_pcm_substream *substream = arg;
substream         262 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	if (!substream || !substream->runtime)
substream         264 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream = substream->runtime->private_data;
substream         270 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	snd_pcm_period_elapsed(substream);
substream         273 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_platform_init_stream(struct snd_pcm_substream *substream)
substream         276 sound/soc/intel/atom/sst-mfld-platform-pcm.c 			substream->runtime->private_data;
substream         277 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         283 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream->stream_info.arg = substream;
substream         285 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream->stream_info.sfreq = substream->runtime->rate;
substream         303 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_media_open(struct snd_pcm_substream *substream,
substream         307 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         328 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream->stream_info.arg = substream;
substream         337 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         348 sound/soc/intel/atom/sst-mfld-platform-pcm.c static void sst_media_close(struct snd_pcm_substream *substream,
substream         354 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream = substream->runtime->private_data;
substream         364 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_media_prepare(struct snd_pcm_substream *substream,
substream         370 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream = substream->runtime->private_data;
substream         377 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	ret_val = sst_platform_alloc_stream(substream, dai);
substream         380 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	snprintf(substream->pcm->id, sizeof(substream->pcm->id),
substream         383 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	ret_val = sst_platform_init_stream(substream);
substream         386 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	substream->runtime->hw.info = SNDRV_PCM_INFO_BLOCK_TRANSFER;
substream         390 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_media_hw_params(struct snd_pcm_substream *substream,
substream         397 sound/soc/intel/atom/sst-mfld-platform-pcm.c 		snd_pcm_lib_malloc_pages(substream,
substream         401 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	memset(substream->runtime->dma_area, 0, params_buffer_bytes(params));
substream         405 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_media_hw_free(struct snd_pcm_substream *substream,
substream         408 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         411 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_enable_ssp(struct snd_pcm_substream *substream,
substream         423 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_be_hw_params(struct snd_pcm_substream *substream,
substream         463 sound/soc/intel/atom/sst-mfld-platform-pcm.c static void sst_disable_ssp(struct snd_pcm_substream *substream,
substream         589 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_platform_open(struct snd_pcm_substream *substream)
substream         593 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	if (substream->pcm->internal)
substream         596 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	runtime = substream->runtime;
substream         601 sound/soc/intel/atom/sst-mfld-platform-pcm.c static int sst_platform_pcm_trigger(struct snd_pcm_substream *substream,
substream         607 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         610 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	if (substream->pcm->internal)
substream         612 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream = substream->runtime->private_data;
substream         618 sound/soc/intel/atom/sst-mfld-platform-pcm.c 		stream->stream_info.arg = substream;
substream         650 sound/soc/intel/atom/sst-mfld-platform-pcm.c 			(struct snd_pcm_substream *substream)
substream         655 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         657 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	stream = substream->runtime->private_data;
substream         667 sound/soc/intel/atom/sst-mfld-platform-pcm.c 	substream->runtime->delay = str_info->pcm_delay;
substream         158 sound/soc/intel/atom/sst-mfld-platform.h int sst_fill_stream_params(void *substream, const struct sst_data *ctx,
substream         485 sound/soc/intel/atom/sst/sst_drv_interface.c 		struct snd_pcm_substream *substream,
substream         496 sound/soc/intel/atom/sst/sst_drv_interface.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         502 sound/soc/intel/atom/sst/sst_drv_interface.c 	delay_frames = bytes_to_frames(substream->runtime, delay_bytes);
substream         503 sound/soc/intel/atom/sst/sst_drv_interface.c 	buffer_sz = snd_pcm_lib_buffer_bytes(substream);
substream         505 sound/soc/intel/atom/sst/sst_drv_interface.c 	pointer_samples = bytes_to_samples(substream->runtime, pointer_bytes);
substream         509 sound/soc/intel/atom/sst/sst_drv_interface.c 	info->buffer_ptr = pointer_samples / substream->runtime->channels;
substream         520 sound/soc/intel/atom/sst/sst_drv_interface.c 	struct snd_pcm_substream *substream;
substream         533 sound/soc/intel/atom/sst/sst_drv_interface.c 	substream = stream->pcm_substream;
substream         540 sound/soc/intel/atom/sst/sst_drv_interface.c 	return sst_calc_tstamp(ctx, info, substream, &fw_tstamp);
substream          39 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_pcm_substream *substream;
substream          61 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_hw_params(struct snd_pcm_substream *substream,
substream          64 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          67 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream          71 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	int ret, playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         105 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         108 sound/soc/intel/baytrail/sst-baytrail-pcm.c 				    substream->dma_buffer.addr,
substream         124 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_hw_free(struct snd_pcm_substream *substream)
substream         126 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         129 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	snd_pcm_lib_free_pages(substream);
substream         134 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_restore_stream_context(struct snd_pcm_substream *substream)
substream         136 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         139 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream         163 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	if (snd_pcm_running(pcm_data->substream))
substream         164 sound/soc/intel/baytrail/sst-baytrail-pcm.c 		sst_byt_pcm_restore_stream_context(pcm_data->substream);
substream         167 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         169 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         172 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream         210 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_pcm_substream *substream = pcm_data->substream;
substream         211 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         212 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         219 sound/soc/intel/baytrail/sst-baytrail-pcm.c 					  snd_pcm_lib_buffer_bytes(substream));
substream         227 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	snd_pcm_period_elapsed(substream);
substream         231 sound/soc/intel/baytrail/sst-baytrail-pcm.c static snd_pcm_uframes_t sst_byt_pcm_pointer(struct snd_pcm_substream *substream)
substream         233 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         234 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         237 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream         244 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_open(struct snd_pcm_substream *substream)
substream         246 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         249 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream         256 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	pcm_data->substream = substream;
substream         258 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	snd_soc_set_runtime_hwparams(substream, &sst_byt_pcm_hardware);
substream         260 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	pcm_data->stream = sst_byt_stream_new(byt, substream->stream + 1,
substream         272 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_close(struct snd_pcm_substream *substream)
substream         274 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         277 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream];
substream         297 sound/soc/intel/baytrail/sst-baytrail-pcm.c static int sst_byt_pcm_mmap(struct snd_pcm_substream *substream,
substream         300 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         303 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	return snd_pcm_lib_default_mmap(substream, vma);
substream         324 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream ||
substream         325 sound/soc/intel/baytrail/sst-baytrail-pcm.c 	    pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         151 sound/soc/intel/boards/bdw-rt5677.c static int bdw_rt5677_hw_params(struct snd_pcm_substream *substream,
substream         154 sound/soc/intel/boards/bdw-rt5677.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         103 sound/soc/intel/boards/broadwell.c static int broadwell_rt286_hw_params(struct snd_pcm_substream *substream,
substream         106 sound/soc/intel/boards/broadwell.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         283 sound/soc/intel/boards/bxt_da7219_max98357a.c static int bxt_fe_startup(struct snd_pcm_substream *substream)
substream         285 sound/soc/intel/boards/bxt_da7219_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         324 sound/soc/intel/boards/bxt_da7219_max98357a.c static int broxton_dmic_startup(struct snd_pcm_substream *substream)
substream         326 sound/soc/intel/boards/bxt_da7219_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         332 sound/soc/intel/boards/bxt_da7219_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         358 sound/soc/intel/boards/bxt_da7219_max98357a.c static int broxton_refcap_startup(struct snd_pcm_substream *substream)
substream         360 sound/soc/intel/boards/bxt_da7219_max98357a.c 	substream->runtime->hw.channels_max = 1;
substream         361 sound/soc/intel/boards/bxt_da7219_max98357a.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         365 sound/soc/intel/boards/bxt_da7219_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         222 sound/soc/intel/boards/bxt_rt298.c static int broxton_rt298_hw_params(struct snd_pcm_substream *substream,
substream         225 sound/soc/intel/boards/bxt_rt298.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         273 sound/soc/intel/boards/bxt_rt298.c static int broxton_dmic_startup(struct snd_pcm_substream *substream)
substream         275 sound/soc/intel/boards/bxt_rt298.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         281 sound/soc/intel/boards/bxt_rt298.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         299 sound/soc/intel/boards/bxt_rt298.c static int bxt_fe_startup(struct snd_pcm_substream *substream)
substream         301 sound/soc/intel/boards/bxt_rt298.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          72 sound/soc/intel/boards/byt-rt5640.c static int byt_rt5640_hw_params(struct snd_pcm_substream *substream,
substream          75 sound/soc/intel/boards/byt-rt5640.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         144 sound/soc/intel/boards/bytcht_cx2072x.c static int byt_cht_cx2072x_aif1_startup(struct snd_pcm_substream *substream)
substream         146 sound/soc/intel/boards/bytcht_cx2072x.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream          99 sound/soc/intel/boards/bytcht_da7213.c static int aif1_startup(struct snd_pcm_substream *substream)
substream         101 sound/soc/intel/boards/bytcht_da7213.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         105 sound/soc/intel/boards/bytcht_da7213.c static int aif1_hw_params(struct snd_pcm_substream *substream,
substream         108 sound/soc/intel/boards/bytcht_da7213.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         127 sound/soc/intel/boards/bytcht_da7213.c static int aif1_hw_free(struct snd_pcm_substream *substream)
substream         129 sound/soc/intel/boards/bytcht_da7213.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         292 sound/soc/intel/boards/bytcht_es8316.c static int byt_cht_es8316_aif1_startup(struct snd_pcm_substream *substream)
substream         294 sound/soc/intel/boards/bytcht_es8316.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream          89 sound/soc/intel/boards/bytcht_nocodec.c static int aif1_startup(struct snd_pcm_substream *substream)
substream          91 sound/soc/intel/boards/bytcht_nocodec.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         380 sound/soc/intel/boards/bytcr_rt5640.c static int byt_rt5640_aif1_hw_params(struct snd_pcm_substream *substream,
substream         383 sound/soc/intel/boards/bytcr_rt5640.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1024 sound/soc/intel/boards/bytcr_rt5640.c static int byt_rt5640_aif1_startup(struct snd_pcm_substream *substream)
substream        1026 sound/soc/intel/boards/bytcr_rt5640.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         347 sound/soc/intel/boards/bytcr_rt5651.c static int byt_rt5651_aif1_hw_params(struct snd_pcm_substream *substream,
substream         350 sound/soc/intel/boards/bytcr_rt5651.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         725 sound/soc/intel/boards/bytcr_rt5651.c static int byt_rt5651_aif1_startup(struct snd_pcm_substream *substream)
substream         727 sound/soc/intel/boards/bytcr_rt5651.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         112 sound/soc/intel/boards/cht_bsw_max98090_ti.c static int cht_aif1_hw_params(struct snd_pcm_substream *substream,
substream         115 sound/soc/intel/boards/cht_bsw_max98090_ti.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         284 sound/soc/intel/boards/cht_bsw_max98090_ti.c static int cht_aif1_startup(struct snd_pcm_substream *substream)
substream         286 sound/soc/intel/boards/cht_bsw_max98090_ti.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream          72 sound/soc/intel/boards/cht_bsw_nau8824.c static int cht_aif1_hw_params(struct snd_pcm_substream *substream,
substream          75 sound/soc/intel/boards/cht_bsw_nau8824.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         156 sound/soc/intel/boards/cht_bsw_nau8824.c static int cht_aif1_startup(struct snd_pcm_substream *substream)
substream         158 sound/soc/intel/boards/cht_bsw_nau8824.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         207 sound/soc/intel/boards/cht_bsw_rt5645.c static int cht_aif1_hw_params(struct snd_pcm_substream *substream,
substream         210 sound/soc/intel/boards/cht_bsw_rt5645.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         415 sound/soc/intel/boards/cht_bsw_rt5645.c static int cht_aif1_startup(struct snd_pcm_substream *substream)
substream         417 sound/soc/intel/boards/cht_bsw_rt5645.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         143 sound/soc/intel/boards/cht_bsw_rt5672.c static int cht_aif1_hw_params(struct snd_pcm_substream *substream,
substream         146 sound/soc/intel/boards/cht_bsw_rt5672.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         277 sound/soc/intel/boards/cht_bsw_rt5672.c static int cht_aif1_startup(struct snd_pcm_substream *substream)
substream         279 sound/soc/intel/boards/cht_bsw_rt5672.c 	return snd_pcm_hw_constraint_single(substream->runtime,
substream         185 sound/soc/intel/boards/glk_rt5682_max98357a.c static int geminilake_rt5682_hw_params(struct snd_pcm_substream *substream,
substream         188 sound/soc/intel/boards/glk_rt5682_max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         284 sound/soc/intel/boards/glk_rt5682_max98357a.c static int geminilake_dmic_startup(struct snd_pcm_substream *substream)
substream         286 sound/soc/intel/boards/glk_rt5682_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         292 sound/soc/intel/boards/glk_rt5682_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         309 sound/soc/intel/boards/glk_rt5682_max98357a.c static int geminilake_refcap_startup(struct snd_pcm_substream *substream)
substream         311 sound/soc/intel/boards/glk_rt5682_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream          55 sound/soc/intel/boards/haswell.c static int haswell_rt5640_hw_params(struct snd_pcm_substream *substream,
substream          58 sound/soc/intel/boards/haswell.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         277 sound/soc/intel/boards/kbl_da7219_max98357a.c static int kbl_fe_startup(struct snd_pcm_substream *substream)
substream         279 sound/soc/intel/boards/kbl_da7219_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         323 sound/soc/intel/boards/kbl_da7219_max98357a.c static int kabylake_dmic_startup(struct snd_pcm_substream *substream)
substream         325 sound/soc/intel/boards/kbl_da7219_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         331 sound/soc/intel/boards/kbl_da7219_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         175 sound/soc/intel/boards/kbl_da7219_max98927.c static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
substream         178 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_soc_pcm_runtime *runtime = substream->private_data;
substream         221 sound/soc/intel/boards/kbl_da7219_max98927.c static int kabylake_ssp0_trigger(struct snd_pcm_substream *substream, int cmd)
substream         223 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         452 sound/soc/intel/boards/kbl_da7219_max98927.c static int kbl_fe_startup(struct snd_pcm_substream *substream)
substream         454 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         455 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_soc_pcm_runtime *soc_rt = substream->private_data;
substream         509 sound/soc/intel/boards/kbl_da7219_max98927.c static int kabylake_dmic_startup(struct snd_pcm_substream *substream)
substream         511 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         512 sound/soc/intel/boards/kbl_da7219_max98927.c 	struct snd_soc_pcm_runtime *soc_rt = substream->private_data;
substream         529 sound/soc/intel/boards/kbl_da7219_max98927.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         554 sound/soc/intel/boards/kbl_da7219_max98927.c static int kabylake_refcap_startup(struct snd_pcm_substream *substream)
substream         556 sound/soc/intel/boards/kbl_da7219_max98927.c 	substream->runtime->hw.channels_max = 1;
substream         557 sound/soc/intel/boards/kbl_da7219_max98927.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         561 sound/soc/intel/boards/kbl_da7219_max98927.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         243 sound/soc/intel/boards/kbl_rt5660.c static int kabylake_rt5660_hw_params(struct snd_pcm_substream *substream,
substream         246 sound/soc/intel/boards/kbl_rt5660.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         292 sound/soc/intel/boards/kbl_rt5660.c static int kbl_fe_startup(struct snd_pcm_substream *substream)
substream         294 sound/soc/intel/boards/kbl_rt5660.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         368 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kbl_fe_startup(struct snd_pcm_substream *substream)
substream         370 sound/soc/intel/boards/kbl_rt5663_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         430 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kabylake_rt5663_hw_params(struct snd_pcm_substream *substream,
substream         433 sound/soc/intel/boards/kbl_rt5663_max98927.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         468 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
substream         471 sound/soc/intel/boards/kbl_rt5663_max98927.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         524 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kabylake_dmic_startup(struct snd_pcm_substream *substream)
substream         526 sound/soc/intel/boards/kbl_rt5663_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         532 sound/soc/intel/boards/kbl_rt5663_max98927.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         558 sound/soc/intel/boards/kbl_rt5663_max98927.c static int kabylake_refcap_startup(struct snd_pcm_substream *substream)
substream         560 sound/soc/intel/boards/kbl_rt5663_max98927.c 	substream->runtime->hw.channels_max = 1;
substream         561 sound/soc/intel/boards/kbl_rt5663_max98927.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         565 sound/soc/intel/boards/kbl_rt5663_max98927.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         238 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c static int kbl_fe_startup(struct snd_pcm_substream *substream)
substream         240 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         306 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c static int kabylake_rt5663_hw_params(struct snd_pcm_substream *substream,
substream         309 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         330 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c static int kabylake_ssp0_hw_params(struct snd_pcm_substream *substream,
substream         333 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         395 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c static int kabylake_dmic_startup(struct snd_pcm_substream *substream)
substream         397 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         406 sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         267 sound/soc/intel/boards/skl_nau88l25_max98357a.c static int skl_fe_startup(struct snd_pcm_substream *substream)
substream         269 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         295 sound/soc/intel/boards/skl_nau88l25_max98357a.c static int skylake_nau8825_hw_params(struct snd_pcm_substream *substream,
substream         298 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         349 sound/soc/intel/boards/skl_nau88l25_max98357a.c static int skylake_dmic_startup(struct snd_pcm_substream *substream)
substream         351 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         357 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         383 sound/soc/intel/boards/skl_nau88l25_max98357a.c static int skylake_refcap_startup(struct snd_pcm_substream *substream)
substream         385 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	substream->runtime->hw.channels_max = 1;
substream         386 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         390 sound/soc/intel/boards/skl_nau88l25_max98357a.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         287 sound/soc/intel/boards/skl_nau88l25_ssm4567.c static int skl_fe_startup(struct snd_pcm_substream *substream)
substream         289 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         347 sound/soc/intel/boards/skl_nau88l25_ssm4567.c static int skylake_nau8825_hw_params(struct snd_pcm_substream *substream,
substream         350 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         387 sound/soc/intel/boards/skl_nau88l25_ssm4567.c static int skylake_dmic_startup(struct snd_pcm_substream *substream)
substream         389 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         395 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         421 sound/soc/intel/boards/skl_nau88l25_ssm4567.c static int skylake_refcap_startup(struct snd_pcm_substream *substream)
substream         423 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	substream->runtime->hw.channels_max = 1;
substream         424 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         428 sound/soc/intel/boards/skl_nau88l25_ssm4567.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         181 sound/soc/intel/boards/skl_rt286.c static int skl_fe_startup(struct snd_pcm_substream *substream)
substream         183 sound/soc/intel/boards/skl_rt286.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         228 sound/soc/intel/boards/skl_rt286.c static int skylake_rt286_hw_params(struct snd_pcm_substream *substream,
substream         231 sound/soc/intel/boards/skl_rt286.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         270 sound/soc/intel/boards/skl_rt286.c static int skylake_dmic_startup(struct snd_pcm_substream *substream)
substream         272 sound/soc/intel/boards/skl_rt286.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         278 sound/soc/intel/boards/skl_rt286.c 	return snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         203 sound/soc/intel/boards/sof_rt5682.c static int sof_rt5682_hw_params(struct snd_pcm_substream *substream,
substream         206 sound/soc/intel/boards/sof_rt5682.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         110 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_substream *substream;
substream         430 sound/soc/intel/haswell/sst-haswell-pcm.c static int create_adsp_page_table(struct snd_pcm_substream *substream,
substream         434 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_dma_buffer *dmab = snd_pcm_get_dma_buf(substream);
substream         435 sound/soc/intel/haswell/sst-haswell-pcm.c 	int i, pages, stream = substream->stream;
substream         461 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_hw_params(struct snd_pcm_substream *substream,
substream         464 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         465 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         480 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data = &pdata->pcm[dai][substream->stream];
substream         506 sound/soc/intel/haswell/sst-haswell-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         514 sound/soc/intel/haswell/sst-haswell-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         595 sound/soc/intel/haswell/sst-haswell-pcm.c 	ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         602 sound/soc/intel/haswell/sst-haswell-pcm.c 	dmab = snd_pcm_get_dma_buf(substream);
substream         604 sound/soc/intel/haswell/sst-haswell-pcm.c 	ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area,
substream         618 sound/soc/intel/haswell/sst-haswell-pcm.c 		pdata->dmab[rtd->cpu_dai->id][substream->stream].addr,
substream         659 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_hw_free(struct snd_pcm_substream *substream)
substream         661 sound/soc/intel/haswell/sst-haswell-pcm.c 	snd_pcm_lib_free_pages(substream);
substream         665 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         667 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         673 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         678 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data = &pdata->pcm[dai][substream->stream];
substream         709 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_substream *substream = pcm_data->substream;
substream         710 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         711 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         733 sound/soc/intel/haswell/sst-haswell-pcm.c 		|| (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         735 sound/soc/intel/haswell/sst-haswell-pcm.c 		snd_pcm_period_elapsed(substream);
substream         769 sound/soc/intel/haswell/sst-haswell-pcm.c 	snd_pcm_period_elapsed(substream);
substream         773 sound/soc/intel/haswell/sst-haswell-pcm.c static snd_pcm_uframes_t hsw_pcm_pointer(struct snd_pcm_substream *substream)
substream         775 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         776 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         787 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data = &pdata->pcm[dai][substream->stream];
substream         798 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_open(struct snd_pcm_substream *substream)
substream         800 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         808 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data = &pdata->pcm[dai][substream->stream];
substream         813 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data->substream = substream;
substream         815 sound/soc/intel/haswell/sst-haswell-pcm.c 	snd_soc_set_runtime_hwparams(substream, &hsw_pcm_hardware);
substream         831 sound/soc/intel/haswell/sst-haswell-pcm.c static int hsw_pcm_close(struct snd_pcm_substream *substream)
substream         833 sound/soc/intel/haswell/sst-haswell-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         841 sound/soc/intel/haswell/sst-haswell-pcm.c 	pcm_data = &pdata->pcm[dai][substream->stream];
substream         941 sound/soc/intel/haswell/sst-haswell-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream ||
substream         942 sound/soc/intel/haswell/sst-haswell-pcm.c 			pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         949 sound/soc/intel/haswell/sst-haswell-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream)
substream         951 sound/soc/intel/haswell/sst-haswell-pcm.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream)
substream        1295 sound/soc/intel/haswell/sst-haswell-pcm.c 		if (!pcm_data->substream)
substream        1329 sound/soc/intel/haswell/sst-haswell-pcm.c 			if (!pcm_data->substream)
substream        1342 sound/soc/intel/haswell/sst-haswell-pcm.c 			if (!pcm_data->substream)
substream          77 sound/soc/intel/skylake/skl-messages.c 	struct snd_pcm_substream substream;
substream          83 sound/soc/intel/skylake/skl-messages.c 	memset(&substream, 0, sizeof(substream));
substream          84 sound/soc/intel/skylake/skl-messages.c 	substream.stream = SNDRV_PCM_STREAM_PLAYBACK;
substream          86 sound/soc/intel/skylake/skl-messages.c 	estream = snd_hdac_ext_stream_assign(bus, &substream,
substream          57 sound/soc/intel/skylake/skl-pcm.c struct hdac_ext_stream *get_hdac_ext_stream(struct snd_pcm_substream *substream)
substream          59 sound/soc/intel/skylake/skl-pcm.c 	return substream->runtime->private_data;
substream          62 sound/soc/intel/skylake/skl-pcm.c static struct hdac_bus *get_bus_ctx(struct snd_pcm_substream *substream)
substream          64 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream          71 sound/soc/intel/skylake/skl-pcm.c 				 struct snd_pcm_substream *substream,
substream          74 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream          80 sound/soc/intel/skylake/skl-pcm.c 	return snd_pcm_lib_malloc_pages(substream, size);
substream          84 sound/soc/intel/skylake/skl-pcm.c 				struct snd_pcm_substream *substream)
substream          86 sound/soc/intel/skylake/skl-pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         114 sound/soc/intel/skylake/skl-pcm.c static void skl_set_suspend_active(struct snd_pcm_substream *substream,
substream         121 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         220 sound/soc/intel/skylake/skl-pcm.c static int skl_pcm_open(struct snd_pcm_substream *substream,
substream         225 sound/soc/intel/skylake/skl-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         232 sound/soc/intel/skylake/skl-pcm.c 	stream = snd_hdac_ext_stream_assign(bus, substream,
substream         243 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         255 sound/soc/intel/skylake/skl-pcm.c 	snd_soc_dai_set_dma_data(dai, substream, dma_params);
substream         259 sound/soc/intel/skylake/skl-pcm.c 	skl_set_suspend_active(substream, dai, true);
substream         260 sound/soc/intel/skylake/skl-pcm.c 	snd_pcm_set_sync(substream);
substream         262 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
substream         271 sound/soc/intel/skylake/skl-pcm.c static int skl_pcm_prepare(struct snd_pcm_substream *substream,
substream         280 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
substream         287 sound/soc/intel/skylake/skl-pcm.c 		(substream->runtime->status->state == SNDRV_PCM_STATE_XRUN ||
substream         305 sound/soc/intel/skylake/skl-pcm.c static int skl_pcm_hw_params(struct snd_pcm_substream *substream,
substream         310 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream         311 sound/soc/intel/skylake/skl-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         317 sound/soc/intel/skylake/skl-pcm.c 	ret = skl_substream_alloc_pages(bus, substream,
substream         332 sound/soc/intel/skylake/skl-pcm.c 	p_params.stream = substream->stream;
substream         334 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         347 sound/soc/intel/skylake/skl-pcm.c static void skl_pcm_close(struct snd_pcm_substream *substream,
substream         350 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream         360 sound/soc/intel/skylake/skl-pcm.c 	dma_params = snd_soc_dai_get_dma_data(dai, substream);
substream         365 sound/soc/intel/skylake/skl-pcm.c 	snd_soc_dai_set_dma_data(dai, substream, NULL);
substream         366 sound/soc/intel/skylake/skl-pcm.c 	skl_set_suspend_active(substream, dai, false);
substream         378 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
substream         385 sound/soc/intel/skylake/skl-pcm.c static int skl_pcm_hw_free(struct snd_pcm_substream *substream,
substream         389 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream         396 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
substream         408 sound/soc/intel/skylake/skl-pcm.c 	return skl_substream_free_pages(bus, substream);
substream         411 sound/soc/intel/skylake/skl-pcm.c static int skl_be_hw_params(struct snd_pcm_substream *substream,
substream         420 sound/soc/intel/skylake/skl-pcm.c 	p_params.stream = substream->stream;
substream         425 sound/soc/intel/skylake/skl-pcm.c static int skl_decoupled_trigger(struct snd_pcm_substream *substream,
substream         428 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream         434 sound/soc/intel/skylake/skl-pcm.c 	stream = get_hdac_ext_stream(substream);
substream         471 sound/soc/intel/skylake/skl-pcm.c static int skl_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         476 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream         477 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream         481 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_fe_get_cpr_module(dai, substream->stream);
substream         485 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         514 sound/soc/intel/skylake/skl-pcm.c 		ret = skl_decoupled_trigger(substream, cmd);
substream         532 sound/soc/intel/skylake/skl-pcm.c 		ret = skl_decoupled_trigger(substream, cmd);
substream         554 sound/soc/intel/skylake/skl-pcm.c static int skl_link_hw_params(struct snd_pcm_substream *substream,
substream         560 sound/soc/intel/skylake/skl-pcm.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         566 sound/soc/intel/skylake/skl-pcm.c 	link_dev = snd_hdac_ext_stream_assign(bus, substream,
substream         571 sound/soc/intel/skylake/skl-pcm.c 	snd_soc_dai_set_dma_data(dai, substream, (void *)link_dev);
substream         580 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         588 sound/soc/intel/skylake/skl-pcm.c 	p_params.stream = substream->stream;
substream         593 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         601 sound/soc/intel/skylake/skl-pcm.c static int skl_link_pcm_prepare(struct snd_pcm_substream *substream,
substream         608 sound/soc/intel/skylake/skl-pcm.c 	mconfig = skl_tplg_be_get_cpr_module(dai, substream->stream);
substream         610 sound/soc/intel/skylake/skl-pcm.c 		(substream->runtime->status->state == SNDRV_PCM_STATE_XRUN))
substream         616 sound/soc/intel/skylake/skl-pcm.c static int skl_link_pcm_trigger(struct snd_pcm_substream *substream,
substream         620 sound/soc/intel/skylake/skl-pcm.c 				snd_soc_dai_get_dma_data(dai, substream);
substream         621 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream         622 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *stream = get_hdac_ext_stream(substream);
substream         646 sound/soc/intel/skylake/skl-pcm.c static int skl_link_hw_free(struct snd_pcm_substream *substream,
substream         650 sound/soc/intel/skylake/skl-pcm.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         652 sound/soc/intel/skylake/skl-pcm.c 				snd_soc_dai_get_dma_data(dai, substream);
substream         664 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1084 sound/soc/intel/skylake/skl-pcm.c static int skl_platform_open(struct snd_pcm_substream *substream)
substream        1086 sound/soc/intel/skylake/skl-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1092 sound/soc/intel/skylake/skl-pcm.c 	snd_soc_set_runtime_hwparams(substream, &azx_pcm_hw);
substream        1097 sound/soc/intel/skylake/skl-pcm.c static int skl_coupled_trigger(struct snd_pcm_substream *substream,
substream        1100 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream        1108 sound/soc/intel/skylake/skl-pcm.c 	stream = get_hdac_ext_stream(substream);
substream        1133 sound/soc/intel/skylake/skl-pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1134 sound/soc/intel/skylake/skl-pcm.c 		if (s->pcm->card != substream->pcm->card)
substream        1138 sound/soc/intel/skylake/skl-pcm.c 		snd_pcm_trigger_done(s, substream);
substream        1146 sound/soc/intel/skylake/skl-pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream        1147 sound/soc/intel/skylake/skl-pcm.c 		if (s->pcm->card != substream->pcm->card)
substream        1170 sound/soc/intel/skylake/skl-pcm.c static int skl_platform_pcm_trigger(struct snd_pcm_substream *substream,
substream        1173 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream        1176 sound/soc/intel/skylake/skl-pcm.c 		return skl_coupled_trigger(substream, cmd);
substream        1182 sound/soc/intel/skylake/skl-pcm.c 			(struct snd_pcm_substream *substream)
substream        1184 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *hstream = get_hdac_ext_stream(substream);
substream        1185 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_bus *bus = get_bus_ctx(substream);
substream        1209 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1225 sound/soc/intel/skylake/skl-pcm.c 	return bytes_to_frames(substream->runtime, pos);
substream        1228 sound/soc/intel/skylake/skl-pcm.c static u64 skl_adjust_codec_delay(struct snd_pcm_substream *substream,
substream        1231 sound/soc/intel/skylake/skl-pcm.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream        1238 sound/soc/intel/skylake/skl-pcm.c 	codec_frames = codec_dai->driver->ops->delay(substream, codec_dai);
substream        1240 sound/soc/intel/skylake/skl-pcm.c 			      substream->runtime->rate);
substream        1242 sound/soc/intel/skylake/skl-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream        1248 sound/soc/intel/skylake/skl-pcm.c static int skl_get_time_info(struct snd_pcm_substream *substream,
substream        1253 sound/soc/intel/skylake/skl-pcm.c 	struct hdac_ext_stream *sstream = get_hdac_ext_stream(substream);
substream        1257 sound/soc/intel/skylake/skl-pcm.c 	if ((substream->runtime->hw.info & SNDRV_PCM_INFO_HAS_LINK_ATIME) &&
substream        1260 sound/soc/intel/skylake/skl-pcm.c 		snd_pcm_gettime(substream->runtime, system_ts);
substream        1265 sound/soc/intel/skylake/skl-pcm.c 			nsec = skl_adjust_codec_delay(substream, nsec);
substream         211 sound/soc/intel/skylake/skl.c 	snd_pcm_period_elapsed(hstr->substream);
substream         122 sound/soc/jz4740/jz4740-i2s.c static int jz4740_i2s_startup(struct snd_pcm_substream *substream,
substream         147 sound/soc/jz4740/jz4740-i2s.c static void jz4740_i2s_shutdown(struct snd_pcm_substream *substream,
substream         163 sound/soc/jz4740/jz4740-i2s.c static int jz4740_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         171 sound/soc/jz4740/jz4740-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         249 sound/soc/jz4740/jz4740-i2s.c static int jz4740_i2s_hw_params(struct snd_pcm_substream *substream,
substream         273 sound/soc/jz4740/jz4740-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          18 sound/soc/kirkwood/armada-370-db.c static int a370db_hw_params(struct snd_pcm_substream *substream,
substream          21 sound/soc/kirkwood/armada-370-db.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         101 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_open(struct snd_pcm_substream *substream)
substream         104 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         105 sound/soc/kirkwood/kirkwood-dma.c 	struct kirkwood_dma_data *priv = kirkwood_priv(substream);
substream         109 sound/soc/kirkwood/kirkwood-dma.c 	snd_soc_set_runtime_hwparams(substream, &kirkwood_dma_snd_hw);
substream         125 sound/soc/kirkwood/kirkwood-dma.c 	err = snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         145 sound/soc/kirkwood/kirkwood-dma.c 	addr = substream->dma_buffer.addr;
substream         146 sound/soc/kirkwood/kirkwood-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         149 sound/soc/kirkwood/kirkwood-dma.c 		priv->substream_play = substream;
substream         155 sound/soc/kirkwood/kirkwood-dma.c 		priv->substream_rec = substream;
substream         163 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_close(struct snd_pcm_substream *substream)
substream         165 sound/soc/kirkwood/kirkwood-dma.c 	struct kirkwood_dma_data *priv = kirkwood_priv(substream);
substream         170 sound/soc/kirkwood/kirkwood-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         183 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_hw_params(struct snd_pcm_substream *substream,
substream         186 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         188 sound/soc/kirkwood/kirkwood-dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         194 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_hw_free(struct snd_pcm_substream *substream)
substream         196 sound/soc/kirkwood/kirkwood-dma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         200 sound/soc/kirkwood/kirkwood-dma.c static int kirkwood_dma_prepare(struct snd_pcm_substream *substream)
substream         202 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         203 sound/soc/kirkwood/kirkwood-dma.c 	struct kirkwood_dma_data *priv = kirkwood_priv(substream);
substream         209 sound/soc/kirkwood/kirkwood-dma.c 	count = snd_pcm_lib_period_bytes(substream);
substream         211 sound/soc/kirkwood/kirkwood-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         226 sound/soc/kirkwood/kirkwood-dma.c 						*substream)
substream         228 sound/soc/kirkwood/kirkwood-dma.c 	struct kirkwood_dma_data *priv = kirkwood_priv(substream);
substream         231 sound/soc/kirkwood/kirkwood-dma.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         232 sound/soc/kirkwood/kirkwood-dma.c 		count = bytes_to_frames(substream->runtime,
substream         235 sound/soc/kirkwood/kirkwood-dma.c 		count = bytes_to_frames(substream->runtime,
substream         254 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream         255 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         280 sound/soc/kirkwood/kirkwood-dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream         287 sound/soc/kirkwood/kirkwood-dma.c 	if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) {
substream         299 sound/soc/kirkwood/kirkwood-dma.c 	struct snd_pcm_substream *substream;
substream         304 sound/soc/kirkwood/kirkwood-dma.c 		substream = pcm->streams[stream].substream;
substream         305 sound/soc/kirkwood/kirkwood-dma.c 		if (!substream)
substream         307 sound/soc/kirkwood/kirkwood-dma.c 		buf = &substream->dma_buffer;
substream         124 sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_startup(struct snd_pcm_substream *substream,
substream         129 sound/soc/kirkwood/kirkwood-i2s.c 	snd_soc_dai_set_dma_data(dai, substream, priv);
substream         133 sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_hw_params(struct snd_pcm_substream *substream,
substream         142 sound/soc/kirkwood/kirkwood-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         198 sound/soc/kirkwood/kirkwood-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         228 sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_play_trigger(struct snd_pcm_substream *substream,
substream         231 sound/soc/kirkwood/kirkwood-i2s.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         316 sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_rec_trigger(struct snd_pcm_substream *substream,
substream         382 sound/soc/kirkwood/kirkwood-i2s.c static int kirkwood_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         385 sound/soc/kirkwood/kirkwood-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         386 sound/soc/kirkwood/kirkwood-i2s.c 		return kirkwood_i2s_play_trigger(substream, cmd, dai);
substream         388 sound/soc/kirkwood/kirkwood-i2s.c 		return kirkwood_i2s_rec_trigger(substream, cmd, dai);
substream          35 sound/soc/mediatek/common/mtk-afe-fe-dai.c int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
substream          38 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          40 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          46 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	memif->substream = substream;
substream          48 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream          54 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	snd_soc_set_runtime_hwparams(substream, mtk_afe_hardware);
substream          62 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream          96 sound/soc/mediatek/common/mtk-afe-fe-dai.c void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
substream          99 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         112 sound/soc/mediatek/common/mtk-afe-fe-dai.c 		memif->substream = NULL;
substream         117 sound/soc/mediatek/common/mtk-afe-fe-dai.c int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
substream         121 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         127 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         131 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	msb_at_bit33 = upper_32_bits(substream->runtime->dma_addr) ? 1 : 0;
substream         132 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	memif->phys_buf_addr = lower_32_bits(substream->runtime->dma_addr);
substream         133 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	memif->buffer_size = substream->runtime->dma_bytes;
substream         159 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	fs = afe->memif_fs(substream, params_rate(params));
substream         172 sound/soc/mediatek/common/mtk-afe-fe-dai.c int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
substream         175 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	return snd_pcm_lib_free_pages(substream);
substream         179 sound/soc/mediatek/common/mtk-afe-fe-dai.c int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
substream         182 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         183 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_pcm_runtime * const runtime = substream->runtime;
substream         206 sound/soc/mediatek/common/mtk-afe-fe-dai.c 		fs = afe->irq_fs(substream, runtime->rate);
substream         237 sound/soc/mediatek/common/mtk-afe-fe-dai.c int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
substream         240 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	struct snd_soc_pcm_runtime *rtd  = substream->private_data;
substream         247 sound/soc/mediatek/common/mtk-afe-fe-dai.c 	switch (substream->runtime->format) {
substream         260 sound/soc/mediatek/common/mtk-afe-fe-dai.c 			__func__, substream->runtime->format);
substream          16 sound/soc/mediatek/common/mtk-afe-fe-dai.h int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
substream          18 sound/soc/mediatek/common/mtk-afe-fe-dai.h void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
substream          20 sound/soc/mediatek/common/mtk-afe-fe-dai.h int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
substream          23 sound/soc/mediatek/common/mtk-afe-fe-dai.h int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
substream          25 sound/soc/mediatek/common/mtk-afe-fe-dai.h int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
substream          27 sound/soc/mediatek/common/mtk-afe-fe-dai.h int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
substream          81 sound/soc/mediatek/common/mtk-afe-platform-driver.c 			 (struct snd_pcm_substream *substream)
substream          83 sound/soc/mediatek/common/mtk-afe-platform-driver.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         112 sound/soc/mediatek/common/mtk-afe-platform-driver.c 	return bytes_to_frames(substream->runtime, pcm_ptr_bytes);
substream          83 sound/soc/mediatek/common/mtk-base-afe.h 	int (*memif_fs)(struct snd_pcm_substream *substream,
substream          85 sound/soc/mediatek/common/mtk-base-afe.h 	int (*irq_fs)(struct snd_pcm_substream *substream,
substream          94 sound/soc/mediatek/common/mtk-base-afe.h 	struct snd_pcm_substream *substream;
substream          83 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_pcm_substream *substream;
substream         272 sound/soc/mediatek/common/mtk-btcvsd.c static int btcvsd_bytes_to_frame(struct snd_pcm_substream *substream,
substream         276 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         622 sound/soc/mediatek/common/mtk-btcvsd.c 		snd_pcm_period_elapsed(bt->rx->substream);
substream         628 sound/soc/mediatek/common/mtk-btcvsd.c 		snd_pcm_period_elapsed(bt->tx->substream);
substream         858 sound/soc/mediatek/common/mtk-btcvsd.c 	(struct mtk_btcvsd_snd *bt, struct snd_pcm_substream *substream)
substream         860 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         878 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_open(struct snd_pcm_substream *substream)
substream         880 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         887 sound/soc/mediatek/common/mtk-btcvsd.c 		__func__, substream->stream, substream);
substream         889 sound/soc/mediatek/common/mtk-btcvsd.c 	snd_soc_set_runtime_hwparams(substream, &mtk_btcvsd_hardware);
substream         891 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         893 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->tx->substream = substream;
substream         896 sound/soc/mediatek/common/mtk-btcvsd.c 		bt->rx->substream = substream;
substream         902 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_close(struct snd_pcm_substream *substream)
substream         904 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         908 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
substream         910 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
substream         913 sound/soc/mediatek/common/mtk-btcvsd.c 	bt_stream->substream = NULL;
substream         917 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_hw_params(struct snd_pcm_substream *substream,
substream         920 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         925 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         933 sound/soc/mediatek/common/mtk-btcvsd.c 	substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
substream         937 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_hw_free(struct snd_pcm_substream *substream)
substream         939 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         944 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         950 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_prepare(struct snd_pcm_substream *substream)
substream         952 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         956 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
substream         958 sound/soc/mediatek/common/mtk-btcvsd.c 	dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
substream         964 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_trigger(struct snd_pcm_substream *substream, int cmd)
substream         966 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         970 sound/soc/mediatek/common/mtk-btcvsd.c 	struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
substream         971 sound/soc/mediatek/common/mtk-btcvsd.c 	int stream = substream->stream;
substream         975 sound/soc/mediatek/common/mtk-btcvsd.c 		__func__, substream->stream, cmd);
substream         997 sound/soc/mediatek/common/mtk-btcvsd.c 	(struct snd_pcm_substream *substream)
substream         999 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1011 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream        1020 sound/soc/mediatek/common/mtk-btcvsd.c 	hw_packet_ptr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream        1036 sound/soc/mediatek/common/mtk-btcvsd.c 	frame = btcvsd_bytes_to_frame(substream, byte);
substream        1038 sound/soc/mediatek/common/mtk-btcvsd.c 	frame %= substream->runtime->buffer_size;
substream        1047 sound/soc/mediatek/common/mtk-btcvsd.c static int mtk_pcm_btcvsd_copy(struct snd_pcm_substream *substream,
substream        1051 sound/soc/mediatek/common/mtk-btcvsd.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1056 sound/soc/mediatek/common/mtk-btcvsd.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         108 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_afe_i2s_startup(struct snd_pcm_substream *substream,
substream         143 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static void mt2701_afe_i2s_shutdown(struct snd_pcm_substream *substream,
substream         157 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	if (i2s_path->occupied[substream->stream])
substream         158 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		i2s_path->occupied[substream->stream] = 0;
substream         162 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	mt2701_afe_i2s_path_disable(afe, i2s_path, substream->stream);
substream         165 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         166 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		mt2701_afe_i2s_path_disable(afe, i2s_path, !substream->stream);
substream         231 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_afe_i2s_prepare(struct snd_pcm_substream *substream,
substream         245 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	if (i2s_path->occupied[substream->stream])
substream         252 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	i2s_path->occupied[substream->stream] = 1;
substream         255 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         256 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		mt2701_i2s_path_enable(afe, i2s_path, !substream->stream,
substream         257 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 				       substream->runtime->rate);
substream         259 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	mt2701_i2s_path_enable(afe, i2s_path, substream->stream,
substream         260 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 			       substream->runtime->rate);
substream         287 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_btmrg_startup(struct snd_pcm_substream *substream,
substream         298 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	afe_priv->mrg_enable[substream->stream] = 1;
substream         303 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_btmrg_hw_params(struct snd_pcm_substream *substream,
substream         345 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static void mt2701_btmrg_shutdown(struct snd_pcm_substream *substream,
substream         352 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	if (!afe_priv->mrg_enable[!substream->stream]) {
substream         362 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	afe_priv->mrg_enable[substream->stream] = 0;
substream         365 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_simple_fe_startup(struct snd_pcm_substream *substream,
substream         370 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	int stream_dir = substream->stream;
substream         375 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		if (memif_tmp->substream) {
substream         381 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mtk_afe_fe_startup(substream, dai);
substream         384 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_simple_fe_hw_params(struct snd_pcm_substream *substream,
substream         389 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	int stream_dir = substream->stream;
substream         398 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mtk_afe_fe_hw_params(substream, params, dai);
substream         401 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_dlm_fe_startup(struct snd_pcm_substream *substream,
substream         411 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		if (memif_tmp->substream)
substream         424 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mtk_afe_fe_startup(substream, dai);
substream         427 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static void mt2701_dlm_fe_shutdown(struct snd_pcm_substream *substream,
substream         442 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mtk_afe_fe_shutdown(substream, dai);
substream         445 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_dlm_fe_hw_params(struct snd_pcm_substream *substream,
substream         465 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	return mtk_afe_fe_hw_params(substream, params, dai);
substream         468 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_dlm_fe_trigger(struct snd_pcm_substream *substream,
substream         480 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		mtk_afe_fe_trigger(substream, cmd, dai);
substream         484 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 		mtk_afe_fe_trigger(substream, cmd, dai);
substream         494 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_memif_fs(struct snd_pcm_substream *substream,
substream         497 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         508 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c static int mt2701_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
substream        1304 sound/soc/mediatek/mt2701/mt2701-afe-pcm.c 			snd_pcm_period_elapsed(memif->substream);
substream         107 sound/soc/mediatek/mt2701/mt2701-cs42448.c static int mt2701_cs42448_fe_ops_startup(struct snd_pcm_substream *substream)
substream         111 sound/soc/mediatek/mt2701/mt2701-cs42448.c 	err = snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         115 sound/soc/mediatek/mt2701/mt2701-cs42448.c 		dev_err(substream->pcm->card->dev,
substream         127 sound/soc/mediatek/mt2701/mt2701-cs42448.c static int mt2701_cs42448_be_ops_hw_params(struct snd_pcm_substream *substream,
substream         130 sound/soc/mediatek/mt2701/mt2701-cs42448.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          24 sound/soc/mediatek/mt2701/mt2701-wm8960.c static int mt2701_wm8960_be_ops_hw_params(struct snd_pcm_substream *substream,
substream          27 sound/soc/mediatek/mt2701/mt2701-wm8960.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         139 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c static int mt6797_memif_fs(struct snd_pcm_substream *substream,
substream         142 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         151 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c static int mt6797_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
substream         153 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         630 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 		if (!memif->substream)
substream         636 sound/soc/mediatek/mt6797/mt6797-afe-pcm.c 			snd_pcm_period_elapsed(memif->substream);
substream         230 sound/soc/mediatek/mt6797/mt6797-dai-adda.c static int mtk_dai_adda_hw_params(struct snd_pcm_substream *substream,
substream         238 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 		__func__, dai->id, substream->stream, rate);
substream         240 sound/soc/mediatek/mt6797/mt6797-dai-adda.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          37 sound/soc/mediatek/mt6797/mt6797-dai-hostless.c static int mtk_dai_hostless_startup(struct snd_pcm_substream *substream,
substream          42 sound/soc/mediatek/mt6797/mt6797-dai-hostless.c 	return snd_soc_set_runtime_hwparams(substream, afe->mtk_afe_hardware);
substream         181 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c static int mtk_dai_pcm_hw_params(struct snd_pcm_substream *substream,
substream         193 sound/soc/mediatek/mt6797/mt6797-dai-pcm.c 		substream->stream,
substream         295 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_i2s_startup(struct snd_pcm_substream *substream,
substream         308 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static void mt8173_afe_i2s_shutdown(struct snd_pcm_substream *substream,
substream         322 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_i2s_prepare(struct snd_pcm_substream *substream,
substream         325 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	struct snd_pcm_runtime * const runtime = substream->runtime;
substream         335 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	ret = mt8173_afe_set_i2s(afe, substream->runtime->rate);
substream         344 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_hdmi_startup(struct snd_pcm_substream *substream,
substream         358 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static void mt8173_afe_hdmi_shutdown(struct snd_pcm_substream *substream,
substream         371 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_hdmi_prepare(struct snd_pcm_substream *substream,
substream         374 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	struct snd_pcm_runtime * const runtime = substream->runtime;
substream         434 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_afe_hdmi_trigger(struct snd_pcm_substream *substream, int cmd,
substream         482 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_memif_fs(struct snd_pcm_substream *substream,
substream         485 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         512 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c static int mt8173_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
substream         941 sound/soc/mediatek/mt8173/mt8173-afe-pcm.c 		snd_pcm_period_elapsed(memif->substream);
substream          52 sound/soc/mediatek/mt8173/mt8173-max98090.c static int mt8173_max98090_hw_params(struct snd_pcm_substream *substream,
substream          55 sound/soc/mediatek/mt8173/mt8173-max98090.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          43 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c static int mt8173_rt5650_rt5514_hw_params(struct snd_pcm_substream *substream,
substream          46 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5514.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          47 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c static int mt8173_rt5650_rt5676_hw_params(struct snd_pcm_substream *substream,
substream          50 sound/soc/mediatek/mt8173/mt8173-rt5650-rt5676.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          57 sound/soc/mediatek/mt8173/mt8173-rt5650.c static int mt8173_rt5650_hw_params(struct snd_pcm_substream *substream,
substream          60 sound/soc/mediatek/mt8173/mt8173-rt5650.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         141 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c static int mt8183_memif_fs(struct snd_pcm_substream *substream,
substream         144 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         153 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c static int mt8183_irq_fs(struct snd_pcm_substream *substream, unsigned int rate)
substream         155 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         955 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 		if (!memif->substream)
substream         964 sound/soc/mediatek/mt8183/mt8183-afe-pcm.c 			snd_pcm_period_elapsed(memif->substream);
substream          21 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c static int mt8183_mt6358_i2s_hw_params(struct snd_pcm_substream *substream,
substream          24 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          37 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c static int mt8183_da7219_i2s_hw_params(struct snd_pcm_substream *substream,
substream          40 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          80 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c static int mt8183_da7219_hw_free(struct snd_pcm_substream *substream)
substream          82 sound/soc/mediatek/mt8183/mt8183-da7219-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         352 sound/soc/mediatek/mt8183/mt8183-dai-adda.c static int mtk_dai_adda_hw_params(struct snd_pcm_substream *substream,
substream         360 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 		__func__, dai->id, substream->stream, rate);
substream         362 sound/soc/mediatek/mt8183/mt8183-dai-adda.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          37 sound/soc/mediatek/mt8183/mt8183-dai-hostless.c static int mtk_dai_hostless_startup(struct snd_pcm_substream *substream,
substream          42 sound/soc/mediatek/mt8183/mt8183-dai-hostless.c 	return snd_soc_set_runtime_hwparams(substream, afe->mtk_afe_hardware);
substream         780 sound/soc/mediatek/mt8183/mt8183-dai-i2s.c static int mtk_dai_i2s_hw_params(struct snd_pcm_substream *substream,
substream         181 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c static int mtk_dai_pcm_hw_params(struct snd_pcm_substream *substream,
substream         193 sound/soc/mediatek/mt8183/mt8183-dai-pcm.c 		substream->stream,
substream         464 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c static int mtk_dai_tdm_hw_params(struct snd_pcm_substream *substream,
substream         581 sound/soc/mediatek/mt8183/mt8183-dai-tdm.c static int mtk_dai_tdm_trigger(struct snd_pcm_substream *substream,
substream          35 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c static int mt8183_mt6358_i2s_hw_params(struct snd_pcm_substream *substream,
substream          38 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          66 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	struct snd_pcm_substream *substream)
substream          85 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         191 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c static int mt8183_mt6358_tdm_startup(struct snd_pcm_substream *substream)
substream         193 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         210 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c static void mt8183_mt6358_tdm_shutdown(struct snd_pcm_substream *substream)
substream         212 sound/soc/mediatek/mt8183/mt8183-mt6358-ts3a227-max98357.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         171 sound/soc/meson/axg-card.c static int axg_card_tdm_be_hw_params(struct snd_pcm_substream *substream,
substream         174 sound/soc/meson/axg-card.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         316 sound/soc/meson/axg-fifo.c 	snd_pcm_lib_preallocate_pages(rtd->pcm->streams[type].substream,
substream          33 sound/soc/meson/axg-frddr.c static int g12a_frddr_dai_prepare(struct snd_pcm_substream *substream,
substream          49 sound/soc/meson/axg-frddr.c static int axg_frddr_dai_startup(struct snd_pcm_substream *substream,
substream          77 sound/soc/meson/axg-frddr.c static void axg_frddr_dai_shutdown(struct snd_pcm_substream *substream,
substream         125 sound/soc/meson/axg-pdm.c static int axg_pdm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         223 sound/soc/meson/axg-pdm.c static int axg_pdm_hw_params(struct snd_pcm_substream *substream,
substream         270 sound/soc/meson/axg-pdm.c static int axg_pdm_startup(struct snd_pcm_substream *substream,
substream         288 sound/soc/meson/axg-pdm.c static void axg_pdm_shutdown(struct snd_pcm_substream *substream,
substream          95 sound/soc/meson/axg-spdifin.c static int axg_spdifin_prepare(struct snd_pcm_substream *substream,
substream         115 sound/soc/meson/axg-spdifin.c static int axg_spdifin_startup(struct snd_pcm_substream *substream,
substream         134 sound/soc/meson/axg-spdifin.c static void axg_spdifin_shutdown(struct snd_pcm_substream *substream,
substream          88 sound/soc/meson/axg-spdifout.c static int axg_spdifout_trigger(struct snd_pcm_substream *substream, int cmd,
substream         215 sound/soc/meson/axg-spdifout.c static int axg_spdifout_hw_params(struct snd_pcm_substream *substream,
substream         245 sound/soc/meson/axg-spdifout.c static int axg_spdifout_startup(struct snd_pcm_substream *substream,
substream         278 sound/soc/meson/axg-spdifout.c static void axg_spdifout_shutdown(struct snd_pcm_substream *substream,
substream         138 sound/soc/meson/axg-tdm-interface.c static int axg_tdm_iface_startup(struct snd_pcm_substream *substream,
substream         143 sound/soc/meson/axg-tdm-interface.c 		snd_soc_dai_get_dma_data(dai, substream);
substream         153 sound/soc/meson/axg-tdm-interface.c 		ret = snd_pcm_hw_constraint_single(substream->runtime,
substream         166 sound/soc/meson/axg-tdm-interface.c static int axg_tdm_iface_set_stream(struct snd_pcm_substream *substream,
substream         171 sound/soc/meson/axg-tdm-interface.c 	struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
substream         291 sound/soc/meson/axg-tdm-interface.c static int axg_tdm_iface_hw_params(struct snd_pcm_substream *substream,
substream         318 sound/soc/meson/axg-tdm-interface.c 	ret = axg_tdm_iface_set_stream(substream, params, dai);
substream         335 sound/soc/meson/axg-tdm-interface.c static int axg_tdm_iface_hw_free(struct snd_pcm_substream *substream,
substream         338 sound/soc/meson/axg-tdm-interface.c 	struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
substream         346 sound/soc/meson/axg-tdm-interface.c static int axg_tdm_iface_prepare(struct snd_pcm_substream *substream,
substream         349 sound/soc/meson/axg-tdm-interface.c 	struct axg_tdm_stream *ts = snd_soc_dai_get_dma_data(dai, substream);
substream          38 sound/soc/meson/axg-toddr.c static int g12a_toddr_dai_prepare(struct snd_pcm_substream *substream,
substream          54 sound/soc/meson/axg-toddr.c static int axg_toddr_dai_hw_params(struct snd_pcm_substream *substream,
substream          88 sound/soc/meson/axg-toddr.c static int axg_toddr_dai_startup(struct snd_pcm_substream *substream,
substream         112 sound/soc/meson/axg-toddr.c static void axg_toddr_dai_shutdown(struct snd_pcm_substream *substream,
substream         222 sound/soc/meson/g12a-tohdmitx.c static int g12a_tohdmitx_input_hw_params(struct snd_pcm_substream *substream,
substream         250 sound/soc/meson/g12a-tohdmitx.c static int g12a_tohdmitx_output_startup(struct snd_pcm_substream *substream,
substream         253 sound/soc/meson/g12a-tohdmitx.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         377 sound/soc/mxs/mxs-saif.c static int mxs_saif_startup(struct snd_pcm_substream *substream,
substream         402 sound/soc/mxs/mxs-saif.c static void mxs_saif_shutdown(struct snd_pcm_substream *substream,
substream         414 sound/soc/mxs/mxs-saif.c static int mxs_saif_hw_params(struct snd_pcm_substream *substream,
substream         490 sound/soc/mxs/mxs-saif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         502 sound/soc/mxs/mxs-saif.c static int mxs_saif_prepare(struct snd_pcm_substream *substream,
substream         514 sound/soc/mxs/mxs-saif.c static int mxs_saif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         561 sound/soc/mxs/mxs-saif.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          19 sound/soc/mxs/mxs-sgtl5000.c static int mxs_sgtl5000_hw_params(struct snd_pcm_substream *substream,
substream          22 sound/soc/mxs/mxs-sgtl5000.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          43 sound/soc/pxa/brownstone.c static int brownstone_wm8994_hw_params(struct snd_pcm_substream *substream,
substream          46 sound/soc/pxa/brownstone.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          97 sound/soc/pxa/corgi.c static int corgi_startup(struct snd_pcm_substream *substream)
substream          99 sound/soc/pxa/corgi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         108 sound/soc/pxa/corgi.c static void corgi_shutdown(struct snd_pcm_substream *substream)
substream         115 sound/soc/pxa/corgi.c static int corgi_hw_params(struct snd_pcm_substream *substream,
substream         118 sound/soc/pxa/corgi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          53 sound/soc/pxa/hx4700.c static int hx4700_hw_params(struct snd_pcm_substream *substream,
substream          56 sound/soc/pxa/hx4700.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          11 sound/soc/pxa/imote2.c static int imote2_asoc_hw_params(struct snd_pcm_substream *substream,
substream          14 sound/soc/pxa/imote2.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          69 sound/soc/pxa/magician.c static int magician_startup(struct snd_pcm_substream *substream)
substream          71 sound/soc/pxa/magician.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          82 sound/soc/pxa/magician.c static int magician_playback_hw_params(struct snd_pcm_substream *substream,
substream          85 sound/soc/pxa/magician.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         120 sound/soc/pxa/magician.c static int magician_capture_hw_params(struct snd_pcm_substream *substream,
substream         123 sound/soc/pxa/magician.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          58 sound/soc/pxa/mmp-pcm.c static int mmp_pcm_hw_params(struct snd_pcm_substream *substream,
substream          61 sound/soc/pxa/mmp-pcm.c 	struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream);
substream          66 sound/soc/pxa/mmp-pcm.c 	    snd_dmaengine_pcm_prepare_slave_config(substream, params,
substream          75 sound/soc/pxa/mmp-pcm.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream          97 sound/soc/pxa/mmp-pcm.c static int mmp_pcm_open(struct snd_pcm_substream *substream)
substream          99 sound/soc/pxa/mmp-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         106 sound/soc/pxa/mmp-pcm.c 	r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream);
substream         110 sound/soc/pxa/mmp-pcm.c 	snd_soc_set_runtime_hwparams(substream,
substream         111 sound/soc/pxa/mmp-pcm.c 				&mmp_pcm_hardware[substream->stream]);
substream         116 sound/soc/pxa/mmp-pcm.c 	return snd_dmaengine_pcm_open_request_chan(substream, filter,
substream         120 sound/soc/pxa/mmp-pcm.c static int mmp_pcm_mmap(struct snd_pcm_substream *substream,
substream         123 sound/soc/pxa/mmp-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         144 sound/soc/pxa/mmp-pcm.c 	struct snd_pcm_substream *substream;
substream         156 sound/soc/pxa/mmp-pcm.c 		substream = pcm->streams[stream].substream;
substream         157 sound/soc/pxa/mmp-pcm.c 		if (!substream)
substream         160 sound/soc/pxa/mmp-pcm.c 		buf = &substream->dma_buffer;
substream         169 sound/soc/pxa/mmp-pcm.c static int mmp_pcm_preallocate_dma_buffer(struct snd_pcm_substream *substream,
substream         172 sound/soc/pxa/mmp-pcm.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         177 sound/soc/pxa/mmp-pcm.c 	buf->dev.dev = substream->pcm->card->dev;
substream         193 sound/soc/pxa/mmp-pcm.c 	struct snd_pcm_substream *substream;
substream         198 sound/soc/pxa/mmp-pcm.c 		substream = pcm->streams[stream].substream;
substream         200 sound/soc/pxa/mmp-pcm.c 		ret = mmp_pcm_preallocate_dma_buffer(substream,	stream);
substream          89 sound/soc/pxa/mmp-sspa.c static int mmp_sspa_startup(struct snd_pcm_substream *substream,
substream         100 sound/soc/pxa/mmp-sspa.c static void mmp_sspa_shutdown(struct snd_pcm_substream *substream,
substream         249 sound/soc/pxa/mmp-sspa.c static int mmp_sspa_hw_params(struct snd_pcm_substream *substream,
substream         253 sound/soc/pxa/mmp-sspa.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         260 sound/soc/pxa/mmp-sspa.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         291 sound/soc/pxa/mmp-sspa.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         299 sound/soc/pxa/mmp-sspa.c 	dma_params = &sspa_priv->dma_params[substream->stream];
substream         300 sound/soc/pxa/mmp-sspa.c 	dma_params->addr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         303 sound/soc/pxa/mmp-sspa.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, dma_params);
substream         307 sound/soc/pxa/mmp-sspa.c static int mmp_sspa_trigger(struct snd_pcm_substream *substream, int cmd,
substream         327 sound/soc/pxa/mmp-sspa.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         338 sound/soc/pxa/mmp-sspa.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          69 sound/soc/pxa/poodle.c static int poodle_startup(struct snd_pcm_substream *substream)
substream          71 sound/soc/pxa/poodle.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          80 sound/soc/pxa/poodle.c static void poodle_shutdown(struct snd_pcm_substream *substream)
substream          89 sound/soc/pxa/poodle.c static int poodle_hw_params(struct snd_pcm_substream *substream,
substream          92 sound/soc/pxa/poodle.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          89 sound/soc/pxa/pxa-ssp.c static int pxa_ssp_startup(struct snd_pcm_substream *substream,
substream         108 sound/soc/pxa/pxa-ssp.c 	dma->chan_name = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         111 sound/soc/pxa/pxa-ssp.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, dma);
substream         116 sound/soc/pxa/pxa-ssp.c static void pxa_ssp_shutdown(struct snd_pcm_substream *substream,
substream         130 sound/soc/pxa/pxa-ssp.c 	kfree(snd_soc_dai_get_dma_data(cpu_dai, substream));
substream         131 sound/soc/pxa/pxa-ssp.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, NULL);
substream         549 sound/soc/pxa/pxa-ssp.c static int pxa_ssp_hw_params(struct snd_pcm_substream *substream,
substream         564 sound/soc/pxa/pxa-ssp.c 	dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream);
substream         572 sound/soc/pxa/pxa-ssp.c 		substream->stream == SNDRV_PCM_STREAM_PLAYBACK, dma_data);
substream         699 sound/soc/pxa/pxa-ssp.c static void pxa_ssp_set_running_bit(struct snd_pcm_substream *substream,
substream         710 sound/soc/pxa/pxa-ssp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         731 sound/soc/pxa/pxa-ssp.c static int pxa_ssp_trigger(struct snd_pcm_substream *substream, int cmd,
substream         744 sound/soc/pxa/pxa-ssp.c 		pxa_ssp_set_running_bit(substream, ssp, 1);
substream         749 sound/soc/pxa/pxa-ssp.c 		pxa_ssp_set_running_bit(substream, ssp, 1);
substream         752 sound/soc/pxa/pxa-ssp.c 		pxa_ssp_set_running_bit(substream, ssp, 0);
substream         758 sound/soc/pxa/pxa-ssp.c 		pxa_ssp_set_running_bit(substream, ssp, 0);
substream          96 sound/soc/pxa/pxa2xx-ac97.c static int pxa2xx_ac97_hifi_startup(struct snd_pcm_substream *substream,
substream         101 sound/soc/pxa/pxa2xx-ac97.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         106 sound/soc/pxa/pxa2xx-ac97.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data);
substream         111 sound/soc/pxa/pxa2xx-ac97.c static int pxa2xx_ac97_aux_startup(struct snd_pcm_substream *substream,
substream         116 sound/soc/pxa/pxa2xx-ac97.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         121 sound/soc/pxa/pxa2xx-ac97.c 	snd_soc_dai_set_dma_data(cpu_dai, substream, dma_data);
substream         126 sound/soc/pxa/pxa2xx-ac97.c static int pxa2xx_ac97_mic_startup(struct snd_pcm_substream *substream,
substream         129 sound/soc/pxa/pxa2xx-ac97.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         131 sound/soc/pxa/pxa2xx-ac97.c 	snd_soc_dai_set_dma_data(cpu_dai, substream,
substream          95 sound/soc/pxa/pxa2xx-i2s.c static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream,
substream          98 sound/soc/pxa/pxa2xx-i2s.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         156 sound/soc/pxa/pxa2xx-i2s.c static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,
substream         168 sound/soc/pxa/pxa2xx-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         173 sound/soc/pxa/pxa2xx-i2s.c 	snd_soc_dai_set_dma_data(dai, substream, dma_data);
substream         184 sound/soc/pxa/pxa2xx-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         216 sound/soc/pxa/pxa2xx-i2s.c static int pxa2xx_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         223 sound/soc/pxa/pxa2xx-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         242 sound/soc/pxa/pxa2xx-i2s.c static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream,
substream         245 sound/soc/pxa/pxa2xx-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         106 sound/soc/pxa/spitz.c static int spitz_startup(struct snd_pcm_substream *substream)
substream         108 sound/soc/pxa/spitz.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         116 sound/soc/pxa/spitz.c static int spitz_hw_params(struct snd_pcm_substream *substream,
substream         119 sound/soc/pxa/spitz.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          73 sound/soc/pxa/tosa.c static int tosa_startup(struct snd_pcm_substream *substream)
substream          75 sound/soc/pxa/tosa.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          33 sound/soc/pxa/z2.c static int z2_hw_params(struct snd_pcm_substream *substream,
substream          36 sound/soc/pxa/z2.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          75 sound/soc/pxa/zylonite.c static int zylonite_voice_hw_params(struct snd_pcm_substream *substream,
substream          78 sound/soc/pxa/zylonite.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          30 sound/soc/qcom/apq8096.c static int msm_snd_hw_params(struct snd_pcm_substream *substream,
substream          33 sound/soc/qcom/apq8096.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          49 sound/soc/qcom/apq8096.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          36 sound/soc/qcom/lpass-cpu.c static int lpass_cpu_daiops_startup(struct snd_pcm_substream *substream,
substream          58 sound/soc/qcom/lpass-cpu.c static void lpass_cpu_daiops_shutdown(struct snd_pcm_substream *substream,
substream          68 sound/soc/qcom/lpass-cpu.c static int lpass_cpu_daiops_hw_params(struct snd_pcm_substream *substream,
substream         102 sound/soc/qcom/lpass-cpu.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         177 sound/soc/qcom/lpass-cpu.c static int lpass_cpu_daiops_hw_free(struct snd_pcm_substream *substream,
substream         192 sound/soc/qcom/lpass-cpu.c static int lpass_cpu_daiops_prepare(struct snd_pcm_substream *substream,
substream         199 sound/soc/qcom/lpass-cpu.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         216 sound/soc/qcom/lpass-cpu.c static int lpass_cpu_daiops_trigger(struct snd_pcm_substream *substream,
substream         227 sound/soc/qcom/lpass-cpu.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         246 sound/soc/qcom/lpass-cpu.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          53 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_open(struct snd_pcm_substream *substream)
substream          55 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          56 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream          61 sound/soc/qcom/lpass-platform.c 	int ret, dma_ch, dir = substream->stream;
substream          79 sound/soc/qcom/lpass-platform.c 	drvdata->substream[dma_ch] = substream;
substream          91 sound/soc/qcom/lpass-platform.c 	snd_soc_set_runtime_hwparams(substream, &lpass_platform_pcm_hardware);
substream         103 sound/soc/qcom/lpass-platform.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         108 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_close(struct snd_pcm_substream *substream)
substream         110 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         111 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         118 sound/soc/qcom/lpass-platform.c 	drvdata->substream[data->dma_ch] = NULL;
substream         125 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_hw_params(struct snd_pcm_substream *substream,
substream         128 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         131 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         137 sound/soc/qcom/lpass-platform.c 	int ch, dir = substream->stream;
substream         219 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_hw_free(struct snd_pcm_substream *substream)
substream         221 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         224 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         230 sound/soc/qcom/lpass-platform.c 	reg = LPAIF_DMACTL_REG(v, pcm_data->dma_ch, substream->stream);
substream         239 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_prepare(struct snd_pcm_substream *substream)
substream         241 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         242 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         245 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         248 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
substream         263 sound/soc/qcom/lpass-platform.c 			(snd_pcm_lib_buffer_bytes(substream) >> 2) - 1);
substream         272 sound/soc/qcom/lpass-platform.c 			(snd_pcm_lib_period_bytes(substream) >> 2) - 1);
substream         291 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_trigger(struct snd_pcm_substream *substream,
substream         294 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         297 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         300 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
substream         366 sound/soc/qcom/lpass-platform.c 		struct snd_pcm_substream *substream)
substream         368 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         371 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         375 sound/soc/qcom/lpass-platform.c 	int ret, ch, dir = substream->stream;
substream         395 sound/soc/qcom/lpass-platform.c 	return bytes_to_frames(substream->runtime, curr_addr - base_addr);
substream         398 sound/soc/qcom/lpass-platform.c static int lpass_platform_pcmops_mmap(struct snd_pcm_substream *substream,
substream         401 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         403 sound/soc/qcom/lpass-platform.c 	return dma_mmap_coherent(substream->pcm->card->dev, vma,
substream         421 sound/soc/qcom/lpass-platform.c 			struct snd_pcm_substream *substream,
substream         425 sound/soc/qcom/lpass-platform.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream         439 sound/soc/qcom/lpass-platform.c 		snd_pcm_period_elapsed(substream);
substream         453 sound/soc/qcom/lpass-platform.c 		snd_pcm_stop_xrun(substream);
substream         467 sound/soc/qcom/lpass-platform.c 		snd_pcm_stop(substream, SNDRV_PCM_STATE_DISCONNECTED);
substream         490 sound/soc/qcom/lpass-platform.c 		if (irqs & LPAIF_IRQ_ALL(chan) && drvdata->substream[chan]) {
substream         492 sound/soc/qcom/lpass-platform.c 						drvdata->substream[chan],
substream         510 sound/soc/qcom/lpass-platform.c 	psubstream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         521 sound/soc/qcom/lpass-platform.c 	csubstream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         540 sound/soc/qcom/lpass-platform.c 	struct snd_pcm_substream *substream;
substream         544 sound/soc/qcom/lpass-platform.c 		substream = pcm->streams[i].substream;
substream         545 sound/soc/qcom/lpass-platform.c 		if (substream) {
substream         546 sound/soc/qcom/lpass-platform.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         547 sound/soc/qcom/lpass-platform.c 			substream->dma_buffer.area = NULL;
substream         548 sound/soc/qcom/lpass-platform.c 			substream->dma_buffer.addr = 0;
substream          48 sound/soc/qcom/lpass.h 	struct snd_pcm_substream *substream[LPASS_MAX_DMA_CHANNELS];
substream          75 sound/soc/qcom/qdsp6/q6afe-dai.c static int q6slim_hw_params(struct snd_pcm_substream *substream,
substream         105 sound/soc/qcom/qdsp6/q6afe-dai.c static int q6hdmi_hw_params(struct snd_pcm_substream *substream,
substream         154 sound/soc/qcom/qdsp6/q6afe-dai.c static int q6i2s_hw_params(struct snd_pcm_substream *substream,
substream         294 sound/soc/qcom/qdsp6/q6afe-dai.c static int q6tdm_hw_params(struct snd_pcm_substream *substream,
substream         310 sound/soc/qcom/qdsp6/q6afe-dai.c static void q6afe_dai_shutdown(struct snd_pcm_substream *substream,
substream         327 sound/soc/qcom/qdsp6/q6afe-dai.c static int q6afe_dai_prepare(struct snd_pcm_substream *substream,
substream          51 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_substream *substream;
substream         177 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_substream *substream = prtd->substream;
substream         181 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         190 sound/soc/qcom/qdsp6/q6asm-dai.c 		snd_pcm_period_elapsed(substream);
substream         199 sound/soc/qcom/qdsp6/q6asm-dai.c 		snd_pcm_period_elapsed(substream);
substream         209 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_prepare(struct snd_pcm_substream *substream)
substream         211 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         212 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
substream         228 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->pcm_count = snd_pcm_lib_period_bytes(substream);
substream         234 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_unmap_memory_regions(substream->stream,
substream         237 sound/soc/qcom/qdsp6/q6asm-dai.c 					 substream->stream);
substream         240 sound/soc/qcom/qdsp6/q6asm-dai.c 	ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client,
substream         251 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         254 sound/soc/qcom/qdsp6/q6asm-dai.c 	} else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         268 sound/soc/qcom/qdsp6/q6asm-dai.c 			      prtd->session_id, substream->stream);
substream         274 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         279 sound/soc/qcom/qdsp6/q6asm-dai.c 	} else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         297 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_trigger(struct snd_pcm_substream *substream, int cmd)
substream         300 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         325 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_open(struct snd_pcm_substream *substream)
substream         327 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         328 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
substream         349 sound/soc/qcom/qdsp6/q6asm-dai.c 	prtd->substream = substream;
substream         360 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         362 sound/soc/qcom/qdsp6/q6asm-dai.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         376 sound/soc/qcom/qdsp6/q6asm-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         402 sound/soc/qcom/qdsp6/q6asm-dai.c 	snd_soc_set_runtime_hwparams(substream, &q6asm_dai_hardware_playback);
substream         408 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = substream->dma_buffer.addr;
substream         410 sound/soc/qcom/qdsp6/q6asm-dai.c 		prtd->phys = substream->dma_buffer.addr | (pdata->sid << 32);
substream         412 sound/soc/qcom/qdsp6/q6asm-dai.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         417 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_close(struct snd_pcm_substream *substream)
substream         419 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         420 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
substream         427 sound/soc/qcom/qdsp6/q6asm-dai.c 		q6asm_unmap_memory_regions(substream->stream,
substream         433 sound/soc/qcom/qdsp6/q6asm-dai.c 						substream->stream);
substream         438 sound/soc/qcom/qdsp6/q6asm-dai.c static snd_pcm_uframes_t q6asm_dai_pointer(struct snd_pcm_substream *substream)
substream         441 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         450 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_mmap(struct snd_pcm_substream *substream,
substream         454 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         455 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_soc_pcm_runtime *soc_prtd = substream->private_data;
substream         464 sound/soc/qcom/qdsp6/q6asm-dai.c static int q6asm_dai_hw_params(struct snd_pcm_substream *substream,
substream         467 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         500 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_compr_stream *substream = prtd->cstream;
substream         524 sound/soc/qcom/qdsp6/q6asm-dai.c 		snd_compr_fragment_elapsed(substream);
substream         813 sound/soc/qcom/qdsp6/q6asm-dai.c 	psubstream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         823 sound/soc/qcom/qdsp6/q6asm-dai.c 	csubstream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         840 sound/soc/qcom/qdsp6/q6asm-dai.c 	struct snd_pcm_substream *substream;
substream         844 sound/soc/qcom/qdsp6/q6asm-dai.c 		substream = pcm->streams[i].substream;
substream         845 sound/soc/qcom/qdsp6/q6asm-dai.c 		if (substream) {
substream         846 sound/soc/qcom/qdsp6/q6asm-dai.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         847 sound/soc/qcom/qdsp6/q6asm-dai.c 			substream->dma_buffer.area = NULL;
substream         848 sound/soc/qcom/qdsp6/q6asm-dai.c 			substream->dma_buffer.addr = 0;
substream         942 sound/soc/qcom/qdsp6/q6routing.c static int routing_hw_params(struct snd_pcm_substream *substream,
substream         945 sound/soc/qcom/qdsp6/q6routing.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         952 sound/soc/qcom/qdsp6/q6routing.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          39 sound/soc/qcom/sdm845.c static int sdm845_tdm_snd_hw_params(struct snd_pcm_substream *substream,
substream          42 sound/soc/qcom/sdm845.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          58 sound/soc/qcom/sdm845.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         124 sound/soc/qcom/sdm845.c static int sdm845_snd_hw_params(struct snd_pcm_substream *substream,
substream         127 sound/soc/qcom/sdm845.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         152 sound/soc/qcom/sdm845.c 		ret = sdm845_tdm_snd_hw_params(substream, params);
substream         222 sound/soc/qcom/sdm845.c static int sdm845_snd_startup(struct snd_pcm_substream *substream)
substream         226 sound/soc/qcom/sdm845.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         305 sound/soc/qcom/sdm845.c static void  sdm845_snd_shutdown(struct snd_pcm_substream *substream)
substream         307 sound/soc/qcom/sdm845.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          19 sound/soc/qcom/storm.c static int storm_ops_hw_params(struct snd_pcm_substream *substream,
substream          22 sound/soc/qcom/storm.c 	struct snd_soc_pcm_runtime *soc_runtime = substream->private_data;
substream          65 sound/soc/rockchip/rk3288_hdmi_analog.c static int rk_hw_params(struct snd_pcm_substream *substream,
substream          69 sound/soc/rockchip/rk3288_hdmi_analog.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          51 sound/soc/rockchip/rk3399_gru_sound.c static int rockchip_sound_max98357a_hw_params(struct snd_pcm_substream *substream,
substream          54 sound/soc/rockchip/rk3399_gru_sound.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          70 sound/soc/rockchip/rk3399_gru_sound.c static int rockchip_sound_rt5514_hw_params(struct snd_pcm_substream *substream,
substream          73 sound/soc/rockchip/rk3399_gru_sound.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         102 sound/soc/rockchip/rk3399_gru_sound.c static int rockchip_sound_da7219_hw_params(struct snd_pcm_substream *substream,
substream         105 sound/soc/rockchip/rk3399_gru_sound.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         200 sound/soc/rockchip/rk3399_gru_sound.c static int rockchip_sound_dmic_hw_params(struct snd_pcm_substream *substream,
substream         203 sound/soc/rockchip/rk3399_gru_sound.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         270 sound/soc/rockchip/rockchip_i2s.c static int rockchip_i2s_hw_params(struct snd_pcm_substream *substream,
substream         275 sound/soc/rockchip/rockchip_i2s.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         337 sound/soc/rockchip/rockchip_i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         385 sound/soc/rockchip/rockchip_i2s.c static int rockchip_i2s_trigger(struct snd_pcm_substream *substream,
substream         395 sound/soc/rockchip/rockchip_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         403 sound/soc/rockchip/rockchip_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          97 sound/soc/rockchip/rockchip_max98090.c static int rk_aif1_hw_params(struct snd_pcm_substream *substream,
substream         101 sound/soc/rockchip/rockchip_max98090.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         143 sound/soc/rockchip/rockchip_max98090.c static int rk_aif1_startup(struct snd_pcm_substream *substream)
substream         149 sound/soc/rockchip/rockchip_max98090.c 	return snd_pcm_hw_constraint_minmax(substream->runtime,
substream         145 sound/soc/rockchip/rockchip_pdm.c static int rockchip_pdm_hw_params(struct snd_pcm_substream *substream,
substream         157 sound/soc/rockchip/rockchip_pdm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         283 sound/soc/rockchip/rockchip_pdm.c static int rockchip_pdm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         293 sound/soc/rockchip/rockchip_pdm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         299 sound/soc/rockchip/rockchip_pdm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          54 sound/soc/rockchip/rockchip_rt5645.c static int rk_aif1_hw_params(struct snd_pcm_substream *substream,
substream          58 sound/soc/rockchip/rockchip_rt5645.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         105 sound/soc/rockchip/rockchip_spdif.c static int rk_spdif_hw_params(struct snd_pcm_substream *substream,
substream         147 sound/soc/rockchip/rockchip_spdif.c static int rk_spdif_trigger(struct snd_pcm_substream *substream,
substream          19 sound/soc/samsung/arndale_rt5631.c static int arndale_hw_params(struct snd_pcm_substream *substream,
substream          22 sound/soc/samsung/arndale_rt5631.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          58 sound/soc/samsung/h1940_uda1380.c static int h1940_startup(struct snd_pcm_substream *substream)
substream          60 sound/soc/samsung/h1940_uda1380.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          67 sound/soc/samsung/h1940_uda1380.c static int h1940_hw_params(struct snd_pcm_substream *substream,
substream          70 sound/soc/samsung/h1940_uda1380.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         719 sound/soc/samsung/i2s.c static int i2s_hw_params(struct snd_pcm_substream *substream,
substream         741 sound/soc/samsung/i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         747 sound/soc/samsung/i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         816 sound/soc/samsung/i2s.c static int i2s_startup(struct snd_pcm_substream *substream,
substream         843 sound/soc/samsung/i2s.c static void i2s_shutdown(struct snd_pcm_substream *substream,
substream         929 sound/soc/samsung/i2s.c static int i2s_trigger(struct snd_pcm_substream *substream,
substream         933 sound/soc/samsung/i2s.c 	int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         934 sound/soc/samsung/i2s.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1007 sound/soc/samsung/i2s.c i2s_delay(struct snd_pcm_substream *substream, struct snd_soc_dai *dai)
substream        1016 sound/soc/samsung/i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream          64 sound/soc/samsung/idma.c static int idma_enqueue(struct snd_pcm_substream *substream)
substream          66 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          67 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream          71 sound/soc/samsung/idma.c 	prtd->token = (void *) substream;
substream          99 sound/soc/samsung/idma.c static void idma_setcallbk(struct snd_pcm_substream *substream,
substream         102 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream         133 sound/soc/samsung/idma.c 	struct snd_pcm_substream *substream = id;
substream         134 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream         137 sound/soc/samsung/idma.c 		snd_pcm_period_elapsed(substream);
substream         140 sound/soc/samsung/idma.c static int idma_hw_params(struct snd_pcm_substream *substream,
substream         143 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         144 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream         153 sound/soc/samsung/idma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         161 sound/soc/samsung/idma.c 	idma_setcallbk(substream, idma_done);
substream         166 sound/soc/samsung/idma.c static int idma_hw_free(struct snd_pcm_substream *substream)
substream         168 sound/soc/samsung/idma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         173 sound/soc/samsung/idma.c static int idma_prepare(struct snd_pcm_substream *substream)
substream         175 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream         181 sound/soc/samsung/idma.c 	idma_enqueue(substream);
substream         186 sound/soc/samsung/idma.c static int idma_trigger(struct snd_pcm_substream *substream, int cmd)
substream         188 sound/soc/samsung/idma.c 	struct idma_ctrl *prtd = substream->runtime->private_data;
substream         219 sound/soc/samsung/idma.c 	idma_pointer(struct snd_pcm_substream *substream)
substream         221 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         233 sound/soc/samsung/idma.c 	return bytes_to_frames(substream->runtime, res);
substream         236 sound/soc/samsung/idma.c static int idma_mmap(struct snd_pcm_substream *substream,
substream         239 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         281 sound/soc/samsung/idma.c static int idma_open(struct snd_pcm_substream *substream)
substream         283 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         287 sound/soc/samsung/idma.c 	snd_soc_set_runtime_hwparams(substream, &idma_hardware);
substream         307 sound/soc/samsung/idma.c static int idma_close(struct snd_pcm_substream *substream)
substream         309 sound/soc/samsung/idma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         336 sound/soc/samsung/idma.c 	struct snd_pcm_substream *substream;
substream         339 sound/soc/samsung/idma.c 	substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         340 sound/soc/samsung/idma.c 	if (!substream)
substream         343 sound/soc/samsung/idma.c 	buf = &substream->dma_buffer;
substream         355 sound/soc/samsung/idma.c 	struct snd_pcm_substream *substream = pcm->streams[stream].substream;
substream         356 sound/soc/samsung/idma.c 	struct snd_dma_buffer *buf = &substream->dma_buffer;
substream         380 sound/soc/samsung/idma.c 	if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) {
substream          32 sound/soc/samsung/jive_wm8750.c static int jive_hw_params(struct snd_pcm_substream *substream,
substream          35 sound/soc/samsung/jive_wm8750.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         104 sound/soc/samsung/littlemill.c static int littlemill_hw_params(struct snd_pcm_substream *substream,
substream         107 sound/soc/samsung/littlemill.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          25 sound/soc/samsung/neo1973_wm8753.c static int neo1973_hifi_hw_params(struct snd_pcm_substream *substream,
substream          28 sound/soc/samsung/neo1973_wm8753.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         100 sound/soc/samsung/neo1973_wm8753.c static int neo1973_hifi_hw_free(struct snd_pcm_substream *substream)
substream         102 sound/soc/samsung/neo1973_wm8753.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         117 sound/soc/samsung/neo1973_wm8753.c static int neo1973_voice_hw_params(struct snd_pcm_substream *substream,
substream         120 sound/soc/samsung/neo1973_wm8753.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         155 sound/soc/samsung/neo1973_wm8753.c static int neo1973_voice_hw_free(struct snd_pcm_substream *substream)
substream         157 sound/soc/samsung/neo1973_wm8753.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          26 sound/soc/samsung/odroid.c static int odroid_card_fe_startup(struct snd_pcm_substream *substream)
substream          28 sound/soc/samsung/odroid.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          35 sound/soc/samsung/odroid.c static int odroid_card_fe_hw_params(struct snd_pcm_substream *substream,
substream          38 sound/soc/samsung/odroid.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          56 sound/soc/samsung/odroid.c static int odroid_card_be_hw_params(struct snd_pcm_substream *substream,
substream          59 sound/soc/samsung/odroid.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         116 sound/soc/samsung/odroid.c static int odroid_card_be_trigger(struct snd_pcm_substream *substream, int cmd)
substream         118 sound/soc/samsung/odroid.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         211 sound/soc/samsung/pcm.c static int s3c_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         214 sound/soc/samsung/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         226 sound/soc/samsung/pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         239 sound/soc/samsung/pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         254 sound/soc/samsung/pcm.c static int s3c_pcm_hw_params(struct snd_pcm_substream *substream,
substream         258 sound/soc/samsung/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          28 sound/soc/samsung/rx1950_uda1380.c static int rx1950_startup(struct snd_pcm_substream *substream);
substream          29 sound/soc/samsung/rx1950_uda1380.c static int rx1950_hw_params(struct snd_pcm_substream *substream,
substream         128 sound/soc/samsung/rx1950_uda1380.c static int rx1950_startup(struct snd_pcm_substream *substream)
substream         130 sound/soc/samsung/rx1950_uda1380.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         148 sound/soc/samsung/rx1950_uda1380.c static int rx1950_hw_params(struct snd_pcm_substream *substream,
substream         151 sound/soc/samsung/rx1950_uda1380.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         294 sound/soc/samsung/s3c-i2s-v2.c static int s3c_i2sv2_hw_params(struct snd_pcm_substream *substream,
substream         304 sound/soc/samsung/s3c-i2s-v2.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         309 sound/soc/samsung/s3c-i2s-v2.c 	snd_soc_dai_set_dma_data(dai, substream, dma_data);
substream         379 sound/soc/samsung/s3c-i2s-v2.c static int s3c2412_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         382 sound/soc/samsung/s3c-i2s-v2.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         384 sound/soc/samsung/s3c-i2s-v2.c 	int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         526 sound/soc/samsung/s3c-i2s-v2.c static snd_pcm_sframes_t s3c2412_i2s_delay(struct snd_pcm_substream *substream,
substream         533 sound/soc/samsung/s3c-i2s-v2.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          93 sound/soc/samsung/s3c2412-i2s.c static int s3c2412_i2s_hw_params(struct snd_pcm_substream *substream,
substream         203 sound/soc/samsung/s3c24xx-i2s.c static int s3c24xx_i2s_hw_params(struct snd_pcm_substream *substream,
substream         210 sound/soc/samsung/s3c24xx-i2s.c 	dma_data = snd_soc_dai_get_dma_data(dai, substream);
substream         235 sound/soc/samsung/s3c24xx-i2s.c static int s3c24xx_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         250 sound/soc/samsung/s3c24xx-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         259 sound/soc/samsung/s3c24xx-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         159 sound/soc/samsung/s3c24xx_simtec.c static int simtec_hw_params(struct snd_pcm_substream *substream,
substream         162 sound/soc/samsung/s3c24xx_simtec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          50 sound/soc/samsung/s3c24xx_uda134x.c static int s3c24xx_uda134x_startup(struct snd_pcm_substream *substream)
substream          52 sound/soc/samsung/s3c24xx_uda134x.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          91 sound/soc/samsung/s3c24xx_uda134x.c 		ret = snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         102 sound/soc/samsung/s3c24xx_uda134x.c static void s3c24xx_uda134x_shutdown(struct snd_pcm_substream *substream)
substream         104 sound/soc/samsung/s3c24xx_uda134x.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         118 sound/soc/samsung/s3c24xx_uda134x.c static int s3c24xx_uda134x_hw_params(struct snd_pcm_substream *substream,
substream         121 sound/soc/samsung/s3c24xx_uda134x.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          24 sound/soc/samsung/smartq_wm8987.c static int smartq_hifi_hw_params(struct snd_pcm_substream *substream,
substream          27 sound/soc/samsung/smartq_wm8987.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         100 sound/soc/samsung/smdk_spdif.c static int smdk_hw_params(struct snd_pcm_substream *substream,
substream         103 sound/soc/samsung/smdk_spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          22 sound/soc/samsung/smdk_wm8580.c static int smdk_hw_params(struct snd_pcm_substream *substream,
substream          25 sound/soc/samsung/smdk_wm8580.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          44 sound/soc/samsung/smdk_wm8994.c static int smdk_hw_params(struct snd_pcm_substream *substream,
substream          47 sound/soc/samsung/smdk_wm8994.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          43 sound/soc/samsung/smdk_wm8994pcm.c static int smdk_wm8994_pcm_hw_params(struct snd_pcm_substream *substream,
substream          46 sound/soc/samsung/smdk_wm8994pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          27 sound/soc/samsung/snow.c static int snow_card_hw_params(struct snd_pcm_substream *substream,
substream          33 sound/soc/samsung/snow.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         135 sound/soc/samsung/spdif.c static int spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         138 sound/soc/samsung/spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         170 sound/soc/samsung/spdif.c static int spdif_hw_params(struct snd_pcm_substream *substream,
substream         174 sound/soc/samsung/spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         184 sound/soc/samsung/spdif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         191 sound/soc/samsung/spdif.c 	snd_soc_dai_set_dma_data(rtd->cpu_dai, substream, dma_data);
substream         273 sound/soc/samsung/spdif.c static void spdif_shutdown(struct snd_pcm_substream *substream,
substream         276 sound/soc/samsung/spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          92 sound/soc/samsung/tm2_wm5110.c static int tm2_aif1_hw_params(struct snd_pcm_substream *substream,
substream          95 sound/soc/samsung/tm2_wm5110.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         133 sound/soc/samsung/tm2_wm5110.c static int tm2_aif2_hw_params(struct snd_pcm_substream *substream,
substream         136 sound/soc/samsung/tm2_wm5110.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         188 sound/soc/samsung/tm2_wm5110.c static int tm2_aif2_hw_free(struct snd_pcm_substream *substream)
substream         190 sound/soc/samsung/tm2_wm5110.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         208 sound/soc/samsung/tm2_wm5110.c static int tm2_hdmi_hw_params(struct snd_pcm_substream *substream,
substream         211 sound/soc/samsung/tm2_wm5110.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         100 sound/soc/samsung/tobermory.c static int tobermory_hw_params(struct snd_pcm_substream *substream,
substream         118 sound/soc/sh/dma-sh7760.c static int camelot_pcm_open(struct snd_pcm_substream *substream)
substream         120 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         122 sound/soc/sh/dma-sh7760.c 	int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
substream         125 sound/soc/sh/dma-sh7760.c 	snd_soc_set_runtime_hwparams(substream, &camelot_pcm_hardware);
substream         130 sound/soc/sh/dma-sh7760.c 		cam->rx_ss = substream;
substream         139 sound/soc/sh/dma-sh7760.c 		cam->tx_ss = substream;
substream         151 sound/soc/sh/dma-sh7760.c static int camelot_pcm_close(struct snd_pcm_substream *substream)
substream         153 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         155 sound/soc/sh/dma-sh7760.c 	int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
substream         171 sound/soc/sh/dma-sh7760.c static int camelot_hw_params(struct snd_pcm_substream *substream,
substream         174 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         176 sound/soc/sh/dma-sh7760.c 	int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
substream         179 sound/soc/sh/dma-sh7760.c 	ret = snd_pcm_lib_malloc_pages(substream,
substream         194 sound/soc/sh/dma-sh7760.c static int camelot_hw_free(struct snd_pcm_substream *substream)
substream         196 sound/soc/sh/dma-sh7760.c 	return snd_pcm_lib_free_pages(substream);
substream         199 sound/soc/sh/dma-sh7760.c static int camelot_prepare(struct snd_pcm_substream *substream)
substream         201 sound/soc/sh/dma-sh7760.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         202 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         208 sound/soc/sh/dma-sh7760.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         247 sound/soc/sh/dma-sh7760.c static int camelot_trigger(struct snd_pcm_substream *substream, int cmd)
substream         249 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         251 sound/soc/sh/dma-sh7760.c 	int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
substream         273 sound/soc/sh/dma-sh7760.c static snd_pcm_uframes_t camelot_pos(struct snd_pcm_substream *substream)
substream         275 sound/soc/sh/dma-sh7760.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         276 sound/soc/sh/dma-sh7760.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         278 sound/soc/sh/dma-sh7760.c 	int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1;
substream         206 sound/soc/sh/fsi.c 	struct snd_pcm_substream *substream;
substream         402 sound/soc/sh/fsi.c static int fsi_is_play(struct snd_pcm_substream *substream)
substream         404 sound/soc/sh/fsi.c 	return substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         407 sound/soc/sh/fsi.c static struct snd_soc_dai *fsi_get_dai(struct snd_pcm_substream *substream)
substream         409 sound/soc/sh/fsi.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         424 sound/soc/sh/fsi.c static struct fsi_priv *fsi_get_priv(struct snd_pcm_substream *substream)
substream         426 sound/soc/sh/fsi.c 	return fsi_get_priv_frm_dai(fsi_get_dai(substream));
substream         494 sound/soc/sh/fsi.c 					struct snd_pcm_substream *substream)
substream         496 sound/soc/sh/fsi.c 	return fsi_is_play(substream) ? &fsi->playback : &fsi->capture;
substream         507 sound/soc/sh/fsi.c 	ret = !!(io->substream && io->substream->runtime);
substream         520 sound/soc/sh/fsi.c 			    struct snd_pcm_substream *substream)
substream         522 sound/soc/sh/fsi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         527 sound/soc/sh/fsi.c 	io->substream	= substream;
substream         542 sound/soc/sh/fsi.c 	struct snd_soc_dai *dai = fsi_get_dai(io->substream);
substream         555 sound/soc/sh/fsi.c 	io->substream	= NULL;
substream        1037 sound/soc/sh/fsi.c 		struct snd_pcm_substream *substream = io->substream;
substream        1038 sound/soc/sh/fsi.c 		struct snd_pcm_runtime *runtime = substream->runtime;
substream        1047 sound/soc/sh/fsi.c 		snd_pcm_period_elapsed(substream);
substream        1106 sound/soc/sh/fsi.c 	struct snd_pcm_runtime *runtime = io->substream->runtime;
substream        1286 sound/soc/sh/fsi.c 	struct snd_soc_dai *dai = fsi_get_dai(io->substream);
substream        1287 sound/soc/sh/fsi.c 	struct snd_pcm_substream *substream = io->substream;
substream        1299 sound/soc/sh/fsi.c 					 substream->runtime->dma_addr,
substream        1300 sound/soc/sh/fsi.c 					 snd_pcm_lib_buffer_bytes(substream),
substream        1301 sound/soc/sh/fsi.c 					 snd_pcm_lib_period_bytes(substream),
substream        1553 sound/soc/sh/fsi.c static int fsi_dai_startup(struct snd_pcm_substream *substream,
substream        1556 sound/soc/sh/fsi.c 	struct fsi_priv *fsi = fsi_get_priv(substream);
substream        1563 sound/soc/sh/fsi.c static void fsi_dai_shutdown(struct snd_pcm_substream *substream,
substream        1566 sound/soc/sh/fsi.c 	struct fsi_priv *fsi = fsi_get_priv(substream);
substream        1571 sound/soc/sh/fsi.c static int fsi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream        1574 sound/soc/sh/fsi.c 	struct fsi_priv *fsi = fsi_get_priv(substream);
substream        1575 sound/soc/sh/fsi.c 	struct fsi_stream *io = fsi_stream_get(fsi, substream);
substream        1580 sound/soc/sh/fsi.c 		fsi_stream_init(fsi, io, substream);
substream        1685 sound/soc/sh/fsi.c static int fsi_dai_hw_params(struct snd_pcm_substream *substream,
substream        1689 sound/soc/sh/fsi.c 	struct fsi_priv *fsi = fsi_get_priv(substream);
substream        1721 sound/soc/sh/fsi.c static int fsi_pcm_open(struct snd_pcm_substream *substream)
substream        1723 sound/soc/sh/fsi.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1726 sound/soc/sh/fsi.c 	snd_soc_set_runtime_hwparams(substream, &fsi_pcm_hardware);
substream        1734 sound/soc/sh/fsi.c static int fsi_hw_params(struct snd_pcm_substream *substream,
substream        1737 sound/soc/sh/fsi.c 	return snd_pcm_lib_malloc_pages(substream,
substream        1741 sound/soc/sh/fsi.c static int fsi_hw_free(struct snd_pcm_substream *substream)
substream        1743 sound/soc/sh/fsi.c 	return snd_pcm_lib_free_pages(substream);
substream        1746 sound/soc/sh/fsi.c static snd_pcm_uframes_t fsi_pointer(struct snd_pcm_substream *substream)
substream        1748 sound/soc/sh/fsi.c 	struct fsi_priv *fsi = fsi_get_priv(substream);
substream        1749 sound/soc/sh/fsi.c 	struct fsi_stream *io = fsi_stream_get(fsi, substream);
substream         235 sound/soc/sh/hac.c static int hac_hw_params(struct snd_pcm_substream *substream,
substream         240 sound/soc/sh/hac.c 	int d = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1;
substream          45 sound/soc/sh/migor.c static int migor_hw_params(struct snd_pcm_substream *substream,
substream          48 sound/soc/sh/migor.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          79 sound/soc/sh/migor.c static int migor_hw_free(struct snd_pcm_substream *substream)
substream          81 sound/soc/sh/migor.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         251 sound/soc/sh/rcar/core.c 	if (io->substream)
substream         252 sound/soc/sh/rcar/core.c 		return snd_pcm_running(io->substream);
substream         676 sound/soc/sh/rcar/core.c 	struct snd_pcm_substream *substream = io->substream;
substream         685 sound/soc/sh/rcar/core.c 	snd_pcm_period_elapsed(substream);
substream         689 sound/soc/sh/rcar/core.c 				struct snd_pcm_substream *substream)
substream         691 sound/soc/sh/rcar/core.c 	io->substream		= substream;
substream         696 sound/soc/sh/rcar/core.c 	io->substream		= NULL;
substream         700 sound/soc/sh/rcar/core.c struct snd_soc_dai *rsnd_substream_to_dai(struct snd_pcm_substream *substream)
substream         702 sound/soc/sh/rcar/core.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         709 sound/soc/sh/rcar/core.c 					struct snd_pcm_substream *substream)
substream         711 sound/soc/sh/rcar/core.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         717 sound/soc/sh/rcar/core.c static int rsnd_soc_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         722 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream         973 sound/soc/sh/rcar/core.c static int rsnd_soc_dai_startup(struct snd_pcm_substream *substream,
substream         977 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream         979 sound/soc/sh/rcar/core.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         983 sound/soc/sh/rcar/core.c 	rsnd_dai_stream_init(io, substream);
substream         999 sound/soc/sh/rcar/core.c 	snd_soc_set_runtime_hwparams(substream, &rsnd_pcm_hardware);
substream        1012 sound/soc/sh/rcar/core.c 		int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream        1027 sound/soc/sh/rcar/core.c static void rsnd_soc_dai_shutdown(struct snd_pcm_substream *substream,
substream        1032 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream        1042 sound/soc/sh/rcar/core.c static int rsnd_soc_dai_prepare(struct snd_pcm_substream *substream,
substream        1047 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream        1206 sound/soc/sh/rcar/core.c 	struct snd_pcm_substream *substream;
substream        1216 sound/soc/sh/rcar/core.c 	for (substream = rtd->pcm->streams[stream].substream;
substream        1217 sound/soc/sh/rcar/core.c 	     substream;
substream        1218 sound/soc/sh/rcar/core.c 	     substream = substream->next) {
substream        1219 sound/soc/sh/rcar/core.c 		snd_pcm_lib_preallocate_pages(substream,
substream        1393 sound/soc/sh/rcar/core.c static int rsnd_hw_params(struct snd_pcm_substream *substream,
substream        1396 sound/soc/sh/rcar/core.c 	struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
substream        1398 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream        1399 sound/soc/sh/rcar/core.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        1418 sound/soc/sh/rcar/core.c 		int stream = substream->stream;
substream        1433 sound/soc/sh/rcar/core.c 	ret = rsnd_dai_call(hw_params, io, substream, hw_params);
substream        1437 sound/soc/sh/rcar/core.c 	return snd_pcm_lib_malloc_pages(substream,
substream        1441 sound/soc/sh/rcar/core.c static int rsnd_hw_free(struct snd_pcm_substream *substream)
substream        1443 sound/soc/sh/rcar/core.c 	struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
substream        1445 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream        1448 sound/soc/sh/rcar/core.c 	ret = rsnd_dai_call(hw_free, io, substream);
substream        1452 sound/soc/sh/rcar/core.c 	return snd_pcm_lib_free_pages(substream);
substream        1455 sound/soc/sh/rcar/core.c static snd_pcm_uframes_t rsnd_pointer(struct snd_pcm_substream *substream)
substream        1457 sound/soc/sh/rcar/core.c 	struct snd_soc_dai *dai = rsnd_substream_to_dai(substream);
substream        1459 sound/soc/sh/rcar/core.c 	struct rsnd_dai_stream *io = rsnd_rdai_to_io(rdai, substream);
substream         164 sound/soc/sh/rcar/dma.c 	struct snd_pcm_substream *substream = io->substream;
substream         186 sound/soc/sh/rcar/dma.c 					 substream->runtime->dma_addr,
substream         187 sound/soc/sh/rcar/dma.c 					 snd_pcm_lib_buffer_bytes(substream),
substream         188 sound/soc/sh/rcar/dma.c 					 snd_pcm_lib_period_bytes(substream),
substream         200 sound/soc/sh/rcar/dma.c 	dmaen->dma_len		= snd_pcm_lib_buffer_bytes(substream);
substream         316 sound/soc/sh/rcar/rsnd.h 			 struct snd_pcm_substream *substream,
substream         332 sound/soc/sh/rcar/rsnd.h 		       struct snd_pcm_substream *substream);
substream         491 sound/soc/sh/rcar/rsnd.h 	struct snd_pcm_substream *substream;
substream         519 sound/soc/sh/rcar/rsnd.h #define rsnd_io_to_runtime(io) ((io)->substream ? \
substream         520 sound/soc/sh/rcar/rsnd.h 				(io)->substream->runtime : NULL)
substream         509 sound/soc/sh/rcar/src.c 		snd_pcm_stop_xrun(io->substream);
substream         525 sound/soc/sh/rcar/ssi.c 			      struct snd_pcm_substream *substream,
substream         683 sound/soc/sh/rcar/ssi.c 		snd_pcm_stop_xrun(io->substream);
substream         100 sound/soc/sh/siu.h 	struct snd_pcm_substream	*substream;
substream         126 sound/soc/sh/siu.h static inline struct siu_port *siu_port_info(struct snd_pcm_substream *substream)
substream         129 sound/soc/sh/siu.h 		to_platform_device(substream->pcm->card->dev);
substream         493 sound/soc/sh/siu_dai.c static int siu_dai_startup(struct snd_pcm_substream *substream,
substream         497 sound/soc/sh/siu_dai.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         498 sound/soc/sh/siu_dai.c 	struct siu_port	*port_info = siu_port_info(substream);
substream         501 sound/soc/sh/siu_dai.c 	dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__,
substream         504 sound/soc/sh/siu_dai.c 	snd_soc_set_runtime_hwparams(substream, &siu_dai_pcm_hw);
substream         515 sound/soc/sh/siu_dai.c static void siu_dai_shutdown(struct snd_pcm_substream *substream,
substream         519 sound/soc/sh/siu_dai.c 	struct siu_port	*port_info = siu_port_info(substream);
substream         521 sound/soc/sh/siu_dai.c 	dev_dbg(substream->pcm->card->dev, "%s: port=%d@%p\n", __func__,
substream         524 sound/soc/sh/siu_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         540 sound/soc/sh/siu_dai.c static int siu_dai_prepare(struct snd_pcm_substream *substream,
substream         544 sound/soc/sh/siu_dai.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         545 sound/soc/sh/siu_dai.c 	struct siu_port *port_info = siu_port_info(substream);
substream         549 sound/soc/sh/siu_dai.c 	dev_dbg(substream->pcm->card->dev,
substream         553 sound/soc/sh/siu_dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          99 sound/soc/sh/siu_pcm.c 	snd_pcm_period_elapsed(siu_stream->substream);
substream         108 sound/soc/sh/siu_pcm.c 	struct snd_pcm_substream *substream = siu_stream->substream;
substream         109 sound/soc/sh/siu_pcm.c 	struct device *dev = substream->pcm->card->dev;
substream         156 sound/soc/sh/siu_pcm.c 	struct snd_pcm_substream *substream = siu_stream->substream;
substream         157 sound/soc/sh/siu_pcm.c 	struct device *dev = substream->pcm->card->dev;
substream         204 sound/soc/sh/siu_pcm.c 	struct snd_pcm_substream *substream = siu_stream->substream;
substream         205 sound/soc/sh/siu_pcm.c 	struct device *dev = substream->pcm->card->dev;
substream         206 sound/soc/sh/siu_pcm.c 	struct snd_pcm_runtime *rt = substream->runtime;
substream         207 sound/soc/sh/siu_pcm.c 	struct siu_port *port_info = siu_port_info(substream);
substream         216 sound/soc/sh/siu_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         266 sound/soc/sh/siu_pcm.c 	struct device *dev = siu_stream->substream->pcm->card->dev;
substream         365 sound/soc/sh/siu_pcm.c 	siu_stream->substream = ss;
substream         387 sound/soc/sh/siu_pcm.c 	siu_stream->substream = NULL;
substream         406 sound/soc/sh/siu_pcm.c 	rt = siu_stream->substream->runtime;
substream          89 sound/soc/sh/ssi.c static int ssi_startup(struct snd_pcm_substream *substream,
substream         101 sound/soc/sh/ssi.c static void ssi_shutdown(struct snd_pcm_substream *substream,
substream         109 sound/soc/sh/ssi.c static int ssi_trigger(struct snd_pcm_substream *substream, int cmd,
substream         128 sound/soc/sh/ssi.c static int ssi_hw_params(struct snd_pcm_substream *substream,
substream         138 sound/soc/sh/ssi.c 	recv = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 0 : 1;
substream         164 sound/soc/sirf/sirf-usp.c static int sirf_usp_pcm_hw_params(struct snd_pcm_substream *substream,
substream         218 sound/soc/sirf/sirf-usp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         238 sound/soc/sirf/sirf-usp.c static int sirf_usp_pcm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         247 sound/soc/sirf/sirf-usp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         255 sound/soc/sirf/sirf-usp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         315 sound/soc/soc-component.c 			   struct snd_pcm_substream *substream)
substream         319 sound/soc/soc-component.c 		return component->driver->ops->open(substream);
substream         325 sound/soc/soc-component.c 			    struct snd_pcm_substream *substream)
substream         329 sound/soc/soc-component.c 		return component->driver->ops->close(substream);
substream         335 sound/soc/soc-component.c 			      struct snd_pcm_substream *substream)
substream         339 sound/soc/soc-component.c 		return component->driver->ops->prepare(substream);
substream         345 sound/soc/soc-component.c 				struct snd_pcm_substream *substream,
substream         350 sound/soc/soc-component.c 		return component->driver->ops->hw_params(substream, params);
substream         356 sound/soc/soc-component.c 			       struct snd_pcm_substream *substream)
substream         360 sound/soc/soc-component.c 		return component->driver->ops->hw_free(substream);
substream         366 sound/soc/soc-component.c 			      struct snd_pcm_substream *substream,
substream         371 sound/soc/soc-component.c 		return component->driver->ops->trigger(substream, cmd);
substream         428 sound/soc/soc-component.c int snd_soc_pcm_component_pointer(struct snd_pcm_substream *substream)
substream         430 sound/soc/soc-component.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         440 sound/soc/soc-component.c 			return component->driver->ops->pointer(substream);
substream         446 sound/soc/soc-component.c int snd_soc_pcm_component_ioctl(struct snd_pcm_substream *substream,
substream         449 sound/soc/soc-component.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         459 sound/soc/soc-component.c 			return component->driver->ops->ioctl(substream,
substream         463 sound/soc/soc-component.c 	return snd_pcm_lib_ioctl(substream, cmd, arg);
substream         466 sound/soc/soc-component.c int snd_soc_pcm_component_copy_user(struct snd_pcm_substream *substream,
substream         470 sound/soc/soc-component.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         481 sound/soc/soc-component.c 				substream, channel, pos, buf, bytes);
substream         487 sound/soc/soc-component.c struct page *snd_soc_pcm_component_page(struct snd_pcm_substream *substream,
substream         490 sound/soc/soc-component.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         501 sound/soc/soc-component.c 			page = component->driver->ops->page(substream, offset);
substream         510 sound/soc/soc-component.c int snd_soc_pcm_component_mmap(struct snd_pcm_substream *substream,
substream         513 sound/soc/soc-component.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         523 sound/soc/soc-component.c 			return component->driver->ops->mmap(substream, vma);
substream         129 sound/soc/soc-compress.c 		 fe->pcm->streams[cstream->direction].substream;
substream         533 sound/soc/soc-compress.c 		 fe->pcm->streams[cstream->direction].substream;
substream         924 sound/soc/soc-compress.c 			be_pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd;
substream         926 sound/soc/soc-compress.c 			be_pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd;
substream         349 sound/soc/soc-core.c 			return rtd->pcm->streams[stream].substream;
substream         257 sound/soc/soc-dai.c 			  struct snd_pcm_substream *substream,
substream         260 sound/soc/soc-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         275 sound/soc/soc-dai.c 		ret = dai->driver->ops->hw_params(substream, params, dai);
substream         287 sound/soc/soc-dai.c 			 struct snd_pcm_substream *substream)
substream         290 sound/soc/soc-dai.c 		dai->driver->ops->hw_free(substream, dai);
substream         294 sound/soc/soc-dai.c 			struct snd_pcm_substream *substream)
substream         299 sound/soc/soc-dai.c 		ret = dai->driver->ops->startup(substream, dai);
substream         305 sound/soc/soc-dai.c 			 struct snd_pcm_substream *substream)
substream         308 sound/soc/soc-dai.c 		dai->driver->ops->shutdown(substream, dai);
substream         312 sound/soc/soc-dai.c 			struct snd_pcm_substream *substream)
substream         317 sound/soc/soc-dai.c 		ret = dai->driver->ops->prepare(substream, dai);
substream         323 sound/soc/soc-dai.c 			struct snd_pcm_substream *substream,
substream         329 sound/soc/soc-dai.c 		ret = dai->driver->ops->trigger(substream, cmd, dai);
substream         335 sound/soc/soc-dai.c 				struct snd_pcm_substream *substream,
substream         341 sound/soc/soc-dai.c 		ret = dai->driver->ops->bespoke_trigger(substream, cmd, dai);
substream         347 sound/soc/soc-dai.c 				    struct snd_pcm_substream *substream)
substream         352 sound/soc/soc-dai.c 		delay = dai->driver->ops->delay(substream, dai);
substream        2637 sound/soc/soc-dapm.c static int dapm_update_dai_unlocked(struct snd_pcm_substream *substream,
substream        2641 sound/soc/soc-dapm.c 	int dir = substream->stream;
substream        2673 sound/soc/soc-dapm.c int snd_soc_dapm_update_dai(struct snd_pcm_substream *substream,
substream        2677 sound/soc/soc-dapm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        2681 sound/soc/soc-dapm.c 	ret = dapm_update_dai_unlocked(substream, params, dai);
substream        3799 sound/soc/soc-dapm.c 			       struct snd_pcm_substream *substream)
substream        3803 sound/soc/soc-dapm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        3820 sound/soc/soc-dapm.c 	substream->runtime = runtime;
substream        3822 sound/soc/soc-dapm.c 	substream->stream = SNDRV_PCM_STREAM_CAPTURE;
substream        3826 sound/soc/soc-dapm.c 		ret = snd_soc_dai_startup(source, substream);
substream        3835 sound/soc/soc-dapm.c 	substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
substream        3839 sound/soc/soc-dapm.c 		ret = snd_soc_dai_startup(sink, substream);
substream        3848 sound/soc/soc-dapm.c 	substream->hw_opened = 1;
substream        3883 sound/soc/soc-dapm.c 	substream->stream = SNDRV_PCM_STREAM_CAPTURE;
substream        3887 sound/soc/soc-dapm.c 		ret = snd_soc_dai_hw_params(source, substream, params);
substream        3891 sound/soc/soc-dapm.c 		dapm_update_dai_unlocked(substream, params, source);
substream        3894 sound/soc/soc-dapm.c 	substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
substream        3898 sound/soc/soc-dapm.c 		ret = snd_soc_dai_hw_params(sink, substream, params);
substream        3902 sound/soc/soc-dapm.c 		dapm_update_dai_unlocked(substream, params, sink);
substream        3920 sound/soc/soc-dapm.c 	struct snd_pcm_substream *substream = w->priv;
substream        3921 sound/soc/soc-dapm.c 	int ret = 0, saved_stream = substream->stream;
substream        3929 sound/soc/soc-dapm.c 		ret = snd_soc_dai_link_event_pre_pmu(w, substream);
substream        3960 sound/soc/soc-dapm.c 		substream->stream = SNDRV_PCM_STREAM_CAPTURE;
substream        3963 sound/soc/soc-dapm.c 			snd_soc_dai_hw_free(source, substream);
substream        3966 sound/soc/soc-dapm.c 		substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
substream        3969 sound/soc/soc-dapm.c 			snd_soc_dai_hw_free(sink, substream);
substream        3972 sound/soc/soc-dapm.c 		substream->stream = SNDRV_PCM_STREAM_CAPTURE;
substream        3976 sound/soc/soc-dapm.c 			snd_soc_dai_shutdown(source, substream);
substream        3979 sound/soc/soc-dapm.c 		substream->stream = SNDRV_PCM_STREAM_PLAYBACK;
substream        3983 sound/soc/soc-dapm.c 			snd_soc_dai_shutdown(sink, substream);
substream        3988 sound/soc/soc-dapm.c 		kfree(substream->runtime);
substream        3998 sound/soc/soc-dapm.c 	substream->stream = saved_stream;
substream        4122 sound/soc/soc-dapm.c 		     struct snd_pcm_substream *substream,
substream        4125 sound/soc/soc-dapm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        4179 sound/soc/soc-dapm.c 	w->priv = substream;
substream        4301 sound/soc/soc-dapm.c 	struct snd_pcm_substream *substream;
substream        4321 sound/soc/soc-dapm.c 				substream = streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream        4322 sound/soc/soc-dapm.c 				playback = snd_soc_dapm_new_dai(card, substream,
substream        4351 sound/soc/soc-dapm.c 				substream = streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream        4352 sound/soc/soc-dapm.c 				capture = snd_soc_dapm_new_dai(card, substream,
substream          37 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_pcm_substream *substream)
substream          39 sound/soc/soc-generic-dmaengine-pcm.c 	if (!pcm->chan[substream->stream])
substream          42 sound/soc/soc-generic-dmaengine-pcm.c 	return pcm->chan[substream->stream]->device->dev;
substream          58 sound/soc/soc-generic-dmaengine-pcm.c int snd_dmaengine_pcm_prepare_slave_config(struct snd_pcm_substream *substream,
substream          61 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          65 sound/soc/soc-generic-dmaengine-pcm.c 	dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream          67 sound/soc/soc-generic-dmaengine-pcm.c 	ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config);
substream          71 sound/soc/soc-generic-dmaengine-pcm.c 	snd_dmaengine_pcm_set_config_from_dai_data(substream, dma_data,
substream          78 sound/soc/soc-generic-dmaengine-pcm.c static int dmaengine_pcm_hw_params(struct snd_pcm_substream *substream,
substream          81 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          85 sound/soc/soc-generic-dmaengine-pcm.c 	struct dma_chan *chan = snd_dmaengine_pcm_get_chan(substream);
substream          86 sound/soc/soc-generic-dmaengine-pcm.c 	int (*prepare_slave_config)(struct snd_pcm_substream *substream,
substream         100 sound/soc/soc-generic-dmaengine-pcm.c 		ret = prepare_slave_config(substream, params, &slave_config);
substream         109 sound/soc/soc-generic-dmaengine-pcm.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         112 sound/soc/soc-generic-dmaengine-pcm.c static int dmaengine_pcm_set_runtime_hwparams(struct snd_pcm_substream *substream)
substream         114 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         118 sound/soc/soc-generic-dmaengine-pcm.c 	struct device *dma_dev = dmaengine_dma_dev(pcm, substream);
substream         119 sound/soc/soc-generic-dmaengine-pcm.c 	struct dma_chan *chan = pcm->chan[substream->stream];
substream         130 sound/soc/soc-generic-dmaengine-pcm.c 		return snd_soc_set_runtime_hwparams(substream,
substream         133 sound/soc/soc-generic-dmaengine-pcm.c 	dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         155 sound/soc/soc-generic-dmaengine-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         199 sound/soc/soc-generic-dmaengine-pcm.c 	return snd_soc_set_runtime_hwparams(substream, &hw);
substream         202 sound/soc/soc-generic-dmaengine-pcm.c static int dmaengine_pcm_open(struct snd_pcm_substream *substream)
substream         204 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         208 sound/soc/soc-generic-dmaengine-pcm.c 	struct dma_chan *chan = pcm->chan[substream->stream];
substream         211 sound/soc/soc-generic-dmaengine-pcm.c 	ret = dmaengine_pcm_set_runtime_hwparams(substream);
substream         215 sound/soc/soc-generic-dmaengine-pcm.c 	return snd_dmaengine_pcm_open(substream, chan);
substream         220 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_pcm_substream *substream)
substream         228 sound/soc/soc-generic-dmaengine-pcm.c 	dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         234 sound/soc/soc-generic-dmaengine-pcm.c 		return pcm->config->compat_request_channel(rtd, substream);
substream         268 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_pcm_substream *substream;
substream         282 sound/soc/soc-generic-dmaengine-pcm.c 		substream = rtd->pcm->streams[i].substream;
substream         283 sound/soc/soc-generic-dmaengine-pcm.c 		if (!substream)
substream         292 sound/soc/soc-generic-dmaengine-pcm.c 				substream);
substream         301 sound/soc/soc-generic-dmaengine-pcm.c 		snd_pcm_lib_preallocate_pages(substream,
substream         303 sound/soc/soc-generic-dmaengine-pcm.c 				dmaengine_dma_dev(pcm, substream),
substream         321 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_pcm_substream *substream)
substream         323 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         329 sound/soc/soc-generic-dmaengine-pcm.c 		return snd_dmaengine_pcm_pointer_no_residue(substream);
substream         331 sound/soc/soc-generic-dmaengine-pcm.c 		return snd_dmaengine_pcm_pointer(substream);
substream         334 sound/soc/soc-generic-dmaengine-pcm.c static int dmaengine_copy_user(struct snd_pcm_substream *substream,
substream         338 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         341 sound/soc/soc-generic-dmaengine-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         343 sound/soc/soc-generic-dmaengine-pcm.c 	int (*process)(struct snd_pcm_substream *substream,
substream         346 sound/soc/soc-generic-dmaengine-pcm.c 	bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         356 sound/soc/soc-generic-dmaengine-pcm.c 		ret = process(substream, channel, hwoff, (__force void *)buf, bytes);
substream         137 sound/soc/soc-pcm.c int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
substream         140 sound/soc/soc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         178 sound/soc/soc-pcm.c static int soc_pcm_apply_symmetry(struct snd_pcm_substream *substream,
substream         181 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         189 sound/soc/soc-pcm.c 		ret = snd_pcm_hw_constraint_single(substream->runtime,
substream         205 sound/soc/soc-pcm.c 		ret = snd_pcm_hw_constraint_single(substream->runtime,
substream         221 sound/soc/soc-pcm.c 		ret = snd_pcm_hw_constraint_single(substream->runtime,
substream         235 sound/soc/soc-pcm.c static int soc_pcm_params_symmetry(struct snd_pcm_substream *substream,
substream         238 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         287 sound/soc/soc-pcm.c static bool soc_pcm_has_symmetry(struct snd_pcm_substream *substream)
substream         289 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         308 sound/soc/soc-pcm.c static void soc_pcm_set_msb(struct snd_pcm_substream *substream, int bits)
substream         310 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         316 sound/soc/soc-pcm.c 	ret = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 0, bits);
substream         322 sound/soc/soc-pcm.c static void soc_pcm_apply_msb(struct snd_pcm_substream *substream)
substream         324 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         330 sound/soc/soc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         350 sound/soc/soc-pcm.c 	soc_pcm_set_msb(substream, bits);
substream         351 sound/soc/soc-pcm.c 	soc_pcm_set_msb(substream, cpu_bits);
substream         354 sound/soc/soc-pcm.c static void soc_pcm_init_runtime_hw(struct snd_pcm_substream *substream)
substream         356 sound/soc/soc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         358 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         370 sound/soc/soc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         388 sound/soc/soc-pcm.c 					      substream->stream))
substream         392 sound/soc/soc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         430 sound/soc/soc-pcm.c static int soc_pcm_components_open(struct snd_pcm_substream *substream,
substream         433 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         450 sound/soc/soc-pcm.c 		ret = snd_soc_component_open(component, substream);
substream         462 sound/soc/soc-pcm.c static int soc_pcm_components_close(struct snd_pcm_substream *substream,
substream         465 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         476 sound/soc/soc-pcm.c 		ret |= snd_soc_component_close(component, substream);
substream         488 sound/soc/soc-pcm.c static int soc_pcm_open(struct snd_pcm_substream *substream)
substream         490 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         491 sound/soc/soc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         512 sound/soc/soc-pcm.c 	ret = snd_soc_dai_startup(cpu_dai, substream);
substream         519 sound/soc/soc-pcm.c 	ret = soc_pcm_components_open(substream, &component);
substream         524 sound/soc/soc-pcm.c 		ret = snd_soc_dai_startup(codec_dai, substream);
substream         532 sound/soc/soc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         539 sound/soc/soc-pcm.c 		ret = rtd->dai_link->ops->startup(substream);
substream         552 sound/soc/soc-pcm.c 	soc_pcm_init_runtime_hw(substream);
substream         557 sound/soc/soc-pcm.c 	if (soc_pcm_has_symmetry(substream))
substream         578 sound/soc/soc-pcm.c 	soc_pcm_apply_msb(substream);
substream         582 sound/soc/soc-pcm.c 		ret = soc_pcm_apply_symmetry(substream, cpu_dai);
substream         589 sound/soc/soc-pcm.c 			ret = soc_pcm_apply_symmetry(substream, codec_dai);
substream         605 sound/soc/soc-pcm.c 	snd_soc_runtime_activate(rtd, substream->stream);
substream         612 sound/soc/soc-pcm.c 		rtd->dai_link->ops->shutdown(substream);
substream         619 sound/soc/soc-pcm.c 		snd_soc_dai_shutdown(codec_dai, substream);
substream         622 sound/soc/soc-pcm.c 	soc_pcm_components_close(substream, component);
substream         624 sound/soc/soc-pcm.c 	snd_soc_dai_shutdown(cpu_dai, substream);
substream         688 sound/soc/soc-pcm.c static int soc_pcm_close(struct snd_pcm_substream *substream)
substream         690 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         699 sound/soc/soc-pcm.c 	snd_soc_runtime_deactivate(rtd, substream->stream);
substream         710 sound/soc/soc-pcm.c 	snd_soc_dai_digital_mute(cpu_dai, 1, substream->stream);
substream         712 sound/soc/soc-pcm.c 	snd_soc_dai_shutdown(cpu_dai, substream);
substream         715 sound/soc/soc-pcm.c 		snd_soc_dai_shutdown(codec_dai, substream);
substream         718 sound/soc/soc-pcm.c 		rtd->dai_link->ops->shutdown(substream);
substream         720 sound/soc/soc-pcm.c 	soc_pcm_components_close(substream, NULL);
substream         722 sound/soc/soc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         765 sound/soc/soc-pcm.c static int soc_pcm_prepare(struct snd_pcm_substream *substream)
substream         767 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         777 sound/soc/soc-pcm.c 		ret = rtd->dai_link->ops->prepare(substream);
substream         788 sound/soc/soc-pcm.c 		ret = snd_soc_component_prepare(component, substream);
substream         797 sound/soc/soc-pcm.c 		ret = snd_soc_dai_prepare(codec_dai, substream);
substream         806 sound/soc/soc-pcm.c 	ret = snd_soc_dai_prepare(cpu_dai, substream);
substream         814 sound/soc/soc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         820 sound/soc/soc-pcm.c 	snd_soc_dapm_stream_event(rtd, substream->stream,
substream         825 sound/soc/soc-pcm.c 					 substream->stream);
substream         826 sound/soc/soc-pcm.c 	snd_soc_dai_digital_mute(cpu_dai, 0, substream->stream);
substream         844 sound/soc/soc-pcm.c static int soc_pcm_components_hw_free(struct snd_pcm_substream *substream,
substream         847 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         858 sound/soc/soc-pcm.c 		ret |= snd_soc_component_hw_free(component, substream);
substream         869 sound/soc/soc-pcm.c static int soc_pcm_hw_params(struct snd_pcm_substream *substream,
substream         872 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         881 sound/soc/soc-pcm.c 	ret = soc_pcm_params_symmetry(substream, params);
substream         886 sound/soc/soc-pcm.c 		ret = rtd->dai_link->ops->hw_params(substream, params);
substream         911 sound/soc/soc-pcm.c 		if (!snd_soc_dai_stream_valid(codec_dai, substream->stream))
substream         918 sound/soc/soc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         923 sound/soc/soc-pcm.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
substream         928 sound/soc/soc-pcm.c 		ret = snd_soc_dai_hw_params(codec_dai, substream,
substream         938 sound/soc/soc-pcm.c 		snd_soc_dapm_update_dai(substream, &codec_params, codec_dai);
substream         941 sound/soc/soc-pcm.c 	ret = snd_soc_dai_hw_params(cpu_dai, substream, params);
substream         951 sound/soc/soc-pcm.c 	snd_soc_dapm_update_dai(substream, params, cpu_dai);
substream         956 sound/soc/soc-pcm.c 		ret = snd_soc_component_hw_params(component, substream, params);
substream         971 sound/soc/soc-pcm.c 	soc_pcm_components_hw_free(substream, component);
substream         973 sound/soc/soc-pcm.c 	snd_soc_dai_hw_free(cpu_dai, substream);
substream         981 sound/soc/soc-pcm.c 		if (!snd_soc_dai_stream_valid(codec_dai, substream->stream))
substream         984 sound/soc/soc-pcm.c 		snd_soc_dai_hw_free(codec_dai, substream);
substream         989 sound/soc/soc-pcm.c 		rtd->dai_link->ops->hw_free(substream);
substream         998 sound/soc/soc-pcm.c static int soc_pcm_hw_free(struct snd_pcm_substream *substream)
substream        1000 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1003 sound/soc/soc-pcm.c 	bool playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream        1028 sound/soc/soc-pcm.c 						 substream->stream);
substream        1033 sound/soc/soc-pcm.c 		rtd->dai_link->ops->hw_free(substream);
substream        1036 sound/soc/soc-pcm.c 	soc_pcm_components_hw_free(substream, NULL);
substream        1040 sound/soc/soc-pcm.c 		if (!snd_soc_dai_stream_valid(codec_dai, substream->stream))
substream        1043 sound/soc/soc-pcm.c 		snd_soc_dai_hw_free(codec_dai, substream);
substream        1046 sound/soc/soc-pcm.c 	snd_soc_dai_hw_free(cpu_dai, substream);
substream        1052 sound/soc/soc-pcm.c static int soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1054 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1062 sound/soc/soc-pcm.c 		ret = snd_soc_dai_trigger(codec_dai, substream, cmd);
substream        1070 sound/soc/soc-pcm.c 		ret = snd_soc_component_trigger(component, substream, cmd);
substream        1075 sound/soc/soc-pcm.c 	ret = snd_soc_dai_trigger(cpu_dai, substream, cmd);
substream        1080 sound/soc/soc-pcm.c 		ret = rtd->dai_link->ops->trigger(substream, cmd);
substream        1088 sound/soc/soc-pcm.c static int soc_pcm_bespoke_trigger(struct snd_pcm_substream *substream,
substream        1091 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1097 sound/soc/soc-pcm.c 		ret = snd_soc_dai_bespoke_trigger(codec_dai, substream, cmd);
substream        1102 sound/soc/soc-pcm.c 	ret = snd_soc_dai_bespoke_trigger(cpu_dai, substream, cmd);
substream        1113 sound/soc/soc-pcm.c static snd_pcm_uframes_t soc_pcm_pointer(struct snd_pcm_substream *substream)
substream        1115 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1118 sound/soc/soc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1127 sound/soc/soc-pcm.c 	offset = snd_soc_pcm_component_pointer(substream);
substream        1132 sound/soc/soc-pcm.c 	delay += snd_soc_dai_delay(cpu_dai, substream);
substream        1136 sound/soc/soc-pcm.c 				  snd_soc_dai_delay(codec_dai, substream));
substream        1642 sound/soc/soc-pcm.c static void dpcm_runtime_merge_format(struct snd_pcm_substream *substream,
substream        1645 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        1648 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        1683 sound/soc/soc-pcm.c static void dpcm_runtime_merge_chan(struct snd_pcm_substream *substream,
substream        1687 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        1689 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        1734 sound/soc/soc-pcm.c static void dpcm_runtime_merge_rate(struct snd_pcm_substream *substream,
substream        1739 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        1741 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        1792 sound/soc/soc-pcm.c static void dpcm_set_fe_runtime(struct snd_pcm_substream *substream)
substream        1794 sound/soc/soc-pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1795 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream        1799 sound/soc/soc-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1804 sound/soc/soc-pcm.c 	dpcm_runtime_merge_format(substream, &runtime->hw.formats);
substream        1805 sound/soc/soc-pcm.c 	dpcm_runtime_merge_chan(substream, &runtime->hw.channels_min,
substream        1807 sound/soc/soc-pcm.c 	dpcm_runtime_merge_rate(substream, &runtime->hw.rates,
substream        1811 sound/soc/soc-pcm.c static int dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd);
substream        1821 sound/soc/soc-pcm.c 	struct snd_pcm_substream *substream =
substream        1824 sound/soc/soc-pcm.c 	snd_pcm_stream_lock_irq(substream);
substream        1826 sound/soc/soc-pcm.c 		dpcm_fe_dai_do_trigger(substream,
substream        1831 sound/soc/soc-pcm.c 	snd_pcm_stream_unlock_irq(substream);
substream        1979 sound/soc/soc-pcm.c static int dpcm_fe_dai_shutdown(struct snd_pcm_substream *substream)
substream        1981 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        1982 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        1987 sound/soc/soc-pcm.c 	dpcm_be_dai_shutdown(fe, substream->stream);
substream        1992 sound/soc/soc-pcm.c 	soc_pcm_close(substream);
substream        2045 sound/soc/soc-pcm.c static int dpcm_fe_dai_hw_free(struct snd_pcm_substream *substream)
substream        2047 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2048 sound/soc/soc-pcm.c 	int err, stream = substream->stream;
substream        2056 sound/soc/soc-pcm.c 	err = soc_pcm_hw_free(substream);
substream        2156 sound/soc/soc-pcm.c static int dpcm_fe_dai_hw_params(struct snd_pcm_substream *substream,
substream        2159 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2160 sound/soc/soc-pcm.c 	int ret, stream = substream->stream;
substream        2165 sound/soc/soc-pcm.c 	memcpy(&fe->dpcm[substream->stream].hw_params, params,
substream        2167 sound/soc/soc-pcm.c 	ret = dpcm_be_dai_hw_params(fe, substream->stream);
substream        2178 sound/soc/soc-pcm.c 	ret = soc_pcm_hw_params(substream, params);
substream        2192 sound/soc/soc-pcm.c 		struct snd_pcm_substream *substream, int cmd)
substream        2199 sound/soc/soc-pcm.c 	ret = soc_pcm_trigger(substream, cmd);
substream        2302 sound/soc/soc-pcm.c static int dpcm_dai_trigger_fe_be(struct snd_pcm_substream *substream,
substream        2305 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2313 sound/soc/soc-pcm.c 		ret = soc_pcm_trigger(substream, cmd);
substream        2317 sound/soc/soc-pcm.c 		ret = dpcm_be_dai_trigger(fe, substream->stream, cmd);
substream        2322 sound/soc/soc-pcm.c 	ret = dpcm_be_dai_trigger(fe, substream->stream, cmd);
substream        2329 sound/soc/soc-pcm.c 	ret = soc_pcm_trigger(substream, cmd);
substream        2334 sound/soc/soc-pcm.c static int dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd)
substream        2336 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2337 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        2349 sound/soc/soc-pcm.c 			ret = dpcm_dai_trigger_fe_be(substream, cmd, true);
substream        2354 sound/soc/soc-pcm.c 			ret = dpcm_dai_trigger_fe_be(substream, cmd, false);
substream        2366 sound/soc/soc-pcm.c 			ret = dpcm_dai_trigger_fe_be(substream, cmd, false);
substream        2371 sound/soc/soc-pcm.c 			ret = dpcm_dai_trigger_fe_be(substream, cmd, true);
substream        2384 sound/soc/soc-pcm.c 		ret = soc_pcm_bespoke_trigger(substream, cmd);
substream        2419 sound/soc/soc-pcm.c static int dpcm_fe_dai_trigger(struct snd_pcm_substream *substream, int cmd)
substream        2421 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2422 sound/soc/soc-pcm.c 	int stream = substream->stream;
substream        2433 sound/soc/soc-pcm.c 	return dpcm_fe_dai_do_trigger(substream, cmd);
substream        2472 sound/soc/soc-pcm.c static int dpcm_fe_dai_prepare(struct snd_pcm_substream *substream)
substream        2474 sound/soc/soc-pcm.c 	struct snd_soc_pcm_runtime *fe = substream->private_data;
substream        2475 sound/soc/soc-pcm.c 	int stream = substream->stream, ret = 0;
substream        2491 sound/soc/soc-pcm.c 	ret = dpcm_be_dai_prepare(fe, substream->stream);
substream        2496 sound/soc/soc-pcm.c 	ret = soc_pcm_prepare(substream);
substream        2516 sound/soc/soc-pcm.c 	struct snd_pcm_substream *substream =
substream        2529 sound/soc/soc-pcm.c 		err = soc_pcm_bespoke_trigger(substream, SNDRV_PCM_TRIGGER_STOP);
substream        2557 sound/soc/soc-pcm.c 	struct snd_pcm_substream *substream =
substream        2607 sound/soc/soc-pcm.c 		ret = soc_pcm_bespoke_trigger(substream, SNDRV_PCM_TRIGGER_START);
substream        2962 sound/soc/soc-pcm.c 			pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->private_data = rtd;
substream        2964 sound/soc/soc-pcm.c 			pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream->private_data = rtd;
substream        3049 sound/soc/soc-pcm.c 	return be->pcm->streams[stream].substream;
substream          66 sound/soc/soc-utils.c static int dummy_dma_open(struct snd_pcm_substream *substream)
substream          68 sound/soc/soc-utils.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          72 sound/soc/soc-utils.c 		snd_soc_set_runtime_hwparams(substream, &dummy_dma_hardware);
substream         345 sound/soc/sof/imx/imx8.c 			      struct snd_pcm_substream *substream,
substream         352 sound/soc/sof/imx/imx8.c 			       struct snd_pcm_substream *substream,
substream          56 sound/soc/sof/intel/hda-dai.c 			       struct snd_pcm_substream *substream)
substream          58 sound/soc/sof/intel/hda-dai.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          63 sound/soc/sof/intel/hda-dai.c 	int stream_dir = substream->stream;
substream          73 sound/soc/sof/intel/hda-dai.c 		if (stream->direction != substream->stream)
substream         112 sound/soc/sof/intel/hda-dai.c 		res->link_substream = substream;
substream         198 sound/soc/sof/intel/hda-dai.c static int hda_link_hw_params(struct snd_pcm_substream *substream,
substream         202 sound/soc/sof/intel/hda-dai.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream         205 sound/soc/sof/intel/hda-dai.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         214 sound/soc/sof/intel/hda-dai.c 	link_dev = snd_soc_dai_get_dma_data(dai, substream);
substream         216 sound/soc/sof/intel/hda-dai.c 		link_dev = hda_link_stream_assign(bus, substream);
substream         220 sound/soc/sof/intel/hda-dai.c 		snd_soc_dai_set_dma_data(dai, substream, (void *)link_dev);
substream         229 sound/soc/sof/intel/hda-dai.c 				  substream->stream);
substream         238 sound/soc/sof/intel/hda-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         246 sound/soc/sof/intel/hda-dai.c 	p_params.stream = substream->stream;
substream         251 sound/soc/sof/intel/hda-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         259 sound/soc/sof/intel/hda-dai.c static int hda_link_pcm_prepare(struct snd_pcm_substream *substream,
substream         263 sound/soc/sof/intel/hda-dai.c 				snd_soc_dai_get_dma_data(dai, substream);
substream         266 sound/soc/sof/intel/hda-dai.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         267 sound/soc/sof/intel/hda-dai.c 	int stream = substream->stream;
substream         272 sound/soc/sof/intel/hda-dai.c 	dev_dbg(sdev->dev, "hda: prepare stream dir %d\n", substream->stream);
substream         274 sound/soc/sof/intel/hda-dai.c 	return hda_link_hw_params(substream, &rtd->dpcm[stream].hw_params,
substream         278 sound/soc/sof/intel/hda-dai.c static int hda_link_pcm_trigger(struct snd_pcm_substream *substream,
substream         282 sound/soc/sof/intel/hda-dai.c 				snd_soc_dai_get_dma_data(dai, substream);
substream         291 sound/soc/sof/intel/hda-dai.c 	hstream = substream->runtime->private_data;
substream         293 sound/soc/sof/intel/hda-dai.c 	rtd = snd_pcm_substream_chip(substream);
substream         305 sound/soc/sof/intel/hda-dai.c 		ret = hda_link_pcm_prepare(substream, dai);
substream         324 sound/soc/sof/intel/hda-dai.c 					  DMA_CHAN_INVALID, substream->stream);
substream         328 sound/soc/sof/intel/hda-dai.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         345 sound/soc/sof/intel/hda-dai.c static int hda_link_hw_free(struct snd_pcm_substream *substream,
substream         357 sound/soc/sof/intel/hda-dai.c 	hstream = substream->runtime->private_data;
substream         359 sound/soc/sof/intel/hda-dai.c 	rtd = snd_pcm_substream_chip(substream);
substream         360 sound/soc/sof/intel/hda-dai.c 	link_dev = snd_soc_dai_get_dma_data(dai, substream);
substream         372 sound/soc/sof/intel/hda-dai.c 				  substream->stream);
substream         380 sound/soc/sof/intel/hda-dai.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         385 sound/soc/sof/intel/hda-dai.c 	snd_soc_dai_set_dma_data(dai, substream, NULL);
substream         280 sound/soc/sof/intel/hda-ipc.c 		      struct snd_pcm_substream *substream,
substream         283 sound/soc/sof/intel/hda-ipc.c 	if (!substream || !sdev->stream_box.size) {
substream         286 sound/soc/sof/intel/hda-ipc.c 		struct hdac_stream *hstream = substream->runtime->private_data;
substream         301 sound/soc/sof/intel/hda-ipc.c 		       struct snd_pcm_substream *substream,
substream         304 sound/soc/sof/intel/hda-ipc.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream         320 sound/soc/sof/intel/hda-ipc.c 		substream->stream, hda_stream->stream.posn_offset);
substream          47 sound/soc/sof/intel/hda-loader.c 	hstream->substream = NULL;
substream         221 sound/soc/sof/intel/hda-loader.c 	hstream->substream = NULL;
substream          84 sound/soc/sof/intel/hda-pcm.c 			  struct snd_pcm_substream *substream,
substream          88 sound/soc/sof/intel/hda-pcm.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream          99 sound/soc/sof/intel/hda-pcm.c 	hstream->substream = substream;
substream         101 sound/soc/sof/intel/hda-pcm.c 	dmab = substream->runtime->dma_buffer_p;
substream         129 sound/soc/sof/intel/hda-pcm.c 			struct snd_pcm_substream *substream, int cmd)
substream         131 sound/soc/sof/intel/hda-pcm.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream         138 sound/soc/sof/intel/hda-pcm.c 				      struct snd_pcm_substream *substream)
substream         140 sound/soc/sof/intel/hda-pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         141 sound/soc/sof/intel/hda-pcm.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream         155 sound/soc/sof/intel/hda-pcm.c 		pos = spcm->stream[substream->stream].posn.host_posn;
substream         167 sound/soc/sof/intel/hda-pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         197 sound/soc/sof/intel/hda-pcm.c 	pos = bytes_to_frames(substream->runtime, pos);
substream         200 sound/soc/sof/intel/hda-pcm.c 		 hstream->index, substream->stream, pos);
substream         205 sound/soc/sof/intel/hda-pcm.c 		     struct snd_pcm_substream *substream)
substream         208 sound/soc/sof/intel/hda-pcm.c 	int direction = substream->stream;
substream         218 sound/soc/sof/intel/hda-pcm.c 	substream->runtime->private_data = &dsp_stream->hstream;
substream         223 sound/soc/sof/intel/hda-pcm.c 		      struct snd_pcm_substream *substream)
substream         225 sound/soc/sof/intel/hda-pcm.c 	struct hdac_stream *hstream = substream->runtime->private_data;
substream         226 sound/soc/sof/intel/hda-pcm.c 	int direction = substream->stream;
substream         232 sound/soc/sof/intel/hda-pcm.c 		dev_dbg(sdev->dev, "stream %s not opened!\n", substream->name);
substream         237 sound/soc/sof/intel/hda-pcm.c 	substream->runtime->private_data = NULL;
substream         517 sound/soc/sof/intel/hda-stream.c 			   struct snd_pcm_substream *substream)
substream         519 sound/soc/sof/intel/hda-stream.c 	struct hdac_stream *stream = substream->runtime->private_data;
substream         573 sound/soc/sof/intel/hda-stream.c 			if (!s->substream ||
substream         580 sound/soc/sof/intel/hda-stream.c 				snd_sof_pcm_period_elapsed(s->substream);
substream         473 sound/soc/sof/intel/hda.h 		     struct snd_pcm_substream *substream);
substream         475 sound/soc/sof/intel/hda.h 		      struct snd_pcm_substream *substream);
substream         477 sound/soc/sof/intel/hda.h 			  struct snd_pcm_substream *substream,
substream         481 sound/soc/sof/intel/hda.h 			   struct snd_pcm_substream *substream);
substream         483 sound/soc/sof/intel/hda.h 			struct snd_pcm_substream *substream, int cmd);
substream         485 sound/soc/sof/intel/hda.h 				      struct snd_pcm_substream *substream);
substream         513 sound/soc/sof/intel/hda.h 		      struct snd_pcm_substream *substream,
substream         516 sound/soc/sof/intel/hda.h 		       struct snd_pcm_substream *substream,
substream          29 sound/soc/sof/intel/intel-ipc.c 			struct snd_pcm_substream *substream,
substream          32 sound/soc/sof/intel/intel-ipc.c 	if (!substream || !sdev->stream_box.size) {
substream          35 sound/soc/sof/intel/intel-ipc.c 		struct intel_stream *stream = substream->runtime->private_data;
substream          45 sound/soc/sof/intel/intel-ipc.c 			 struct snd_pcm_substream *substream,
substream          48 sound/soc/sof/intel/intel-ipc.c 	struct intel_stream *stream = substream->runtime->private_data;
substream          59 sound/soc/sof/intel/intel-ipc.c 		substream->stream, stream->posn_offset);
substream          66 sound/soc/sof/intel/intel-ipc.c 		   struct snd_pcm_substream *substream)
substream          74 sound/soc/sof/intel/intel-ipc.c 	substream->runtime->private_data = stream;
substream          81 sound/soc/sof/intel/intel-ipc.c 		    struct snd_pcm_substream *substream)
substream          83 sound/soc/sof/intel/intel-ipc.c 	struct intel_stream *stream = substream->runtime->private_data;
substream          85 sound/soc/sof/intel/intel-ipc.c 	substream->runtime->private_data = NULL;
substream         424 sound/soc/sof/ipc.c 	snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn));
substream         432 sound/soc/sof/ipc.c 	if (!stream->substream->runtime->no_period_wakeup)
substream         433 sound/soc/sof/ipc.c 		snd_sof_pcm_period_elapsed(stream->substream);
substream         452 sound/soc/sof/ipc.c 	snd_sof_ipc_msg_data(sdev, stream->substream, &posn, sizeof(posn));
substream         460 sound/soc/sof/ipc.c 	snd_pcm_stop_xrun(stream->substream);
substream         301 sound/soc/sof/ops.h 			  struct snd_pcm_substream *substream)
substream         304 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_open(sdev, substream);
substream         312 sound/soc/sof/ops.h 			   struct snd_pcm_substream *substream)
substream         315 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_close(sdev, substream);
substream         323 sound/soc/sof/ops.h 			       struct snd_pcm_substream *substream,
substream         328 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_hw_params(sdev, substream,
substream         337 sound/soc/sof/ops.h 			     struct snd_pcm_substream *substream)
substream         340 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_hw_free(sdev, substream);
substream         348 sound/soc/sof/ops.h 			     struct snd_pcm_substream *substream, int cmd)
substream         351 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_trigger(sdev, substream, cmd);
substream         358 sound/soc/sof/ops.h 					struct snd_pcm_substream *substream,
substream         361 sound/soc/sof/ops.h 	sof_ops(sdev)->ipc_msg_data(sdev, substream, p, sz);
substream         367 sound/soc/sof/ops.h 		       struct snd_pcm_substream *substream,
substream         370 sound/soc/sof/ops.h 	return sof_ops(sdev)->ipc_pcm_params(sdev, substream, reply);
substream         376 sound/soc/sof/ops.h 			     struct snd_pcm_substream *substream)
substream         379 sound/soc/sof/ops.h 		return sof_ops(sdev)->pcm_pointer(sdev, substream);
substream          22 sound/soc/sof/pcm.c static int create_page_table(struct snd_pcm_substream *substream,
substream          25 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          30 sound/soc/sof/pcm.c 	struct snd_dma_buffer *dmab = snd_pcm_get_dma_buf(substream);
substream          31 sound/soc/sof/pcm.c 	int stream = substream->stream;
substream          41 sound/soc/sof/pcm.c static int sof_pcm_dsp_params(struct snd_sof_pcm *spcm, struct snd_pcm_substream *substream,
substream          46 sound/soc/sof/pcm.c 	int ret = snd_sof_ipc_pcm_params(sdev, substream, reply);
substream          64 sound/soc/sof/pcm.c 	snd_pcm_period_elapsed(sps->substream);
substream          70 sound/soc/sof/pcm.c void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream)
substream          72 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          93 sound/soc/sof/pcm.c 	schedule_work(&spcm->stream[substream->stream].period_elapsed_work);
substream          98 sound/soc/sof/pcm.c static int sof_pcm_hw_params(struct snd_pcm_substream *substream,
substream         101 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         102 sound/soc/sof/pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         120 sound/soc/sof/pcm.c 		spcm->pcm.pcm_id, substream->stream);
substream         125 sound/soc/sof/pcm.c 	ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         138 sound/soc/sof/pcm.c 		ret = create_page_table(substream, runtime->dma_area,
substream         150 sound/soc/sof/pcm.c 	pcm.comp_id = spcm->stream[substream->stream].comp_id;
substream         153 sound/soc/sof/pcm.c 		spcm->stream[substream->stream].page_table.addr;
substream         155 sound/soc/sof/pcm.c 	pcm.params.direction = substream->stream;
substream         188 sound/soc/sof/pcm.c 					     substream,
substream         207 sound/soc/sof/pcm.c 	ret = sof_pcm_dsp_params(spcm, substream, &ipc_params_reply);
substream         211 sound/soc/sof/pcm.c 	spcm->prepared[substream->stream] = true;
substream         214 sound/soc/sof/pcm.c 	memcpy(&spcm->params[substream->stream], params, sizeof(*params));
substream         219 sound/soc/sof/pcm.c static int sof_pcm_dsp_pcm_free(struct snd_pcm_substream *substream,
substream         229 sound/soc/sof/pcm.c 	stream.comp_id = spcm->stream[substream->stream].comp_id;
substream         235 sound/soc/sof/pcm.c 		spcm->prepared[substream->stream] = false;
substream         240 sound/soc/sof/pcm.c static int sof_pcm_hw_free(struct snd_pcm_substream *substream)
substream         242 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         258 sound/soc/sof/pcm.c 		substream->stream);
substream         260 sound/soc/sof/pcm.c 	if (spcm->prepared[substream->stream]) {
substream         261 sound/soc/sof/pcm.c 		ret = sof_pcm_dsp_pcm_free(substream, sdev, spcm);
substream         266 sound/soc/sof/pcm.c 	snd_pcm_lib_free_pages(substream);
substream         268 sound/soc/sof/pcm.c 	cancel_work_sync(&spcm->stream[substream->stream].period_elapsed_work);
substream         270 sound/soc/sof/pcm.c 	ret = snd_sof_pcm_platform_hw_free(sdev, substream);
substream         279 sound/soc/sof/pcm.c static int sof_pcm_prepare(struct snd_pcm_substream *substream)
substream         281 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         296 sound/soc/sof/pcm.c 	if (spcm->prepared[substream->stream])
substream         300 sound/soc/sof/pcm.c 		substream->stream);
substream         303 sound/soc/sof/pcm.c 	ret = sof_pcm_hw_params(substream, &spcm->params[substream->stream]);
substream         316 sound/soc/sof/pcm.c static int sof_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         318 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         338 sound/soc/sof/pcm.c 		spcm->pcm.pcm_id, substream->stream, cmd);
substream         342 sound/soc/sof/pcm.c 	stream.comp_id = spcm->stream[substream->stream].comp_id;
substream         354 sound/soc/sof/pcm.c 		ret = sof_pcm_prepare(substream);
substream         381 sound/soc/sof/pcm.c 		snd_sof_pcm_platform_trigger(sdev, substream, cmd);
substream         389 sound/soc/sof/pcm.c 		snd_sof_pcm_platform_trigger(sdev, substream, cmd);
substream         393 sound/soc/sof/pcm.c 		ret = sof_pcm_dsp_pcm_free(substream, sdev, spcm);
substream         398 sound/soc/sof/pcm.c static snd_pcm_uframes_t sof_pcm_pointer(struct snd_pcm_substream *substream)
substream         400 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         413 sound/soc/sof/pcm.c 		return sof_ops(sdev)->pcm_pointer(sdev, substream);
substream         420 sound/soc/sof/pcm.c 	host = bytes_to_frames(substream->runtime,
substream         421 sound/soc/sof/pcm.c 			       spcm->stream[substream->stream].posn.host_posn);
substream         422 sound/soc/sof/pcm.c 	dai = bytes_to_frames(substream->runtime,
substream         423 sound/soc/sof/pcm.c 			      spcm->stream[substream->stream].posn.dai_posn);
substream         426 sound/soc/sof/pcm.c 		spcm->pcm.pcm_id, substream->stream, host, dai);
substream         431 sound/soc/sof/pcm.c static int sof_pcm_open(struct snd_pcm_substream *substream)
substream         433 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         434 sound/soc/sof/pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         451 sound/soc/sof/pcm.c 		substream->stream);
substream         453 sound/soc/sof/pcm.c 	INIT_WORK(&spcm->stream[substream->stream].period_elapsed_work,
substream         456 sound/soc/sof/pcm.c 	caps = &spcm->pcm.caps[substream->stream];
substream         459 sound/soc/sof/pcm.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         462 sound/soc/sof/pcm.c 	snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         494 sound/soc/sof/pcm.c 	substream->wait_time = 500;
substream         496 sound/soc/sof/pcm.c 	spcm->stream[substream->stream].posn.host_posn = 0;
substream         497 sound/soc/sof/pcm.c 	spcm->stream[substream->stream].posn.dai_posn = 0;
substream         498 sound/soc/sof/pcm.c 	spcm->stream[substream->stream].substream = substream;
substream         499 sound/soc/sof/pcm.c 	spcm->prepared[substream->stream] = false;
substream         501 sound/soc/sof/pcm.c 	ret = snd_sof_pcm_platform_open(sdev, substream);
substream         508 sound/soc/sof/pcm.c static int sof_pcm_close(struct snd_pcm_substream *substream)
substream         510 sound/soc/sof/pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         526 sound/soc/sof/pcm.c 		substream->stream);
substream         528 sound/soc/sof/pcm.c 	err = snd_sof_pcm_platform_close(sdev, substream);
substream         588 sound/soc/sof/pcm.c 	snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream,
substream         605 sound/soc/sof/pcm.c 	snd_pcm_lib_preallocate_pages(pcm->streams[stream].substream,
substream         218 sound/soc/sof/pm.c 	struct snd_pcm_substream *substream;
substream         230 sound/soc/sof/pm.c 			substream = spcm->stream[dir].substream;
substream         231 sound/soc/sof/pm.c 			if (!substream || !substream->runtime)
substream         234 sound/soc/sof/pm.c 			state = substream->runtime->status->state;
substream         135 sound/soc/sof/sof-priv.h 			struct snd_pcm_substream *substream); /* optional */
substream         138 sound/soc/sof/sof-priv.h 			 struct snd_pcm_substream *substream); /* optional */
substream         142 sound/soc/sof/sof-priv.h 			     struct snd_pcm_substream *substream,
substream         148 sound/soc/sof/sof-priv.h 			   struct snd_pcm_substream *substream); /* optional */
substream         152 sound/soc/sof/sof-priv.h 			   struct snd_pcm_substream *substream,
substream         157 sound/soc/sof/sof-priv.h 					 struct snd_pcm_substream *substream); /* optional */
substream         161 sound/soc/sof/sof-priv.h 			     struct snd_pcm_substream *substream,
substream         166 sound/soc/sof/sof-priv.h 			      struct snd_pcm_substream *substream,
substream         294 sound/soc/sof/sof-priv.h 	struct snd_pcm_substream *substream;
substream         531 sound/soc/sof/sof-priv.h void snd_sof_pcm_period_elapsed(struct snd_pcm_substream *substream);
substream         657 sound/soc/sof/sof-priv.h 			struct snd_pcm_substream *substream,
substream         660 sound/soc/sof/sof-priv.h 			 struct snd_pcm_substream *substream,
substream         664 sound/soc/sof/sof-priv.h 		   struct snd_pcm_substream *substream);
substream         666 sound/soc/sof/sof-priv.h 		    struct snd_pcm_substream *substream);
substream          66 sound/soc/spear/spdif_in.c static void spdif_in_shutdown(struct snd_pcm_substream *substream,
substream          71 sound/soc/spear/spdif_in.c 	if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
substream          94 sound/soc/spear/spdif_in.c static int spdif_in_hw_params(struct snd_pcm_substream *substream,
substream         101 sound/soc/spear/spdif_in.c 	if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
substream         110 sound/soc/spear/spdif_in.c static int spdif_in_trigger(struct snd_pcm_substream *substream, int cmd,
substream         117 sound/soc/spear/spdif_in.c 	if (substream->stream != SNDRV_PCM_STREAM_CAPTURE)
substream          60 sound/soc/spear/spdif_out.c static int spdif_out_startup(struct snd_pcm_substream *substream,
substream          66 sound/soc/spear/spdif_out.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream          79 sound/soc/spear/spdif_out.c static void spdif_out_shutdown(struct snd_pcm_substream *substream,
substream          84 sound/soc/spear/spdif_out.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         105 sound/soc/spear/spdif_out.c static int spdif_out_hw_params(struct snd_pcm_substream *substream,
substream         112 sound/soc/spear/spdif_out.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         151 sound/soc/spear/spdif_out.c static int spdif_out_trigger(struct snd_pcm_substream *substream, int cmd,
substream         158 sound/soc/spear/spdif_out.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream          30 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_substream *substream;
substream          49 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_open(struct snd_pcm_substream *substream)
substream          51 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          52 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          60 sound/soc/sprd/sprd-pcm-dma.c 	snd_soc_set_runtime_hwparams(substream, &sprd_pcm_hardware);
substream          98 sound/soc/sprd/sprd-pcm-dma.c 	dma_private->substream = substream;
substream         114 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_close(struct snd_pcm_substream *substream)
substream         116 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         117 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         139 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_substream *substream = dma_private->substream;
substream         141 sound/soc/sprd/sprd-pcm-dma.c 	snd_pcm_period_elapsed(substream);
substream         144 sound/soc/sprd/sprd-pcm-dma.c static void sprd_pcm_release_dma_channel(struct snd_pcm_substream *substream)
substream         146 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         160 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_request_dma_channel(struct snd_pcm_substream *substream,
substream         163 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         165 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         185 sound/soc/sprd/sprd-pcm-dma.c 			sprd_pcm_release_dma_channel(substream);
substream         193 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_hw_params(struct snd_pcm_substream *substream,
substream         196 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         198 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         205 sound/soc/sprd/sprd-pcm-dma.c 	int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
substream         210 sound/soc/sprd/sprd-pcm-dma.c 	dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         214 sound/soc/sprd/sprd-pcm-dma.c 		snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         221 sound/soc/sprd/sprd-pcm-dma.c 		ret = sprd_pcm_request_dma_channel(substream, channels);
substream         226 sound/soc/sprd/sprd-pcm-dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         312 sound/soc/sprd/sprd-pcm-dma.c 	sprd_pcm_release_dma_channel(substream);
substream         316 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_hw_free(struct snd_pcm_substream *substream)
substream         318 sound/soc/sprd/sprd-pcm-dma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         319 sound/soc/sprd/sprd-pcm-dma.c 	sprd_pcm_release_dma_channel(substream);
substream         324 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         327 sound/soc/sprd/sprd-pcm-dma.c 		substream->runtime->private_data;
substream         328 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         390 sound/soc/sprd/sprd-pcm-dma.c static snd_pcm_uframes_t sprd_pcm_pointer(struct snd_pcm_substream *substream)
substream         392 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         393 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         447 sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_mmap(struct snd_pcm_substream *substream,
substream         450 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         474 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_substream *substream;
substream         481 sound/soc/sprd/sprd-pcm-dma.c 	substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream;
substream         482 sound/soc/sprd/sprd-pcm-dma.c 	if (substream) {
substream         485 sound/soc/sprd/sprd-pcm-dma.c 					  &substream->dma_buffer);
substream         493 sound/soc/sprd/sprd-pcm-dma.c 	substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         494 sound/soc/sprd/sprd-pcm-dma.c 	if (substream) {
substream         497 sound/soc/sprd/sprd-pcm-dma.c 					  &substream->dma_buffer);
substream         501 sound/soc/sprd/sprd-pcm-dma.c 			snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer);
substream         511 sound/soc/sprd/sprd-pcm-dma.c 	struct snd_pcm_substream *substream;
substream         515 sound/soc/sprd/sprd-pcm-dma.c 		substream = pcm->streams[i].substream;
substream         516 sound/soc/sprd/sprd-pcm-dma.c 		if (substream) {
substream         517 sound/soc/sprd/sprd-pcm-dma.c 			snd_dma_free_pages(&substream->dma_buffer);
substream         518 sound/soc/sprd/sprd-pcm-dma.c 			substream->dma_buffer.area = NULL;
substream         519 sound/soc/sprd/sprd-pcm-dma.c 			substream->dma_buffer.addr = 0;
substream         281 sound/soc/sti/sti_uniperif.c int sti_uniperiph_dai_hw_params(struct snd_pcm_substream *substream,
substream         296 sound/soc/sti/sti_uniperif.c 	dma_data = snd_soc_dai_get_dma_data(dai, substream);
substream        1321 sound/soc/sti/uniperif.h 	struct snd_pcm_substream *substream;
substream        1386 sound/soc/sti/uniperif.h int sti_uniperiph_dai_hw_params(struct snd_pcm_substream *substream,
substream          69 sound/soc/sti/uniperif_player.c 	if (!player->substream)
substream          72 sound/soc/sti/uniperif_player.c 	snd_pcm_stream_lock(player->substream);
substream          94 sound/soc/sti/uniperif_player.c 			snd_pcm_stop_xrun(player->substream);
substream         108 sound/soc/sti/uniperif_player.c 		snd_pcm_stop_xrun(player->substream);
substream         141 sound/soc/sti/uniperif_player.c 		snd_pcm_stop_xrun(player->substream);
substream         147 sound/soc/sti/uniperif_player.c 	snd_pcm_stream_unlock(player->substream);
substream         603 sound/soc/sti/uniperif_player.c 	if (player->substream && player->substream->runtime)
substream         605 sound/soc/sti/uniperif_player.c 					      player->substream->runtime);
substream         691 sound/soc/sti/uniperif_player.c static int uni_player_startup(struct snd_pcm_substream *substream,
substream         700 sound/soc/sti/uniperif_player.c 	player->substream = substream;
substream         709 sound/soc/sti/uniperif_player.c 	ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         717 sound/soc/sti/uniperif_player.c 	return snd_pcm_hw_rule_add(substream->runtime, 0,
substream         746 sound/soc/sti/uniperif_player.c static int uni_player_prepare(struct snd_pcm_substream *substream,
substream         751 sound/soc/sti/uniperif_player.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         976 sound/soc/sti/uniperif_player.c static int uni_player_trigger(struct snd_pcm_substream *substream,
substream         994 sound/soc/sti/uniperif_player.c static void uni_player_shutdown(struct snd_pcm_substream *substream,
substream        1006 sound/soc/sti/uniperif_player.c 	player->substream = NULL;
substream          50 sound/soc/sti/uniperif_reader.c 	if (!reader->substream)
substream          53 sound/soc/sti/uniperif_reader.c 	snd_pcm_stream_lock(reader->substream);
substream          68 sound/soc/sti/uniperif_reader.c 		snd_pcm_stop_xrun(reader->substream);
substream          74 sound/soc/sti/uniperif_reader.c 	snd_pcm_stream_unlock(reader->substream);
substream         186 sound/soc/sti/uniperif_reader.c static int uni_reader_prepare(struct snd_pcm_substream *substream,
substream         191 sound/soc/sti/uniperif_reader.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         337 sound/soc/sti/uniperif_reader.c static int  uni_reader_trigger(struct snd_pcm_substream *substream,
substream         353 sound/soc/sti/uniperif_reader.c static int uni_reader_startup(struct snd_pcm_substream *substream,
substream         362 sound/soc/sti/uniperif_reader.c 	reader->substream = substream;
substream         369 sound/soc/sti/uniperif_reader.c 	ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream         377 sound/soc/sti/uniperif_reader.c 	return snd_pcm_hw_rule_add(substream->runtime, 0,
substream         384 sound/soc/sti/uniperif_reader.c static void uni_reader_shutdown(struct snd_pcm_substream *substream,
substream         396 sound/soc/sti/uniperif_reader.c 	reader->substream = NULL;
substream          30 sound/soc/stm/stm32_adfsdm.c 	struct snd_pcm_substream *substream;
substream          63 sound/soc/stm/stm32_adfsdm.c static void stm32_adfsdm_shutdown(struct snd_pcm_substream *substream,
substream          76 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_dai_prepare(struct snd_pcm_substream *substream,
substream          89 sound/soc/stm/stm32_adfsdm.c 					  substream->runtime->rate, 0,
substream          93 sound/soc/stm/stm32_adfsdm.c 			__func__, substream->runtime->rate);
substream         171 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = priv->substream->private_data;
substream         175 sound/soc/stm/stm32_adfsdm.c 	size_t buff_size = snd_pcm_lib_buffer_bytes(priv->substream);
substream         176 sound/soc/stm/stm32_adfsdm.c 	size_t period_size = snd_pcm_lib_period_bytes(priv->substream);
substream         178 sound/soc/stm/stm32_adfsdm.c 	snd_pcm_format_t format = priv->substream->runtime->format;
substream         208 sound/soc/stm/stm32_adfsdm.c 		snd_pcm_period_elapsed(priv->substream);
substream         213 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         215 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         233 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_pcm_open(struct snd_pcm_substream *substream)
substream         235 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         239 sound/soc/stm/stm32_adfsdm.c 	ret =  snd_soc_set_runtime_hwparams(substream, &stm32_adfsdm_pcm_hw);
substream         241 sound/soc/stm/stm32_adfsdm.c 		priv->substream = substream;
substream         246 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_pcm_close(struct snd_pcm_substream *substream)
substream         248 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         252 sound/soc/stm/stm32_adfsdm.c 	snd_pcm_lib_free_pages(substream);
substream         253 sound/soc/stm/stm32_adfsdm.c 	priv->substream = NULL;
substream         259 sound/soc/stm/stm32_adfsdm.c 					    struct snd_pcm_substream *substream)
substream         261 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         265 sound/soc/stm/stm32_adfsdm.c 	return bytes_to_frames(substream->runtime, priv->pos);
substream         268 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_pcm_hw_params(struct snd_pcm_substream *substream,
substream         271 sound/soc/stm/stm32_adfsdm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         276 sound/soc/stm/stm32_adfsdm.c 	ret =  snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream         279 sound/soc/stm/stm32_adfsdm.c 	priv->pcm_buff = substream->runtime->dma_area;
substream         285 sound/soc/stm/stm32_adfsdm.c static int stm32_adfsdm_pcm_hw_free(struct snd_pcm_substream *substream)
substream         287 sound/soc/stm/stm32_adfsdm.c 	snd_pcm_lib_free_pages(substream);
substream         315 sound/soc/stm/stm32_adfsdm.c 	struct snd_pcm_substream *substream;
substream         317 sound/soc/stm/stm32_adfsdm.c 	substream = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream;
substream         318 sound/soc/stm/stm32_adfsdm.c 	if (substream)
substream         228 sound/soc/stm/stm32_i2s.c 	struct snd_pcm_substream *substream;
substream         278 sound/soc/stm/stm32_i2s.c 	if (err && i2s->substream)
substream         279 sound/soc/stm/stm32_i2s.c 		snd_pcm_stop_xrun(i2s->substream);
substream         503 sound/soc/stm/stm32_i2s.c 			       struct snd_pcm_substream *substream)
substream         549 sound/soc/stm/stm32_i2s.c static int stm32_i2s_startup(struct snd_pcm_substream *substream,
substream         557 sound/soc/stm/stm32_i2s.c 	i2s->substream = substream;
substream         561 sound/soc/stm/stm32_i2s.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         574 sound/soc/stm/stm32_i2s.c static int stm32_i2s_hw_params(struct snd_pcm_substream *substream,
substream         581 sound/soc/stm/stm32_i2s.c 	ret = stm32_i2s_configure(cpu_dai, params, substream);
substream         593 sound/soc/stm/stm32_i2s.c static int stm32_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         597 sound/soc/stm/stm32_i2s.c 	bool playback_flg = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         691 sound/soc/stm/stm32_i2s.c static void stm32_i2s_shutdown(struct snd_pcm_substream *substream,
substream         703 sound/soc/stm/stm32_i2s.c 	i2s->substream = NULL;
substream         105 sound/soc/stm/stm32_sai_sub.c 	struct snd_pcm_substream *substream;
substream         509 sound/soc/stm/stm32_sai_sub.c 	if (!sai->substream) {
substream         542 sound/soc/stm/stm32_sai_sub.c 	if (status != SNDRV_PCM_STATE_RUNNING && sai->substream)
substream         543 sound/soc/stm/stm32_sai_sub.c 		snd_pcm_stop_xrun(sai->substream);
substream         757 sound/soc/stm/stm32_sai_sub.c static int stm32_sai_startup(struct snd_pcm_substream *substream,
substream         765 sound/soc/stm/stm32_sai_sub.c 	sai->substream = substream;
substream         769 sound/soc/stm/stm32_sai_sub.c 		snd_pcm_hw_constraint_mask64(substream->runtime,
substream         772 sound/soc/stm/stm32_sai_sub.c 		snd_pcm_hw_constraint_single(substream->runtime,
substream         805 sound/soc/stm/stm32_sai_sub.c 				struct snd_pcm_substream *substream,
substream        1069 sound/soc/stm/stm32_sai_sub.c static int stm32_sai_hw_params(struct snd_pcm_substream *substream,
substream        1080 sound/soc/stm/stm32_sai_sub.c 		substream->runtime->rate = params_rate(params);
substream        1081 sound/soc/stm/stm32_sai_sub.c 		stm32_sai_set_iec958_status(sai, substream->runtime);
substream        1089 sound/soc/stm/stm32_sai_sub.c 	ret = stm32_sai_set_config(cpu_dai, substream, params);
substream        1099 sound/soc/stm/stm32_sai_sub.c static int stm32_sai_trigger(struct snd_pcm_substream *substream, int cmd,
substream        1148 sound/soc/stm/stm32_sai_sub.c static void stm32_sai_shutdown(struct snd_pcm_substream *substream,
substream        1159 sound/soc/stm/stm32_sai_sub.c 	sai->substream = NULL;
substream        1235 sound/soc/stm/stm32_sai_sub.c static int stm32_sai_pcm_process_spdif(struct snd_pcm_substream *substream,
substream        1239 sound/soc/stm/stm32_sai_sub.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1240 sound/soc/stm/stm32_sai_sub.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         236 sound/soc/stm/stm32_spdifrx.c 	struct snd_pcm_substream *substream;
substream         734 sound/soc/stm/stm32_spdifrx.c 		if (spdifrx->substream)
substream         735 sound/soc/stm/stm32_spdifrx.c 			snd_pcm_stop(spdifrx->substream,
substream         743 sound/soc/stm/stm32_spdifrx.c 	if (err_xrun && spdifrx->substream)
substream         744 sound/soc/stm/stm32_spdifrx.c 		snd_pcm_stop_xrun(spdifrx->substream);
substream         750 sound/soc/stm/stm32_spdifrx.c static int stm32_spdifrx_startup(struct snd_pcm_substream *substream,
substream         758 sound/soc/stm/stm32_spdifrx.c 	spdifrx->substream = substream;
substream         768 sound/soc/stm/stm32_spdifrx.c static int stm32_spdifrx_hw_params(struct snd_pcm_substream *substream,
substream         801 sound/soc/stm/stm32_spdifrx.c static int stm32_spdifrx_trigger(struct snd_pcm_substream *substream, int cmd,
substream         831 sound/soc/stm/stm32_spdifrx.c static void stm32_spdifrx_shutdown(struct snd_pcm_substream *substream,
substream         838 sound/soc/stm/stm32_spdifrx.c 	spdifrx->substream = NULL;
substream         286 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_trigger(struct snd_pcm_substream *substream, int cmd,
substream         289 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         296 sound/soc/sunxi/sun4i-codec.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         305 sound/soc/sunxi/sun4i-codec.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         318 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_prepare_capture(struct snd_pcm_substream *substream,
substream         321 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         360 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_prepare_playback(struct snd_pcm_substream *substream,
substream         363 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         377 sound/soc/sunxi/sun4i-codec.c 	if (substream->runtime->rate > 32000)
substream         396 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_prepare(struct snd_pcm_substream *substream,
substream         399 sound/soc/sunxi/sun4i-codec.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         400 sound/soc/sunxi/sun4i-codec.c 		return sun4i_codec_prepare_playback(substream, dai);
substream         402 sound/soc/sunxi/sun4i-codec.c 	return sun4i_codec_prepare_capture(substream, dai);
substream         572 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_hw_params(struct snd_pcm_substream *substream,
substream         576 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         593 sound/soc/sunxi/sun4i-codec.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         614 sound/soc/sunxi/sun4i-codec.c static int sun4i_codec_startup(struct snd_pcm_substream *substream,
substream         617 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         620 sound/soc/sunxi/sun4i-codec.c 	snd_pcm_hw_constraint_list(substream->runtime, 0,
substream         634 sound/soc/sunxi/sun4i-codec.c static void sun4i_codec_shutdown(struct snd_pcm_substream *substream,
substream         637 sound/soc/sunxi/sun4i-codec.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         469 sound/soc/sunxi/sun4i-i2s.c static int sun4i_i2s_hw_params(struct snd_pcm_substream *substream,
substream         785 sound/soc/sunxi/sun4i-i2s.c static int sun4i_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         794 sound/soc/sunxi/sun4i-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         803 sound/soc/sunxi/sun4i-i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         206 sound/soc/sunxi/sun4i-spdif.c static void sun4i_snd_txctrl_on(struct snd_pcm_substream *substream,
substream         209 sound/soc/sunxi/sun4i-spdif.c 	if (substream->runtime->channels == 1)
substream         227 sound/soc/sunxi/sun4i-spdif.c static void sun4i_snd_txctrl_off(struct snd_pcm_substream *substream,
substream         243 sound/soc/sunxi/sun4i-spdif.c static int sun4i_spdif_startup(struct snd_pcm_substream *substream,
substream         246 sound/soc/sunxi/sun4i-spdif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         249 sound/soc/sunxi/sun4i-spdif.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         257 sound/soc/sunxi/sun4i-spdif.c static int sun4i_spdif_hw_params(struct snd_pcm_substream *substream,
substream         359 sound/soc/sunxi/sun4i-spdif.c static int sun4i_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         365 sound/soc/sunxi/sun4i-spdif.c 	if (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)
substream         372 sound/soc/sunxi/sun4i-spdif.c 		sun4i_snd_txctrl_on(substream, host);
substream         378 sound/soc/sunxi/sun4i-spdif.c 		sun4i_snd_txctrl_off(substream, host);
substream         306 sound/soc/sunxi/sun8i-codec.c static int sun8i_codec_hw_params(struct snd_pcm_substream *substream,
substream         177 sound/soc/tegra/tegra20_ac97.c static int tegra20_ac97_trigger(struct snd_pcm_substream *substream, int cmd,
substream         186 sound/soc/tegra/tegra20_ac97.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         194 sound/soc/tegra/tegra20_ac97.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         115 sound/soc/tegra/tegra20_i2s.c static int tegra20_i2s_hw_params(struct snd_pcm_substream *substream,
substream         201 sound/soc/tegra/tegra20_i2s.c static int tegra20_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         210 sound/soc/tegra/tegra20_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         218 sound/soc/tegra/tegra20_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          50 sound/soc/tegra/tegra20_spdif.c static int tegra20_spdif_hw_params(struct snd_pcm_substream *substream,
substream         120 sound/soc/tegra/tegra20_spdif.c static int tegra20_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         123 sound/soc/tegra/tegra30_i2s.c static int tegra30_i2s_hw_params(struct snd_pcm_substream *substream,
substream         181 sound/soc/tegra/tegra30_i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         228 sound/soc/tegra/tegra30_i2s.c static int tegra30_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         237 sound/soc/tegra/tegra30_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         245 sound/soc/tegra/tegra30_i2s.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          36 sound/soc/tegra/tegra_alc5632.c static int tegra_alc5632_asoc_hw_params(struct snd_pcm_substream *substream,
substream          39 sound/soc/tegra/tegra_alc5632.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          37 sound/soc/tegra/tegra_max98090.c static int tegra_max98090_asoc_hw_params(struct snd_pcm_substream *substream,
substream          40 sound/soc/tegra/tegra_max98090.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          39 sound/soc/tegra/tegra_rt5640.c static int tegra_rt5640_asoc_hw_params(struct snd_pcm_substream *substream,
substream          42 sound/soc/tegra/tegra_rt5640.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          41 sound/soc/tegra/tegra_rt5677.c static int tegra_rt5677_asoc_hw_params(struct snd_pcm_substream *substream,
substream          44 sound/soc/tegra/tegra_rt5677.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          35 sound/soc/tegra/tegra_sgtl5000.c static int tegra_sgtl5000_hw_params(struct snd_pcm_substream *substream,
substream          38 sound/soc/tegra/tegra_sgtl5000.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          39 sound/soc/tegra/tegra_wm8753.c static int tegra_wm8753_hw_params(struct snd_pcm_substream *substream,
substream          42 sound/soc/tegra/tegra_wm8753.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          44 sound/soc/tegra/tegra_wm8903.c static int tegra_wm8903_hw_params(struct snd_pcm_substream *substream,
substream          47 sound/soc/tegra/tegra_wm8903.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          34 sound/soc/tegra/trimslice.c static int trimslice_asoc_hw_params(struct snd_pcm_substream *substream,
substream          37 sound/soc/tegra/trimslice.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         446 sound/soc/ti/ams-delta.c static int ams_delta_startup(struct snd_pcm_substream *substream)
substream         451 sound/soc/ti/ams-delta.c static void ams_delta_shutdown(struct snd_pcm_substream *substream)
substream          29 sound/soc/ti/davinci-evm.c static int evm_startup(struct snd_pcm_substream *substream)
substream          31 sound/soc/ti/davinci-evm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          42 sound/soc/ti/davinci-evm.c static void evm_shutdown(struct snd_pcm_substream *substream)
substream          44 sound/soc/ti/davinci-evm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          53 sound/soc/ti/davinci-evm.c static int evm_hw_params(struct snd_pcm_substream *substream,
substream          56 sound/soc/ti/davinci-evm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         188 sound/soc/ti/davinci-i2s.c 		struct snd_pcm_substream *substream)
substream         190 sound/soc/ti/davinci-i2s.c 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         376 sound/soc/ti/davinci-i2s.c static int davinci_i2s_hw_params(struct snd_pcm_substream *substream,
substream         390 sound/soc/ti/davinci-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream         514 sound/soc/ti/davinci-i2s.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         525 sound/soc/ti/davinci-i2s.c static int davinci_i2s_prepare(struct snd_pcm_substream *substream,
substream         529 sound/soc/ti/davinci-i2s.c 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         568 sound/soc/ti/davinci-i2s.c static int davinci_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         573 sound/soc/ti/davinci-i2s.c 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         579 sound/soc/ti/davinci-i2s.c 		davinci_mcbsp_start(dev, substream);
substream         592 sound/soc/ti/davinci-i2s.c static void davinci_i2s_shutdown(struct snd_pcm_substream *substream,
substream         596 sound/soc/ti/davinci-i2s.c 	int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         362 sound/soc/ti/davinci-mcasp.c 	struct snd_pcm_substream *substream;
substream         372 sound/soc/ti/davinci-mcasp.c 		substream = mcasp->substreams[SNDRV_PCM_STREAM_PLAYBACK];
substream         373 sound/soc/ti/davinci-mcasp.c 		if (substream)
substream         374 sound/soc/ti/davinci-mcasp.c 			snd_pcm_stop_xrun(substream);
substream         393 sound/soc/ti/davinci-mcasp.c 	struct snd_pcm_substream *substream;
substream         403 sound/soc/ti/davinci-mcasp.c 		substream = mcasp->substreams[SNDRV_PCM_STREAM_CAPTURE];
substream         404 sound/soc/ti/davinci-mcasp.c 		if (substream)
substream         405 sound/soc/ti/davinci-mcasp.c 			snd_pcm_stop_xrun(substream);
substream        1143 sound/soc/ti/davinci-mcasp.c 			struct snd_pcm_substream *substream,
substream        1149 sound/soc/ti/davinci-mcasp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1159 sound/soc/ti/davinci-mcasp.c 	return fifo_use / substream->runtime->channels;
substream        1162 sound/soc/ti/davinci-mcasp.c static int davinci_mcasp_hw_params(struct snd_pcm_substream *substream,
substream        1223 sound/soc/ti/davinci-mcasp.c 	ret = mcasp_common_hw_param(mcasp, substream->stream,
substream        1231 sound/soc/ti/davinci-mcasp.c 		ret = mcasp_i2s_hw_param(mcasp, substream->stream,
substream        1248 sound/soc/ti/davinci-mcasp.c static int davinci_mcasp_trigger(struct snd_pcm_substream *substream,
substream        1258 sound/soc/ti/davinci-mcasp.c 		davinci_mcasp_start(mcasp, substream->stream);
substream        1263 sound/soc/ti/davinci-mcasp.c 		davinci_mcasp_stop(mcasp, substream->stream);
substream        1431 sound/soc/ti/davinci-mcasp.c static int davinci_mcasp_startup(struct snd_pcm_substream *substream,
substream        1436 sound/soc/ti/davinci-mcasp.c 					&mcasp->ruledata[substream->stream];
substream        1442 sound/soc/ti/davinci-mcasp.c 	if (mcasp->substreams[substream->stream])
substream        1445 sound/soc/ti/davinci-mcasp.c 	mcasp->substreams[substream->stream] = substream;
substream        1447 sound/soc/ti/davinci-mcasp.c 	if (mcasp->tdm_mask[substream->stream])
substream        1448 sound/soc/ti/davinci-mcasp.c 		tdm_slots = hweight32(mcasp->tdm_mask[substream->stream]);
substream        1457 sound/soc/ti/davinci-mcasp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream        1486 sound/soc/ti/davinci-mcasp.c 	snd_pcm_hw_constraint_minmax(substream->runtime,
substream        1490 sound/soc/ti/davinci-mcasp.c 	snd_pcm_hw_constraint_list(substream->runtime,
substream        1492 sound/soc/ti/davinci-mcasp.c 				   &mcasp->chconstr[substream->stream]);
substream        1499 sound/soc/ti/davinci-mcasp.c 		ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream        1509 sound/soc/ti/davinci-mcasp.c 		ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream        1523 sound/soc/ti/davinci-mcasp.c 		ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream        1530 sound/soc/ti/davinci-mcasp.c 		ret = snd_pcm_hw_rule_add(substream->runtime, 0,
substream        1539 sound/soc/ti/davinci-mcasp.c 	snd_pcm_hw_rule_add(substream->runtime, 0,
substream        1547 sound/soc/ti/davinci-mcasp.c static void davinci_mcasp_shutdown(struct snd_pcm_substream *substream,
substream        1552 sound/soc/ti/davinci-mcasp.c 	mcasp->substreams[substream->stream] = NULL;
substream        1553 sound/soc/ti/davinci-mcasp.c 	mcasp->active_serializers[substream->stream] = 0;
substream          42 sound/soc/ti/davinci-vcif.c static void davinci_vcif_start(struct snd_pcm_substream *substream)
substream          44 sound/soc/ti/davinci-vcif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          53 sound/soc/ti/davinci-vcif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          61 sound/soc/ti/davinci-vcif.c static void davinci_vcif_stop(struct snd_pcm_substream *substream)
substream          63 sound/soc/ti/davinci-vcif.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          71 sound/soc/ti/davinci-vcif.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream          79 sound/soc/ti/davinci-vcif.c static int davinci_vcif_hw_params(struct snd_pcm_substream *substream,
substream          88 sound/soc/ti/davinci-vcif.c 	davinci_vcif_stop(substream);
substream          89 sound/soc/ti/davinci-vcif.c 	davinci_vcif_start(substream);
substream         131 sound/soc/ti/davinci-vcif.c static int davinci_vcif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         140 sound/soc/ti/davinci-vcif.c 		davinci_vcif_start(substream);
substream         145 sound/soc/ti/davinci-vcif.c 		davinci_vcif_stop(substream);
substream          84 sound/soc/ti/n810.c static int n810_startup(struct snd_pcm_substream *substream)
substream          86 sound/soc/ti/n810.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          87 sound/soc/ti/n810.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          95 sound/soc/ti/n810.c static void n810_shutdown(struct snd_pcm_substream *substream)
substream         100 sound/soc/ti/n810.c static int n810_hw_params(struct snd_pcm_substream *substream,
substream         103 sound/soc/ti/n810.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          45 sound/soc/ti/omap-abe-twl6040.c static int omap_abe_hw_params(struct snd_pcm_substream *substream,
substream          48 sound/soc/ti/omap-abe-twl6040.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          77 sound/soc/ti/omap-abe-twl6040.c static int omap_abe_dmic_hw_params(struct snd_pcm_substream *substream,
substream          80 sound/soc/ti/omap-abe-twl6040.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          90 sound/soc/ti/omap-dmic.c static int omap_dmic_dai_startup(struct snd_pcm_substream *substream,
substream         108 sound/soc/ti/omap-dmic.c static void omap_dmic_dai_shutdown(struct snd_pcm_substream *substream,
substream         186 sound/soc/ti/omap-dmic.c static int omap_dmic_dai_hw_params(struct snd_pcm_substream *substream,
substream         219 sound/soc/ti/omap-dmic.c 	dma_data = snd_soc_dai_get_dma_data(dai, substream);
substream         227 sound/soc/ti/omap-dmic.c static int omap_dmic_dai_prepare(struct snd_pcm_substream *substream,
substream         259 sound/soc/ti/omap-dmic.c static int omap_dmic_dai_trigger(struct snd_pcm_substream *substream,
substream          63 sound/soc/ti/omap-hdmi.c static int hdmi_dai_startup(struct snd_pcm_substream *substream,
substream          66 sound/soc/ti/omap-hdmi.c 	struct hdmi_audio_data *ad = card_drvdata_substream(substream);
substream          72 sound/soc/ti/omap-hdmi.c 	ret = snd_pcm_hw_constraint_step(substream->runtime, 0,
substream          79 sound/soc/ti/omap-hdmi.c 	ret = snd_pcm_hw_constraint_step(substream->runtime, 0,
substream          87 sound/soc/ti/omap-hdmi.c 	snd_soc_dai_set_dma_data(dai, substream, &ad->dma_data);
substream          90 sound/soc/ti/omap-hdmi.c 	ad->current_stream = substream;
substream         104 sound/soc/ti/omap-hdmi.c static int hdmi_dai_hw_params(struct snd_pcm_substream *substream,
substream         108 sound/soc/ti/omap-hdmi.c 	struct hdmi_audio_data *ad = card_drvdata_substream(substream);
substream         112 sound/soc/ti/omap-hdmi.c 	WARN_ON(ad->current_stream != substream);
substream         230 sound/soc/ti/omap-hdmi.c static int hdmi_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         233 sound/soc/ti/omap-hdmi.c 	struct hdmi_audio_data *ad = card_drvdata_substream(substream);
substream         236 sound/soc/ti/omap-hdmi.c 	WARN_ON(ad->current_stream != substream);
substream         255 sound/soc/ti/omap-hdmi.c static void hdmi_dai_shutdown(struct snd_pcm_substream *substream,
substream         258 sound/soc/ti/omap-hdmi.c 	struct hdmi_audio_data *ad = card_drvdata_substream(substream);
substream         260 sound/soc/ti/omap-hdmi.c 	WARN_ON(ad->current_stream != substream);
substream         736 sound/soc/ti/omap-mcbsp.c static void omap_mcbsp_set_threshold(struct snd_pcm_substream *substream,
substream         739 sound/soc/ti/omap-mcbsp.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         760 sound/soc/ti/omap-mcbsp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         785 sound/soc/ti/omap-mcbsp.c static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
substream         815 sound/soc/ti/omap-mcbsp.c 		if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         816 sound/soc/ti/omap-mcbsp.c 			snd_pcm_hw_rule_add(substream->runtime, 0,
substream         823 sound/soc/ti/omap-mcbsp.c 		snd_pcm_hw_constraint_step(substream->runtime, 0,
substream         830 sound/soc/ti/omap-mcbsp.c static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream,
substream         834 sound/soc/ti/omap-mcbsp.c 	int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         852 sound/soc/ti/omap-mcbsp.c static int omap_mcbsp_dai_prepare(struct snd_pcm_substream *substream,
substream         857 sound/soc/ti/omap-mcbsp.c 	int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         874 sound/soc/ti/omap-mcbsp.c static int omap_mcbsp_dai_trigger(struct snd_pcm_substream *substream, int cmd,
substream         884 sound/soc/ti/omap-mcbsp.c 		omap_mcbsp_start(mcbsp, substream->stream);
substream         890 sound/soc/ti/omap-mcbsp.c 		omap_mcbsp_stop(mcbsp, substream->stream);
substream         901 sound/soc/ti/omap-mcbsp.c 			struct snd_pcm_substream *substream,
substream         904 sound/soc/ti/omap-mcbsp.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         914 sound/soc/ti/omap-mcbsp.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         924 sound/soc/ti/omap-mcbsp.c 	delay = fifo_use / substream->runtime->channels;
substream         929 sound/soc/ti/omap-mcbsp.c static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
substream         941 sound/soc/ti/omap-mcbsp.c 	dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream);
substream         962 sound/soc/ti/omap-mcbsp.c 			if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         991 sound/soc/ti/omap-mcbsp.c 		mcbsp->latency[substream->stream] = latency;
substream         993 sound/soc/ti/omap-mcbsp.c 		omap_mcbsp_set_threshold(substream, pkt_size);
substream         249 sound/soc/ti/omap-mcpdm.c static int omap_mcpdm_dai_startup(struct snd_pcm_substream *substream,
substream         264 sound/soc/ti/omap-mcpdm.c static void omap_mcpdm_dai_shutdown(struct snd_pcm_substream *substream,
substream         268 sound/soc/ti/omap-mcpdm.c 	int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         294 sound/soc/ti/omap-mcpdm.c static int omap_mcpdm_dai_hw_params(struct snd_pcm_substream *substream,
substream         299 sound/soc/ti/omap-mcpdm.c 	int stream = substream->stream;
substream         333 sound/soc/ti/omap-mcpdm.c 	dma_data = snd_soc_dai_get_dma_data(dai, substream);
substream         375 sound/soc/ti/omap-mcpdm.c static int omap_mcpdm_prepare(struct snd_pcm_substream *substream,
substream         380 sound/soc/ti/omap-mcpdm.c 	int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream          38 sound/soc/ti/omap-twl4030.c static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
substream          41 sound/soc/ti/omap-twl4030.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          31 sound/soc/ti/omap3pandora.c static int omap3pandora_hw_params(struct snd_pcm_substream *substream,
substream          34 sound/soc/ti/omap3pandora.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          28 sound/soc/ti/osk5912.c static int osk_startup(struct snd_pcm_substream *substream)
substream          33 sound/soc/ti/osk5912.c static void osk_shutdown(struct snd_pcm_substream *substream)
substream          38 sound/soc/ti/osk5912.c static int osk_hw_params(struct snd_pcm_substream *substream,
substream          41 sound/soc/ti/osk5912.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          90 sound/soc/ti/rx51.c static int rx51_startup(struct snd_pcm_substream *substream)
substream          92 sound/soc/ti/rx51.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          93 sound/soc/ti/rx51.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         102 sound/soc/ti/rx51.c static int rx51_hw_params(struct snd_pcm_substream *substream,
substream         105 sound/soc/ti/rx51.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          50 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_hw_params(struct snd_pcm_substream *substream,
substream          53 sound/soc/txx9/txx9aclc.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream          54 sound/soc/txx9/txx9aclc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          59 sound/soc/txx9/txx9aclc.c 	ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params));
substream          72 sound/soc/txx9/txx9aclc.c 		substream->stream);
substream          74 sound/soc/txx9/txx9aclc.c 	dmadata->substream = substream;
substream          79 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_hw_free(struct snd_pcm_substream *substream)
substream          81 sound/soc/txx9/txx9aclc.c 	return snd_pcm_lib_free_pages(substream);
substream          84 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_prepare(struct snd_pcm_substream *substream)
substream          86 sound/soc/txx9/txx9aclc.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream          90 sound/soc/txx9/txx9aclc.c 	dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
substream          91 sound/soc/txx9/txx9aclc.c 	dmadata->period_bytes = snd_pcm_lib_period_bytes(substream);
substream         132 sound/soc/txx9/txx9aclc.c 		dmadata->substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         152 sound/soc/txx9/txx9aclc.c 	struct snd_pcm_substream *substream = dmadata->substream;
substream         153 sound/soc/txx9/txx9aclc.c 	u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         201 sound/soc/txx9/txx9aclc.c 			snd_pcm_period_elapsed(substream);
substream         206 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         208 sound/soc/txx9/txx9aclc.c 	struct txx9aclc_dmadata *dmadata = substream->runtime->private_data;
substream         213 sound/soc/txx9/txx9aclc.c 	u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         239 sound/soc/txx9/txx9aclc.c txx9aclc_pcm_pointer(struct snd_pcm_substream *substream)
substream         241 sound/soc/txx9/txx9aclc.c 	struct txx9aclc_dmadata *dmadata = substream->runtime->private_data;
substream         243 sound/soc/txx9/txx9aclc.c 	return bytes_to_frames(substream->runtime, dmadata->pos);
substream         246 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_open(struct snd_pcm_substream *substream)
substream         249 sound/soc/txx9/txx9aclc.c 	struct txx9aclc_dmadata *dmadata = &dev->dmadata[substream->stream];
substream         252 sound/soc/txx9/txx9aclc.c 	ret = snd_soc_set_runtime_hwparams(substream, &txx9aclc_pcm_hardware);
substream         256 sound/soc/txx9/txx9aclc.c 	ret = snd_pcm_hw_constraint_integer(substream->runtime,
substream         260 sound/soc/txx9/txx9aclc.c 	substream->runtime->private_data = dmadata;
substream         264 sound/soc/txx9/txx9aclc.c static int txx9aclc_pcm_close(struct snd_pcm_substream *substream)
substream         266 sound/soc/txx9/txx9aclc.c 	struct txx9aclc_dmadata *dmadata = substream->runtime->private_data;
substream          49 sound/soc/txx9/txx9aclc.h 	struct snd_pcm_substream *substream;
substream         254 sound/soc/uniphier/aio-cpu.c static int uniphier_aio_startup(struct snd_pcm_substream *substream,
substream         258 sound/soc/uniphier/aio-cpu.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         261 sound/soc/uniphier/aio-cpu.c 	sub->substream = substream;
substream         272 sound/soc/uniphier/aio-cpu.c static void uniphier_aio_shutdown(struct snd_pcm_substream *substream,
substream         276 sound/soc/uniphier/aio-cpu.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         278 sound/soc/uniphier/aio-cpu.c 	sub->substream = NULL;
substream         281 sound/soc/uniphier/aio-cpu.c static int uniphier_aio_hw_params(struct snd_pcm_substream *substream,
substream         286 sound/soc/uniphier/aio-cpu.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         320 sound/soc/uniphier/aio-cpu.c static int uniphier_aio_hw_free(struct snd_pcm_substream *substream,
substream         324 sound/soc/uniphier/aio-cpu.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         331 sound/soc/uniphier/aio-cpu.c static int uniphier_aio_prepare(struct snd_pcm_substream *substream,
substream         335 sound/soc/uniphier/aio-cpu.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         461 sound/soc/uniphier/aio-cpu.c 		if (!sub->spec || !sub->substream)
substream          30 sound/soc/uniphier/aio-dma.c 	struct snd_pcm_runtime *runtime = sub->substream->runtime;
substream          45 sound/soc/uniphier/aio-dma.c 	snd_pcm_period_elapsed(sub->substream);
substream          84 sound/soc/uniphier/aio-dma.c 			if (sub->substream)
substream          96 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_open(struct snd_pcm_substream *substream)
substream          98 sound/soc/uniphier/aio-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         100 sound/soc/uniphier/aio-dma.c 	snd_soc_set_runtime_hwparams(substream, &uniphier_aiodma_hw);
substream         106 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_hw_params(struct snd_pcm_substream *substream,
substream         109 sound/soc/uniphier/aio-dma.c 	snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
substream         110 sound/soc/uniphier/aio-dma.c 	substream->runtime->dma_bytes = params_buffer_bytes(params);
substream         115 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_hw_free(struct snd_pcm_substream *substream)
substream         117 sound/soc/uniphier/aio-dma.c 	snd_pcm_set_runtime_buffer(substream, NULL);
substream         118 sound/soc/uniphier/aio-dma.c 	substream->runtime->dma_bytes = 0;
substream         123 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_prepare(struct snd_pcm_substream *substream)
substream         125 sound/soc/uniphier/aio-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         126 sound/soc/uniphier/aio-dma.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         128 sound/soc/uniphier/aio-dma.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         149 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_trigger(struct snd_pcm_substream *substream, int cmd)
substream         151 sound/soc/uniphier/aio-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         152 sound/soc/uniphier/aio-dma.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         154 sound/soc/uniphier/aio-dma.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         184 sound/soc/uniphier/aio-dma.c 					struct snd_pcm_substream *substream)
substream         186 sound/soc/uniphier/aio-dma.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         187 sound/soc/uniphier/aio-dma.c 	struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream);
substream         189 sound/soc/uniphier/aio-dma.c 	struct uniphier_aio_sub *sub = &aio->sub[substream->stream];
substream         207 sound/soc/uniphier/aio-dma.c static int uniphier_aiodma_mmap(struct snd_pcm_substream *substream,
substream         213 sound/soc/uniphier/aio-dma.c 			       substream->dma_buffer.addr >> PAGE_SHIFT,
substream         239 sound/soc/uniphier/aio.h 	struct snd_pcm_substream *substream;
substream         191 sound/soc/ux500/mop500_ab8500.c static int mop500_ab8500_startup(struct snd_pcm_substream *substream)
substream         193 sound/soc/ux500/mop500_ab8500.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         200 sound/soc/ux500/mop500_ab8500.c static void mop500_ab8500_shutdown(struct snd_pcm_substream *substream)
substream         202 sound/soc/ux500/mop500_ab8500.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         208 sound/soc/ux500/mop500_ab8500.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         214 sound/soc/ux500/mop500_ab8500.c static int mop500_ab8500_hw_params(struct snd_pcm_substream *substream,
substream         217 sound/soc/ux500/mop500_ab8500.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         233 sound/soc/ux500/mop500_ab8500.c 		substream->pcm->name,
substream         234 sound/soc/ux500/mop500_ab8500.c 		substream->pcm->id,
substream         235 sound/soc/ux500/mop500_ab8500.c 		substream->name,
substream         236 sound/soc/ux500/mop500_ab8500.c 		substream->number);
substream         296 sound/soc/ux500/mop500_ab8500.c 	is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         339 sound/soc/ux500/mop500_ab8500.c static int mop500_ab8500_hw_free(struct snd_pcm_substream *substream)
substream         341 sound/soc/ux500/mop500_ab8500.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         301 sound/soc/ux500/ux500_msp_dai.c static int setup_msp_config(struct snd_pcm_substream *substream,
substream         307 sound/soc/ux500/ux500_msp_dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         318 sound/soc/ux500/ux500_msp_dai.c 	msp_config->direction = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         383 sound/soc/ux500/ux500_msp_dai.c static int ux500_msp_dai_startup(struct snd_pcm_substream *substream,
substream         390 sound/soc/ux500/ux500_msp_dai.c 		snd_pcm_stream_str(substream));
substream         424 sound/soc/ux500/ux500_msp_dai.c static void ux500_msp_dai_shutdown(struct snd_pcm_substream *substream,
substream         429 sound/soc/ux500/ux500_msp_dai.c 	bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
substream         432 sound/soc/ux500/ux500_msp_dai.c 		snd_pcm_stream_str(substream));
substream         444 sound/soc/ux500/ux500_msp_dai.c 			__func__, dai->id, snd_pcm_stream_str(substream));
substream         459 sound/soc/ux500/ux500_msp_dai.c static int ux500_msp_dai_prepare(struct snd_pcm_substream *substream,
substream         464 sound/soc/ux500/ux500_msp_dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         468 sound/soc/ux500/ux500_msp_dai.c 		dai->id, snd_pcm_stream_str(substream), runtime->rate);
substream         470 sound/soc/ux500/ux500_msp_dai.c 	setup_msp_config(substream, dai, &msp_config);
substream         497 sound/soc/ux500/ux500_msp_dai.c static int ux500_msp_dai_hw_params(struct snd_pcm_substream *substream,
substream         502 sound/soc/ux500/ux500_msp_dai.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         506 sound/soc/ux500/ux500_msp_dai.c 			__func__, dai->id, snd_pcm_stream_str(substream));
substream         517 sound/soc/ux500/ux500_msp_dai.c 		mask = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
substream         643 sound/soc/ux500/ux500_msp_dai.c static int ux500_msp_dai_trigger(struct snd_pcm_substream *substream,
substream         650 sound/soc/ux500/ux500_msp_dai.c 		__func__, dai->id, snd_pcm_stream_str(substream),
substream         653 sound/soc/ux500/ux500_msp_dai.c 	ret = ux500_msp_i2s_trigger(drvdata->msp, cmd, substream->stream);
substream          47 sound/soc/ux500/ux500_pcm.c 	struct snd_pcm_substream *substream)
substream          54 sound/soc/ux500/ux500_pcm.c 	dma_params = snd_soc_dai_get_dma_data(dai, substream);
substream          73 sound/soc/ux500/ux500_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          84 sound/soc/ux500/ux500_pcm.c static int ux500_pcm_prepare_slave_config(struct snd_pcm_substream *substream,
substream          88 sound/soc/ux500/ux500_pcm.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream          97 sound/soc/ux500/ux500_pcm.c 			snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         101 sound/soc/ux500/ux500_pcm.c 			snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         105 sound/soc/ux500/ux500_pcm.c 	ret = snd_hwparams_to_dma_slave_config(substream, params, slave_config);
substream         115 sound/soc/ux500/ux500_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         316 sound/soc/xilinx/xlnx_formatter_pcm.c static int xlnx_formatter_pcm_open(struct snd_pcm_substream *substream)
substream         322 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         323 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         328 sound/soc/xilinx/xlnx_formatter_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
substream         331 sound/soc/xilinx/xlnx_formatter_pcm.c 	else if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
substream         339 sound/soc/xilinx/xlnx_formatter_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream         346 sound/soc/xilinx/xlnx_formatter_pcm.c 		adata->play_stream = substream;
substream         355 sound/soc/xilinx/xlnx_formatter_pcm.c 		adata->capture_stream = substream;
substream         367 sound/soc/xilinx/xlnx_formatter_pcm.c 		 substream->stream, stream_data->interleaved,
substream         370 sound/soc/xilinx/xlnx_formatter_pcm.c 	snd_soc_set_runtime_hwparams(substream, &xlnx_pcm_hardware);
substream         390 sound/soc/xilinx/xlnx_formatter_pcm.c static int xlnx_formatter_pcm_close(struct snd_pcm_substream *substream)
substream         394 sound/soc/xilinx/xlnx_formatter_pcm.c 			substream->runtime->private_data;
substream         395 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         404 sound/soc/xilinx/xlnx_formatter_pcm.c 	xlnx_formatter_disable_irqs(stream_data->mmio, substream->stream);
substream         412 sound/soc/xilinx/xlnx_formatter_pcm.c xlnx_formatter_pcm_pointer(struct snd_pcm_substream *substream)
substream         415 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         426 sound/soc/xilinx/xlnx_formatter_pcm.c static int xlnx_formatter_pcm_hw_params(struct snd_pcm_substream *substream,
substream         433 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_soc_pcm_runtime *prtd = substream->private_data;
substream         436 sound/soc/xilinx/xlnx_formatter_pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         443 sound/soc/xilinx/xlnx_formatter_pcm.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE &&
substream         458 sound/soc/xilinx/xlnx_formatter_pcm.c 	status = snd_pcm_lib_malloc_pages(substream, size);
substream         464 sound/soc/xilinx/xlnx_formatter_pcm.c 	low = lower_32_bits(substream->dma_buffer.addr);
substream         465 sound/soc/xilinx/xlnx_formatter_pcm.c 	high = upper_32_bits(substream->dma_buffer.addr);
substream         503 sound/soc/xilinx/xlnx_formatter_pcm.c static int xlnx_formatter_pcm_hw_free(struct snd_pcm_substream *substream)
substream         505 sound/soc/xilinx/xlnx_formatter_pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         508 sound/soc/xilinx/xlnx_formatter_pcm.c static int xlnx_formatter_pcm_trigger(struct snd_pcm_substream *substream,
substream         513 sound/soc/xilinx/xlnx_formatter_pcm.c 			substream->runtime->private_data;
substream          38 sound/soc/xilinx/xlnx_i2s.c static int xlnx_i2s_hw_params(struct snd_pcm_substream *substream,
substream          56 sound/soc/xilinx/xlnx_i2s.c static int xlnx_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream          77 sound/soc/xilinx/xlnx_spdif.c static int xlnx_spdif_startup(struct snd_pcm_substream *substream,
substream          87 sound/soc/xilinx/xlnx_spdif.c 	if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) {
substream          97 sound/soc/xilinx/xlnx_spdif.c static void xlnx_spdif_shutdown(struct snd_pcm_substream *substream,
substream         105 sound/soc/xilinx/xlnx_spdif.c static int xlnx_spdif_hw_params(struct snd_pcm_substream *substream,
substream         168 sound/soc/xilinx/xlnx_spdif.c static int xlnx_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         182 sound/soc/xilinx/xlnx_spdif.c 		if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
substream         270 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_i2s_startup(struct snd_pcm_substream *substream,
substream         275 sound/soc/xtensa/xtfpga-i2s.c 	snd_soc_dai_set_dma_data(dai, substream, i2s);
substream         279 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_i2s_hw_params(struct snd_pcm_substream *substream,
substream         368 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_pcm_open(struct snd_pcm_substream *substream)
substream         370 sound/soc/xtensa/xtfpga-i2s.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         371 sound/soc/xtensa/xtfpga-i2s.c 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
substream         374 sound/soc/xtensa/xtfpga-i2s.c 	snd_soc_set_runtime_hwparams(substream, &xtfpga_pcm_hardware);
substream         375 sound/soc/xtensa/xtfpga-i2s.c 	p = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
substream         381 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_pcm_close(struct snd_pcm_substream *substream)
substream         387 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_pcm_hw_params(struct snd_pcm_substream *substream,
substream         391 sound/soc/xtensa/xtfpga-i2s.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         422 sound/soc/xtensa/xtfpga-i2s.c 	ret = snd_pcm_lib_malloc_pages(substream,
substream         427 sound/soc/xtensa/xtfpga-i2s.c static int xtfpga_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         430 sound/soc/xtensa/xtfpga-i2s.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         438 sound/soc/xtensa/xtfpga-i2s.c 		rcu_assign_pointer(i2s->tx_substream, substream);
substream         455 sound/soc/xtensa/xtfpga-i2s.c static snd_pcm_uframes_t xtfpga_pcm_pointer(struct snd_pcm_substream *substream)
substream         457 sound/soc/xtensa/xtfpga-i2s.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         220 sound/soc/zte/zx-i2s.c static int zx_i2s_hw_params(struct snd_pcm_substream *substream,
substream         231 sound/soc/zte/zx-i2s.c 	dma_data = snd_soc_dai_get_dma_data(socdai, substream);
substream         284 sound/soc/zte/zx-i2s.c static int zx_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
substream         288 sound/soc/zte/zx-i2s.c 	int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         328 sound/soc/zte/zx-i2s.c static int zx_i2s_startup(struct snd_pcm_substream *substream,
substream         347 sound/soc/zte/zx-i2s.c static void zx_i2s_shutdown(struct snd_pcm_substream *substream,
substream         135 sound/soc/zte/zx-spdif.c static int zx_spdif_hw_params(struct snd_pcm_substream *substream,
substream         142 sound/soc/zte/zx-spdif.c 		snd_soc_dai_get_dma_data(socdai, substream);
substream         209 sound/soc/zte/zx-spdif.c static int zx_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
substream         241 sound/soc/zte/zx-spdif.c static int zx_spdif_startup(struct snd_pcm_substream *substream,
substream         249 sound/soc/zte/zx-spdif.c static void zx_spdif_shutdown(struct snd_pcm_substream *substream,
substream         192 sound/soc/zte/zx-tdm.c static int zx_tdm_hw_params(struct snd_pcm_substream *substream,
substream         204 sound/soc/zte/zx-tdm.c 	dma_data = snd_soc_dai_get_dma_data(socdai, substream);
substream         230 sound/soc/zte/zx-tdm.c static int zx_tdm_trigger(struct snd_pcm_substream *substream, int cmd,
substream         233 sound/soc/zte/zx-tdm.c 	int capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);
substream         282 sound/soc/zte/zx-tdm.c static int zx_tdm_startup(struct snd_pcm_substream *substream,
substream         301 sound/soc/zte/zx-tdm.c static void zx_tdm_shutdown(struct snd_pcm_substream *substream,
substream         568 sound/sparc/amd7930.c static int snd_amd7930_playback_trigger(struct snd_pcm_substream *substream,
substream         571 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         575 sound/sparc/amd7930.c static int snd_amd7930_capture_trigger(struct snd_pcm_substream *substream,
substream         578 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         582 sound/sparc/amd7930.c static int snd_amd7930_playback_prepare(struct snd_pcm_substream *substream)
substream         584 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         585 sound/sparc/amd7930.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         586 sound/sparc/amd7930.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         614 sound/sparc/amd7930.c static int snd_amd7930_capture_prepare(struct snd_pcm_substream *substream)
substream         616 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         617 sound/sparc/amd7930.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         618 sound/sparc/amd7930.c 	unsigned int size = snd_pcm_lib_buffer_bytes(substream);
substream         646 sound/sparc/amd7930.c static snd_pcm_uframes_t snd_amd7930_playback_pointer(struct snd_pcm_substream *substream)
substream         648 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         654 sound/sparc/amd7930.c 	return bytes_to_frames(substream->runtime, ptr);
substream         657 sound/sparc/amd7930.c static snd_pcm_uframes_t snd_amd7930_capture_pointer(struct snd_pcm_substream *substream)
substream         659 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         666 sound/sparc/amd7930.c 	return bytes_to_frames(substream->runtime, ptr);
substream         690 sound/sparc/amd7930.c static int snd_amd7930_playback_open(struct snd_pcm_substream *substream)
substream         692 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         693 sound/sparc/amd7930.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         695 sound/sparc/amd7930.c 	amd->playback_substream = substream;
substream         700 sound/sparc/amd7930.c static int snd_amd7930_capture_open(struct snd_pcm_substream *substream)
substream         702 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         703 sound/sparc/amd7930.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         705 sound/sparc/amd7930.c 	amd->capture_substream = substream;
substream         710 sound/sparc/amd7930.c static int snd_amd7930_playback_close(struct snd_pcm_substream *substream)
substream         712 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         718 sound/sparc/amd7930.c static int snd_amd7930_capture_close(struct snd_pcm_substream *substream)
substream         720 sound/sparc/amd7930.c 	struct snd_amd7930 *amd = snd_pcm_substream_chip(substream);
substream         726 sound/sparc/amd7930.c static int snd_amd7930_hw_params(struct snd_pcm_substream *substream,
substream         729 sound/sparc/amd7930.c 	return snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(hw_params));
substream         732 sound/sparc/amd7930.c static int snd_amd7930_hw_free(struct snd_pcm_substream *substream)
substream         734 sound/sparc/amd7930.c 	return snd_pcm_lib_free_pages(substream);
substream         424 sound/sparc/cs4231.c 				   struct snd_pcm_substream *substream,
substream         427 sound/sparc/cs4231.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         430 sound/sparc/cs4231.c 		unsigned int period_size = snd_pcm_lib_period_bytes(substream);
substream         443 sound/sparc/cs4231.c static void cs4231_dma_trigger(struct snd_pcm_substream *substream,
substream         446 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         475 sound/sparc/cs4231.c static int snd_cs4231_trigger(struct snd_pcm_substream *substream, int cmd)
substream         477 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         488 sound/sparc/cs4231.c 		snd_pcm_group_for_each_entry(s, substream) {
substream         491 sound/sparc/cs4231.c 				snd_pcm_trigger_done(s, substream);
substream         494 sound/sparc/cs4231.c 				snd_pcm_trigger_done(s, substream);
substream         500 sound/sparc/cs4231.c 			cs4231_dma_trigger(substream, what, 1);
substream         503 sound/sparc/cs4231.c 			cs4231_dma_trigger(substream, what, 0);
substream         887 sound/sparc/cs4231.c static int snd_cs4231_playback_hw_params(struct snd_pcm_substream *substream,
substream         890 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         894 sound/sparc/cs4231.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         906 sound/sparc/cs4231.c static int snd_cs4231_playback_prepare(struct snd_pcm_substream *substream)
substream         908 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         909 sound/sparc/cs4231.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         931 sound/sparc/cs4231.c static int snd_cs4231_capture_hw_params(struct snd_pcm_substream *substream,
substream         934 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         938 sound/sparc/cs4231.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         950 sound/sparc/cs4231.c static int snd_cs4231_capture_prepare(struct snd_pcm_substream *substream)
substream         952 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         999 sound/sparc/cs4231.c 					struct snd_pcm_substream *substream)
substream        1001 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream        1009 sound/sparc/cs4231.c 		ptr -= substream->runtime->dma_addr;
substream        1011 sound/sparc/cs4231.c 	return bytes_to_frames(substream->runtime, ptr);
substream        1015 sound/sparc/cs4231.c 					struct snd_pcm_substream *substream)
substream        1017 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream        1025 sound/sparc/cs4231.c 		ptr -= substream->runtime->dma_addr;
substream        1027 sound/sparc/cs4231.c 	return bytes_to_frames(substream->runtime, ptr);
substream        1141 sound/sparc/cs4231.c static int snd_cs4231_playback_open(struct snd_pcm_substream *substream)
substream        1143 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream        1144 sound/sparc/cs4231.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1152 sound/sparc/cs4231.c 	chip->playback_substream = substream;
substream        1154 sound/sparc/cs4231.c 	snd_pcm_set_sync(substream);
substream        1160 sound/sparc/cs4231.c static int snd_cs4231_capture_open(struct snd_pcm_substream *substream)
substream        1162 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream        1163 sound/sparc/cs4231.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1171 sound/sparc/cs4231.c 	chip->capture_substream = substream;
substream        1173 sound/sparc/cs4231.c 	snd_pcm_set_sync(substream);
substream        1179 sound/sparc/cs4231.c static int snd_cs4231_playback_close(struct snd_pcm_substream *substream)
substream        1181 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream        1189 sound/sparc/cs4231.c static int snd_cs4231_capture_close(struct snd_pcm_substream *substream)
substream        1191 sound/sparc/cs4231.c 	struct snd_cs4231 *chip = snd_pcm_substream_chip(substream);
substream         292 sound/sparc/dbri.c 	struct snd_pcm_substream *substream;
substream         566 sound/sparc/dbri.c #define DBRI_STREAMNO(substream)				\
substream         567 sound/sparc/dbri.c 		(substream->stream ==				\
substream         571 sound/sparc/dbri.c #define DBRI_STREAM(dbri, substream)	\
substream         572 sound/sparc/dbri.c 		&dbri->stream_info[DBRI_STREAMNO(substream)]
substream        1808 sound/sparc/dbri.c 	snd_pcm_period_elapsed(info->substream);
substream        1837 sound/sparc/dbri.c 	snd_pcm_period_elapsed(info->substream);
substream        2044 sound/sparc/dbri.c static int snd_dbri_open(struct snd_pcm_substream *substream)
substream        2046 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2047 sound/sparc/dbri.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2048 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2055 sound/sparc/dbri.c 	info->substream = substream;
substream        2074 sound/sparc/dbri.c static int snd_dbri_close(struct snd_pcm_substream *substream)
substream        2076 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2077 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2080 sound/sparc/dbri.c 	info->substream = NULL;
substream        2086 sound/sparc/dbri.c static int snd_dbri_hw_params(struct snd_pcm_substream *substream,
substream        2089 sound/sparc/dbri.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        2090 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2091 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2102 sound/sparc/dbri.c 	if ((ret = snd_pcm_lib_malloc_pages(substream,
substream        2111 sound/sparc/dbri.c 		if (DBRI_STREAMNO(substream) == DBRI_PLAY)
substream        2129 sound/sparc/dbri.c static int snd_dbri_hw_free(struct snd_pcm_substream *substream)
substream        2131 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2132 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2140 sound/sparc/dbri.c 		if (DBRI_STREAMNO(substream) == DBRI_PLAY)
substream        2146 sound/sparc/dbri.c 				 substream->runtime->buffer_size, direction);
substream        2154 sound/sparc/dbri.c 	return snd_pcm_lib_free_pages(substream);
substream        2157 sound/sparc/dbri.c static int snd_dbri_prepare(struct snd_pcm_substream *substream)
substream        2159 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2160 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2163 sound/sparc/dbri.c 	info->size = snd_pcm_lib_buffer_bytes(substream);
substream        2164 sound/sparc/dbri.c 	if (DBRI_STREAMNO(substream) == DBRI_PLAY)
substream        2175 sound/sparc/dbri.c 	ret = setup_descs(dbri, DBRI_STREAMNO(substream),
substream        2176 sound/sparc/dbri.c 			  snd_pcm_lib_period_bytes(substream));
substream        2184 sound/sparc/dbri.c static int snd_dbri_trigger(struct snd_pcm_substream *substream, int cmd)
substream        2186 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2187 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2193 sound/sparc/dbri.c 			(int)snd_pcm_lib_period_bytes(substream));
substream        2208 sound/sparc/dbri.c static snd_pcm_uframes_t snd_dbri_pointer(struct snd_pcm_substream *substream)
substream        2210 sound/sparc/dbri.c 	struct snd_dbri *dbri = snd_pcm_substream_chip(substream);
substream        2211 sound/sparc/dbri.c 	struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream);
substream        2214 sound/sparc/dbri.c 	ret = bytes_to_frames(substream->runtime, info->offset)
substream        2215 sound/sparc/dbri.c 		% substream->runtime->buffer_size;
substream        2217 sound/sparc/dbri.c 		ret, substream->runtime->buffer_size);
substream          64 sound/spi/at73c213.c 	struct snd_pcm_substream	*substream;
substream         205 sound/spi/at73c213.c static int snd_at73c213_pcm_open(struct snd_pcm_substream *substream)
substream         207 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         208 sound/spi/at73c213.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         219 sound/spi/at73c213.c 	chip->substream = substream;
substream         226 sound/spi/at73c213.c static int snd_at73c213_pcm_close(struct snd_pcm_substream *substream)
substream         228 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         229 sound/spi/at73c213.c 	chip->substream = NULL;
substream         234 sound/spi/at73c213.c static int snd_at73c213_pcm_hw_params(struct snd_pcm_substream *substream,
substream         237 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         245 sound/spi/at73c213.c 	return snd_pcm_lib_malloc_pages(substream,
substream         249 sound/spi/at73c213.c static int snd_at73c213_pcm_hw_free(struct snd_pcm_substream *substream)
substream         251 sound/spi/at73c213.c 	return snd_pcm_lib_free_pages(substream);
substream         254 sound/spi/at73c213.c static int snd_at73c213_pcm_prepare(struct snd_pcm_substream *substream)
substream         256 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         257 sound/spi/at73c213.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         276 sound/spi/at73c213.c static int snd_at73c213_pcm_trigger(struct snd_pcm_substream *substream,
substream         279 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         305 sound/spi/at73c213.c snd_at73c213_pcm_pointer(struct snd_pcm_substream *substream)
substream         307 sound/spi/at73c213.c 	struct snd_at73c213 *chip = snd_pcm_substream_chip(substream);
substream         308 sound/spi/at73c213.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         360 sound/spi/at73c213.c 	struct snd_pcm_runtime *runtime = chip->substream->runtime;
substream         393 sound/spi/at73c213.c 		snd_pcm_period_elapsed(chip->substream);
substream          78 sound/usb/bcd2000/bcd2000.c static int bcd2000_midi_input_open(struct snd_rawmidi_substream *substream)
substream          83 sound/usb/bcd2000/bcd2000.c static int bcd2000_midi_input_close(struct snd_rawmidi_substream *substream)
substream          89 sound/usb/bcd2000/bcd2000.c static void bcd2000_midi_input_trigger(struct snd_rawmidi_substream *substream,
substream          92 sound/usb/bcd2000/bcd2000.c 	struct bcd2000 *bcd2k = substream->rmidi->private_data;
substream          93 sound/usb/bcd2000/bcd2000.c 	bcd2k->midi_receive_substream = up ? substream : NULL;
substream         172 sound/usb/bcd2000/bcd2000.c static int bcd2000_midi_output_open(struct snd_rawmidi_substream *substream)
substream         177 sound/usb/bcd2000/bcd2000.c static int bcd2000_midi_output_close(struct snd_rawmidi_substream *substream)
substream         179 sound/usb/bcd2000/bcd2000.c 	struct bcd2000 *bcd2k = substream->rmidi->private_data;
substream         190 sound/usb/bcd2000/bcd2000.c static void bcd2000_midi_output_trigger(struct snd_rawmidi_substream *substream,
substream         193 sound/usb/bcd2000/bcd2000.c 	struct bcd2000 *bcd2k = substream->rmidi->private_data;
substream         196 sound/usb/bcd2000/bcd2000.c 		bcd2k->midi_out_substream = substream;
substream         141 sound/usb/caiaq/audio.c static int snd_usb_caiaq_substream_open(struct snd_pcm_substream *substream)
substream         143 sound/usb/caiaq/audio.c 	struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(substream);
substream         146 sound/usb/caiaq/audio.c 	dev_dbg(dev, "%s(%p)\n", __func__, substream);
substream         147 sound/usb/caiaq/audio.c 	substream->runtime->hw = cdev->pcm_info;
substream         148 sound/usb/caiaq/audio.c 	snd_pcm_limit_hw_rates(substream->runtime);
substream         153 sound/usb/caiaq/audio.c static int snd_usb_caiaq_substream_close(struct snd_pcm_substream *substream)
substream         155 sound/usb/caiaq/audio.c 	struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(substream);
substream         158 sound/usb/caiaq/audio.c 	dev_dbg(dev, "%s(%p)\n", __func__, substream);
substream         192 sound/usb/caiaq/audio.c static int snd_usb_caiaq_pcm_prepare(struct snd_pcm_substream *substream)
substream         195 sound/usb/caiaq/audio.c 	int index = substream->number;
substream         196 sound/usb/caiaq/audio.c 	struct snd_usb_caiaqdev *cdev = snd_pcm_substream_chip(substream);
substream         197 sound/usb/caiaq/audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         200 sound/usb/caiaq/audio.c 	dev_dbg(dev, "%s(%p)\n", __func__, substream);
substream         202 sound/usb/caiaq/audio.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
substream          16 sound/usb/caiaq/midi.c static int snd_usb_caiaq_midi_input_open(struct snd_rawmidi_substream *substream)
substream          21 sound/usb/caiaq/midi.c static int snd_usb_caiaq_midi_input_close(struct snd_rawmidi_substream *substream)
substream          26 sound/usb/caiaq/midi.c static void snd_usb_caiaq_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
substream          28 sound/usb/caiaq/midi.c 	struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data;
substream          33 sound/usb/caiaq/midi.c 	cdev->midi_receive_substream = up ? substream : NULL;
substream          37 sound/usb/caiaq/midi.c static int snd_usb_caiaq_midi_output_open(struct snd_rawmidi_substream *substream)
substream          42 sound/usb/caiaq/midi.c static int snd_usb_caiaq_midi_output_close(struct snd_rawmidi_substream *substream)
substream          44 sound/usb/caiaq/midi.c 	struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data;
substream          53 sound/usb/caiaq/midi.c 				    struct snd_rawmidi_substream *substream)
substream          60 sound/usb/caiaq/midi.c 	len = snd_rawmidi_transmit(substream, cdev->midi_out_buf + 3,
substream          73 sound/usb/caiaq/midi.c 			"ret=%d, len=%d\n", substream, ret, len);
substream          78 sound/usb/caiaq/midi.c static void snd_usb_caiaq_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
substream          80 sound/usb/caiaq/midi.c 	struct snd_usb_caiaqdev *cdev = substream->rmidi->private_data;
substream          83 sound/usb/caiaq/midi.c 		cdev->midi_out_substream = substream;
substream          85 sound/usb/caiaq/midi.c 			snd_usb_caiaq_midi_send(cdev, substream);
substream         119 sound/usb/card.c 		subs = &as->substream[idx];
substream         816 sound/usb/card.c 			as->substream[0].need_setup_ep =
substream         817 sound/usb/card.c 				as->substream[1].need_setup_ep = true;
substream         175 sound/usb/card.h 	struct snd_usb_substream substream[2];
substream         359 sound/usb/endpoint.c 	struct snd_pcm_substream *substream;
substream         409 sound/usb/endpoint.c 		substream = ep->data_subs->pcm_substream;
substream         410 sound/usb/endpoint.c 		snd_pcm_stop_xrun(substream);
substream          86 sound/usb/line6/capture.c 	struct snd_pcm_substream *substream =
substream          88 sound/usb/line6/capture.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         130 sound/usb/line6/capture.c 	struct snd_pcm_substream *substream =
substream         137 sound/usb/line6/capture.c 		snd_pcm_period_elapsed(substream);
substream         219 sound/usb/line6/capture.c static int snd_line6_capture_open(struct snd_pcm_substream *substream)
substream         222 sound/usb/line6/capture.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         223 sound/usb/line6/capture.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         238 sound/usb/line6/capture.c static int snd_line6_capture_close(struct snd_pcm_substream *substream)
substream         240 sound/usb/line6/capture.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream          17 sound/usb/line6/midi.c #define line6_rawmidi_substream_midi(substream) \
substream          18 sound/usb/line6/midi.c 	((struct snd_line6_midi *)((substream)->rmidi->private_data))
substream          37 sound/usb/line6/midi.c static void line6_midi_transmit(struct snd_rawmidi_substream *substream)
substream          40 sound/usb/line6/midi.c 	    line6_rawmidi_substream_midi(substream)->line6;
substream          48 sound/usb/line6/midi.c 		done = snd_rawmidi_transmit_peek(substream, chunk, req);
substream          54 sound/usb/line6/midi.c 		snd_rawmidi_transmit_ack(substream, done);
substream         146 sound/usb/line6/midi.c static int line6_midi_output_open(struct snd_rawmidi_substream *substream)
substream         151 sound/usb/line6/midi.c static int line6_midi_output_close(struct snd_rawmidi_substream *substream)
substream         156 sound/usb/line6/midi.c static void line6_midi_output_trigger(struct snd_rawmidi_substream *substream,
substream         161 sound/usb/line6/midi.c 	    line6_rawmidi_substream_midi(substream)->line6;
substream         163 sound/usb/line6/midi.c 	line6->line6midi->substream_transmit = substream;
substream         167 sound/usb/line6/midi.c 		line6_midi_transmit(substream);
substream         172 sound/usb/line6/midi.c static void line6_midi_output_drain(struct snd_rawmidi_substream *substream)
substream         175 sound/usb/line6/midi.c 	    line6_rawmidi_substream_midi(substream)->line6;
substream         182 sound/usb/line6/midi.c static int line6_midi_input_open(struct snd_rawmidi_substream *substream)
substream         187 sound/usb/line6/midi.c static int line6_midi_input_close(struct snd_rawmidi_substream *substream)
substream         192 sound/usb/line6/midi.c static void line6_midi_input_trigger(struct snd_rawmidi_substream *substream,
substream         196 sound/usb/line6/midi.c 	    line6_rawmidi_substream_midi(substream)->line6;
substream         199 sound/usb/line6/midi.c 		line6->line6midi->substream_receive = substream;
substream         228 sound/usb/line6/pcm.c int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd)
substream         230 sound/usb/line6/pcm.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         236 sound/usb/line6/pcm.c 	snd_pcm_group_for_each_entry(s, substream) {
substream         237 sound/usb/line6/pcm.c 		if (s->pcm->card != substream->pcm->card)
substream         290 sound/usb/line6/pcm.c snd_pcm_uframes_t snd_line6_pointer(struct snd_pcm_substream *substream)
substream         292 sound/usb/line6/pcm.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         293 sound/usb/line6/pcm.c 	struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
substream         349 sound/usb/line6/pcm.c int snd_line6_hw_params(struct snd_pcm_substream *substream,
substream         353 sound/usb/line6/pcm.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         354 sound/usb/line6/pcm.c 	struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
substream         357 sound/usb/line6/pcm.c 	ret = line6_buffer_acquire(line6pcm, pstr, substream->stream,
substream         362 sound/usb/line6/pcm.c 	ret = snd_pcm_lib_malloc_pages(substream,
substream         376 sound/usb/line6/pcm.c int snd_line6_hw_free(struct snd_pcm_substream *substream)
substream         378 sound/usb/line6/pcm.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         379 sound/usb/line6/pcm.c 	struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
substream         384 sound/usb/line6/pcm.c 	return snd_pcm_lib_free_pages(substream);
substream         595 sound/usb/line6/pcm.c int snd_line6_prepare(struct snd_pcm_substream *substream)
substream         597 sound/usb/line6/pcm.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         598 sound/usb/line6/pcm.c 	struct line6_pcm_stream *pstr = get_stream(line6pcm, substream->stream);
substream          38 sound/usb/line6/pcm.h 		(line6pcm->pcm->streams[stream].substream)
substream         184 sound/usb/line6/pcm.h extern int snd_line6_trigger(struct snd_pcm_substream *substream, int cmd);
substream         185 sound/usb/line6/pcm.h extern int snd_line6_prepare(struct snd_pcm_substream *substream);
substream         186 sound/usb/line6/pcm.h extern int snd_line6_hw_params(struct snd_pcm_substream *substream,
substream         188 sound/usb/line6/pcm.h extern int snd_line6_hw_free(struct snd_pcm_substream *substream);
substream         189 sound/usb/line6/pcm.h extern snd_pcm_uframes_t snd_line6_pointer(struct snd_pcm_substream *substream);
substream         307 sound/usb/line6/playback.c 	struct snd_pcm_substream *substream =
substream         333 sound/usb/line6/playback.c 		struct snd_pcm_runtime *runtime = substream->runtime;
substream         361 sound/usb/line6/playback.c 				snd_pcm_period_elapsed(substream);
substream         370 sound/usb/line6/playback.c static int snd_line6_playback_open(struct snd_pcm_substream *substream)
substream         373 sound/usb/line6/playback.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         374 sound/usb/line6/playback.c 	struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream);
substream         386 sound/usb/line6/playback.c static int snd_line6_playback_close(struct snd_pcm_substream *substream)
substream         317 sound/usb/media.c 		snd_media_stream_delete(&stream->substream[0]);
substream         318 sound/usb/media.c 		snd_media_stream_delete(&stream->substream[1]);
substream         151 sound/usb/midi.c 		struct snd_rawmidi_substream *substream;
substream         173 sound/usb/midi.c 		struct snd_rawmidi_substream *substream;
substream         231 sound/usb/midi.c 	if (!port->substream) {
substream         235 sound/usb/midi.c 	if (!test_bit(port->substream->number, &ep->umidi->input_triggered))
substream         237 sound/usb/midi.c 	snd_rawmidi_receive(port->substream, data, length);
substream         666 sound/usb/midi.c 			if (snd_rawmidi_transmit(port->substream, &b, 1) != 1) {
substream         744 sound/usb/midi.c 	struct snd_rawmidi_substream *substream = ep->ports[0].substream;
substream         754 sound/usb/midi.c 		count = snd_rawmidi_transmit_peek(substream,
substream         765 sound/usb/midi.c 			snd_rawmidi_transmit_ack(substream, pos);
substream         776 sound/usb/midi.c 			snd_rawmidi_transmit_ack(substream, end);
substream         785 sound/usb/midi.c 			snd_rawmidi_transmit_ack(substream, count);
substream         796 sound/usb/midi.c 		snd_rawmidi_transmit_ack(substream, count);
substream         828 sound/usb/midi.c 	count = snd_rawmidi_transmit(ep->ports[0].substream,
substream         862 sound/usb/midi.c 	count = snd_rawmidi_transmit(ep->ports[0].substream,
substream         921 sound/usb/midi.c 	count = snd_rawmidi_transmit(ep->ports[0].substream,
substream        1034 sound/usb/midi.c 		if (snd_rawmidi_transmit_peek(port->substream, buf, 1) != 1) {
substream        1051 sound/usb/midi.c 		length = snd_rawmidi_transmit(port->substream, buf, buf_free);
substream        1093 sound/usb/midi.c static int substream_open(struct snd_rawmidi_substream *substream, int dir,
substream        1096 sound/usb/midi.c 	struct snd_usb_midi *umidi = substream->rmidi->private_data;
substream        1139 sound/usb/midi.c static int snd_usbmidi_output_open(struct snd_rawmidi_substream *substream)
substream        1141 sound/usb/midi.c 	struct snd_usb_midi *umidi = substream->rmidi->private_data;
substream        1148 sound/usb/midi.c 				if (umidi->endpoints[i].out->ports[j].substream == substream) {
substream        1157 sound/usb/midi.c 	substream->runtime->private_data = port;
substream        1159 sound/usb/midi.c 	return substream_open(substream, 0, 1);
substream        1162 sound/usb/midi.c static int snd_usbmidi_output_close(struct snd_rawmidi_substream *substream)
substream        1164 sound/usb/midi.c 	return substream_open(substream, 0, 0);
substream        1167 sound/usb/midi.c static void snd_usbmidi_output_trigger(struct snd_rawmidi_substream *substream,
substream        1171 sound/usb/midi.c 		(struct usbmidi_out_port *)substream->runtime->private_data;
substream        1178 sound/usb/midi.c 			snd_rawmidi_proceed(substream);
substream        1185 sound/usb/midi.c static void snd_usbmidi_output_drain(struct snd_rawmidi_substream *substream)
substream        1187 sound/usb/midi.c 	struct usbmidi_out_port *port = substream->runtime->private_data;
substream        1216 sound/usb/midi.c static int snd_usbmidi_input_open(struct snd_rawmidi_substream *substream)
substream        1218 sound/usb/midi.c 	return substream_open(substream, 1, 1);
substream        1221 sound/usb/midi.c static int snd_usbmidi_input_close(struct snd_rawmidi_substream *substream)
substream        1223 sound/usb/midi.c 	return substream_open(substream, 1, 0);
substream        1226 sound/usb/midi.c static void snd_usbmidi_input_trigger(struct snd_rawmidi_substream *substream,
substream        1229 sound/usb/midi.c 	struct snd_usb_midi *umidi = substream->rmidi->private_data;
substream        1232 sound/usb/midi.c 		set_bit(substream->number, &umidi->input_triggered);
substream        1234 sound/usb/midi.c 		clear_bit(substream->number, &umidi->input_triggered);
substream        1542 sound/usb/midi.c 	struct snd_rawmidi_substream *substream;
substream        1544 sound/usb/midi.c 	list_for_each_entry(substream, &umidi->rmidi->streams[stream].substreams,
substream        1546 sound/usb/midi.c 		if (substream->number == number)
substream        1547 sound/usb/midi.c 			return substream;
substream        1765 sound/usb/midi.c 	struct snd_rawmidi_substream *substream =
substream        1767 sound/usb/midi.c 	if (!substream) {
substream        1776 sound/usb/midi.c 	snprintf(substream->name, sizeof(substream->name),
substream        1779 sound/usb/midi.c 	*rsubstream = substream;
substream        1812 sound/usb/midi.c 							   &umidi->endpoints[i].out->ports[j].substream);
substream        1819 sound/usb/midi.c 							   &umidi->endpoints[i].in->ports[j].substream);
substream        2223 sound/usb/midi.c 						   &umidi->endpoints[cable & 1].out->ports[cable].substream);
substream        2228 sound/usb/midi.c 						   &umidi->endpoints[0].in->ports[cable].substream);
substream         104 sound/usb/misc/ua101.c 		struct snd_pcm_substream *substream;
substream         192 sound/usb/misc/ua101.c 		ua->playback.substream->runtime->delay -=
substream         218 sound/usb/misc/ua101.c 	runtime = stream->substream->runtime;
substream         307 sound/usb/misc/ua101.c 		ua->playback.substream->runtime->delay += frames;
substream         311 sound/usb/misc/ua101.c 		snd_pcm_period_elapsed(ua->playback.substream);
substream         322 sound/usb/misc/ua101.c 	runtime = stream->substream->runtime;
substream         410 sound/usb/misc/ua101.c 		snd_pcm_period_elapsed(stream->substream);
substream         607 sound/usb/misc/ua101.c 		snd_pcm_stop_xrun(ua->capture.substream);
substream         613 sound/usb/misc/ua101.c 		snd_pcm_stop_xrun(ua->playback.substream);
substream         616 sound/usb/misc/ua101.c static int set_stream_hw(struct ua101 *ua, struct snd_pcm_substream *substream,
substream         621 sound/usb/misc/ua101.c 	substream->runtime->hw.info =
substream         628 sound/usb/misc/ua101.c 	substream->runtime->hw.formats = ua->format_bit;
substream         629 sound/usb/misc/ua101.c 	substream->runtime->hw.rates = snd_pcm_rate_to_rate_bit(ua->rate);
substream         630 sound/usb/misc/ua101.c 	substream->runtime->hw.rate_min = ua->rate;
substream         631 sound/usb/misc/ua101.c 	substream->runtime->hw.rate_max = ua->rate;
substream         632 sound/usb/misc/ua101.c 	substream->runtime->hw.channels_min = channels;
substream         633 sound/usb/misc/ua101.c 	substream->runtime->hw.channels_max = channels;
substream         634 sound/usb/misc/ua101.c 	substream->runtime->hw.buffer_bytes_max = 45000 * 1024;
substream         635 sound/usb/misc/ua101.c 	substream->runtime->hw.period_bytes_min = 1;
substream         636 sound/usb/misc/ua101.c 	substream->runtime->hw.period_bytes_max = UINT_MAX;
substream         637 sound/usb/misc/ua101.c 	substream->runtime->hw.periods_min = 2;
substream         638 sound/usb/misc/ua101.c 	substream->runtime->hw.periods_max = UINT_MAX;
substream         639 sound/usb/misc/ua101.c 	err = snd_pcm_hw_constraint_minmax(substream->runtime,
substream         645 sound/usb/misc/ua101.c 	err = snd_pcm_hw_constraint_msbits(substream->runtime, 0, 32, 24);
substream         649 sound/usb/misc/ua101.c static int capture_pcm_open(struct snd_pcm_substream *substream)
substream         651 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         654 sound/usb/misc/ua101.c 	ua->capture.substream = substream;
substream         655 sound/usb/misc/ua101.c 	err = set_stream_hw(ua, substream, ua->capture.channels);
substream         658 sound/usb/misc/ua101.c 	substream->runtime->hw.fifo_size =
substream         660 sound/usb/misc/ua101.c 	substream->runtime->delay = substream->runtime->hw.fifo_size;
substream         670 sound/usb/misc/ua101.c static int playback_pcm_open(struct snd_pcm_substream *substream)
substream         672 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         675 sound/usb/misc/ua101.c 	ua->playback.substream = substream;
substream         676 sound/usb/misc/ua101.c 	err = set_stream_hw(ua, substream, ua->playback.channels);
substream         679 sound/usb/misc/ua101.c 	substream->runtime->hw.fifo_size =
substream         699 sound/usb/misc/ua101.c static int capture_pcm_close(struct snd_pcm_substream *substream)
substream         701 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         711 sound/usb/misc/ua101.c static int playback_pcm_close(struct snd_pcm_substream *substream)
substream         713 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         724 sound/usb/misc/ua101.c static int capture_pcm_hw_params(struct snd_pcm_substream *substream,
substream         727 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         736 sound/usb/misc/ua101.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         740 sound/usb/misc/ua101.c static int playback_pcm_hw_params(struct snd_pcm_substream *substream,
substream         743 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         754 sound/usb/misc/ua101.c 	return snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         758 sound/usb/misc/ua101.c static int ua101_pcm_hw_free(struct snd_pcm_substream *substream)
substream         760 sound/usb/misc/ua101.c 	return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         763 sound/usb/misc/ua101.c static int capture_pcm_prepare(struct snd_pcm_substream *substream)
substream         765 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         793 sound/usb/misc/ua101.c static int playback_pcm_prepare(struct snd_pcm_substream *substream)
substream         795 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         815 sound/usb/misc/ua101.c 	substream->runtime->delay = 0;
substream         821 sound/usb/misc/ua101.c static int capture_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         823 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream         839 sound/usb/misc/ua101.c static int playback_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         841 sound/usb/misc/ua101.c 	struct ua101 *ua = substream->private_data;
substream          66 sound/usb/pcm.c static snd_pcm_uframes_t snd_usb_pcm_pointer(struct snd_pcm_substream *substream)
substream          68 sound/usb/pcm.c 	struct snd_usb_substream *subs = substream->runtime->private_data;
substream          75 sound/usb/pcm.c 	substream->runtime->delay = snd_usb_pcm_delay(subs,
substream          76 sound/usb/pcm.c 						substream->runtime->rate);
substream          78 sound/usb/pcm.c 	return hwptr_done / (substream->runtime->frame_bits >> 3);
substream         641 sound/usb/pcm.c 		&subs->stream->substream[subs->direction ^ 1];
substream         748 sound/usb/pcm.c 	ret = snd_usb_pcm_change_state(&as->substream[0], UAC3_PD_STATE_D2);
substream         752 sound/usb/pcm.c 	ret = snd_usb_pcm_change_state(&as->substream[1], UAC3_PD_STATE_D2);
substream         763 sound/usb/pcm.c 	ret = snd_usb_pcm_change_state(&as->substream[0], UAC3_PD_STATE_D1);
substream         767 sound/usb/pcm.c 	ret = snd_usb_pcm_change_state(&as->substream[1], UAC3_PD_STATE_D1);
substream         784 sound/usb/pcm.c static int snd_usb_hw_params(struct snd_pcm_substream *substream,
substream         787 sound/usb/pcm.c 	struct snd_usb_substream *subs = substream->runtime->private_data;
substream         796 sound/usb/pcm.c 		ret = snd_pcm_lib_alloc_vmalloc_buffer(substream,
substream         799 sound/usb/pcm.c 		ret = snd_pcm_lib_malloc_pages(substream,
substream         852 sound/usb/pcm.c static int snd_usb_hw_free(struct snd_pcm_substream *substream)
substream         854 sound/usb/pcm.c 	struct snd_usb_substream *subs = substream->runtime->private_data;
substream         868 sound/usb/pcm.c 		return snd_pcm_lib_free_vmalloc_buffer(substream);
substream         870 sound/usb/pcm.c 		return snd_pcm_lib_free_pages(substream);
substream         878 sound/usb/pcm.c static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream)
substream         880 sound/usb/pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1323 sound/usb/pcm.c static int snd_usb_pcm_open(struct snd_pcm_substream *substream)
substream        1325 sound/usb/pcm.c 	int direction = substream->stream;
substream        1326 sound/usb/pcm.c 	struct snd_usb_stream *as = snd_pcm_substream_chip(substream);
substream        1327 sound/usb/pcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream        1328 sound/usb/pcm.c 	struct snd_usb_substream *subs = &as->substream[direction];
substream        1335 sound/usb/pcm.c 	subs->pcm_substream = substream;
substream        1352 sound/usb/pcm.c static int snd_usb_pcm_close(struct snd_pcm_substream *substream)
substream        1354 sound/usb/pcm.c 	int direction = substream->stream;
substream        1355 sound/usb/pcm.c 	struct snd_usb_stream *as = snd_pcm_substream_chip(substream);
substream        1356 sound/usb/pcm.c 	struct snd_usb_substream *subs = &as->substream[direction];
substream        1721 sound/usb/pcm.c static int snd_usb_substream_playback_trigger(struct snd_pcm_substream *substream,
substream        1724 sound/usb/pcm.c 	struct snd_usb_substream *subs = substream->runtime->private_data;
substream        1757 sound/usb/pcm.c static int snd_usb_substream_capture_trigger(struct snd_pcm_substream *substream,
substream        1761 sound/usb/pcm.c 	struct snd_usb_substream *subs = substream->runtime->private_data;
substream        1860 sound/usb/pcm.c 	struct snd_pcm_substream *s = pcm->streams[subs->direction].substream;
substream         143 sound/usb/proc.c 	if (stream->substream[SNDRV_PCM_STREAM_PLAYBACK].num_formats) {
substream         145 sound/usb/proc.c 		proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer);
substream         146 sound/usb/proc.c 		proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer);
substream         148 sound/usb/proc.c 	if (stream->substream[SNDRV_PCM_STREAM_CAPTURE].num_formats) {
substream         150 sound/usb/proc.c 		proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer);
substream         151 sound/usb/proc.c 		proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_CAPTURE], buffer);
substream        1389 sound/usb/quirks.c 		if (subs->stream->substream[SNDRV_PCM_STREAM_CAPTURE].interface != -1)
substream          61 sound/usb/stream.c 	free_substream(&stream->substream[0]);
substream          62 sound/usb/stream.c 	free_substream(&stream->substream[1]);
substream          85 sound/usb/stream.c 	struct snd_usb_substream *subs = &as->substream[stream];
substream         490 sound/usb/stream.c 		subs = &as->substream[stream];
substream         502 sound/usb/stream.c 		subs = &as->substream[stream];
substream         551 sound/usb/stream.c 	return add_chmap(pcm, stream, &as->substream[stream]);
substream         509 sound/usb/usx2y/usbusx2yaudio.c static snd_pcm_uframes_t snd_usX2Y_pcm_pointer(struct snd_pcm_substream *substream)
substream         511 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_usX2Y_substream *subs = substream->runtime->private_data;
substream         517 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream         519 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_usX2Y_substream *subs = substream->runtime->private_data;
substream         735 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_hw_params(struct snd_pcm_substream *substream,
substream         741 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_card *card = substream->pstr->pcm->card;
substream         746 sound/usb/usx2y/usbusx2yaudio.c 	snd_printdd("snd_usX2Y_hw_params(%p, %p)\n", substream, hw_params);
substream         757 sound/usb/usx2y/usbusx2yaudio.c 		if (!test_substream || test_substream == substream ||
substream         769 sound/usb/usx2y/usbusx2yaudio.c 	err = snd_pcm_lib_malloc_pages(substream,
substream         773 sound/usb/usx2y/usbusx2yaudio.c 			   substream, params_buffer_bytes(hw_params), err);
substream         785 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_hw_free(struct snd_pcm_substream *substream)
substream         787 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         790 sound/usb/usx2y/usbusx2yaudio.c 	snd_printdd("snd_usX2Y_hw_free(%p)\n", substream);
substream         792 sound/usb/usx2y/usbusx2yaudio.c 	if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) {
substream         811 sound/usb/usx2y/usbusx2yaudio.c 	return snd_pcm_lib_free_pages(substream);
substream         818 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_prepare(struct snd_pcm_substream *substream)
substream         820 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         825 sound/usb/usx2y/usbusx2yaudio.c 	snd_printdd("snd_usX2Y_pcm_prepare(%p)\n", substream);
substream         873 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_open(struct snd_pcm_substream *substream)
substream         876 sound/usb/usx2y/usbusx2yaudio.c 					 snd_pcm_substream_chip(substream))[substream->stream];
substream         877 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_pcm_runtime	*runtime = substream->runtime;
substream         884 sound/usb/usx2y/usbusx2yaudio.c 	subs->pcm_substream = substream;
substream         891 sound/usb/usx2y/usbusx2yaudio.c static int snd_usX2Y_pcm_close(struct snd_pcm_substream *substream)
substream         893 sound/usb/usx2y/usbusx2yaudio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         973 sound/usb/usx2y/usbusx2yaudio.c 		snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
substream         979 sound/usb/usx2y/usbusx2yaudio.c 	snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
substream         344 sound/usb/usx2y/usx2yhwdeppcm.c static int snd_usX2Y_usbpcm_hw_free(struct snd_pcm_substream *substream)
substream         346 sound/usb/usx2y/usx2yhwdeppcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         350 sound/usb/usx2y/usx2yhwdeppcm.c 	snd_printdd("snd_usX2Y_usbpcm_hw_free(%p)\n", substream);
substream         352 sound/usb/usx2y/usx2yhwdeppcm.c 	if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) {
substream         379 sound/usb/usx2y/usx2yhwdeppcm.c 	return snd_pcm_lib_free_pages(substream);
substream         469 sound/usb/usx2y/usx2yhwdeppcm.c static int snd_usX2Y_usbpcm_prepare(struct snd_pcm_substream *substream)
substream         471 sound/usb/usx2y/usx2yhwdeppcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         476 sound/usb/usx2y/usx2yhwdeppcm.c 	snd_printdd("snd_usX2Y_pcm_prepare(%p)\n", substream);
substream         552 sound/usb/usx2y/usx2yhwdeppcm.c static int snd_usX2Y_usbpcm_open(struct snd_pcm_substream *substream)
substream         555 sound/usb/usx2y/usx2yhwdeppcm.c 					 snd_pcm_substream_chip(substream))[substream->stream];
substream         556 sound/usb/usx2y/usx2yhwdeppcm.c 	struct snd_pcm_runtime	*runtime = substream->runtime;
substream         561 sound/usb/usx2y/usx2yhwdeppcm.c 	runtime->hw = SNDRV_PCM_STREAM_PLAYBACK == substream->stream ? snd_usX2Y_2c :
substream         564 sound/usb/usx2y/usx2yhwdeppcm.c 	subs->pcm_substream = substream;
substream         570 sound/usb/usx2y/usx2yhwdeppcm.c static int snd_usX2Y_usbpcm_close(struct snd_pcm_substream *substream)
substream         572 sound/usb/usx2y/usx2yhwdeppcm.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         729 sound/usb/usx2y/usx2yhwdeppcm.c 	snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream,
substream         733 sound/usb/usx2y/usx2yhwdeppcm.c 	snd_pcm_lib_preallocate_pages(pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream,
substream         169 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream         173 sound/x86/intel_hdmi_audio.c 	substream = intelhaddata->stream_info.substream;
substream         174 sound/x86/intel_hdmi_audio.c 	if (substream)
substream         177 sound/x86/intel_hdmi_audio.c 	return substream;
substream         281 sound/x86/intel_hdmi_audio.c static int had_prog_status_reg(struct snd_pcm_substream *substream,
substream         292 sound/x86/intel_hdmi_audio.c 	switch (substream->runtime->rate) {
substream         324 sound/x86/intel_hdmi_audio.c 	switch (substream->runtime->format) {
substream         348 sound/x86/intel_hdmi_audio.c static int had_init_audio_ctrl(struct snd_pcm_substream *substream,
substream         355 sound/x86/intel_hdmi_audio.c 	had_prog_status_reg(substream, intelhaddata);
substream         362 sound/x86/intel_hdmi_audio.c 	channels = substream->runtime->channels;
substream         369 sound/x86/intel_hdmi_audio.c 	if (substream->runtime->format == SNDRV_PCM_FORMAT_S16_LE)
substream         372 sound/x86/intel_hdmi_audio.c 	if (substream->runtime->format == SNDRV_PCM_FORMAT_S32_LE)
substream         589 sound/x86/intel_hdmi_audio.c static void had_prog_dip(struct snd_pcm_substream *substream,
substream         601 sound/x86/intel_hdmi_audio.c 	channels = substream->runtime->channels;
substream         608 sound/x86/intel_hdmi_audio.c 		frame2.regval = (substream->runtime->channels - 1) | (ca << 24);
substream         611 sound/x86/intel_hdmi_audio.c 		frame2.regx.chnl_cnt = substream->runtime->channels - 1;
substream         869 sound/x86/intel_hdmi_audio.c static void had_prog_bd(struct snd_pcm_substream *substream,
substream         874 sound/x86/intel_hdmi_audio.c 	u32 addr = substream->runtime->dma_addr + ofs;
substream         877 sound/x86/intel_hdmi_audio.c 	if (!substream->runtime->no_period_wakeup)
substream         887 sound/x86/intel_hdmi_audio.c 	intelhaddata->pcmbuf_filled %= substream->runtime->periods;
substream         899 sound/x86/intel_hdmi_audio.c static void had_init_ringbuf(struct snd_pcm_substream *substream,
substream         902 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         919 sound/x86/intel_hdmi_audio.c 			had_prog_bd(substream, intelhaddata);
substream         928 sound/x86/intel_hdmi_audio.c static void had_advance_ringbuf(struct snd_pcm_substream *substream,
substream         931 sound/x86/intel_hdmi_audio.c 	int num_periods = substream->runtime->periods;
substream         934 sound/x86/intel_hdmi_audio.c 	had_prog_bd(substream, intelhaddata);
substream         944 sound/x86/intel_hdmi_audio.c static int had_process_ringbuf(struct snd_pcm_substream *substream,
substream         972 sound/x86/intel_hdmi_audio.c 		had_advance_ringbuf(substream, intelhaddata);
substream         985 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream         987 sound/x86/intel_hdmi_audio.c 	substream = had_substream_get(intelhaddata);
substream         988 sound/x86/intel_hdmi_audio.c 	if (!substream)
substream         992 sound/x86/intel_hdmi_audio.c 		snd_pcm_stop_xrun(substream);
substream         997 sound/x86/intel_hdmi_audio.c 	if (had_process_ringbuf(substream, intelhaddata) < 0)
substream         998 sound/x86/intel_hdmi_audio.c 		snd_pcm_stop_xrun(substream);
substream        1000 sound/x86/intel_hdmi_audio.c 		snd_pcm_period_elapsed(substream);
substream        1045 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream        1048 sound/x86/intel_hdmi_audio.c 	substream = had_substream_get(intelhaddata);
substream        1049 sound/x86/intel_hdmi_audio.c 	if (substream) {
substream        1050 sound/x86/intel_hdmi_audio.c 		snd_pcm_stop_xrun(substream);
substream        1059 sound/x86/intel_hdmi_audio.c static int had_pcm_open(struct snd_pcm_substream *substream)
substream        1065 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1066 sound/x86/intel_hdmi_audio.c 	runtime = substream->runtime;
substream        1081 sound/x86/intel_hdmi_audio.c 	retval = snd_pcm_hw_constraint_step(substream->runtime, 0,
substream        1092 sound/x86/intel_hdmi_audio.c 	intelhaddata->stream_info.substream = substream;
substream        1106 sound/x86/intel_hdmi_audio.c static int had_pcm_close(struct snd_pcm_substream *substream)
substream        1110 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1114 sound/x86/intel_hdmi_audio.c 	intelhaddata->stream_info.substream = NULL;
substream        1131 sound/x86/intel_hdmi_audio.c static int had_pcm_hw_params(struct snd_pcm_substream *substream,
substream        1137 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1139 sound/x86/intel_hdmi_audio.c 	retval = snd_pcm_lib_malloc_pages(substream, buf_size);
substream        1150 sound/x86/intel_hdmi_audio.c static int had_pcm_hw_free(struct snd_pcm_substream *substream)
substream        1154 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1157 sound/x86/intel_hdmi_audio.c 	return snd_pcm_lib_free_pages(substream);
substream        1163 sound/x86/intel_hdmi_audio.c static int had_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
substream        1168 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1197 sound/x86/intel_hdmi_audio.c static int had_pcm_prepare(struct snd_pcm_substream *substream)
substream        1205 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1206 sound/x86/intel_hdmi_audio.c 	runtime = substream->runtime;
substream        1212 sound/x86/intel_hdmi_audio.c 		(int)snd_pcm_lib_buffer_bytes(substream));
substream        1221 sound/x86/intel_hdmi_audio.c 	retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
substream        1231 sound/x86/intel_hdmi_audio.c 	had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,
substream        1234 sound/x86/intel_hdmi_audio.c 	had_prog_dip(substream, intelhaddata);
substream        1236 sound/x86/intel_hdmi_audio.c 	retval = had_init_audio_ctrl(substream, intelhaddata);
substream        1239 sound/x86/intel_hdmi_audio.c 	had_init_ringbuf(substream, intelhaddata);
substream        1255 sound/x86/intel_hdmi_audio.c static snd_pcm_uframes_t had_pcm_pointer(struct snd_pcm_substream *substream)
substream        1260 sound/x86/intel_hdmi_audio.c 	intelhaddata = snd_pcm_substream_chip(substream);
substream        1265 sound/x86/intel_hdmi_audio.c 	len = had_process_ringbuf(substream, intelhaddata);
substream        1268 sound/x86/intel_hdmi_audio.c 	len = bytes_to_frames(substream->runtime, len);
substream        1270 sound/x86/intel_hdmi_audio.c 	len %= substream->runtime->buffer_size;
substream        1277 sound/x86/intel_hdmi_audio.c static int had_pcm_mmap(struct snd_pcm_substream *substream,
substream        1282 sound/x86/intel_hdmi_audio.c 			substream->dma_buffer.addr >> PAGE_SHIFT,
substream        1304 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream        1309 sound/x86/intel_hdmi_audio.c 	substream = had_substream_get(intelhaddata);
substream        1310 sound/x86/intel_hdmi_audio.c 	if (!substream)
substream        1319 sound/x86/intel_hdmi_audio.c 	retval = had_prog_n(substream->runtime->rate, &n_param, intelhaddata);
substream        1329 sound/x86/intel_hdmi_audio.c 	had_prog_cts(substream->runtime->rate, disp_samp_freq, link_rate,
substream        1343 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream        1364 sound/x86/intel_hdmi_audio.c 	substream = had_substream_get(intelhaddata);
substream        1365 sound/x86/intel_hdmi_audio.c 	if (substream) {
substream        1366 sound/x86/intel_hdmi_audio.c 		snd_pcm_stop_xrun(substream);
substream        1376 sound/x86/intel_hdmi_audio.c 	struct snd_pcm_substream *substream;
substream        1399 sound/x86/intel_hdmi_audio.c 	substream = had_substream_get(intelhaddata);
substream        1400 sound/x86/intel_hdmi_audio.c 	if (substream) {
substream        1401 sound/x86/intel_hdmi_audio.c 		snd_pcm_stop_xrun(substream);
substream          83 sound/x86/intel_hdmi_audio.h 	struct snd_pcm_substream *substream;
substream         242 sound/xen/xen_snd_front_alsa.c stream_get(struct snd_pcm_substream *substream)
substream         245 sound/xen/xen_snd_front_alsa.c 			snd_pcm_substream_chip(substream);
substream         248 sound/xen/xen_snd_front_alsa.c 	if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
substream         249 sound/xen/xen_snd_front_alsa.c 		stream = &pcm_instance->streams_pb[substream->number];
substream         251 sound/xen/xen_snd_front_alsa.c 		stream = &pcm_instance->streams_cap[substream->number];
substream         353 sound/xen/xen_snd_front_alsa.c static int alsa_open(struct snd_pcm_substream *substream)
substream         356 sound/xen/xen_snd_front_alsa.c 			snd_pcm_substream_chip(substream);
substream         357 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         358 sound/xen/xen_snd_front_alsa.c 	struct snd_pcm_runtime *runtime = substream->runtime;
substream         382 sound/xen/xen_snd_front_alsa.c 	stream->evt_pair->evt.u.evt.substream = substream;
substream         431 sound/xen/xen_snd_front_alsa.c static int alsa_close(struct snd_pcm_substream *substream)
substream         433 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         461 sound/xen/xen_snd_front_alsa.c static int alsa_hw_params(struct snd_pcm_substream *substream,
substream         464 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         502 sound/xen/xen_snd_front_alsa.c static int alsa_hw_free(struct snd_pcm_substream *substream)
substream         504 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         512 sound/xen/xen_snd_front_alsa.c static int alsa_prepare(struct snd_pcm_substream *substream)
substream         514 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         517 sound/xen/xen_snd_front_alsa.c 		struct snd_pcm_runtime *runtime = substream->runtime;
substream         535 sound/xen/xen_snd_front_alsa.c 						   snd_pcm_lib_buffer_bytes(substream),
substream         536 sound/xen/xen_snd_front_alsa.c 						   snd_pcm_lib_period_bytes(substream));
substream         546 sound/xen/xen_snd_front_alsa.c static int alsa_trigger(struct snd_pcm_substream *substream, int cmd)
substream         548 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         578 sound/xen/xen_snd_front_alsa.c 	struct snd_pcm_substream *substream = evtchnl->u.evt.substream;
substream         579 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         582 sound/xen/xen_snd_front_alsa.c 	cur_frame = bytes_to_frames(substream->runtime, pos_bytes);
substream         588 sound/xen/xen_snd_front_alsa.c 	new_hw_ptr = (new_hw_ptr + delta) % substream->runtime->buffer_size;
substream         592 sound/xen/xen_snd_front_alsa.c 	if (stream->out_frames > substream->runtime->period_size) {
substream         593 sound/xen/xen_snd_front_alsa.c 		stream->out_frames %= substream->runtime->period_size;
substream         594 sound/xen/xen_snd_front_alsa.c 		snd_pcm_period_elapsed(substream);
substream         598 sound/xen/xen_snd_front_alsa.c static snd_pcm_uframes_t alsa_pointer(struct snd_pcm_substream *substream)
substream         600 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         605 sound/xen/xen_snd_front_alsa.c static int alsa_pb_copy_user(struct snd_pcm_substream *substream,
substream         609 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         620 sound/xen/xen_snd_front_alsa.c static int alsa_pb_copy_kernel(struct snd_pcm_substream *substream,
substream         624 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         634 sound/xen/xen_snd_front_alsa.c static int alsa_cap_copy_user(struct snd_pcm_substream *substream,
substream         638 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         652 sound/xen/xen_snd_front_alsa.c static int alsa_cap_copy_kernel(struct snd_pcm_substream *substream,
substream         656 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream         671 sound/xen/xen_snd_front_alsa.c static int alsa_pb_fill_silence(struct snd_pcm_substream *substream,
substream         675 sound/xen/xen_snd_front_alsa.c 	struct xen_snd_front_pcm_stream_info *stream = stream_get(substream);
substream          71 sound/xen/xen_snd_front_evtchnl.h 			struct snd_pcm_substream *substream;