Lines Matching refs:ret_val
238 int ret_val = 0; in sst_platform_alloc_stream() local
250 ret_val = sst_fill_stream_params(substream, ctx, &str_params, false); in sst_platform_alloc_stream()
251 if (ret_val < 0) in sst_platform_alloc_stream()
252 return ret_val; in sst_platform_alloc_stream()
256 ret_val = stream->ops->open(sst->dev, &str_params); in sst_platform_alloc_stream()
257 if (ret_val <= 0) in sst_platform_alloc_stream()
258 return ret_val; in sst_platform_alloc_stream()
261 return ret_val; in sst_platform_alloc_stream()
286 int ret_val; in sst_platform_init_stream() local
294 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream()
295 if (ret_val) in sst_platform_init_stream()
296 dev_err(rtd->dev, "control_set ret error %d\n", ret_val); in sst_platform_init_stream()
297 return ret_val; in sst_platform_init_stream()
314 int ret_val = 0; in sst_media_open() local
328 ret_val = -ENODEV; in sst_media_open()
340 ret_val = power_up_sst(stream); in sst_media_open()
341 if (ret_val < 0) in sst_media_open()
342 return ret_val; in sst_media_open()
353 return ret_val; in sst_media_open()
376 int ret_val = 0, str_id; in sst_media_prepare() local
381 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare()
382 return ret_val; in sst_media_prepare()
385 ret_val = sst_platform_alloc_stream(substream, dai); in sst_media_prepare()
386 if (ret_val <= 0) in sst_media_prepare()
387 return ret_val; in sst_media_prepare()
391 ret_val = sst_platform_init_stream(substream); in sst_media_prepare()
392 if (ret_val) in sst_media_prepare()
393 return ret_val; in sst_media_prepare()
395 return ret_val; in sst_media_prepare()
612 int ret_val = 0, str_id; in sst_platform_pcm_trigger() local
627 ret_val = stream->ops->stream_start(sst->dev, str_id); in sst_platform_pcm_trigger()
632 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_platform_pcm_trigger()
638 ret_val = stream->ops->stream_pause(sst->dev, str_id); in sst_platform_pcm_trigger()
644 ret_val = stream->ops->stream_pause_release(sst->dev, str_id); in sst_platform_pcm_trigger()
650 if (!ret_val) in sst_platform_pcm_trigger()
653 return ret_val; in sst_platform_pcm_trigger()
661 int ret_val, status; in sst_platform_pcm_pointer() local
670 ret_val = stream->ops->stream_read_tstamp(sst->dev, str_info); in sst_platform_pcm_pointer()
671 if (ret_val) { in sst_platform_pcm_pointer()
672 dev_err(rtd->dev, "sst: error code = %d\n", ret_val); in sst_platform_pcm_pointer()
673 return ret_val; in sst_platform_pcm_pointer()