Home
last modified time | relevance | path

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

12

/linux-5.19.10/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.c79 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()
Dlpass-cpu.c1088 int ret, i, dai_id; in asoc_qcom_lpass_cpu_platform_probe() local
1193 dai_id = variant->dai_driver[i].id; in asoc_qcom_lpass_cpu_platform_probe()
1194 if (dai_id == LPASS_DP_RX || is_cdc_dma_port(dai_id)) in asoc_qcom_lpass_cpu_platform_probe()
1197 drvdata->mi2s_osr_clk[dai_id] = devm_clk_get_optional(dev, in asoc_qcom_lpass_cpu_platform_probe()
1199 drvdata->mi2s_bit_clk[dai_id] = devm_clk_get(dev, in asoc_qcom_lpass_cpu_platform_probe()
1201 if (IS_ERR(drvdata->mi2s_bit_clk[dai_id])) { in asoc_qcom_lpass_cpu_platform_probe()
1205 PTR_ERR(drvdata->mi2s_bit_clk[dai_id])); in asoc_qcom_lpass_cpu_platform_probe()
1206 return PTR_ERR(drvdata->mi2s_bit_clk[dai_id]); in asoc_qcom_lpass_cpu_platform_probe()
1208 if (drvdata->mi2s_playback_sd_mode[dai_id] == in asoc_qcom_lpass_cpu_platform_probe()
1210 variant->dai_driver[dai_id].playback.channels_min = 4; in asoc_qcom_lpass_cpu_platform_probe()
[all …]
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()
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
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-5.19.10/sound/soc/mediatek/mt8195/
Dmt8195-dai-etdm.c165 static int get_etdm_reg(unsigned int dai_id, struct etdm_con_reg *etdm_reg) in get_etdm_reg() argument
167 switch (dai_id) { in get_etdm_reg()
215 static int get_etdm_dir(unsigned int dai_id) in get_etdm_dir() argument
217 switch (dai_id) { in get_etdm_dir()
268 int dai_id = etdm_data->cowork_source_id; in get_etdm_cowork_master_id() local
270 if (dai_id == COWORK_ETDM_NONE) in get_etdm_cowork_master_id()
271 dai_id = dai->id; in get_etdm_cowork_master_id()
273 return dai_id; in get_etdm_cowork_master_id()
1274 static int mt8195_afe_enable_etdm(struct mtk_base_afe *afe, int dai_id) in mt8195_afe_enable_etdm() argument
1279 struct mtk_dai_etdm_priv *etdm_data = afe_priv->dai_priv[dai_id]; in mt8195_afe_enable_etdm()
[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-5.19.10/sound/soc/amd/acp/
Damd.h87 int dai_id; member
123 static inline u64 acp_get_byte_count(struct acp_dev_data *adata, int dai_id, int direction) in acp_get_byte_count() argument
128 switch (dai_id) { in acp_get_byte_count()
138 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
142 switch (dai_id) { in acp_get_byte_count()
156 dev_err(adata->dev, "Invalid dai id %x\n", dai_id); in acp_get_byte_count()
Dacp-i2s.c106 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()
Dacp-pdm.c157 stream->dai_id = DMIC_INSTANCE; in acp_dmic_dai_startup()
/linux-5.19.10/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-5.19.10/include/uapi/sound/
Dasoc.h522 __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-5.19.10/sound/soc/codecs/
Dlpass-va-macro.c528 u32 dai_id = widget->shift; in va_macro_tx_mixer_get() local
532 if (test_bit(dec_id, &va->active_ch_mask[dai_id])) in va_macro_tx_mixer_get()
550 u32 dai_id = widget->shift; in va_macro_tx_mixer_put() local
556 set_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put()
557 va->active_ch_cnt[dai_id]++; in va_macro_tx_mixer_put()
559 clear_bit(dec_id, &va->active_ch_mask[dai_id]); in va_macro_tx_mixer_put()
560 va->active_ch_cnt[dai_id]--; in va_macro_tx_mixer_put()
Dlpass-tx-macro.c801 u32 dai_id = widget->shift; in tx_macro_tx_mixer_get() local
805 if (test_bit(dec_id, &tx->active_ch_mask[dai_id])) in tx_macro_tx_mixer_get()
820 u32 dai_id = widget->shift; in tx_macro_tx_mixer_put() local
826 set_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
827 tx->active_ch_cnt[dai_id]++; in tx_macro_tx_mixer_put()
828 tx->active_decimator[dai_id] = dec_id; in tx_macro_tx_mixer_put()
830 tx->active_ch_cnt[dai_id]--; in tx_macro_tx_mixer_put()
831 clear_bit(dec_id, &tx->active_ch_mask[dai_id]); in tx_macro_tx_mixer_put()
832 tx->active_decimator[dai_id] = -1; in tx_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 …]
Dhdac_hdmi.c115 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()
Dcs43130.c484 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-5.19.10/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-5.19.10/sound/soc/mediatek/common/
Dmtk-base-afe.h112 int dai_id, unsigned int rate);
/linux-5.19.10/drivers/soundwire/
Dcadence_master.h166 u32 ch, u32 dir, int dai_id);
Dcadence_master.c1756 int dai_id) in cdns_find_pdi() argument
1761 if (pdi[i].num == dai_id) in cdns_find_pdi()
1809 u32 ch, u32 dir, int dai_id) in sdw_cdns_alloc_pdi() argument
1815 dai_id); in sdw_cdns_alloc_pdi()
1818 dai_id); in sdw_cdns_alloc_pdi()
1823 dai_id); in sdw_cdns_alloc_pdi()

12