Home
last modified time | relevance | path

Searched refs:slot_width (Results 1 – 25 of 107) sorted by relevance

12345

/linux/sound/soc/codecs/
A Dpcm3168a.c57 int slot_width; member
425 int slot_width) in pcm3168a_set_tdm_slot() argument
438 if (slot_width && in pcm3168a_set_tdm_slot()
439 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
441 slot_width); in pcm3168a_set_tdm_slot()
446 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
469 int i, slot_width; in pcm3168a_hw_params() local
500 if (io_params->slot_width) in pcm3168a_hw_params()
501 slot_width = io_params->slot_width; in pcm3168a_hw_params()
503 slot_width = params_width(params); in pcm3168a_hw_params()
[all …]
A Dadau1977.c128 unsigned int slot_width; member
298 unsigned int slot_width; in adau1977_hw_params() local
337 slot_width = 16; in adau1977_hw_params()
342 slot_width = 32; in adau1977_hw_params()
349 if (adau1977->slot_width) in adau1977_hw_params()
350 slot_width = adau1977->slot_width; in adau1977_hw_params()
352 if (slot_width == 16) in adau1977_hw_params()
506 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
594 adau1977->slot_width = width; in adau1977_set_tdm_slot()
708 if (adau1977->slot_width == 16) in adau1977_startup()
[all …]
A Dadau7118.c40 u32 slot_width; member
228 int slot_width) in adau7118_set_tdm_slot() argument
235 dev_dbg(st->dev, "Set tdm, slots:%d width:%d\n", slots, slot_width); in adau7118_set_tdm_slot()
237 switch (slot_width) { in adau7118_set_tdm_slot()
248 dev_err(st->dev, "Invalid slot width:%d\n", slot_width); in adau7118_set_tdm_slot()
258 st->slot_width = slot_width; in adau7118_set_tdm_slot()
285 slots_width = st->slot_width; in adau7118_hw_params()
A Dak5558.c46 int slot_width; member
178 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
235 int slot_width) in ak5558_set_tdm_slot() argument
242 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
244 switch (slots * slot_width) { in ak5558_set_tdm_slot()
A Dmax98373-i2c.c321 int slots, int slot_width) in max98373_dai_tdm_slot() argument
330 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
336 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
339 slots * slot_width); in max98373_dai_tdm_slot()
349 switch (slot_width) { in max98373_dai_tdm_slot()
361 slot_width); in max98373_dai_tdm_slot()
A Dadau1372.c36 unsigned int slot_width; member
644 unsigned int slot_width; in adau1372_hw_params() local
658 slot_width = adau1372->slot_width; in adau1372_hw_params()
659 if (slot_width == 0) in adau1372_hw_params()
660 slot_width = params_width(params); in adau1372_hw_params()
662 switch (slot_width) { in adau1372_hw_params()
691 adau1372->slot_width = 0; in adau1372_set_tdm_slot()
730 adau1372->slot_width = width; in adau1372_set_tdm_slot()
A Dmax98520.c266 int slots, int slot_width) in max98520_dai_tdm_slot() argument
274 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98520_dai_tdm_slot()
280 bsel = max98520_get_bclk_sel(slots * slot_width); in max98520_dai_tdm_slot()
283 slots * slot_width); in max98520_dai_tdm_slot()
293 switch (slot_width) { in max98520_dai_tdm_slot()
305 slot_width); in max98520_dai_tdm_slot()
A Dak4458.c54 int slot_width; member
311 switch (ak4458->slots * ak4458->slot_width) { in ak4458_get_tdm_mode()
349 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params()
541 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument
548 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
/linux/sound/soc/fsl/
A Dimx-hdmi.c20 u32 slot_width; member
41 u32 slot_width = data->cpu_priv.slot_width; in imx_hdmi_hw_params() local
46 8 * slot_width * params_rate(params), in imx_hdmi_hw_params()
53 ret = snd_soc_dai_set_tdm_slot(cpu_dai, 0, 0, 2, slot_width); in imx_hdmi_hw_params()
155 data->cpu_priv.slot_width = 24; in imx_hdmi_probe()
158 data->cpu_priv.slot_width = 32; in imx_hdmi_probe()
A Dimx-card.c95 unsigned int slot_width; member
299 unsigned int slots, slot_width; in imx_aif_hw_params() local
303 slot_width = link_data->slot_width; in imx_aif_hw_params()
308 slot_width = params_width(params); in imx_aif_hw_params()
313 slot_width = params_physical_width(params); in imx_aif_hw_params()
327 slots, slot_width); in imx_aif_hw_params()
343 slots, slot_width); in imx_aif_hw_params()
354 mclk_freq = params_rate(params) * slots * slot_width; in imx_aif_hw_params()
661 &link_data->slot_width); in imx_card_parse_of()
666 if (!link_data->slot_width) in imx_card_parse_of()
[all …]
A Dfsl_ssi.c260 unsigned int slot_width; member
684 unsigned int slot_width = params_width(hw_params); in fsl_ssi_set_bclk() local
694 if (ssi->slot_width) in fsl_ssi_set_bclk()
695 slot_width = ssi->slot_width; in fsl_ssi_set_bclk()
700 slot_width = 32; in fsl_ssi_set_bclk()
703 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk()
1030 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument
1037 if (slot_width & 1 || slot_width < 8 || slot_width > 24) { in fsl_ssi_set_dai_tdm_slot()
1038 dev_err(dai->dev, "invalid slot width: %d\n", slot_width); in fsl_ssi_set_dai_tdm_slot()
1064 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
A Dfsl_esai.c72 u32 slot_width; member
405 u32 rx_mask, int slots, int slot_width) in fsl_esai_set_dai_tdm_slot() argument
415 esai_priv->slot_width = slot_width; in fsl_esai_set_dai_tdm_slot()
544 u32 slot_width = width; in fsl_esai_hw_params() local
549 if (esai_priv->slot_width) in fsl_esai_hw_params()
550 slot_width = esai_priv->slot_width; in fsl_esai_hw_params()
552 bclk = params_rate(params) * slot_width * esai_priv->slots; in fsl_esai_hw_params()
559 val = ESAI_xCR_xSWS(slot_width, width); in fsl_esai_hw_params()
A Dfsl_sai.c149 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument
154 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot()
452 u32 slot_width = word_width; in fsl_sai_hw_params() local
460 if (sai->slot_width) in fsl_sai_hw_params()
461 slot_width = sai->slot_width; in fsl_sai_hw_params()
472 slots * slot_width * in fsl_sai_hw_params()
488 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params()
490 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params()
491 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_hw_params()
/linux/sound/soc/sti/
A Dsti_uniperif.c126 int slot_width) in sti_uniperiph_set_tdm_slot() argument
139 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
151 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
186 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
195 uni->tdm_slot.slot_width); in sti_uniperiph_fix_tdm_format()
213 int slot_width = uni->tdm_slot.slot_width / 8; in sti_uniperiph_get_tdm_word_pos() local
229 word16_pos[j] = i * slot_width; in sti_uniperiph_get_tdm_word_pos()
231 if (slot_width == 4) { in sti_uniperiph_get_tdm_word_pos()
A Duniperif_reader.c84 int slot_width; in uni_reader_prepare_pcm() local
89 slot_width = 32; in uni_reader_prepare_pcm()
93 slot_width = 16; in uni_reader_prepare_pcm()
96 slot_width = 32; in uni_reader_prepare_pcm()
102 switch (slot_width) { in uni_reader_prepare_pcm()
/linux/sound/soc/sunxi/
A Dsun4i-i2s.c194 unsigned int slot_width);
207 unsigned int slot_width; member
328 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument
450 unsigned int slot_width) in sun4i_i2s_set_chan_cfg() argument
469 unsigned int slot_width) in sun8i_i2s_set_chan_cfg() argument
501 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg()
555 lrck_period = slot_width; in sun50i_h6_i2s_set_chan_cfg()
590 if (i2s->slot_width) in sun4i_i2s_hw_params()
591 slot_width = i2s->slot_width; in sun4i_i2s_hw_params()
632 slots, slot_width); in sun4i_i2s_hw_params()
[all …]
A Dsun8i-codec.c155 unsigned int slot_width; member
377 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument
382 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot()
386 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot()
476 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument
478 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order()
499 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params() local
527 lrck_div_order = sun8i_codec_get_lrck_div_order(slots, slot_width); in sun8i_codec_hw_params()
/linux/sound/soc/bcm/
A Dbcm2835-i2s.c119 unsigned int slot_width; member
243 dev->slot_width = ratio / 2; in bcm2835_i2s_set_dai_bclk_ratio()
279 dev->slot_width = width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
362 slot_width = dev->slot_width; in bcm2835_i2s_hw_params()
369 slot_width = params_width(params); in bcm2835_i2s_hw_params()
383 if (data_length > slot_width) in bcm2835_i2s_hw_params()
478 data_delay = slot_width - data_length; in bcm2835_i2s_hw_params()
497 rx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
499 tx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/linux/sound/soc/meson/
A Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
58 switch (slot_width) { in axg_tdm_set_tdm_slots()
60 slot_width = 32; in axg_tdm_set_tdm_slots()
76 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
191 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
266 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
A Daxg-card.c22 unsigned int slot_width; member
67 be->slots, be->slot_width); in axg_card_tdm_dai_init()
76 be->slots, be->slot_width); in axg_card_tdm_dai_init()
94 be->slots, be->slot_width); in axg_card_tdm_dai_lb_init()
215 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
A Daxg-tdm.h35 unsigned int slot_width; member
76 unsigned int slot_width);
/linux/sound/soc/ti/
A Ddavinci-mcasp.c94 int slot_width; member
776 if (slot_width && in davinci_mcasp_set_tdm_slot()
777 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
779 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
786 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
798 if (mcasp->slot_width) in davinci_config_channel_size()
799 slot_width = mcasp->slot_width; in davinci_config_channel_size()
1264 if (mcasp->slot_width) in davinci_mcasp_hw_params()
1332 int i, slot_width; in davinci_mcasp_hw_rule_slot_width() local
1335 slot_width = rd->mcasp->slot_width; in davinci_mcasp_hw_rule_slot_width()
[all …]
/linux/sound/soc/ux500/
A Dux500_msp_dai.c583 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument
608 if (!(slot_width == 16)) { in ux500_msp_dai_set_tdm_slot()
610 __func__, slot_width); in ux500_msp_dai_set_tdm_slot()
613 drvdata->slot_width = slot_width; in ux500_msp_dai_set_tdm_slot()
698 drvdata->msp->playback_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
699 drvdata->msp->capture_dma_data.data_size = drvdata->slot_width; in ux500_msp_dai_probe()
760 drvdata->slot_width = 16; in ux500_msp_drv_probe()
/linux/sound/soc/qcom/
A Dsdm845.c93 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
97 slot_width = 16; in sdm845_tdm_snd_hw_params()
108 8, slot_width); in sdm845_tdm_snd_hw_params()
124 8, slot_width); in sdm845_tdm_snd_hw_params()
146 slot_width); in sdm845_tdm_snd_hw_params()
158 slot_width); in sdm845_tdm_snd_hw_params()
/linux/include/sound/
A Dsimple_card_utils.h24 int slot_width; member
157 &(dai)->slot_width);
205 if (dai->slot_width) in asoc_simple_debug_dai()
206 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()

Completed in 67 milliseconds

12345