While I don’t think changing from analog jack to HDMI in Alsa is the way I would suggest (currently I would suggest to have a key action in Kodi defined to switch between HDMI and Alsa) I believe your problem with Alsa in the latest OSMC can be solved if you add dtparam=audio=on
to /boot/config.txt