Lines Matching refs:is_capture
111 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_open() local
116 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open()
137 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_start() local
140 err = lx_stream_set_format(chip, runtime, 0, is_capture); in lx_hardware_start()
147 err = lx_pipe_start(chip, 0, is_capture); in lx_hardware_start()
154 err = lx_pipe_wait_for_start(chip, 0, is_capture); in lx_hardware_start()
168 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_stop() local
171 err = lx_pipe_pause(chip, 0, is_capture); in lx_hardware_stop()
178 err = lx_pipe_wait_for_idle(chip, 0, is_capture); in lx_hardware_stop()
185 err = lx_pipe_stop(chip, 0, is_capture); in lx_hardware_stop()
199 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_hardware_close() local
202 err = lx_pipe_release(chip, 0, is_capture); in lx_hardware_close()
282 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_stream_pointer() local
284 struct lx_stream *lx_stream = is_capture ? &chip->capture_stream : in lx_pcm_stream_pointer()
301 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_prepare() local
307 if (chip->hardware_running[is_capture]) { in lx_pcm_prepare()
338 chip->hardware_running[is_capture] = 1; in lx_pcm_prepare()
351 struct snd_pcm_hw_params *hw_params, int is_capture) in lx_pcm_hw_params() argument
364 if (is_capture) in lx_pcm_hw_params()
389 int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_hw_free() local
394 if (chip->hardware_running[is_capture]) { in lx_pcm_hw_free()
409 chip->hardware_running[is_capture] = 0; in lx_pcm_hw_free()
414 if (is_capture) in lx_pcm_hw_free()
427 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_start() local
446 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, in lx_trigger_start()
451 err = lx_buffer_give(chip, 0, is_capture, period_bytes, in lx_trigger_start()
460 err = lx_buffer_ask(chip, 0, is_capture, &needed, &freed, size_array); in lx_trigger_start()
464 err = lx_stream_start(chip, 0, is_capture); in lx_trigger_start()
475 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_stop() local
479 err = lx_stream_stop(chip, 0, is_capture); in lx_trigger_stop()
536 const int is_capture = (substream->stream == SNDRV_PCM_STREAM_CAPTURE); in lx_pcm_trigger() local
537 struct lx_stream *stream = is_capture ? &chip->capture_stream : in lx_pcm_trigger()
864 chip->capture_stream.is_capture = 1; in lx_pcm_create()