/linux-6.6.21/sound/soc/qcom/ |
D | lpass-lpaif-reg.h | 147 #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 …]
|
D | lpass-platform.c | 202 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 …]
|
D | lpass-cdc-dma.c | 41 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()
|
D | lpass.h | 41 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);
|
D | lpass-sc7180.c | 77 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()
|
D | lpass-cpu.c | 1110 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 …]
|
D | lpass-sc7280.c | 111 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()
|
D | lpass-ipq806x.c | 98 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
|
D | lpass-apq8016.c | 124 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/ |
D | mt8188-dai-etdm.c | 156 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/ |
D | mt8195-dai-etdm.c | 197 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 …]
|
D | mt8195-dai-adda.c | 358 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/ |
D | mt8186-dai-tdm.c | 106 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 …]
|
D | mt8186-dai-adda.c | 76 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/ |
D | amd.h | 138 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()
|
D | acp-legacy-common.c | 198 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()
|
D | acp-i2s.c | 91 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/ |
D | mt8192-dai-tdm.c | 251 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/ |
D | asoc.h | 518 __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/ |
D | lpass-tx-macro.c | 809 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 …]
|
D | lpass-va-macro.c | 554 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()
|
D | tscs454.c | 2733 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/ |
D | audio_codec.c | 302 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/ |
D | mtk-base-afe.h | 131 int dai_id, unsigned int rate);
|
/linux-6.6.21/drivers/soundwire/ |
D | cadence_master.h | 182 u32 ch, u32 dir, int dai_id);
|