Lines Matching refs:slot_width
94 int slot_width;
644 mcasp->slot_width = div / mcasp->tdm_slots;
758 int slots, int slot_width)
767 __func__, tx_mask, rx_mask, slots, slot_width);
776 if (slot_width &&
777 (slot_width < 8 || slot_width > 32 || slot_width % 4 != 0)) {
778 dev_err(mcasp->dev, "%s: Unsupported slot_width %d\n",
779 __func__, slot_width);
786 mcasp->slot_width = slot_width;
795 u32 tx_rotate, rx_rotate, slot_width;
798 if (mcasp->slot_width)
799 slot_width = mcasp->slot_width;
801 slot_width = mcasp->max_format_width;
803 slot_width = sample_width;
806 * right aligned formats: rotate w/ slot_width
811 * left aligned formats: rotate w/ (slot_width - sample_width)
815 tx_rotate = (slot_width / 4) & 0x7;
819 rx_rotate = (slot_width - sample_width) / 4;
823 fmt = (slot_width >> 1) - 1;
1263 if (mcasp->slot_width)
1264 sbits = mcasp->slot_width;
1331 int slot_width;
1335 slot_width = rd->mcasp->slot_width;
1339 if (snd_pcm_format_width(i) <= slot_width) {
1389 if (rd->mcasp->slot_width)
1390 sbits = rd->mcasp->slot_width;
1453 if (rd->mcasp->slot_width)
1454 sbits = rd->mcasp->slot_width;
1562 else if (mcasp->slot_width) {
1563 /* Only allow formats require <= slot_width bits on the bus */