Lines Matching refs:is_capture

101 	int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE);  in lx_hardware_open()  local
106 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open()
127 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_start() local
130 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
137 err = lx_pipe_start(chip, 0, is_capture); in lx_hardware_start()
144 err = lx_pipe_wait_for_start(chip, 0, is_capture); in lx_hardware_start()
158 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_stop() local
161 err = lx_pipe_pause(chip, 0, is_capture); in lx_hardware_stop()
168 err = lx_pipe_wait_for_idle(chip, 0, is_capture); in lx_hardware_stop()
175 err = lx_pipe_stop(chip, 0, is_capture); in lx_hardware_stop()
189 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_close() local
192 err = lx_pipe_release(chip, 0, is_capture); in lx_hardware_close()
271 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_stream_pointer() local
273 struct lx_stream *lx_stream = is_capture ? &chip->capture_stream : in lx_pcm_stream_pointer()
290 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_prepare() local
296 if (chip->hardware_running[is_capture]) { in lx_pcm_prepare()
327 chip->hardware_running[is_capture] = 1; in lx_pcm_prepare()
340 struct snd_pcm_hw_params *hw_params, int is_capture) in lx_pcm_hw_params() argument
348 if (is_capture) in lx_pcm_hw_params()
373 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_hw_free() local
378 if (chip->hardware_running[is_capture]) { in lx_pcm_hw_free()
393 chip->hardware_running[is_capture] = 0; in lx_pcm_hw_free()
396 if (is_capture) in lx_pcm_hw_free()
409 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_start() local
428 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, in lx_trigger_start()
433 err = lx_buffer_give(chip, 0, is_capture, period_bytes, in lx_trigger_start()
442 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, size_array); in lx_trigger_start()
446 err = lx_stream_start(chip, 0, is_capture); in lx_trigger_start()
457 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_stop() local
461 err = lx_stream_stop(chip, 0, is_capture); in lx_trigger_stop()
518 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_trigger() local
519 struct lx_stream *stream = is_capture ? &chip->capture_stream : in lx_pcm_trigger()
823 chip->capture_stream.is_capture = 1; in lx_pcm_create()