Home
last modified time | relevance | path

Searched refs:slot_width (Results 1 - 25 of 218) sorted by relevance

123456789

/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dpcm3168a.c55 int slot_width; member
403 int slot_width) in pcm3168a_set_tdm_slot()
416 if (slot_width && in pcm3168a_set_tdm_slot()
417 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
418 dev_err(component->dev, "Unsupported slot_width %d\n", in pcm3168a_set_tdm_slot()
419 slot_width); in pcm3168a_set_tdm_slot()
424 io_params->slot_width = slot_width; in pcm3168a_set_tdm_slot()
401 pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) pcm3168a_set_tdm_slot() argument
446 int i, num_scki_ratios, slot_width; pcm3168a_hw_params() local
[all...]
H A Dadau1977.c128 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 in adau1977_set_tdm_slot()
[all...]
H A Dadau7118.c40 u32 slot_width; member
228 int slot_width) in adau7118_set_tdm_slot()
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()
226 adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) adau7118_set_tdm_slot() argument
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dpcm3168a.c57 int slot_width; member
425 int slot_width) in pcm3168a_set_tdm_slot()
438 if (slot_width && in pcm3168a_set_tdm_slot()
439 (slot_width != 16 && slot_width != 24 && slot_width != 32 )) { in pcm3168a_set_tdm_slot()
440 dev_err(component->dev, "Unsupported slot_width %d\n", 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()
423 pcm3168a_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) pcm3168a_set_tdm_slot() argument
469 int i, slot_width; pcm3168a_hw_params() local
[all...]
H A 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 in adau1977_set_tdm_slot()
[all...]
H A 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()
203 ak5558->slot_width = slot_width; in ak5558_set_tdm_slot()
205 switch (slots * slot_width) { in ak5558_set_tdm_slot()
194 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 Dadau7118.c40 u32 slot_width; member
228 int slot_width) in adau7118_set_tdm_slot()
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()
226 adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) adau7118_set_tdm_slot() argument
/kernel/linux/linux-6.6/sound/soc/fsl/
H A Dimx-hdmi.c14 * @slot_width: Slot width of each frame
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 Dimx-card.c92 * @slot_width: slot width value
98 unsigned int slot_width; member
145 * obtained from 2 * slots * slot_width
254 int slots, int slot_width) in akcodec_get_mclk_rate()
260 unsigned int width = slots * slot_width; in akcodec_get_mclk_rate()
303 unsigned int slots, slot_width; in imx_aif_hw_params() local
307 slot_width = link_data->slot_width; in imx_aif_hw_params()
312 slot_width = params_width(params); in imx_aif_hw_params()
317 slot_width in imx_aif_hw_params()
252 akcodec_get_mclk_rate(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params, int slots, int slot_width) akcodec_get_mclk_rate() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sti/
H A Dsti_uniperif.c125 int slot_width) in sti_uniperiph_set_tdm_slot()
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 in sti_uniperiph_get_tdm_word_pos()
123 sti_uniperiph_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) sti_uniperiph_set_tdm_slot() argument
[all...]
H A 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-6.6/sound/soc/sti/
H A Dsti_uniperif.c126 int slot_width) in sti_uniperiph_set_tdm_slot()
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 in sti_uniperiph_get_tdm_word_pos()
124 sti_uniperiph_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask, unsigned int rx_mask, int slots, int slot_width) sti_uniperiph_set_tdm_slot() argument
[all...]
H A 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/bcm/
H A 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_dela in bcm2835_i2s_hw_params()
[all...]
/kernel/linux/linux-6.6/sound/soc/bcm/
H A 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_dela in bcm2835_i2s_hw_params()
[all...]
/kernel/linux/linux-6.6/sound/soc/sunxi/
H A Dsun4i-i2s.c201 * @slot_width: bits per sample + padding bits, regardless of format
205 unsigned int slot_width);
218 unsigned int slot_width; member
339 unsigned int slot_width) in sun4i_i2s_set_clk_rate()
386 rate, slots, slot_width); in sun4i_i2s_set_clk_rate()
461 unsigned int slot_width) in sun4i_i2s_set_chan_cfg()
480 unsigned int slot_width) in sun8i_i2s_set_chan_cfg()
506 lrck_period = slot_width * slots; in sun8i_i2s_set_chan_cfg()
512 lrck_period = slot_width; in sun8i_i2s_set_chan_cfg()
532 unsigned int slot_width) in sun50i_h6_i2s_set_chan_cfg()
336 sun4i_i2s_set_clk_rate(struct snd_soc_dai *dai, unsigned int rate, unsigned int slots, unsigned int slot_width) sun4i_i2s_set_clk_rate() argument
459 sun4i_i2s_set_chan_cfg(const struct sun4i_i2s *i2s, unsigned int channels, unsigned int slots, unsigned int slot_width) sun4i_i2s_set_chan_cfg() argument
478 sun8i_i2s_set_chan_cfg(const struct sun4i_i2s *i2s, unsigned int channels, unsigned int slots, unsigned int slot_width) sun8i_i2s_set_chan_cfg() argument
530 sun50i_h6_i2s_set_chan_cfg(const struct sun4i_i2s *i2s, unsigned int channels, unsigned int slots, unsigned int slot_width) sun50i_h6_i2s_set_chan_cfg() argument
597 unsigned int slot_width = params_physical_width(params); sun4i_i2s_hw_params() local
1069 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...]
/kernel/linux/linux-5.10/sound/soc/ti/
H A 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()
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()
770 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n", in davinci_mcasp_set_tdm_slot()
771 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
750 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
787 u32 tx_rotate, rx_rotate, slot_width; davinci_config_channel_size() local
1301 int i, slot_width; davinci_mcasp_hw_rule_slot_width() local
[all...]
/kernel/linux/linux-6.6/sound/soc/ti/
H A Ddavinci-mcasp.c94 int slot_width; member
644 mcasp->slot_width = div / mcasp->tdm_slots; in __davinci_mcasp_set_clkdiv()
758 int slots, int slot_width) in davinci_mcasp_set_tdm_slot()
767 __func__, tx_mask, rx_mask, slots, slot_width); in davinci_mcasp_set_tdm_slot()
776 if (slot_width && in davinci_mcasp_set_tdm_slot()
777 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) { in davinci_mcasp_set_tdm_slot()
778 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n", in davinci_mcasp_set_tdm_slot()
779 __func__, slot_width); in davinci_mcasp_set_tdm_slot()
755 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
795 u32 tx_rotate, rx_rotate, slot_width; davinci_config_channel_size() local
1331 int slot_width; davinci_mcasp_hw_rule_slot_width() local
[all...]
/kernel/linux/linux-6.6/sound/soc/meson/
H A Daxg-tdm-interface.c40 unsigned int slot_width) in axg_tdm_set_tdm_slots()
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()
38 axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask, u32 *rx_mask, unsigned int slots, unsigned int slot_width) axg_tdm_set_tdm_slots() argument
H A 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()
213 of_property_read_u32(node, "dai-tdm-slot-width", &be->slot_width); in axg_card_parse_cpu_tdm_slots()
/kernel/linux/linux-5.10/sound/soc/meson/
H A Daxg-tdm-interface.c37 unsigned int slot_width) in axg_tdm_set_tdm_slots()
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()
35 axg_tdm_set_tdm_slots(struct snd_soc_dai *dai, u32 *tx_mask, u32 *rx_mask, unsigned int slots, unsigned int slot_width) axg_tdm_set_tdm_slots() argument
H A 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()
H A Daxg-tdm.h35 unsigned int slot_width; member
76 unsigned int slot_width);
/kernel/linux/linux-5.10/include/sound/
H A 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-6.6/include/sound/
H A Dsimple_card_utils.h22 u16 slot_width; member
30 int slot_width; member
164 &(dai)->slot_width);
215 if (dai->slot_width) in asoc_simple_debug_dai()
216 dev_dbg(dev, "%s slot width = %d\n", name, dai->slot_width); in asoc_simple_debug_dai()

Completed in 24 milliseconds

123456789