/linux/sound/soc/qcom/ |
A D | lpass-lpaif-reg.h | 132 #define LPAIF_INTFDMA_REG(v, chan, reg, dai_id) \ argument 133 ((dai_id == LPASS_DP_RX) ? \ 137 #define __LPAIF_DMA_REG(v, chan, dir, reg, dai_id) \ argument 139 (LPAIF_INTFDMA_REG(v, chan, reg, dai_id)) : \ 142 #define LPAIF_DMACTL_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, CTL, dai_id) argument 143 #define LPAIF_DMABASE_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, BASE, dai_id) argument 144 #define LPAIF_DMABUFF_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, BUFF, dai_id) argument 145 #define LPAIF_DMACURR_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, CURR, dai_id) argument 146 #define LPAIF_DMAPER_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, PER, dai_id) argument 147 #define LPAIF_DMAPERCNT_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, PERCNT, dai_id) argument
|
A D | lpass-platform.c | 113 component->id = dai_id; in lpass_platform_pcmops_open() 174 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_close() 206 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_hw_params() 235 switch (dai_id) { in lpass_platform_pcmops_hw_params() 358 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_hw_free() 484 switch (dai_id) { in lpass_platform_pcmops_trigger() 548 switch (dai_id) { in lpass_platform_pcmops_trigger() 605 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_pointer() 646 switch (dai_id) { in lpass_dma_interrupt_handler() 790 if (dai_id == LPASS_DP_RX) in lpass_platform_pcmops_suspend() [all …]
|
A D | lpass-sc7180.c | 79 int direction, unsigned int dai_id) in sc7180_lpass_alloc_dma_channel() argument 84 if (dai_id == LPASS_DP_RX) { in sc7180_lpass_alloc_dma_channel() 115 static int sc7180_lpass_free_dma_channel(struct lpass_data *drvdata, int chan, unsigned int dai_id) in sc7180_lpass_free_dma_channel() argument 117 if (dai_id == LPASS_DP_RX) in sc7180_lpass_free_dma_channel()
|
A D | lpass-cpu.c | 878 int ret, i, dai_id; in asoc_qcom_lpass_cpu_platform_probe() local 941 dai_id = variant->dai_driver[i].id; in asoc_qcom_lpass_cpu_platform_probe() 942 if (dai_id == LPASS_DP_RX) in asoc_qcom_lpass_cpu_platform_probe() 945 drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, in asoc_qcom_lpass_cpu_platform_probe() 947 drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, in asoc_qcom_lpass_cpu_platform_probe() 949 if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { in asoc_qcom_lpass_cpu_platform_probe() 953 PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); in asoc_qcom_lpass_cpu_platform_probe() 954 return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); in asoc_qcom_lpass_cpu_platform_probe() 956 if (drvdata->mi2s_playback_sd_mode[dai_id] == in asoc_qcom_lpass_cpu_platform_probe() 958 variant->dai_driver[dai_id].playback.channels_min = 4; in asoc_qcom_lpass_cpu_platform_probe() [all …]
|
A D | lpass-ipq806x.c | 99 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 D | lpass.h | 245 int (*alloc_dma_channel)(struct lpass_data *data, int direction, unsigned int dai_id); 246 int (*free_dma_channel)(struct lpass_data *data, int ch, unsigned int dai_id);
|
A D | lpass-apq8016.c | 128 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/sound/soc/mediatek/mt8195/ |
A D | mt8195-dai-etdm.c | 167 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 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/sound/soc/amd/acp/ |
A D | amd.h | 74 int dai_id; member 106 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument 111 switch (dai_id) { in acp_get_byte_count() 121 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count() 125 switch (dai_id) { in acp_get_byte_count() 135 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
|
A D | acp-i2s.c | 106 stream->bytescount = acp_get_byte_count(adata, stream->dai_id, substream->stream); in acp_i2s_trigger() 304 stream->dai_id = dai->driver->id; in acp_i2s_startup()
|
A D | acp-platform.c | 225 bytescount = acp_get_byte_count(adata, stream->dai_id, substream->stream); in acp_dma_pointer()
|
/linux/sound/soc/mediatek/mt8192/ |
A 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/sound/soc/codecs/ |
A D | lpass-tx-macro.c | 793 u32 dai_id = widget->shift; in tx_macro_tx_mixer_get() local 797 if (test_bit(dec_id, &tx->active_ch_mask[dai_id])) in tx_macro_tx_mixer_get() 812 u32 dai_id = widget->shift; in tx_macro_tx_mixer_put() local 818 set_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put() 819 tx->active_ch_cnt[dai_id]++; in tx_macro_tx_mixer_put() 820 tx->active_decimator[dai_id] = dec_id; in tx_macro_tx_mixer_put() 822 tx->active_ch_cnt[dai_id]--; in tx_macro_tx_mixer_put() 823 clear_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put() 824 tx->active_decimator[dai_id] = -1; in tx_macro_tx_mixer_put()
|
A D | lpass-va-macro.c | 521 u32 dai_id = widget->shift; in va_macro_tx_mixer_get() local 525 if (test_bit(dec_id, &va->active_ch_mask[dai_id])) in va_macro_tx_mixer_get() 543 u32 dai_id = widget->shift; in va_macro_tx_mixer_put() local 549 set_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put() 550 va->active_ch_cnt[dai_id]++; in va_macro_tx_mixer_put() 552 clear_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put() 553 va->active_ch_cnt[dai_id]--; in va_macro_tx_mixer_put()
|
A 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() 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 …]
|
A D | hdac_hdmi.c | 115 int dai_id; member 1175 int dai_id = 0; in hdac_hdmi_init_dai_map() local 1181 dai_map = &hdmi->dai_map[dai_id]; in hdac_hdmi_init_dai_map() 1182 dai_map->dai_id = dai_id; in hdac_hdmi_init_dai_map() 1185 dai_id++; in hdac_hdmi_init_dai_map() 1187 if (dai_id == HDA_MAX_CVTS) { in hdac_hdmi_init_dai_map() 1189 "Max dais supported: %d\n", dai_id); in hdac_hdmi_init_dai_map()
|
A D | cs43130.c | 484 static int cs43130_set_bitwidth(int dai_id, unsigned int bitwidth_dai, in cs43130_set_bitwidth() argument 493 switch (dai_id) { in cs43130_set_bitwidth() 557 static int cs43130_set_sp_fmt(int dai_id, unsigned int bitwidth_sclk, in cs43130_set_sp_fmt() argument 574 switch (cs43130->dais[dai_id].dai_format) { in cs43130_set_sp_fmt() 599 switch (cs43130->dais[dai_id].dai_mode) { in cs43130_set_sp_fmt() 629 switch (dai_id) { in cs43130_set_sp_fmt() 711 switch (dai_id) { in cs43130_set_sp_fmt()
|
/linux/include/uapi/sound/ |
A D | asoc.h | 522 __le32 dai_id; /* unique ID - used to match */ member 574 __le32 dai_id; /* unique ID - used to match */ member 622 __le32 dai_id; /* unique ID - used to match */ member
|
/linux/drivers/staging/greybus/ |
A 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/sound/soc/mediatek/common/ |
A D | mtk-base-afe.h | 112 int dai_id, unsigned int rate);
|
/linux/drivers/soundwire/ |
A D | cadence_master.h | 172 u32 ch, u32 dir, int dai_id);
|
A D | cadence_master.c | 1752 int dai_id) in cdns_find_pdi() argument 1757 if (pdi[i].num == dai_id) in cdns_find_pdi() 1805 u32 ch, u32 dir, int dai_id) in sdw_cdns_alloc_pdi() argument 1811 dai_id); in sdw_cdns_alloc_pdi() 1814 dai_id); in sdw_cdns_alloc_pdi() 1819 dai_id); in sdw_cdns_alloc_pdi()
|
/linux/sound/soc/mediatek/mt8183/ |
A D | mt8183-dai-i2s.c | 101 int dai_id = get_i2s_id_by_name(afe, name); in get_i2s_priv_by_name() local 103 if (dai_id < 0) in get_i2s_priv_by_name() 106 return afe_priv->dai_priv[dai_id]; in get_i2s_priv_by_name()
|
/linux/sound/soc/sof/ |
A D | sof-audio.h | 218 if (le32_to_cpu(spcm->pcm.dai_id) == rtd->dai_link->id) in snd_sof_find_spcm_dai()
|