| /linux/sound/soc/codecs/ |
| H A D | rt9123.c | 203 unsigned int rx_mask, int slots, int slot_width) in rt9123_dai_set_tdm_slot() argument 210 dev_dbg(dev, "(slots, slot_width) = (%d, %d), (txmask, rxmask) = 0x%x, 0x%x\n", slots, in rt9123_dai_set_tdm_slot() 211 slot_width, tx_mask, rx_mask); in rt9123_dai_set_tdm_slot() 213 if (slots <= 0 || slot_width <= 0 || slots % 2 || slot_width % 8 || in rt9123_dai_set_tdm_slot() 214 slots * slot_width > 256) { in rt9123_dai_set_tdm_slot() 215 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rt9123_dai_set_tdm_slot() 225 rx_loc = (ffs(rx_mask) - 1) * slot_width / 8; in rt9123_dai_set_tdm_slot() 229 rt9123->tdm_slot_width = slot_width; in rt9123_dai_set_tdm_slot() 239 unsigned int fmtval, width, slot_width; in rt9123_dai_hw_params() local [all...] |
| H A D | rtq9124.c | 176 unsigned int rx_mask, int slots, int slot_width) in rtq9124_dai_set_tdm_slot() argument 184 slot_width, tx_mask, rx_mask); in rtq9124_dai_set_tdm_slot() 186 if (slots <= 0 || slots > 16 || slot_width <= 0 || slots % 2 || slot_width % 8) { in rtq9124_dai_set_tdm_slot() 187 dev_err(dev, "Invalid slot parameter (%d, %d)\n", slots, slot_width); in rtq9124_dai_set_tdm_slot() 203 byte_loc = (ffs(tx_mask) - 1) * slot_width / 8; in rtq9124_dai_set_tdm_slot() 208 byte_loc = (ffs(rx_mask) - 1) * slot_width / 8; in rtq9124_dai_set_tdm_slot() 212 rtq9124->tdm_slot_width = slot_width; in rtq9124_dai_set_tdm_slot() 222 unsigned int fmtval, width, slot_width, bitrate; in rtq9124_dai_hw_params() local 271 slot_width = params_physical_width(param); in rtq9124_dai_hw_params() 272 if (slot_width > rtq9124->tdm_slot_width) { in rtq9124_dai_hw_params()
|
| 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 | 319 int slots, int slot_width) in max98373_dai_tdm_slot() argument 328 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot() 334 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot() 337 slots * slot_width); in max98373_dai_tdm_slot() 347 switch (slot_width) { in max98373_dai_tdm_slot() 359 slot_width); in max98373_dai_tdm_slot()
|
| H A D | adau1372.c | 35 unsigned int slot_width; member 643 unsigned int slot_width; in adau1372_hw_params() local 657 slot_width = adau1372->slot_width; in adau1372_hw_params() 658 if (slot_width == 0) in adau1372_hw_params() 659 slot_width = params_width(params); in adau1372_hw_params() 661 switch (slot_width) { in adau1372_hw_params() 691 adau1372->slot_width = 0; in adau1372_set_tdm_slot() 731 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 | 688 int slots, int slot_width) in max98388_dai_tdm_slot() argument 698 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98388_dai_tdm_slot() 704 bsel = max98388_get_bclk_sel(slots * slot_width); in max98388_dai_tdm_slot() 707 slots * slot_width); in max98388_dai_tdm_slot() 717 switch (slot_width) { in max98388_dai_tdm_slot() 729 slot_width); in max98388_dai_tdm_slot()
|
| 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
|
| H A D | uniperif_player.c | 419 int output_frame_size, slot_width, clk_div; in uni_player_prepare_pcm() local 424 slot_width = 32; in uni_player_prepare_pcm() 426 slot_width = snd_pcm_format_width(runtime->format); in uni_player_prepare_pcm() 428 output_frame_size = slot_width * runtime->channels; in uni_player_prepare_pcm() 435 if ((slot_width == 32) && (clk_div % 128)) { in uni_player_prepare_pcm() 440 if ((slot_width == 16) && (clk_div % 64)) { in uni_player_prepare_pcm() 449 switch (slot_width) { in uni_player_prepare_pcm()
|
| /linux/sound/soc/sunxi/ |
| H A D | sun4i-i2s.c | 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 569 lrck_period = slot_width * slots; in sun50i_h6_i2s_set_chan_cfg() [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 in fsl_sai_hw_params() 616 u32 slot_width = word_width; fsl_sai_hw_params() local [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() 214 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 | 102 int channels, slot_width; in sdm845_tdm_snd_hw_params() local 106 slot_width = 16; in sdm845_tdm_snd_hw_params() 117 8, slot_width); in sdm845_tdm_snd_hw_params() 133 8, slot_width); in sdm845_tdm_snd_hw_params() 155 slot_width); in sdm845_tdm_snd_hw_params() 167 slot_width); in sdm845_tdm_snd_hw_params()
|
| /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() 434 int slot_width, slot_count; in simple_set_tdm() local 440 slot_width = simple_dai->slot_width; in simple_set_tdm() 443 if (slot_width == 0) in simple_set_tdm() 444 slot_width = sample_bits; in simple_set_tdm() 448 slot_width = simple_dai->tdm_width_map[i].slot_width; in simple_set_tdm() 458 slot_width); in simple_set_tdm() 603 simple_dai->slot_width); in simple_init_dai()
|
| /linux/sound/soc/ux500/ |
| H A D | ux500_msp_dai.h | 53 int slot_width; member
|
| 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()
|
| /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...] |