Home
last modified time | relevance | path

Searched refs:slot_width (Results 1 – 25 of 172) sorted by relevance

1234567

/kernel/linux/linux-5.10/sound/soc/codecs/
Dpcm3168a.c57 int slot_width; member
425 int slot_width) in pcm3168a_set_tdm_slot() argument
438 if (slot_width && in pcm3168a_set_tdm_slot()
439 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
441 slot_width); in pcm3168a_set_tdm_slot()
446 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
469 int i, slot_width; in pcm3168a_hw_params() local
500 if (io_params->slot_width) in pcm3168a_hw_params()
501 slot_width = io_params->slot_width; in pcm3168a_hw_params()
503 slot_width = params_width(params); in pcm3168a_hw_params()
[all …]
Dadau1977.c127 unsigned int slot_width; member
299 unsigned int slot_width; in adau1977_hw_params() local
338 slot_width = 16; in adau1977_hw_params()
343 slot_width = 32; in adau1977_hw_params()
350 if (adau1977->slot_width) in adau1977_hw_params()
351 slot_width = adau1977->slot_width; in adau1977_hw_params()
353 if (slot_width == 16) in adau1977_hw_params()
507 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
595 adau1977->slot_width = width; in adau1977_set_tdm_slot()
709 if (adau1977->slot_width == 16) in adau1977_startup()
[all …]
Dadau7118.c40 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()
Dak5558.c40 int slot_width; member
139 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
196 int slot_width) in ak5558_set_tdm_slot() argument
203 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
205 switch (slots * slot_width) { in ak5558_set_tdm_slot()
Dmax98373-i2c.c315 int slots, int slot_width) in max98373_dai_tdm_slot() argument
324 if (!tx_mask && !rx_mask && !slots && !slot_width) in max98373_dai_tdm_slot()
330 bsel = max98373_get_bclk_sel(slots * slot_width); in max98373_dai_tdm_slot()
333 slots * slot_width); in max98373_dai_tdm_slot()
343 switch (slot_width) { in max98373_dai_tdm_slot()
355 slot_width); in max98373_dai_tdm_slot()
/kernel/linux/linux-4.19/sound/soc/sti/
Dsti_uniperif.c125 int slot_width) in sti_uniperiph_set_tdm_slot() argument
138 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
150 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
185 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
194 uni->tdm_slot.slot_width); in sti_uniperiph_fix_tdm_format()
212 int slot_width = uni->tdm_slot.slot_width / 8; in sti_uniperiph_get_tdm_word_pos() local
228 word16_pos[j] = i * slot_width; in sti_uniperiph_get_tdm_word_pos()
230 if (slot_width == 4) { in sti_uniperiph_get_tdm_word_pos()
Duniperif_reader.c84 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()
/kernel/linux/linux-5.10/sound/soc/sti/
Dsti_uniperif.c125 int slot_width) in sti_uniperiph_set_tdm_slot() argument
138 uni->tdm_slot.slot_width = slot_width; in sti_uniperiph_set_tdm_slot()
150 frame_size = uni->tdm_slot.avail_slots * uni->tdm_slot.slot_width / 8; in sti_uniperiph_set_tdm_slot()
185 switch (uni->tdm_slot.slot_width) { in sti_uniperiph_fix_tdm_format()
194 uni->tdm_slot.slot_width); in sti_uniperiph_fix_tdm_format()
212 int slot_width = uni->tdm_slot.slot_width / 8; in sti_uniperiph_get_tdm_word_pos() local
228 word16_pos[j] = i * slot_width; in sti_uniperiph_get_tdm_word_pos()
230 if (slot_width == 4) { in sti_uniperiph_get_tdm_word_pos()
Duniperif_reader.c84 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()
/kernel/linux/linux-4.19/sound/soc/bcm/
Dbcm2835-i2s.c127 unsigned int slot_width; member
251 dev->slot_width = ratio / 2; in bcm2835_i2s_set_dai_bclk_ratio()
287 dev->slot_width = width; in bcm2835_i2s_set_dai_tdm_slot()
343 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
370 slot_width = dev->slot_width; in bcm2835_i2s_hw_params()
377 slot_width = params_width(params); in bcm2835_i2s_hw_params()
391 if (data_length > slot_width) in bcm2835_i2s_hw_params()
486 data_delay = slot_width - data_length; in bcm2835_i2s_hw_params()
505 rx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
507 tx_mask, slot_width, data_delay, odd_slot_offset); in bcm2835_i2s_hw_params()
[all …]
/kernel/linux/linux-4.19/sound/soc/codecs/
Dadau1977.c128 unsigned int slot_width; member
300 unsigned int slot_width; in adau1977_hw_params() local
339 slot_width = 16; in adau1977_hw_params()
344 slot_width = 32; in adau1977_hw_params()
351 if (adau1977->slot_width) in adau1977_hw_params()
352 slot_width = adau1977->slot_width; in adau1977_hw_params()
354 if (slot_width == 16) in adau1977_hw_params()
508 adau1977->slot_width = 0; in adau1977_set_tdm_slot()
596 adau1977->slot_width = width; in adau1977_set_tdm_slot()
710 if (adau1977->slot_width == 16) in adau1977_startup()
[all …]
Dak5558.c32 int slot_width; member
131 int pcm_width = max(params_physical_width(params), ak5558->slot_width); in ak5558_hw_params()
195 int slot_width) in ak5558_set_tdm_slot() argument
202 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
204 switch (slots * slot_width) { in ak5558_set_tdm_slot()
Dak4458.c34 int slot_width; member
287 int pcm_width = max(params_physical_width(params), ak4458->slot_width); in ak4458_hw_params()
402 unsigned int rx_mask, int slots, int slot_width) in ak4458_set_tdm_slot() argument
409 ak4458->slot_width = slot_width; in ak4458_set_tdm_slot()
411 switch (slots * slot_width) { in ak4458_set_tdm_slot()
/kernel/linux/linux-5.10/sound/soc/bcm/
Dbcm2835-i2s.c119 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 …]
/kernel/linux/linux-4.19/sound/soc/meson/
Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
71 switch (slot_width) { in axg_tdm_set_tdm_slots()
74 iface->slot_width = 32; in axg_tdm_set_tdm_slots()
80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
83 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
183 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
258 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
Daxg-tdm.h35 unsigned int slot_width; member
76 unsigned int slot_width);
/kernel/linux/linux-5.10/sound/soc/meson/
Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots() argument
58 switch (slot_width) { in axg_tdm_set_tdm_slots()
60 slot_width = 32; in axg_tdm_set_tdm_slots()
76 dev_err(dai->dev, "unsupported slot width: %d\n", slot_width); in axg_tdm_set_tdm_slots()
80 iface->slot_width = slot_width; in axg_tdm_set_tdm_slots()
191 if (iface->slot_width < width) { in axg_tdm_iface_set_stream()
266 srate = iface->slots * iface->slot_width * params_rate(params); in axg_tdm_iface_set_sclk()
Daxg-tdm.h35 unsigned int slot_width; member
76 unsigned int slot_width);
Daxg-card.c22 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()
/kernel/linux/linux-4.19/sound/soc/davinci/
Ddavinci-mcasp.c87 int slot_width; member
569 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
662 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
668 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
677 if (slot_width && in davinci_mcasp_set_tdm_slot()
678 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
680 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
687 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
698 u32 slot_width = sample_width; in davinci_config_channel_size() local
717 if (mcasp->slot_width) { in davinci_config_channel_size()
[all …]
/kernel/linux/linux-5.10/sound/soc/ti/
Ddavinci-mcasp.c88 int slot_width; member
639 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
753 int slots, int slot_width) in davinci_mcasp_set_tdm_slot() argument
759 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
768 if (slot_width && in davinci_mcasp_set_tdm_slot()
769 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
771 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
778 mcasp->slot_width = slot_width; in davinci_mcasp_set_tdm_slot()
787 u32 tx_rotate, rx_rotate, slot_width; in davinci_config_channel_size() local
790 if (mcasp->slot_width) in davinci_config_channel_size()
[all …]
/kernel/linux/linux-4.19/sound/soc/fsl/
Dfsl_sai.c127 u32 rx_mask, int slots, int slot_width) in fsl_sai_set_dai_tdm_slot() argument
132 sai->slot_width = slot_width; in fsl_sai_set_dai_tdm_slot()
409 u32 slot_width = word_width; in fsl_sai_hw_params() local
415 if (sai->slot_width) in fsl_sai_hw_params()
416 slot_width = sai->slot_width; in fsl_sai_hw_params()
420 slots * slot_width * params_rate(params)); in fsl_sai_hw_params()
435 val_cr4 |= FSL_SAI_CR4_SYWD(slot_width); in fsl_sai_hw_params()
437 val_cr5 |= FSL_SAI_CR5_WNW(slot_width); in fsl_sai_hw_params()
438 val_cr5 |= FSL_SAI_CR5_W0W(slot_width); in fsl_sai_hw_params()
/kernel/linux/linux-4.19/sound/soc/qcom/
Dsdm845.c32 int channels, slot_width; in sdm845_tdm_snd_hw_params() local
36 slot_width = 32; in sdm845_tdm_snd_hw_params()
47 8, slot_width); in sdm845_tdm_snd_hw_params()
63 8, slot_width); in sdm845_tdm_snd_hw_params()
/kernel/linux/linux-5.10/include/sound/
Dsimple_card_utils.h24 int slot_width; member
111 &(dai)->slot_width);
161 if (dai->slot_width) in asoc_simple_debug_dai()
162 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()
/kernel/linux/linux-5.10/sound/soc/sunxi/
Dsun4i-i2s.c179 unsigned int slot_width; member
300 unsigned int slot_width) in sun4i_i2s_set_clk_rate() argument
347 rate, slots, slot_width); in sun4i_i2s_set_clk_rate()
483 unsigned int slot_width = params_physical_width(params); in sun4i_i2s_hw_params() local
492 if (i2s->slot_width) in sun4i_i2s_hw_params()
493 slot_width = i2s->slot_width; in sun4i_i2s_hw_params()
516 wss = i2s->variant->get_wss(i2s, slot_width); in sun4i_i2s_hw_params()
524 slots, slot_width); in sun4i_i2s_hw_params()
839 int slots, int slot_width) in sun4i_i2s_set_tdm_slot() argument
847 i2s->slot_width = slot_width; in sun4i_i2s_set_tdm_slot()

1234567