Home
last modified time | relevance | path

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

12

/linux-6.6.21/sound/soc/qcom/
Dlpass-lpaif-reg.h147 #define LPAIF_INTFDMA_REG(v, chan, reg, dai_id) \ argument
148 ((dai_id == LPASS_DP_RX) ? \
152 #define __LPAIF_DMA_REG(v, chan, dir, reg, dai_id) \ argument
154 (LPAIF_INTFDMA_REG(v, chan, reg, dai_id)) : \
157 #define LPAIF_DMACTL_REG(v, chan, dir, dai_id) \ argument
158 (is_cdc_dma_port(dai_id) ? \
159 __LPAIF_CDC_DMA_REG(v, chan, dir, CTL, dai_id) : \
160 __LPAIF_DMA_REG(v, chan, dir, CTL, dai_id))
161 #define LPAIF_DMABASE_REG(v, chan, dir, dai_id) \ argument
162 (is_cdc_dma_port(dai_id) ? \
[all …]
Dlpass-platform.c202 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_open() local
204 component->id = dai_id; in lpass_platform_pcmops_open()
213 dma_ch = v->alloc_dma_channel(drvdata, dir, 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()
292 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_close() local
296 switch (dai_id) { in lpass_platform_pcmops_close()
315 v->free_dma_channel(drvdata, data->dma_ch, dai_id); in lpass_platform_pcmops_close()
432 unsigned int dai_id = cpu_dai->driver->id; in lpass_platform_pcmops_hw_params() local
456 switch (dai_id) { in lpass_platform_pcmops_hw_params()
[all …]
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()
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);
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()
Dlpass-cpu.c1110 int ret, i, dai_id; in asoc_qcom_lpass_cpu_platform_probe() local
1220 dai_id = variant->dai_driver[i].id; in asoc_qcom_lpass_cpu_platform_probe()
1221 if (dai_id == LPASS_DP_RX || is_cdc_dma_port(dai_id)) in asoc_qcom_lpass_cpu_platform_probe()
1224 drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, in asoc_qcom_lpass_cpu_platform_probe()
1226 drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, in asoc_qcom_lpass_cpu_platform_probe()
1228 if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { in asoc_qcom_lpass_cpu_platform_probe()
1232 PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); in asoc_qcom_lpass_cpu_platform_probe()
1233 return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); in asoc_qcom_lpass_cpu_platform_probe()
1235 if (drvdata->mi2s_playback_sd_mode[dai_id] == in asoc_qcom_lpass_cpu_platform_probe()
1237 variant->dai_driver[dai_id].playback.channels_min = 4; in asoc_qcom_lpass_cpu_platform_probe()
[all …]
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()
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
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
/linux-6.6.21/sound/soc/mediatek/mt8188/
Dmt8188-dai-etdm.c156 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg) in get_etdm_reg() argument
158 switch (dai_id) { in get_etdm_reg()
206 static int get_etdm_dir(unsigned int dai_id) in get_etdm_dir() argument
208 switch (dai_id) { in get_etdm_dir()
226 static bool is_valid_etdm_dai(int dai_id) in is_valid_etdm_dai() argument
228 switch (dai_id) { in is_valid_etdm_dai()
283 int dai_id; in get_etdm_cowork_master_id() local
288 dai_id = etdm_data->cowork_source_id; in get_etdm_cowork_master_id()
290 if (dai_id == COWORK_ETDM_NONE) in get_etdm_cowork_master_id()
291 dai_id = dai->id; in get_etdm_cowork_master_id()
[all …]
/linux-6.6.21/sound/soc/mediatek/mt8195/
Dmt8195-dai-etdm.c197 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg) in get_etdm_reg() argument
199 switch (dai_id) { in get_etdm_reg()
247 static int get_etdm_dir(unsigned int dai_id) in get_etdm_dir() argument
249 switch (dai_id) { in get_etdm_dir()
304 int dai_id; in get_etdm_cowork_master_id() local
310 dai_id = etdm_data->cowork_source_id; in get_etdm_cowork_master_id()
312 if (dai_id == COWORK_ETDM_NONE) in get_etdm_cowork_master_id()
313 dai_id = dai->id; in get_etdm_cowork_master_id()
315 return dai_id; in get_etdm_cowork_master_id()
1316 static int mt8195_afe_enable_etdm(struct mtk_base_afe *afe, int dai_id) in mt8195_afe_enable_etdm() argument
[all …]
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.6.21/sound/soc/mediatek/mt8186/
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
206 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_mclk_connect()
218 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_mclk_apll_connect() local
219 struct mtk_afe_tdm_priv *tdm_priv = afe_priv->dai_priv[dai_id]; in mtk_afe_tdm_mclk_apll_connect()
235 int dai_id = get_tdm_id_by_name(w->name); in mtk_afe_tdm_hd_connect() local
[all …]
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.6.21/sound/soc/amd/acp/
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()
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()
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()
/linux-6.6.21/sound/soc/mediatek/mt8192/
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.6.21/include/uapi/sound/
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.6.21/sound/soc/codecs/
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 …]
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()
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()
2800 ret = set_aif_tdm_delay(component, dai_id, true); in set_aif_format_from_fmt()
2806 ret = set_aif_tdm_delay(component, dai_id, false); 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
[all …]
/linux-6.6.21/drivers/staging/greybus/
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.6.21/sound/soc/mediatek/common/
Dmtk-base-afe.h131 int dai_id, unsigned int rate);
/linux-6.6.21/drivers/soundwire/
Dcadence_master.h182 u32 ch, u32 dir, int dai_id);

12