Lines Matching refs:tdm

282     uint32_t msk = slot_cfg->tdm.slot_mask;  in i2s_hal_tdm_set_tx_slot()
286 cnt = ((cnt < 2) && (slot_cfg->tdm.ws_width != 1)) ? 2 : cnt; in i2s_hal_tdm_set_tx_slot()
287 uint32_t total_slot = slot_cfg->tdm.total_slot > cnt ? slot_cfg->tdm.total_slot : cnt; in i2s_hal_tdm_set_tx_slot()
292 i2s_ll_tx_enable_msb_shift(hal->dev, slot_cfg->tdm.bit_shift); in i2s_hal_tdm_set_tx_slot()
293 if (slot_cfg->tdm.ws_width == 0) { // 0: I2S_TDM_AUTO_WS_WIDTH in i2s_hal_tdm_set_tx_slot()
296 i2s_ll_tx_set_ws_width(hal->dev, slot_cfg->tdm.ws_width); in i2s_hal_tdm_set_tx_slot()
299 i2s_ll_tx_set_ws_idle_pol(hal->dev, slot_cfg->tdm.ws_pol); in i2s_hal_tdm_set_tx_slot()
303 I2S_TDM_SLOT0 : (uint32_t)slot_cfg->tdm.slot_mask); in i2s_hal_tdm_set_tx_slot()
304 i2s_ll_tx_set_skip_mask(hal->dev, slot_cfg->tdm.skip_mask); in i2s_hal_tdm_set_tx_slot()
306 i2s_ll_tx_set_bit_order(hal->dev, slot_cfg->tdm.bit_order_lsb); in i2s_hal_tdm_set_tx_slot()
307 i2s_ll_tx_enable_left_align(hal->dev, slot_cfg->tdm.left_align); in i2s_hal_tdm_set_tx_slot()
308 i2s_ll_tx_enable_big_endian(hal->dev, slot_cfg->tdm.big_endian); in i2s_hal_tdm_set_tx_slot()
316 uint32_t msk = slot_cfg->tdm.slot_mask; in i2s_hal_tdm_set_rx_slot()
320 cnt = ((cnt < 2) && (slot_cfg->tdm.ws_width != 1)) ? 2 : cnt; in i2s_hal_tdm_set_rx_slot()
321 uint32_t total_slot = slot_cfg->tdm.total_slot > cnt ? slot_cfg->tdm.total_slot : cnt; in i2s_hal_tdm_set_rx_slot()
326 i2s_ll_rx_enable_msb_shift(hal->dev, slot_cfg->tdm.bit_shift); in i2s_hal_tdm_set_rx_slot()
327 if (slot_cfg->tdm.ws_width == 0) { // 0: I2S_TDM_AUTO_WS_WIDTH in i2s_hal_tdm_set_rx_slot()
330 i2s_ll_rx_set_ws_width(hal->dev, slot_cfg->tdm.ws_width); in i2s_hal_tdm_set_rx_slot()
333 i2s_ll_rx_set_ws_idle_pol(hal->dev, slot_cfg->tdm.ws_pol); in i2s_hal_tdm_set_rx_slot()
337 I2S_TDM_SLOT0 : (uint32_t)slot_cfg->tdm.slot_mask); in i2s_hal_tdm_set_rx_slot()
339 i2s_ll_rx_set_bit_order(hal->dev, slot_cfg->tdm.bit_order_lsb); in i2s_hal_tdm_set_rx_slot()
340 i2s_ll_rx_enable_left_align(hal->dev, slot_cfg->tdm.left_align); in i2s_hal_tdm_set_rx_slot()
341 i2s_ll_rx_enable_big_endian(hal->dev, slot_cfg->tdm.big_endian); in i2s_hal_tdm_set_rx_slot()