| /linux/sound/soc/codecs/ |
| H A D | rt9123.c | 202 unsigned int rx_mask, int slots, int slot_width) in rt9123_dai_set_tdm_slot() argument 210 slot_width, tx_mask, rx_mask); in rt9123_dai_set_tdm_slot() 212 if (slots <= 0 || slot_width <= 0 || slots % 2 || slot_width % 8 || in rt9123_dai_set_tdm_slot() 213 slots * slot_width > 256) { in rt9123_dai_set_tdm_slot() 214 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rt9123_dai_set_tdm_slot() 224 rx_loc = (ffs(rx_mask) - 1) * slot_width / 8; in rt9123_dai_set_tdm_slot() 228 rt9123->tdm_slot_width = slot_width; in rt9123_dai_set_tdm_slot() 238 unsigned int fmtval, width, slot_width; in rt9123_dai_hw_params() local 290 slot_width = params_physical_width(param); in rt9123_dai_hw_params() 291 if (rt9123->tdm_slots && slot_width > rt9123->tdm_slot_width) { in rt9123_dai_hw_params()
|
| H A D | rtq9124.c | 175 unsigned int rx_mask, int slots, int slot_width) in rtq9124_dai_set_tdm_slot() argument 183 slot_width, tx_mask, rx_mask); in rtq9124_dai_set_tdm_slot() 185 if (slots <= 0 || slots > 16 || slot_width <= 0 || slots % 2 || slot_width % 8) { in rtq9124_dai_set_tdm_slot() 186 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rtq9124_dai_set_tdm_slot() 202 byte_loc = (ffs(tx_mask) - 1) * slot_width / 8; in rtq9124_dai_set_tdm_slot() 207 byte_loc = (ffs(rx_mask) - 1) * slot_width / 8; in rtq9124_dai_set_tdm_slot() 211 rtq9124->tdm_slot_width = slot_width; in rtq9124_dai_set_tdm_slot() 221 unsigned int fmtval, width, slot_width, bitrate; in rtq9124_dai_hw_params() local 270 slot_width = params_physical_width(param); in rtq9124_dai_hw_params() 271 if (slot_width > rtq9124->tdm_slot_width) { in rtq9124_dai_hw_params()
|
| H A D | rtq9128.c | 548 unsigned int rx_mask, int slots, int slot_width) in rtq9128_dai_set_tdm_slot() argument 557 slot_width, tx_mask, rx_mask); in rtq9128_dai_set_tdm_slot() 559 if (slots <= 0 || slot_width <= 0 || slot_width % 8) { in rtq9128_dai_set_tdm_slot() 560 dev_err(dev, "Invalid slot numbers (%d) or width (%d)\n", slots, slot_width); in rtq9128_dai_set_tdm_slot() 565 frame_length = slots * slot_width; in rtq9128_dai_set_tdm_slot() 578 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot() 589 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot() 608 data->tdm_slot_width = slot_width; in rtq9128_dai_set_tdm_slot() 617 unsigned int width, slot_width, bitrate, audbit, dolen; in rtq9128_dai_hw_params() local 671 slot_width = params_physical_width(param); in rtq9128_dai_hw_params() [all …]
|
| H A D | adau7118.c | 40 u32 slot_width; member 236 int slot_width) in adau7118_set_tdm_slot() argument 243 dev_dbg(st->dev, "Set tdm, slots:%d width:%d\n", slots, slot_width); in adau7118_set_tdm_slot() 245 switch (slot_width) { in adau7118_set_tdm_slot() 256 dev_err(st->dev, "Invalid slot width:%d\n", slot_width); in adau7118_set_tdm_slot() 266 st->slot_width = slot_width; in adau7118_set_tdm_slot() 293 slots_width = st->slot_width; in adau7118_hw_params()
|
| H A D | ak5558.c | 45 int slot_width; 177 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params() 234 int slot_width) in ak5558_set_tdm_slot() 241 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot() 243 switch (slots * slot_width) { in ak5558_set_tdm_slot() 46 int slot_width; global() member 235 ak5558_set_tdm_slot(struct snd_soc_dai * dai,unsigned int tx_mask,unsigned int rx_mask,int slots,int slot_width) ak5558_set_tdm_slot() argument
|
| H A D | max98373-i2c.c | 318 int slots, int slot_width) in max98373_dai_tdm_slot() argument 327 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot() 333 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot() 336 slots * slot_width); in max98373_dai_tdm_slot() 346 switch (slot_width) { in max98373_dai_tdm_slot() 358 slot_width); in max98373_dai_tdm_slot()
|
| H 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()
|
| H A D | max98520.c | 264 int slots, int slot_width) in max98520_dai_tdm_slot() argument 272 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98520_dai_tdm_slot() 278 bsel = max98520_get_bclk_sel(slots * slot_width); in max98520_dai_tdm_slot() 281 slots * slot_width); in max98520_dai_tdm_slot() 291 switch (slot_width) { in max98520_dai_tdm_slot() 303 slot_width); in max98520_dai_tdm_slot()
|
| H A D | ak4458.c | 54 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() 548 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument 555 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
|
| H A D | max98388.c | 687 int slots, int slot_width) in max98388_dai_tdm_slot() argument 697 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98388_dai_tdm_slot() 703 bsel = max98388_get_bclk_sel(slots * slot_width); in max98388_dai_tdm_slot() 706 slots * slot_width); in max98388_dai_tdm_slot() 716 switch (slot_width) { in max98388_dai_tdm_slot() 728 slot_width); in max98388_dai_tdm_slot()
|
| H A D | tas675x.c | 58 int slot_width; member 1053 int dai_id, int slot_width) in tas675x_program_slot_offsets() argument 1061 offset = tas->audio_slot * slot_width; in tas675x_program_slot_offsets() 1063 offset = __ffs(tas->tx_mask) * slot_width; in tas675x_program_slot_offsets() 1080 offset = tas->llp_slot * slot_width; in tas675x_program_slot_offsets() 1082 offset = __ffs(tas->tx_mask) * slot_width; in tas675x_program_slot_offsets() 1094 if (!tas->slot_width) in tas675x_program_slot_offsets() 1097 offset = tas->vpredict_slot * slot_width; in tas675x_program_slot_offsets() 1106 offset = tas->isense_slot * slot_width; in tas675x_program_slot_offsets() 1215 tas->slot_width ?: params_width(params)); in tas675x_hw_params() [all …]
|
| H A D | mc13783.c | 295 int slot_width) in mc13783_set_tdm_slot_dac() argument 340 int slot_width) in mc13783_set_tdm_slot_codec() argument 362 int slot_width) in mc13783_set_tdm_slot_sync() argument 367 slot_width); in mc13783_set_tdm_slot_sync() 372 slot_width); in mc13783_set_tdm_slot_sync()
|
| /linux/sound/soc/sti/ |
| H 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()
|
| H A D | uniperif_reader.c | 82 int slot_width; in uni_reader_prepare_pcm() 87 slot_width = 32; in uni_reader_prepare_pcm() 91 slot_width = 16; in uni_reader_prepare_pcm() 94 slot_width = 32; in uni_reader_prepare_pcm() 100 switch (slot_width) { in uni_reader_prepare_pcm() 84 int slot_width; uni_reader_prepare_pcm() local
|
| /linux/sound/soc/sunxi/ |
| H A D | sun4i-i2s.c | 203 * @slot_width: bits per sample + padding bits, regardless of format 207 unsigned int slot_width); 220 unsigned int slot_width; member 341 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument 388 rate, slots, slot_width); in sun4i_i2s_set_clk_rate() 463 unsigned int slot_width) in sun4i_i2s_set_chan_cfg() argument 482 unsigned int slot_width) in sun8i_i2s_set_chan_cfg() argument 508 lrck_period = slot_width * slots; in sun8i_i2s_set_chan_cfg() 514 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg() 534 unsigned int slot_width) in sun50i_h6_i2s_set_chan_cfg() argument 599 unsigned int slot_width = params_physical_width(params); sun4i_i2s_hw_params() local 1076 sun4i_i2s_set_tdm_slot(struct snd_soc_dai * dai,unsigned int tx_mask,unsigned int rx_mask,int slots,int slot_width) sun4i_i2s_set_tdm_slot() argument [all...] |
| H A D | sun8i-codec.c | 206 unsigned int slot_width; member 455 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument 460 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot() 464 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot() 554 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument 556 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order() 577 unsigned int slot_width = aif->slot_width in sun8i_codec_hw_params() local [all...] |
| /linux/sound/soc/fsl/ |
| H A D | imx-card.c | 99 unsigned int slot_width; member 286 int slots, int slot_width) in akcodec_get_mclk_rate() argument 292 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate() 335 unsigned int slots, slot_width; in imx_aif_hw_params() local 339 slot_width = link_data->slot_width; in imx_aif_hw_params() 344 slot_width = params_width(params); in imx_aif_hw_params() 362 slots, slot_width); in imx_aif_hw_params() 379 slots, slot_width); in imx_aif_hw_params() 389 mclk_freq = akcodec_get_mclk_rate(substream, params, slots, slot_width); in imx_aif_hw_params() 391 mclk_freq = params_rate(params) * slots * slot_width; in imx_aif_hw_params() [all …]
|
| H A D | fsl_ssi.c | 221 * @slot_width: Width of each DAI slot 264 unsigned int slot_width; member 676 * freq: Output BCLK frequency = samplerate * slots * slot_width 677 * (In 2-channel I2S Master mode, slot_width is fixed 32) 689 unsigned int slot_width = params_width(hw_params); in fsl_ssi_set_bclk() local 696 /* Override slots and slot_width if being specifically set... */ in fsl_ssi_set_bclk() 699 if (ssi->slot_width) in fsl_ssi_set_bclk() 700 slot_width = ssi->slot_width; in fsl_ssi_set_bclk() 705 slot_width in fsl_ssi_set_bclk() 1058 fsl_ssi_set_dai_tdm_slot(struct snd_soc_dai * dai,u32 tx_mask,u32 rx_mask,int slots,int slot_width) fsl_ssi_set_dai_tdm_slot() argument [all...] |
| H A D | fsl_sai.c | 214 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot_tx() argument 220 sai->slot_width[tx] = slot_width; in fsl_sai_set_dai_tdm_slot_tx() 226 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot_rx() argument 232 sai->slot_width[tx] = slot_width; in fsl_sai_set_dai_tdm_slot_rx() 238 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument 242 ret = fsl_sai_set_dai_tdm_slot_tx(cpu_dai, tx_mask, rx_mask, slots, slot_width); in fsl_sai_set_dai_tdm_slot() 246 return fsl_sai_set_dai_tdm_slot_rx(cpu_dai, tx_mask, rx_mask, slots, slot_width); in fsl_sai_set_dai_tdm_slot() 620 u32 slot_width = word_width; in fsl_sai_hw_params() local 626 if (sai->slot_width[tx]) in fsl_sai_hw_params() 627 slot_width = sai->slot_width[tx]; in fsl_sai_hw_params() [all …]
|
| /linux/sound/soc/ti/ |
| H A D | davinci-mcasp.c | 958 int slots, int slot_width) in mcasp_common_hw_param() 967 __func__, tx_mask, rx_mask, slots, slot_width); in mcasp_common_hw_param() 976 if (slot_width && in mcasp_common_hw_param() 977 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in mcasp_common_hw_param() 978 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n", in mcasp_common_hw_param() 979 __func__, slot_width); in mcasp_common_hw_param() 986 mcasp->slot_width_tx = slot_width; in mcasp_i2s_hw_param() 990 mcasp->slot_width_rx = slot_width; in mcasp_i2s_hw_param() 92 int slot_width; global() member 756 davinci_mcasp_set_tdm_slot(struct snd_soc_dai * dai,unsigned int tx_mask,unsigned int rx_mask,int slots,int slot_width) davinci_mcasp_set_tdm_slot() argument 793 u32 tx_rotate, rx_rotate, slot_width; davinci_config_channel_size() local 1329 int slot_width; davinci_mcasp_hw_rule_slot_width() local [all...] |
| /linux/sound/soc/meson/ |
| H 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() 216 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
|
| /linux/sound/soc/qcom/ |
| H A D | sdm845.c | 101 int channels, slot_width; in sdm845_tdm_snd_hw_params() 105 slot_width = 16; in sdm845_tdm_snd_hw_params() 116 8, slot_width); in sdm845_tdm_snd_hw_params() 132 8, slot_width); in sdm845_tdm_snd_hw_params() 154 slot_width); in sdm845_tdm_snd_hw_params() 166 slot_width); in sdm845_tdm_snd_hw_params() 102 int channels, slot_width; sdm845_tdm_snd_hw_params() local
|
| /linux/sound/soc/generic/ |
| H A D | simple-card-utils.c | 184 dai->tdm_width_map[i].slot_width = *p++; in simple_util_parse_tdm_width_map() 455 int slot_width, slot_count; in simple_set_tdm() 461 slot_width = simple_dai->slot_width; in simple_set_tdm() 464 if (slot_width == 0) in simple_util_hw_params() 465 slot_width = sample_bits; in simple_util_hw_params() 469 slot_width = simple_dai->tdm_width_map[i].slot_width; in simple_util_hw_params() 479 slot_width); in simple_util_hw_params() 624 simple_dai->slot_width); in simple_init_for_codec2codec() 434 int slot_width, slot_count; simple_set_tdm() local [all...] |
| /linux/sound/soc/stm/ |
| H A D | stm32_sai_sub.c | 93 * @slot_width: rx or tx slot width in bits 128 int slot_width; member 724 u32 rx_mask, int slots, int slot_width) 735 tx_mask, rx_mask, slots, slot_width); in stm32_sai_set_dai_tdm_slot() 737 switch (slot_width) { in stm32_sai_set_dai_tdm_slot() 768 sai->slot_width = slot_width; in stm32_sai_set_dai_tdm_slot() 1001 sai->slot_width = sai->data_size; in stm32_sai_set_slots() 1003 if (sai->slot_width < sai->data_size) { in stm32_sai_set_slots() 1028 sai->slots, sai->slot_width); in stm32_sai_set_slots() 726 stm32_sai_set_dai_tdm_slot(struct snd_soc_dai * cpu_dai,u32 tx_mask,u32 rx_mask,int slots,int slot_width) stm32_sai_set_dai_tdm_slot() argument [all...] |
| /linux/sound/soc/ux500/ |
| H A D | ux500_msp_dai.c | 580 int slots, int slot_width) in ux500_msp_dai_set_tdm_slot() argument 605 if (!(slot_width == 16)) { in ux500_msp_dai_set_tdm_slot() 607 __func__, slot_width); in ux500_msp_dai_set_tdm_slot() 610 drvdata->slot_width = slot_width; in ux500_msp_dai_set_tdm_slot() 731 drvdata->slot_width = 16; in ux500_msp_drv_probe()
|