drivers: i2s : enable rx path for H7 and H5

In i2s_stm32_isr, remove the errors from SR register
   i2s_stm32_configure, enable the rx path for H7 I2S compatible IP

Signed-off-by: Franck Thebault <franck.thebault@st.com>
Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
This commit is contained in:
IBEN EL HADJ MESSAOUD Marwa 2024-05-21 16:33:16 +02:00 committed by Alberto Escolar
parent 343f2842bd
commit f000e1a58a

View file

@ -174,9 +174,6 @@ static int i2s_stm32_configure(const struct device *dev, enum i2s_dir dir,
int ret; int ret;
if (dir == I2S_DIR_RX) { if (dir == I2S_DIR_RX) {
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32h7_i2s)
return -ENOSYS;
#endif
stream = &dev_data->rx; stream = &dev_data->rx;
} else if (dir == I2S_DIR_TX) { } else if (dir == I2S_DIR_TX) {
stream = &dev_data->tx; stream = &dev_data->tx;
@ -652,11 +649,6 @@ static uint32_t i2s_stm32_irq_udr_count;
static void i2s_stm32_isr(const struct device *dev) static void i2s_stm32_isr(const struct device *dev)
{ {
const struct i2s_stm32_cfg *cfg = dev->config; const struct i2s_stm32_cfg *cfg = dev->config;
struct i2s_stm32_data *const dev_data = dev->data;
struct stream *stream = &dev_data->rx;
LOG_ERR("%s: err=%d", __func__, (int)LL_I2S_ReadReg(cfg->i2s, SR));
stream->state = I2S_STATE_ERROR;
/* OVR error must be explicitly cleared */ /* OVR error must be explicitly cleared */
if (LL_I2S_IsActiveFlag_OVR(cfg->i2s)) { if (LL_I2S_IsActiveFlag_OVR(cfg->i2s)) {