Home
last modified time | relevance | path

Searched refs:dai_id (Results 1 – 25 of 46) sorted by relevance

12

/openbmc/linux/sound/soc/qcom/
H A Dlpass-lpaif-reg.h148 ((dai_id == LPASS_DP_RX) ? \
158 (is_cdc_dma_port(dai_id) ? \
162 (is_cdc_dma_port(dai_id) ? \
166 (is_cdc_dma_port(dai_id) ? \
170 (is_cdc_dma_port(dai_id) ? \
174 (is_cdc_dma_port(dai_id) ? \
178 (is_cdc_dma_port(dai_id) ? \
183 (is_rxtx_cdc_dma_port(dai_id) ? \
242 (is_rxtx_cdc_dma_port(dai_id) ? LPAIF_CDC_RXTX_RDMA##reg##_REG(v, chan, dai_id) : \
246 (is_rxtx_cdc_dma_port(dai_id) ? LPAIF_CDC_RXTX_WRDMA##reg##_REG(v, chan, dai_id) : \
[all …]
H A Dlpass-platform.c204 component->id = dai_id; in lpass_platform_pcmops_open()
222 switch (dai_id) { in lpass_platform_pcmops_open()
245 switch (dai_id) { in lpass_platform_pcmops_open()
296 switch (dai_id) { in lpass_platform_pcmops_close()
456 switch (dai_id) { in lpass_platform_pcmops_hw_params()
692 switch (dai_id) { in lpass_platform_pcmops_trigger()
785 switch (dai_id) { in lpass_platform_pcmops_trigger()
939 switch (dai_id) { in lpass_dma_interrupt_handler()
1146 switch (dai_id) { in lpass_platform_prealloc_cdc_dma_buffer()
1194 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_suspend()
[all …]
H A Dlpass-cdc-dma.c41 unsigned int dai_id = cpu_dai->driver->id; in __lpass_get_dmactl_handle() local
43 switch (dai_id) { in __lpass_get_dmactl_handle()
57 dev_err(soc_runtime->dev, "invalid dai id for dma ctl: %d\n", dai_id); in __lpass_get_dmactl_handle()
62 static int __lpass_get_codec_dma_intf_type(int dai_id) in __lpass_get_codec_dma_intf_type() argument
66 switch (dai_id) { in __lpass_get_codec_dma_intf_type()
130 unsigned int dai_id = cpu_dai->driver->id; in __lpass_platform_codec_intf_init() local
132 codec_intf = __lpass_get_codec_dma_intf_type(dai_id); in __lpass_platform_codec_intf_init()
H A Dlpass.h41 static inline bool is_cdc_dma_port(int dai_id) in is_cdc_dma_port() argument
43 switch (dai_id) { in is_cdc_dma_port()
52 static inline bool is_rxtx_cdc_dma_port(int dai_id) in is_rxtx_cdc_dma_port() argument
54 switch (dai_id) { in is_rxtx_cdc_dma_port()
381 int (*alloc_dma_channel)(struct lpass_data *data, int direction, unsigned int dai_id);
382 int (*free_dma_channel)(struct lpass_data *data, int ch, unsigned int dai_id);
H A Dlpass-sc7180.c77 int direction, unsigned int dai_id) in sc7180_lpass_alloc_dma_channel() argument
82 if (dai_id == LPASS_DP_RX) { in sc7180_lpass_alloc_dma_channel()
113 static int sc7180_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7180_lpass_free_dma_channel() argument
115 if (dai_id == LPASS_DP_RX) in sc7180_lpass_free_dma_channel()
H A Dlpass-cpu.c1110 int ret, i, dai_id; in asoc_qcom_lpass_cpu_platform_probe() local
1224 dai_id = variant->dai_driver[i].id; in asoc_qcom_lpass_cpu_platform_probe()
1225 if (dai_id == LPASS_DP_RX || is_cdc_dma_port(dai_id)) in asoc_qcom_lpass_cpu_platform_probe()
1228 drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, in asoc_qcom_lpass_cpu_platform_probe()
1230 drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, in asoc_qcom_lpass_cpu_platform_probe()
1232 if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { in asoc_qcom_lpass_cpu_platform_probe()
1236 PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); in asoc_qcom_lpass_cpu_platform_probe()
1237 return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); in asoc_qcom_lpass_cpu_platform_probe()
1239 if (drvdata->mi2s_playback_sd_mode[dai_id] == in asoc_qcom_lpass_cpu_platform_probe()
1241 variant->dai_driver[dai_id].playback.channels_min = 4; in asoc_qcom_lpass_cpu_platform_probe()
[all …]
H A Dlpass-ipq806x.c98 static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata, int dir, unsigned int dai_id) in ipq806x_lpass_alloc_dma_channel() argument
106 static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in ipq806x_lpass_free_dma_channel() argument
H A Dlpass-sc7280.c111 int direction, unsigned int dai_id) in sc7280_lpass_alloc_dma_channel() argument
116 switch (dai_id) { in sc7280_lpass_alloc_dma_channel()
173 static int sc7280_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7280_lpass_free_dma_channel() argument
175 switch (dai_id) { in sc7280_lpass_free_dma_channel()
H A Dlpass-apq8016.c124 int direction, unsigned int dai_id) in apq8016_lpass_alloc_dma_channel() argument
150 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in apq8016_lpass_free_dma_channel() argument
/openbmc/linux/sound/soc/mediatek/mt8188/
H A Dmt8188-dai-etdm.c158 switch (dai_id) { in get_etdm_reg()
208 switch (dai_id) { in get_etdm_dir()
228 switch (dai_id) { in is_valid_etdm_dai()
283 int dai_id; in get_etdm_cowork_master_id() local
293 return dai_id; in get_etdm_cowork_master_id()
298 switch (dai_id) { in mtk_dai_etdm_get_cg_id_by_dai_id()
318 switch (dai_id) { in mtk_dai_etdm_get_clk_id_by_dai_id()
337 switch (dai_id) { in mtk_dai_etdm_get_clkdiv_id_by_dai_id()
2279 int dai_id; in mtk_dai_etdm_set_sysclk() local
2302 int dai_id; in mtk_dai_etdm_set_tdm_slot() local
[all …]
/openbmc/linux/sound/soc/mediatek/mt8195/
H A Dmt8195-dai-etdm.c199 switch (dai_id) { in get_etdm_reg()
249 switch (dai_id) { in get_etdm_dir()
304 int dai_id; in get_etdm_cowork_master_id() local
313 dai_id = dai->id; in get_etdm_cowork_master_id()
315 return dai_id; in get_etdm_cowork_master_id()
1428 switch (dai_id) { in mt8195_etdm_sync_mode_configure()
1467 switch (dai_id) { in mtk_dai_etdm_get_cg_id_by_dai_id()
1497 switch (dai_id) { in mtk_dai_etdm_get_clk_id_by_dai_id()
1966 int dai_id) in mtk_dai_etdm_configure() argument
2193 int dai_id; in mtk_dai_etdm_set_sysclk() local
[all …]
H A Dmt8195-dai-adda.c358 int dai_id; in get_adda_priv_by_name() local
361 dai_id = MT8195_AFE_IO_UL_SRC1; in get_adda_priv_by_name()
363 dai_id = MT8195_AFE_IO_UL_SRC2; in get_adda_priv_by_name()
365 dai_id = MT8195_AFE_IO_DL_SRC; in get_adda_priv_by_name()
369 return afe_priv->dai_priv[dai_id]; in get_adda_priv_by_name()
/openbmc/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-dai-tdm.c106 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_en_event() local
107 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_en_event()
133 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_mck_en_event() local
134 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_mck_en_event()
137 __func__, w->name, event, dai_id); in mtk_tdm_mck_en_event()
205 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_mclk_connect() local
218 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_mclk_apll_connect() local
235 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_hd_connect() local
248 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_apll_connect() local
278 int dai_id = get_tdm_id_by_name(kcontrol->id.name); in mt8186_tdm_hd_get() local
[all …]
H A Dmt8186-dai-adda.c76 int dai_id; in get_adda_priv_by_name() local
79 dai_id = MT8186_DAI_ADDA; in get_adda_priv_by_name()
83 return afe_priv->dai_priv[dai_id]; in get_adda_priv_by_name()
/openbmc/linux/sound/soc/amd/acp/
H A Damd.h138 int dai_id; member
224 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument
229 switch (dai_id) { in acp_get_byte_count()
243 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
247 switch (dai_id) { in acp_get_byte_count()
265 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
276 static inline void acp_set_i2s_clk(struct acp_dev_data *adata, int dai_id) in acp_set_i2s_clk() argument
281 switch (dai_id) { in acp_set_i2s_clk()
H A Dacp-legacy-common.c198 tdm_fmt = adata->tdm_tx_fmt[stream->dai_id - 1]; in restore_acp_i2s_params()
199 switch (stream->dai_id) { in restore_acp_i2s_params()
213 pr_err("Invalid dai id %x\n", stream->dai_id); in restore_acp_i2s_params()
216 val = adata->xfer_tx_resolution[stream->dai_id - 1] << 3; in restore_acp_i2s_params()
218 tdm_fmt = adata->tdm_rx_fmt[stream->dai_id - 1]; in restore_acp_i2s_params()
219 switch (stream->dai_id) { in restore_acp_i2s_params()
233 pr_err("Invalid dai id %x\n", stream->dai_id); in restore_acp_i2s_params()
236 val = adata->xfer_rx_resolution[stream->dai_id - 1] << 3; in restore_acp_i2s_params()
H A Dacp-i2s.c91 adata->tdm_tx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
94 adata->tdm_rx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
275 stream->bytescount = acp_get_byte_count(adata, stream->dai_id, substream->stream); in acp_i2s_trigger()
535 stream->dai_id = dai->driver->id; in acp_i2s_startup()
/openbmc/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-dai-tdm.c251 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_en_event() local
252 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_en_event()
283 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_bck_en_event() local
284 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_bck_en_event()
292 __func__, w->name, event, dai_id); in mtk_tdm_bck_en_event()
315 int dai_id = get_tdm_id_by_name(w->name); in mtk_tdm_mck_en_event() local
316 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_tdm_mck_en_event()
324 __func__, w->name, event, dai_id); in mtk_tdm_mck_en_event()
384 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_apll_connect() local
385 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_apll_connect()
/openbmc/linux/include/uapi/sound/
H A Dasoc.h518 __le32 dai_id; /* unique ID - used to match */ member
570 __le32 dai_id; /* unique ID - used to match */ member
618 __le32 dai_id; /* unique ID - used to match */ member
/openbmc/linux/sound/soc/codecs/
H A Dlpass-tx-macro.c809 u32 dai_id = widget->shift; in tx_macro_tx_mixer_get() local
813 if (test_bit(dec_id, &tx->active_ch_mask[dai_id])) in tx_macro_tx_mixer_get()
828 u32 dai_id = widget->shift; in tx_macro_tx_mixer_put() local
834 if (tx->active_decimator[dai_id] == dec_id) in tx_macro_tx_mixer_put()
837 set_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
838 tx->active_ch_cnt[dai_id]++; in tx_macro_tx_mixer_put()
839 tx->active_decimator[dai_id] = dec_id; in tx_macro_tx_mixer_put()
841 if (tx->active_decimator[dai_id] == -1) in tx_macro_tx_mixer_put()
844 tx->active_ch_cnt[dai_id]--; in tx_macro_tx_mixer_put()
845 clear_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
[all …]
H A Dlpass-va-macro.c554 u32 dai_id = widget->shift; in va_macro_tx_mixer_get() local
558 if (test_bit(dec_id, &va->active_ch_mask[dai_id])) in va_macro_tx_mixer_get()
576 u32 dai_id = widget->shift; in va_macro_tx_mixer_put() local
582 set_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put()
583 va->active_ch_cnt[dai_id]++; in va_macro_tx_mixer_put()
585 clear_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put()
586 va->active_ch_cnt[dai_id]--; in va_macro_tx_mixer_put()
H A Dtscs454.c2733 unsigned int dai_id, bool delay) in set_aif_tdm_delay() argument
2738 switch (dai_id) { in set_aif_tdm_delay()
2751 "DAI %d unknown (%d)\n", dai_id + 1, ret); in set_aif_tdm_delay()
2766 unsigned int dai_id, unsigned int fmt) in set_aif_format_from_fmt() argument
2772 switch (dai_id) { in set_aif_format_from_fmt()
2785 "DAI %d unknown (%d)\n", dai_id + 1, ret); in set_aif_format_from_fmt()
2821 dai_id + 1, ret); in set_aif_format_from_fmt()
2830 unsigned int dai_id, unsigned int fmt) in set_aif_clock_format_from_fmt() argument
2836 switch (dai_id) { in set_aif_clock_format_from_fmt()
2849 "DAI %d unknown (%d)\n", dai_id + 1, ret); in set_aif_clock_format_from_fmt()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Daudio_codec.c302 int dai_id, ret; in gbaudio_module_update() local
314 ret = sscanf(w->sname, "%s %d %s", intf_name, &dai_id, dir); in gbaudio_module_update()
323 ret = gbaudio_module_enable_tx(codec, module, dai_id); in gbaudio_module_update()
325 ret = gbaudio_module_disable_tx(module, dai_id); in gbaudio_module_update()
328 ret = gbaudio_module_enable_rx(codec, module, dai_id); in gbaudio_module_update()
330 ret = gbaudio_module_disable_rx(module, dai_id); in gbaudio_module_update()
/openbmc/linux/sound/soc/mediatek/common/
H A Dmtk-base-afe.h131 int dai_id, unsigned int rate);
/openbmc/linux/drivers/soundwire/
H A Dcadence_master.h187 u32 ch, u32 dir, int dai_id);

12