Lines Matching refs:dir

287 			       enum dai_dir dir,  in esai_commit_config()  argument
290 if (dir == DAI_DIR_TX) { in esai_commit_config()
534 enum dai_dir dir) in esai_config_get() argument
547 static int esai_trigger_start(const struct device *dev, enum dai_dir dir) in esai_trigger_start() argument
556 ret = esai_update_state(data, dir, DAI_STATE_RUNNING); in esai_trigger_start()
562 LOG_DBG("starting direction %d", dir); in esai_trigger_start()
565 esai_tx_rx_enable_disable_fifo(base, dir, true); in esai_trigger_start()
573 if (dir == DAI_DIR_TX) { in esai_trigger_start()
580 esai_tx_rx_enable_disable(base, dir, BIT(0), true); in esai_trigger_start()
585 static int esai_trigger_stop(const struct device *dev, enum dai_dir dir) in esai_trigger_stop() argument
594 ret = esai_update_state(data, dir, DAI_STATE_STOPPING); in esai_trigger_stop()
600 LOG_DBG("stopping direction %d", dir); in esai_trigger_stop()
603 esai_tx_rx_enable_disable(base, dir, BIT(0), false); in esai_trigger_stop()
606 esai_tx_rx_enable_disable_fifo(base, dir, false); in esai_trigger_stop()
612 enum dai_dir dir, in esai_trigger() argument
616 if (dir != DAI_DIR_RX && dir != DAI_DIR_TX) { in esai_trigger()
617 LOG_ERR("invalid direction: %d", dir); in esai_trigger()
623 return esai_trigger_start(dev, dir); in esai_trigger()
626 return esai_trigger_stop(dev, dir); in esai_trigger()
640 *esai_get_properties(const struct device *dev, enum dai_dir dir, int stream_id) in esai_get_properties() argument
644 switch (dir) { in esai_get_properties()
650 LOG_ERR("invalid direction: %d", dir); in esai_get_properties()