Lines Matching refs:lx_stream
275 struct lx_stream *lx_stream = is_capture ? &chip->capture_stream : in lx_pcm_stream_pointer() local
281 pos = lx_stream->frame_pos * substream->runtime->period_size; in lx_pcm_stream_pointer()
408 static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream) in lx_trigger_start() argument
410 struct snd_pcm_substream *substream = lx_stream->stream; in lx_trigger_start()
411 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_start()
452 lx_stream->status = LX_STREAM_STATUS_RUNNING; in lx_trigger_start()
454 lx_stream->frame_pos = 0; in lx_trigger_start()
457 static void lx_trigger_stop(struct lx6464es *chip, struct lx_stream *lx_stream) in lx_trigger_stop() argument
459 const unsigned int is_capture = lx_stream->is_capture; in lx_trigger_stop()
467 lx_stream->status = LX_STREAM_STATUS_FREE; in lx_trigger_stop()
472 struct lx_stream *lx_stream) in lx_trigger_dispatch_stream() argument
474 switch (lx_stream->status) { in lx_trigger_dispatch_stream()
476 lx_trigger_start(chip, lx_stream); in lx_trigger_dispatch_stream()
480 lx_trigger_stop(chip, lx_stream); in lx_trigger_dispatch_stream()
489 struct lx_stream *lx_stream, int cmd) in lx_pcm_trigger_dispatch() argument
496 lx_stream->status = LX_STREAM_STATUS_SCHEDULE_RUN; in lx_pcm_trigger_dispatch()
500 lx_stream->status = LX_STREAM_STATUS_SCHEDULE_STOP; in lx_pcm_trigger_dispatch()
521 struct lx_stream *stream = is_capture ? &chip->capture_stream : in lx_pcm_trigger()