Commit d42d321b authored by Tomas Barak's avatar Tomas Barak Committed by Benjamin Cabé
Browse files

drivers: i2s: mcux_sai: Add condition for both directions configuration



- i2s_mcux_sai doesn't support configuration of both directions

Signed-off-by: default avatarTomas Barak <tomas.barak@nxp.com>
parent 6f5693a7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -457,6 +457,10 @@ static int i2s_mcux_config(const struct device *dev, enum i2s_dir dir,
	int ret = -EINVAL;
	uint32_t mclk;

	if (dir == I2S_DIR_BOTH) {
		return -ENOSYS;
	}

	if ((dev_data->tx.state != I2S_STATE_NOT_READY) &&
	    (dev_data->tx.state != I2S_STATE_READY) &&
	    (dev_data->rx.state != I2S_STATE_NOT_READY) &&