Lines Matching defs:tdm_slots
18 int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots)
20 return sample_size * channels * tdm_slots;
37 int snd_soc_calc_bclk(int fs, int sample_size, int channels, int tdm_slots)
39 return fs * snd_soc_calc_frame_size(sample_size, channels, tdm_slots);
61 * Either or both of tdm_width and tdm_slots can be 0.
64 * If tdm_slots == 0: use params_channels() as the slot count.
66 * If slot_multiple > 1 the slot count (or params_channels() if tdm_slots == 0)
71 * If tdm_width == 0 && tdm_slots == 0 && slot_multiple < 2, this is equivalent
76 * @tdm_slots: Number of tdm slots per frame. Must be >= 0.
83 int tdm_width, int tdm_slots, int slot_multiple)
85 if (!tdm_slots)
86 tdm_slots = params_channels(params);
89 tdm_slots = roundup(tdm_slots, slot_multiple);
97 return snd_soc_calc_bclk(params_rate(params), tdm_width, 1, tdm_slots);