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:
parent
343f2842bd
commit
f000e1a58a
1 changed files with 0 additions and 8 deletions
|
|
@ -174,9 +174,6 @@ static int i2s_stm32_configure(const struct device *dev, enum i2s_dir dir,
|
|||
int ret;
|
||||
|
||||
if (dir == I2S_DIR_RX) {
|
||||
#if DT_HAS_COMPAT_STATUS_OKAY(st_stm32h7_i2s)
|
||||
return -ENOSYS;
|
||||
#endif
|
||||
stream = &dev_data->rx;
|
||||
} else if (dir == I2S_DIR_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)
|
||||
{
|
||||
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 */
|
||||
if (LL_I2S_IsActiveFlag_OVR(cfg->i2s)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue