Lines Matching refs:slot_width
88 int slot_width;
639 mcasp->slot_width = div / mcasp->tdm_slots;
753 int slots, int slot_width)
759 __func__, tx_mask, rx_mask, slots, slot_width);
768 if (slot_width &&
769 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) {
770 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n",
771 __func__, slot_width);
778 mcasp->slot_width = slot_width;
787 u32 tx_rotate, rx_rotate, slot_width;
790 if (mcasp->slot_width)
791 slot_width = mcasp->slot_width;
793 slot_width = mcasp->max_format_width;
795 slot_width = sample_width;
798 * right aligned formats: rotate w/ slot_width
803 * left aligned formats: rotate w/ (slot_width - sample_width)
807 tx_rotate = (slot_width / 4) & 0x7;
811 rx_rotate = (slot_width - sample_width) / 4;
815 fmt = (slot_width >> 1) - 1;
1238 if (mcasp->slot_width)
1239 sbits = mcasp->slot_width;
1301 int i, slot_width;
1304 slot_width = rd->mcasp->slot_width;
1308 if (snd_pcm_format_width(i) <= slot_width) {
1357 if (rd->mcasp->slot_width)
1358 sbits = rd->mcasp->slot_width;
1420 if (rd->mcasp->slot_width)
1421 sbits = rd->mcasp->slot_width;
1529 else if (mcasp->slot_width) {
1530 /* Only allow formats require <= slot_width bits on the bus */