/linux-6.3-rc2/sound/soc/codecs/ |
A D | pcm3168a.c | 55 int slot_width; member 403 int slot_width) in pcm3168a_set_tdm_slot() argument 416 if (slot_width && in pcm3168a_set_tdm_slot() 417 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot() 419 slot_width); in pcm3168a_set_tdm_slot() 424 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot() 446 int i, num_scki_ratios, slot_width; in pcm3168a_hw_params() local 484 if (io_params->slot_width) in pcm3168a_hw_params() 485 slot_width = io_params->slot_width; in pcm3168a_hw_params() 487 slot_width = params_width(params); in pcm3168a_hw_params() [all …]
|
A D | adau1977.c | 128 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 D | adau7118.c | 40 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 D | ak5558.c | 46 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 D | cs35l45.c | 342 if (cs35l45->slot_width) in cs35l45_asp_hw_params() 343 asp_width = cs35l45->slot_width; in cs35l45_asp_hw_params() 384 int slots, int slot_width) in cs35l45_asp_set_tdm_slot() argument 388 if (slot_width && ((slot_width < 16) || (slot_width > 128))) in cs35l45_asp_set_tdm_slot() 391 cs35l45->slot_width = slot_width; in cs35l45_asp_set_tdm_slot()
|
A D | max98373-i2c.c | 321 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 D | adau1372.c | 34 unsigned int slot_width; member 642 unsigned int slot_width; in adau1372_hw_params() local 656 slot_width = adau1372->slot_width; in adau1372_hw_params() 657 if (slot_width == 0) in adau1372_hw_params() 658 slot_width = params_width(params); in adau1372_hw_params() 660 switch (slot_width) { in adau1372_hw_params() 690 adau1372->slot_width = 0; in adau1372_set_tdm_slot() 730 adau1372->slot_width = width; in adau1372_set_tdm_slot()
|
A D | max98520.c | 266 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 D | ak4458.c | 56 int slot_width; member 313 switch (ak4458->slots * ak4458->slot_width) { in ak4458_get_tdm_mode() 351 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params() 550 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument 557 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
|
/linux-6.3-rc2/sound/soc/fsl/ |
A D | imx-hdmi.c | 20 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() 159 data->cpu_priv.slot_width = 24; in imx_hdmi_probe() 162 data->cpu_priv.slot_width = 32; in imx_hdmi_probe()
|
A D | imx-card.c | 98 unsigned int slot_width; member 254 int slots, int slot_width) in akcodec_get_mclk_rate() argument 260 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate() 303 unsigned int slots, slot_width; in imx_aif_hw_params() local 307 slot_width = link_data->slot_width; in imx_aif_hw_params() 312 slot_width = params_width(params); in imx_aif_hw_params() 331 slots, slot_width); in imx_aif_hw_params() 347 slots, slot_width); in imx_aif_hw_params() 685 &link_data->slot_width); in imx_card_parse_of() 690 if (!link_data->slot_width) in imx_card_parse_of() [all …]
|
A D | fsl_ssi.c | 264 unsigned int slot_width; member 689 unsigned int slot_width = params_width(hw_params); in fsl_ssi_set_bclk() local 699 if (ssi->slot_width) in fsl_ssi_set_bclk() 700 slot_width = ssi->slot_width; in fsl_ssi_set_bclk() 705 slot_width = 32; in fsl_ssi_set_bclk() 708 freq = slots * slot_width * params_rate(hw_params); in fsl_ssi_set_bclk() 1058 u32 rx_mask, int slots, int slot_width) in fsl_ssi_set_dai_tdm_slot() argument 1065 if (slot_width & 1 || slot_width < 8 || slot_width > 24) { in fsl_ssi_set_dai_tdm_slot() 1066 dev_err(dai->dev, "invalid slot width: %d\n", slot_width); in fsl_ssi_set_dai_tdm_slot() 1092 ssi->slot_width = slot_width; in fsl_ssi_set_dai_tdm_slot()
|
A D | fsl_esai.c | 72 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()
|
/linux-6.3-rc2/sound/soc/sti/ |
A D | sti_uniperif.c | 126 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 D | uniperif_reader.c | 84 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-6.3-rc2/sound/soc/bcm/ |
A D | bcm2835-i2s.c | 119 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-6.3-rc2/sound/soc/sunxi/ |
A D | sun4i-i2s.c | 205 unsigned int slot_width); 218 unsigned int slot_width; member 339 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument 461 unsigned int slot_width) in sun4i_i2s_set_chan_cfg() argument 480 unsigned int slot_width) in sun8i_i2s_set_chan_cfg() argument 512 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg() 573 lrck_period = slot_width; in sun50i_h6_i2s_set_chan_cfg() 608 if (i2s->slot_width) in sun4i_i2s_hw_params() 609 slot_width = i2s->slot_width; in sun4i_i2s_hw_params() 650 slots, slot_width); in sun4i_i2s_hw_params() [all …]
|
A D | sun8i-codec.c | 174 unsigned int slot_width; member 396 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument 401 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot() 405 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot() 495 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument 497 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order() 518 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params() local 546 lrck_div_order = sun8i_codec_get_lrck_div_order(slots, slot_width); in sun8i_codec_hw_params()
|
/linux-6.3-rc2/sound/soc/meson/ |
A D | axg-tdm-interface.c | 37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument 56 switch (slot_width) { in axg_tdm_set_tdm_slots() 58 slot_width = 32; in axg_tdm_set_tdm_slots() 74 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots() 78 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots() 189 if (iface->slot_width < width) { in axg_tdm_iface_set_stream() 264 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
|
A D | axg-tdm.h | 35 unsigned int slot_width; member 76 unsigned int slot_width);
|
A D | axg-card.c | 22 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()
|
/linux-6.3-rc2/sound/soc/ti/ |
A D | davinci-mcasp.c | 94 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() 1263 if (mcasp->slot_width) in davinci_mcasp_hw_params() 1331 int i, slot_width; in davinci_mcasp_hw_rule_slot_width() local 1334 slot_width = rd->mcasp->slot_width; in davinci_mcasp_hw_rule_slot_width() [all …]
|
/linux-6.3-rc2/include/sound/ |
A D | simple_card_utils.h | 22 u16 slot_width; member 30 int slot_width; member 168 &(dai)->slot_width); 217 if (dai->slot_width) in asoc_simple_debug_dai() 218 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
|
/linux-6.3-rc2/sound/soc/generic/ |
A D | simple-card-utils.c | 150 dai->tdm_width_map[i].slot_width = *p++; in asoc_simple_parse_tdm_width_map() 394 int slot_width, slot_count; in asoc_simple_set_tdm() local 400 slot_width = simple_dai->slot_width; in asoc_simple_set_tdm() 403 if (slot_width == 0) in asoc_simple_set_tdm() 404 slot_width = sample_bits; in asoc_simple_set_tdm() 408 slot_width = simple_dai->tdm_width_map[i].slot_width; in asoc_simple_set_tdm() 418 slot_width); in asoc_simple_set_tdm() 545 simple_dai->slot_width); in asoc_simple_init_dai()
|
/linux-6.3-rc2/sound/soc/qcom/ |
A D | sdm845.c | 94 int channels, slot_width; in sdm845_tdm_snd_hw_params() local 98 slot_width = 16; in sdm845_tdm_snd_hw_params() 109 8, slot_width); in sdm845_tdm_snd_hw_params() 125 8, slot_width); in sdm845_tdm_snd_hw_params() 147 slot_width); in sdm845_tdm_snd_hw_params() 159 slot_width); in sdm845_tdm_snd_hw_params()
|