Lines Matching refs:cstream

29 static int soc_compr_open(struct snd_compr_stream *cstream)  in soc_compr_open()  argument
31 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_open()
38 ret = platform->driver->compr_ops->open(cstream); in soc_compr_open()
47 ret = rtd->dai_link->compr_ops->startup(cstream); in soc_compr_open()
54 snd_soc_runtime_activate(rtd, cstream->direction); in soc_compr_open()
62 platform->driver->compr_ops->free(cstream); in soc_compr_open()
68 static int soc_compr_open_fe(struct snd_compr_stream *cstream) in soc_compr_open_fe() argument
70 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_open_fe()
78 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_open_fe()
86 ret = platform->driver->compr_ops->open(cstream); in soc_compr_open_fe()
95 ret = fe->dai_link->compr_ops->startup(cstream); in soc_compr_open_fe()
141 fe->dai_link->compr_ops->shutdown(cstream); in soc_compr_open_fe()
144 platform->driver->compr_ops->free(cstream); in soc_compr_open_fe()
179 static int soc_compr_free(struct snd_compr_stream *cstream) in soc_compr_free() argument
181 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_free()
189 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_free()
196 snd_soc_dai_digital_mute(codec_dai, 1, cstream->direction); in soc_compr_free()
206 rtd->dai_link->compr_ops->shutdown(cstream); in soc_compr_free()
209 platform->driver->compr_ops->free(cstream); in soc_compr_free()
211 if (cstream->direction == SND_COMPRESS_PLAYBACK) { in soc_compr_free()
233 static int soc_compr_free_fe(struct snd_compr_stream *cstream) in soc_compr_free_fe() argument
235 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_free_fe()
242 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_free_fe()
271 fe->dai_link->compr_ops->shutdown(cstream); in soc_compr_free_fe()
274 platform->driver->compr_ops->free(cstream); in soc_compr_free_fe()
280 static int soc_compr_trigger(struct snd_compr_stream *cstream, int cmd) in soc_compr_trigger() argument
283 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_trigger()
291 ret = platform->driver->compr_ops->trigger(cstream, cmd); in soc_compr_trigger()
298 snd_soc_dai_digital_mute(codec_dai, 0, cstream->direction); in soc_compr_trigger()
301 snd_soc_dai_digital_mute(codec_dai, 1, cstream->direction); in soc_compr_trigger()
310 static int soc_compr_trigger_fe(struct snd_compr_stream *cstream, int cmd) in soc_compr_trigger_fe() argument
312 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_trigger_fe()
321 return platform->driver->compr_ops->trigger(cstream, in soc_compr_trigger_fe()
325 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_trigger_fe()
334 ret = platform->driver->compr_ops->trigger(cstream, cmd); in soc_compr_trigger_fe()
364 static int soc_compr_set_params(struct snd_compr_stream *cstream, in soc_compr_set_params() argument
367 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_set_params()
380 ret = platform->driver->compr_ops->set_params(cstream, params); in soc_compr_set_params()
386 ret = rtd->dai_link->compr_ops->set_params(cstream); in soc_compr_set_params()
391 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_set_params()
411 static int soc_compr_set_params_fe(struct snd_compr_stream *cstream, in soc_compr_set_params_fe() argument
414 struct snd_soc_pcm_runtime *fe = cstream->private_data; in soc_compr_set_params_fe()
419 if (cstream->direction == SND_COMPRESS_PLAYBACK) in soc_compr_set_params_fe()
427 ret = platform->driver->compr_ops->set_params(cstream, params); in soc_compr_set_params_fe()
433 ret = fe->dai_link->compr_ops->set_params(cstream); in soc_compr_set_params_fe()
465 static int soc_compr_get_params(struct snd_compr_stream *cstream, in soc_compr_get_params() argument
468 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_get_params()
475 ret = platform->driver->compr_ops->get_params(cstream, params); in soc_compr_get_params()
481 static int soc_compr_get_caps(struct snd_compr_stream *cstream, in soc_compr_get_caps() argument
484 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_get_caps()
491 ret = platform->driver->compr_ops->get_caps(cstream, caps); in soc_compr_get_caps()
497 static int soc_compr_get_codec_caps(struct snd_compr_stream *cstream, in soc_compr_get_codec_caps() argument
500 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_get_codec_caps()
507 ret = platform->driver->compr_ops->get_codec_caps(cstream, codec); in soc_compr_get_codec_caps()
513 static int soc_compr_ack(struct snd_compr_stream *cstream, size_t bytes) in soc_compr_ack() argument
515 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_ack()
522 ret = platform->driver->compr_ops->ack(cstream, bytes); in soc_compr_ack()
528 static int soc_compr_pointer(struct snd_compr_stream *cstream, in soc_compr_pointer() argument
531 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_pointer()
537 platform->driver->compr_ops->pointer(cstream, tstamp); in soc_compr_pointer()
543 static int soc_compr_copy(struct snd_compr_stream *cstream, in soc_compr_copy() argument
546 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_copy()
553 ret = platform->driver->compr_ops->copy(cstream, buf, count); in soc_compr_copy()
559 static int soc_compr_set_metadata(struct snd_compr_stream *cstream, in soc_compr_set_metadata() argument
562 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_set_metadata()
567 ret = platform->driver->compr_ops->set_metadata(cstream, metadata); in soc_compr_set_metadata()
572 static int soc_compr_get_metadata(struct snd_compr_stream *cstream, in soc_compr_get_metadata() argument
575 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_get_metadata()
580 ret = platform->driver->compr_ops->get_metadata(cstream, metadata); in soc_compr_get_metadata()