/sound/soc/intel/atom/sst/ |
D | sst_drv_interface.c | 43 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id) in free_stream_context() argument 48 stream = get_stream_info(ctx, str_id); in free_stream_context() 51 ret = sst_free_stream(ctx, str_id); in free_stream_context() 53 sst_clean_stream(&ctx->streams[str_id]); in free_stream_context() 56 dev_err(ctx->dev, "we tried to free stream context %d which was freed!!!\n", str_id); in free_stream_context() 195 int str_id, retval; in sst_cdev_open() local 205 str_id = sst_get_stream(ctx, str_params); in sst_cdev_open() 206 if (str_id > 0) { in sst_cdev_open() 207 dev_dbg(dev, "stream allocated in sst_cdev_open %d\n", str_id); in sst_cdev_open() 208 stream = &ctx->streams[str_id]; in sst_cdev_open() [all …]
|
D | sst_stream.c | 34 int i, num_ch, str_id; in sst_alloc_stream_mrfld() local 39 str_id = str_params->stream_id; in sst_alloc_stream_mrfld() 40 str_info = get_stream_info(sst_drv_ctx, str_id); in sst_alloc_stream_mrfld() 72 sst_drv_ctx->streams[str_id].status = STREAM_INIT; in sst_alloc_stream_mrfld() 73 sst_drv_ctx->streams[str_id].prev = STREAM_UN_INIT; in sst_alloc_stream_mrfld() 74 sst_drv_ctx->streams[str_id].pipe_id = str_params->device_type; in sst_alloc_stream_mrfld() 75 sst_drv_ctx->streams[str_id].task_id = str_params->task; in sst_alloc_stream_mrfld() 76 sst_drv_ctx->streams[str_id].num_ch = num_ch; in sst_alloc_stream_mrfld() 80 sst_drv_ctx->tstamp + (str_id * sizeof(fw_tstamp)); in sst_alloc_stream_mrfld() 83 sst_drv_ctx->tstamp + (str_id * sizeof(fw_tstamp)); in sst_alloc_stream_mrfld() [all …]
|
D | sst.h | 430 int sst_realloc_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 435 int sst_start_stream(struct intel_sst_drv *sst_drv_ctx, int str_id); 438 int sst_set_stream_param(int str_id, struct snd_sst_params *str_param); 439 int sst_set_metadata(int str_id, char *params); 446 int str_id, bool partial_drain); 465 int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id); 469 void sst_cdev_fragment_elapsed(struct intel_sst_drv *ctx, int str_id); 470 int sst_send_sync_msg(int ipc, int str_id); 494 int sst_validate_strid(struct intel_sst_drv *sst_drv_ctx, int str_id); 496 int str_id);
|
D | sst_ipc.c | 253 int str_id; in process_fw_async_msg() local 267 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 268 if (str_id > 0) { in process_fw_async_msg() 272 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg() 285 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 286 if (str_id > 0) { in process_fw_async_msg() 287 stream = &sst_drv_ctx->streams[str_id]; in process_fw_async_msg() 306 str_id = get_stream_id_mrfld(sst_drv_ctx, pipe_id); in process_fw_async_msg() 307 if (str_id > 0) in process_fw_async_msg() 310 pipe_id, str_id); in process_fw_async_msg()
|
D | sst_pvt.c | 356 struct intel_sst_drv *sst_drv_ctx, int str_id) in sst_validate_strid() argument 358 if (str_id <= 0 || str_id > sst_drv_ctx->info.max_streams) { in sst_validate_strid() 361 str_id, sst_drv_ctx->info.max_streams); in sst_validate_strid() 369 struct intel_sst_drv *sst_drv_ctx, int str_id) in get_stream_info() argument 371 if (sst_validate_strid(sst_drv_ctx, str_id)) in get_stream_info() 373 return &sst_drv_ctx->streams[str_id]; in get_stream_info()
|
/sound/soc/intel/atom/ |
D | sst-mfld-platform.h | 37 int str_id; member 100 int (*stream_start)(struct device *dev, unsigned int str_id); 101 int (*stream_drop)(struct device *dev, unsigned int str_id); 102 int (*stream_drain)(struct device *dev, unsigned int str_id); 103 int (*stream_partial_drain)(struct device *dev, unsigned int str_id); 104 int (*stream_pause)(struct device *dev, unsigned int str_id); 105 int (*stream_pause_release)(struct device *dev, unsigned int str_id); 107 int (*tstamp)(struct device *dev, unsigned int str_id, 109 int (*ack)(struct device *dev, unsigned int str_id, 111 int (*close)(struct device *dev, unsigned int str_id); [all …]
|
D | sst-mfld-platform-pcm.c | 246 stream->stream_info.str_id = str_params.stream_id; in sst_platform_alloc_stream() 326 stream->stream_info.str_id = 0; in sst_media_open() 352 int str_id; in sst_media_close() local 357 str_id = stream->stream_info.str_id; in sst_media_close() 358 if (str_id) in sst_media_close() 359 stream->ops->close(sst->dev, str_id); in sst_media_close() 368 int ret_val = 0, str_id; in sst_media_prepare() local 371 str_id = stream->stream_info.str_id; in sst_media_prepare() 372 if (stream->stream_info.str_id) { in sst_media_prepare() 373 ret_val = stream->ops->stream_drop(sst->dev, str_id); in sst_media_prepare() [all …]
|
D | sst-mfld-platform-compress.c | 78 int ret_val = 0, str_id; in sst_platform_compr_free() local 85 str_id = stream->id; in sst_platform_compr_free() 86 if (str_id) in sst_platform_compr_free() 87 ret_val = stream->compr_ops->close(sst->dev, str_id); in sst_platform_compr_free()
|
D | sst-mfld-dsp.h | 217 u32 str_id:5; member 465 u8 str_id; member
|
/sound/soc/sprd/ |
D | sprd-pcm-dma.h | 43 int (*open)(int str_id, struct sprd_compr_callback *cb); 44 int (*close)(int str_id); 45 int (*start)(int str_id); 46 int (*stop)(int str_id); 47 int (*pause)(int str_id); 48 int (*pause_release)(int str_id); 50 int (*set_params)(int str_id, struct sprd_compr_params *params);
|
/sound/soc/intel/baytrail/ |
D | sst-baytrail-ipc.c | 150 int str_id; member 176 static inline u64 sst_byt_header(int msg_id, int data, bool large, int str_id) in sst_byt_header() argument 178 return IPC_HEADER_MSG_ID(msg_id) | IPC_HEADER_STR_ID(str_id) | in sst_byt_header() 204 if (stream->str_id == stream_id) in sst_byt_get_stream() 355 stream->str_id = id; in sst_byt_stream_new() 416 true, stream->str_id); in sst_byt_stream_commit() 444 0, false, stream->str_id); in sst_byt_stream_free() 448 stream->str_id); in sst_byt_stream_free() 485 true, stream->str_id); in sst_byt_stream_start() 492 stream->str_id); in sst_byt_stream_start() [all …]
|