Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/sound/soc/qcom/
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 …]
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 …]
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()
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);
A Dlpass-sc7180.c80 int direction, unsigned int dai_id) in sc7180_lpass_alloc_dma_channel() argument
85 if (dai_id == LPASS_DP_RX) { in sc7180_lpass_alloc_dma_channel()
116 static int sc7180_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7180_lpass_free_dma_channel() argument
118 if (dai_id == LPASS_DP_RX) in sc7180_lpass_free_dma_channel()
A Dlpass-cpu.c1100 int ret, i, dai_id; in asoc_qcom_lpass_cpu_platform_probe() local
1210 dai_id = variant->dai_driver[i].id; in asoc_qcom_lpass_cpu_platform_probe()
1211 if (dai_id == LPASS_DP_RX || is_cdc_dma_port(dai_id)) in asoc_qcom_lpass_cpu_platform_probe()
1214 drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, in asoc_qcom_lpass_cpu_platform_probe()
1216 drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, in asoc_qcom_lpass_cpu_platform_probe()
1218 if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { in asoc_qcom_lpass_cpu_platform_probe()
1222 PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); in asoc_qcom_lpass_cpu_platform_probe()
1223 return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); in asoc_qcom_lpass_cpu_platform_probe()
1225 if (drvdata->mi2s_playback_sd_mode[dai_id] == in asoc_qcom_lpass_cpu_platform_probe()
1227 variant->dai_driver[dai_id].playback.channels_min = 4; in asoc_qcom_lpass_cpu_platform_probe()
[all …]
A Dlpass-sc7280.c113 int direction, unsigned int dai_id) in sc7280_lpass_alloc_dma_channel() argument
118 switch (dai_id) { in sc7280_lpass_alloc_dma_channel()
175 static int sc7280_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7280_lpass_free_dma_channel() argument
177 switch (dai_id) { in sc7280_lpass_free_dma_channel()
A Dlpass-ipq806x.c99 static int ipq806x_lpass_alloc_dma_channel(struct lpass_data *drvdata, int dir, unsigned int dai_id) in ipq806x_lpass_alloc_dma_channel() argument
107 static int ipq806x_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in ipq806x_lpass_free_dma_channel() argument
A Dlpass-apq8016.c128 int direction, unsigned int dai_id) in apq8016_lpass_alloc_dma_channel() argument
154 static int apq8016_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in apq8016_lpass_free_dma_channel() argument
/linux-6.3-rc2/sound/soc/mediatek/mt8188/
A Dmt8188-dai-etdm.c152 switch (dai_id) { in get_etdm_reg()
202 switch (dai_id) { in get_etdm_dir()
222 switch (dai_id) { in is_valid_etdm_dai()
277 int dai_id; in get_etdm_cowork_master_id() local
285 dai_id = dai->id; in get_etdm_cowork_master_id()
287 return dai_id; in get_etdm_cowork_master_id()
292 switch (dai_id) { in mtk_dai_etdm_get_cg_id_by_dai_id()
312 switch (dai_id) { in mtk_dai_etdm_get_clk_id_by_dai_id()
331 switch (dai_id) { in mtk_dai_etdm_get_clkdiv_id_by_dai_id()
2053 int dai_id; in mtk_dai_etdm_set_sysclk() local
[all …]
/linux-6.3-rc2/sound/soc/mediatek/mt8195/
A Dmt8195-dai-etdm.c167 switch (dai_id) { in get_etdm_reg()
217 switch (dai_id) { in get_etdm_dir()
271 dai_id = dai->id; in get_etdm_cowork_master_id()
273 return dai_id; in get_etdm_cowork_master_id()
1374 switch (dai_id) { in mt8195_etdm_sync_mode_configure()
1413 switch (dai_id) { in mtk_dai_etdm_get_cg_id_by_dai_id()
1443 switch (dai_id) { in mtk_dai_etdm_get_clk_id_by_dai_id()
1471 switch (dai_id) { in mtk_dai_etdm_get_clkdiv_id_by_dai_id()
1888 int dai_id) in mtk_dai_etdm_configure() argument
2098 int dai_id; in mtk_dai_etdm_set_sysclk() local
[all …]
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()
/linux-6.3-rc2/sound/soc/amd/acp/
A Damd.h105 int dai_id; member
174 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument
179 switch (dai_id) { in acp_get_byte_count()
193 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
197 switch (dai_id) { in acp_get_byte_count()
215 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
225 static inline void acp_set_i2s_clk(struct acp_dev_data *adata, int dai_id) in acp_set_i2s_clk() argument
230 switch (dai_id) { in acp_set_i2s_clk()
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()
273 stream->bytescount = acp_get_byte_count(adata, stream->dai_id, substream->stream); in acp_i2s_trigger()
533 stream->dai_id = dai->driver->id; in acp_i2s_startup()
/linux-6.3-rc2/sound/soc/mediatek/mt8186/
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 …]
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()
/linux-6.3-rc2/sound/soc/mediatek/mt8192/
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()
/linux-6.3-rc2/sound/soc/codecs/
A Dlpass-tx-macro.c804 u32 dai_id = widget->shift; in tx_macro_tx_mixer_get() local
808 if (test_bit(dec_id, &tx->active_ch_mask[dai_id])) in tx_macro_tx_mixer_get()
823 u32 dai_id = widget->shift; in tx_macro_tx_mixer_put() local
829 if (tx->active_decimator[dai_id] == dec_id) in tx_macro_tx_mixer_put()
832 set_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
833 tx->active_ch_cnt[dai_id]++; in tx_macro_tx_mixer_put()
834 tx->active_decimator[dai_id] = dec_id; in tx_macro_tx_mixer_put()
836 if (tx->active_decimator[dai_id] == -1) in tx_macro_tx_mixer_put()
839 tx->active_ch_cnt[dai_id]--; in tx_macro_tx_mixer_put()
840 clear_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
[all …]
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()
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 …]
/linux-6.3-rc2/include/uapi/sound/
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
/linux-6.3-rc2/drivers/staging/greybus/
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()
/linux-6.3-rc2/drivers/soundwire/
A Dcadence_master.h179 u32 ch, u32 dir, int dai_id);
A Dcadence_master.c1768 int dai_id) in cdns_find_pdi() argument
1773 if (pdi[i].num == dai_id) in cdns_find_pdi()
1821 u32 ch, u32 dir, int dai_id) in sdw_cdns_alloc_pdi() argument
1827 dai_id); in sdw_cdns_alloc_pdi()
1830 dai_id); in sdw_cdns_alloc_pdi()
1835 dai_id); in sdw_cdns_alloc_pdi()
/linux-6.3-rc2/sound/soc/mediatek/common/
A Dmtk-base-afe.h131 int dai_id, unsigned int rate);

Completed in 211 milliseconds

12