Lines Matching refs:is_capture

103 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);  in lx_hardware_open()  local
108 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open()
129 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_start() local
132 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
139 err = lx_pipe_start(chip, 0, is_capture); in lx_hardware_start()
146 err = lx_pipe_wait_for_start(chip, 0, is_capture); in lx_hardware_start()
160 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_stop() local
163 err = lx_pipe_pause(chip, 0, is_capture); in lx_hardware_stop()
170 err = lx_pipe_wait_for_idle(chip, 0, is_capture); in lx_hardware_stop()
177 err = lx_pipe_stop(chip, 0, is_capture); in lx_hardware_stop()
191 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_close() local
194 err = lx_pipe_release(chip, 0, is_capture); in lx_hardware_close()
273 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_stream_pointer() local
275 struct lx_stream *lx_stream = is_capture ? &chip->capture_stream : in lx_pcm_stream_pointer()
292 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_prepare() local
298 if (chip->hardware_running[is_capture]) { in lx_pcm_prepare()
329 chip->hardware_running[is_capture] = 1; in lx_pcm_prepare()
342 struct snd_pcm_hw_params *hw_params, int is_capture) in lx_pcm_hw_params() argument
355 if (is_capture) in lx_pcm_hw_params()
380 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_hw_free() local
385 if (chip->hardware_running[is_capture]) { in lx_pcm_hw_free()
400 chip->hardware_running[is_capture] = 0; in lx_pcm_hw_free()
405 if (is_capture) in lx_pcm_hw_free()
418 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_start() local
437 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, in lx_trigger_start()
442 err = lx_buffer_give(chip, 0, is_capture, period_bytes, in lx_trigger_start()
451 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, size_array); in lx_trigger_start()
455 err = lx_stream_start(chip, 0, is_capture); in lx_trigger_start()
466 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_stop() local
470 err = lx_stream_stop(chip, 0, is_capture); in lx_trigger_stop()
527 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_trigger() local
528 struct lx_stream *stream = is_capture ? &chip->capture_stream : in lx_pcm_trigger()
853 chip->capture_stream.is_capture = 1; in lx_pcm_create()