| /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 | 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()
|
| 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 | 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()
|
| H A D | max98927.c | 390 int slots, int slot_width) in max98927_dai_tdm_slot() argument 400 bsel = max98927_get_bclk_sel(slots * slot_width); in max98927_dai_tdm_slot() 403 slots * slot_width); in max98927_dai_tdm_slot() 411 switch (slot_width) { in max98927_dai_tdm_slot() 423 slot_width); in max98927_dai_tdm_slot()
|
| H A D | max98390.c | 384 int slots, int slot_width) in max98390_dai_tdm_slot() argument 393 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98390_dai_tdm_slot() 402 bsel = max98390_get_bclk_sel(slots * slot_width); in max98390_dai_tdm_slot() 405 slots * slot_width); in max98390_dai_tdm_slot() 415 switch (slot_width) { in max98390_dai_tdm_slot() 427 slot_width); in max98390_dai_tdm_slot()
|
| H A D | framer-codec.c | 115 unsigned int slot_width; in framer_dai_hw_rule_format_by_channels() local 124 slot_width = (nb_ts / channels) * 8; in framer_dai_hw_rule_format_by_channels() 129 if (snd_pcm_format_physical_width(format) <= slot_width) in framer_dai_hw_rule_format_by_channels()
|
| /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 | 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()
|
| 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 | 168 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot_tx() argument 174 sai->slot_width[tx] = slot_width; in fsl_sai_set_dai_tdm_slot_tx() 180 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot_rx() argument 186 sai->slot_width[tx] = slot_width; in fsl_sai_set_dai_tdm_slot_rx() 192 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument 196 ret = fsl_sai_set_dai_tdm_slot_tx(cpu_dai, tx_mask, rx_mask, slots, slot_width); in fsl_sai_set_dai_tdm_slot() 200 return fsl_sai_set_dai_tdm_slot_rx(cpu_dai, tx_mask, rx_mask, slots, slot_width); in fsl_sai_set_dai_tdm_slot() 570 u32 slot_width = word_width; in fsl_sai_hw_params() local 576 if (sai->slot_width[tx]) in fsl_sai_hw_params() 577 slot_width = sai->slot_width[tx]; in fsl_sai_hw_params() [all …]
|
| /linux/sound/soc/ti/ |
| H A D | davinci-mcasp.c | 937 int slots, int slot_width) in mcasp_common_hw_param() 946 __func__, tx_mask, rx_mask, slots, slot_width); in mcasp_common_hw_param() 955 if (slot_width && in mcasp_common_hw_param() 956 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in mcasp_common_hw_param() 957 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n", in mcasp_common_hw_param() 958 __func__, slot_width); in mcasp_common_hw_param() 965 mcasp->slot_width_tx = slot_width; in mcasp_common_hw_param() 969 mcasp->slot_width_rx = slot_width; in mcasp_common_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() 584 simple_dai->slot_width); in simple_init_dai() [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()
|