Lines Matching defs:width
368 static s8 sun4i_i2s_get_sr(const struct sun4i_i2s *i2s, int width)
370 if (width < 16 || width > 24)
373 if (width % 4)
376 return (width - 16) / 4;
379 static s8 sun4i_i2s_get_wss(const struct sun4i_i2s *i2s, int width)
381 if (width < 16 || width > 32)
384 if (width % 4)
387 return (width - 16) / 4;
390 static s8 sun8i_i2s_get_sr_wss(const struct sun4i_i2s *i2s, int width)
392 if (width % 4)
395 if (width < 8 || width > 32)
398 return (width - 8) / 4 + 1;
487 u32 width;
503 width = DMA_SLAVE_BUSWIDTH_2_BYTES;
506 dev_err(dai->dev, "Unsupported physical sample width: %d\n",
510 i2s->playback_dma_data.addr_width = width;