ginogio65 be aware that in my case I am still relying on manual method (checking through kodi GUI) that audio correctly assigned to hdmi1
(Between reboots of rpi4 to update to latest nightly and when my TV/AVR combination are switched off/on)
in my case, I need to ensure ALSA: vc4-hdmi-1, ONK TX-SR608 on HDMI is selected
in your case, I note from secreen grab that you need to ensure ALSA: vc4-hdmi-1, MJI Marantz-AVR on HDMI is selected
My understanding is that vc4-hdmi-1 relates to card0-HDMI-A-2 where for my own understanding I double checked by sshing into rpi4 and inputting tail /sys/class/drm/*/status command when both my TV and AVR is switched on and fully recognised.
So in my usage case above confirms
hdmi0 = card0-HDMI-A-1 = Philips 55PUS7304 4K TV
hdmi1 = card0-HDMI-A-2 = Onkyo TX-SR608 AV Receiver
You are ensuring that your AVR is remaining switched/fixed to hdmi port that you connected your rpi4 to your AVR and that both Audio settings assigned to ALSA: vc4-hdmi-1, MJI Marantz-AVR on HDMI ?
This question/comment relates to my usage case with my TV connected to HDMI out from my AVR in order to utilise CEC/ARC features between TV/AVR. If I am not observant I can miss fact that my AVR may switch from rpi input hdmi port to TV output hdmi port.
(i.e. Does this infrequently during navigation of Kodi GUI controlled via CEC and remote of TV)