/linux/sound/soc/codecs/ |
H A D | pcm3168a.c | 54 int slot_width; member 402 int slot_width) in pcm3168a_set_tdm_slot() argument 415 if (slot_width && in pcm3168a_set_tdm_slot() 416 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot() 418 slot_width); in pcm3168a_set_tdm_slot() 423 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot() 445 int i, num_scki_ratios, slot_width; in pcm3168a_hw_params() local 483 if (io_params->slot_width) in pcm3168a_hw_params() 484 slot_width = io_params->slot_width; in pcm3168a_hw_params() 486 slot_width = params_width(params); in pcm3168a_hw_params() [all …]
|
H A D | rtq9128.c | 462 unsigned int rx_mask, int slots, int slot_width) in rtq9128_dai_set_tdm_slot() argument 471 slot_width, tx_mask, rx_mask); in rtq9128_dai_set_tdm_slot() 473 if (slots <= 0 || slot_width <= 0 || slot_width % 8) { in rtq9128_dai_set_tdm_slot() 474 dev_err(dev, "Invalid slot numbers (%d) or width (%d)\n", slots, slot_width); in rtq9128_dai_set_tdm_slot() 479 frame_length = slots * slot_width; in rtq9128_dai_set_tdm_slot() 492 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot() 503 start_loc = (ffs(mask) - 1) * slot_width / 8; in rtq9128_dai_set_tdm_slot() 522 data->tdm_slot_width = slot_width; in rtq9128_dai_set_tdm_slot() 531 unsigned int width, slot_width, bitrate, audbit, dolen; in rtq9128_dai_hw_params() local 585 slot_width = params_physical_width(param); in rtq9128_dai_hw_params() [all …]
|
H 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 …]
|
H A D | adau7118.c | 40 u32 slot_width; member 230 int slot_width) in adau7118_set_tdm_slot() argument 237 dev_dbg(st->dev, "Set tdm, slots:%d width:%d\n", slots, slot_width); in adau7118_set_tdm_slot() 239 switch (slot_width) { in adau7118_set_tdm_slot() 250 dev_err(st->dev, "Invalid slot width:%d\n", slot_width); in adau7118_set_tdm_slot() 260 st->slot_width = slot_width; in adau7118_set_tdm_slot() 287 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 | 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()
|
/linux/sound/soc/fsl/ |
H 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()
|
H A D | imx-card.c | 91 * @slot_width: slot width value 97 unsigned int slot_width; member 144 * obtained from 2 * slots * slot_width 253 int slots, int slot_width) in akcodec_get_mclk_rate() argument 259 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate() 302 unsigned int slots, slot_width; in imx_aif_hw_params() local 306 slot_width = link_data->slot_width; in imx_aif_hw_params() 311 slot_width = params_width(params); in imx_aif_hw_params() 316 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_esai.c | 46 * @slot_width: width of each DAI slot 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 548 /* Override slot_width if being specifically set */ in fsl_esai_hw_params() 549 if (esai_priv->slot_width) in fsl_esai_hw_params() 550 slot_width = esai_priv->slot_width; in fsl_esai_hw_params() [all...] |
/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()
|
/linux/sound/soc/bcm/ |
H 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/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 458 int slots, int slot_width) in sun8i_codec_set_tdm_slot() argument 463 if (slot_width && !is_power_of_2(slot_width)) in sun8i_codec_set_tdm_slot() 467 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot() 557 unsigned int slot_width) in sun8i_codec_get_lrck_div_order() argument 559 unsigned int div = slots * slot_width; in sun8i_codec_get_lrck_div_order() 580 unsigned int slot_width = aif->slot_width in sun8i_codec_hw_params() local [all...] |
/linux/sound/soc/ti/ |
H A D | davinci-i2s.c | 163 int slot_width; member 243 int slots, int slot_width) in davinci_i2s_set_tdm_slot() argument 247 dev_dbg(dev->dev, "slots %d, slot_width %d\n", slots, slot_width); in davinci_i2s_set_tdm_slot() 266 if (davinci_i2s_tdm_word_length(slot_width) < 0) { in davinci_i2s_set_tdm_slot() 267 dev_err(dev->dev, "%s: Unsupported slot_width %d\n", __func__, slot_width); in davinci_i2s_set_tdm_slot() 272 dev->slot_width = slot_width; in davinci_i2s_set_tdm_slot() 320 if (dev->tdm_slots || dev->slot_width) { in davinci_i2s_set_dai_fmt() [all...] |
H A D | davinci-mcasp.c | 92 int slot_width; member 642 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv() 756 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument 765 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot() 774 if (slot_width && in davinci_mcasp_set_tdm_slot() 775 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot() 776 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n", in davinci_mcasp_set_tdm_slot() 777 __func__, slot_width); in davinci_mcasp_set_tdm_slot() 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-tdm-interface.c | 40 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument 59 switch (slot_width) { in axg_tdm_set_tdm_slots() 61 slot_width = 32; in axg_tdm_set_tdm_slots() 77 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots() 81 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots() 168 MAX_SCLK / (iface->slots * iface->slot_width); in axg_tdm_iface_startup() 200 if (iface->slot_width < width) { in axg_tdm_iface_set_stream() 275 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
|
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()
|
H A D | axg-tdm.h | 35 unsigned int slot_width; member 81 unsigned int slot_width);
|
/linux/include/sound/ |
H A D | simple_card_utils.h | 22 u16 slot_width; member 30 int slot_width; member 164 &(dai)->slot_width); 224 if (dai->slot_width) in simple_util_debug_dai() 225 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in simple_util_debug_dai()
|
/linux/sound/soc/qcom/ |
H A D | sdm845.c | 105 int channels, slot_width; in sdm845_tdm_snd_hw_params() local 109 slot_width = 16; in sdm845_tdm_snd_hw_params() 120 8, slot_width); in sdm845_tdm_snd_hw_params() 136 8, slot_width); in sdm845_tdm_snd_hw_params() 158 slot_width); in sdm845_tdm_snd_hw_params() 170 slot_width); in sdm845_tdm_snd_hw_params()
|
/linux/sound/soc/generic/ |
H A D | simple-card-utils.c | 169 dai->tdm_width_map[i].slot_width = *p++; in simple_util_parse_tdm_width_map() 411 int slot_width, slot_count; in simple_set_tdm() local 417 slot_width = simple_dai->slot_width; in simple_set_tdm() 420 if (slot_width == 0) in simple_set_tdm() 421 slot_width = sample_bits; in simple_set_tdm() 425 slot_width = simple_dai->tdm_width_map[i].slot_width; in simple_set_tdm() 435 slot_width); in simple_set_tdm() 561 simple_dai->slot_width); in simple_init_dai()
|