Home
last modified time | relevance | path

Searched refs:hd (Results 1 – 8 of 8) sorted by relevance

/sof-3.4.0/src/audio/
Dhost-zephyr.c57 static uint32_t host_dma_get_split(struct host_data *hd, uint32_t bytes) in host_dma_get_split() argument
59 struct dma_sg_elem *local_elem = hd->config.elem_array.elems; in host_dma_get_split()
63 if (local_elem->src + bytes > hd->source->current_end) in host_dma_get_split()
65 (hd->source->current_end - local_elem->src); in host_dma_get_split()
67 if (local_elem->dest + bytes > hd->sink->current_end) in host_dma_get_split()
69 (hd->sink->current_end - local_elem->dest); in host_dma_get_split()
77 static int host_dma_set_config_and_copy(struct host_data *hd, struct comp_dev *dev, uint32_t bytes) in host_dma_set_config_and_copy() argument
79 struct dma_sg_elem *local_elem = hd->config.elem_array.elems; in host_dma_set_config_and_copy()
85 ret = dma_config(hd->chan->dma->z_dev, hd->chan->index, &hd->z_config); in host_dma_set_config_and_copy()
93 .channel = hd->chan, in host_dma_set_config_and_copy()
[all …]
Dhost-legacy.c121 static uint32_t host_dma_get_split(struct host_data *hd, uint32_t bytes) in host_dma_get_split() argument
123 struct dma_sg_elem *local_elem = hd->config.elem_array.elems; in host_dma_get_split()
127 if (local_elem->src + bytes > hd->source->current_end) in host_dma_get_split()
129 (hd->source->current_end - local_elem->src); in host_dma_get_split()
131 if (local_elem->dest + bytes > hd->sink->current_end) in host_dma_get_split()
133 (hd->sink->current_end - local_elem->dest); in host_dma_get_split()
143 struct host_data *hd = comp_get_drvdata(dev); in host_dma_set_config_and_copy() local
144 struct dma_sg_elem *local_elem = hd->config.elem_array.elems; in host_dma_set_config_and_copy()
150 ret = dma_set_config_legacy(hd->chan, &hd->config); in host_dma_set_config_and_copy()
157 ret = dma_copy_legacy(hd->chan, bytes, DMA_COPY_ONE_SHOT | DMA_COPY_BLOCKING); in host_dma_set_config_and_copy()
[all …]
Dkpb.c81 struct history_data hd; /** data related to history buffer */ member
462 kpb->hd.c_hb = NULL; in kpb_new()
505 kpb->hd.c_hb = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, in kpb_allocate_history_buffer()
507 if (!kpb->hd.c_hb) in kpb_allocate_history_buffer()
509 kpb->hd.c_hb->next = kpb->hd.c_hb; in kpb_allocate_history_buffer()
510 kpb->hd.c_hb->prev = kpb->hd.c_hb; in kpb_allocate_history_buffer()
511 hb = kpb->hd.c_hb; in kpb_allocate_history_buffer()
538 hb->next = kpb->hd.c_hb; in kpb_allocate_history_buffer()
550 new_hb->next = kpb->hd.c_hb; in kpb_allocate_history_buffer()
554 kpb->hd.c_hb->prev = new_hb; in kpb_allocate_history_buffer()
[all …]
/sof-3.4.0/src/include/sof/audio/
Dhost_copier.h26 typedef int (*host_copy_func)(struct host_data *hd, struct comp_dev *dev);
97 int host_zephyr_new(struct host_data *hd, struct comp_dev *dev,
100 void host_zephyr_free(struct host_data *hd);
102 int host_zephyr_prepare(struct host_data *hd);
104 void host_zephyr_reset(struct host_data *hd, uint16_t state);
106 int host_zephyr_trigger(struct host_data *hd, struct comp_dev *dev, int cmd);
108 int host_zephyr_params(struct host_data *hd, struct comp_dev *dev,
111 int host_zephyr_copy(struct host_data *hd, struct comp_dev *dev);
113 void host_update_position(struct host_data *hd, struct comp_dev *dev, uint32_t bytes);
115 void host_one_shot_cb(struct host_data *hd, uint32_t bytes);
[all …]
/sof-3.4.0/tools/tune/eq/
Deq_blob_plot.m75 hd = eq_fir_blob_decode(blob); variable
76 eq.m = zeros(length(eq.f), hd.channels_in_config);
77 for i = 1:hd.channels_in_config
78 decoded_eq = eq_fir_blob_decode(blob, hd.assign_response(i));
91 hd = eq_iir_blob_decode(blob); variable
92 eq.m = zeros(length(eq.f), hd.channels_in_config);
93 for i = 1:hd.channels_in_config
94 decoded_eq = eq_iir_blob_decode(blob, hd.assign_response(i));
114 channel_legends(hd.channels_in_config);
125 channel_legends(hd.channels_in_config);
/sof-3.4.0/src/audio/copier/
Dcopier.c212 struct host_data *hd; in create_host() local
243 hd = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, sizeof(*hd)); in create_host()
244 if (!hd) in create_host()
247 ret = host_zephyr_new(hd, parent_dev, &ipc_host, config->id); in create_host()
264 cd->hd = hd; in create_host()
269 host_zephyr_free(hd); in create_host()
271 rfree(hd); in create_host()
714 host_zephyr_free(cd->hd); in copier_free()
715 rfree(cd->hd); in copier_free()
868 ret = host_zephyr_prepare(cd->hd); in copier_prepare()
[all …]
/sof-3.4.0/src/include/ipc4/
Dcopier.h264 struct host_data *hd; member
/sof-3.4.0/tools/tune/dmic/
Ddmic_fir.m36 hd = (1 - z_cic_lo.^(-1)).^5; variable
38 h_cic = (1/g_cic) .* hi .* hd;