Okay I have scratched the entire thing, installed steam link, sound comes out tv, install retropie sound still comes out speaker.
Install squeezelite and it’s sound comes out of the tv, enable hifiberry-dac-overlay in the osmc settings and steam and retropie don’t work but osmc still manages to use the hdmi.
Steam and Retro complain about alsa being busy so it’s definitely squeezelite and the dac
here is squeezelite -l before enabling the dac:
Output devices: null - Discard all samples (playback) or generate zero samples (capture) default:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device sysdefault:CARD=ALSA - bcm2835 ALSA, bcm2835 ALSA - Default Audio Device dmix:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample mixing device dmix:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample mixing device dmix:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample mixing device dsnoop:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct sample snooping device dsnoop:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct sample snooping device dsnoop:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct sample snooping device hw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Direct hardware device without any conversions hw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Direct hardware device without any conversions hw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Direct hardware device without any conversions plughw:CARD=ALSA,DEV=0 - bcm2835 ALSA, bcm2835 ALSA - Hardware device with all software conversions plughw:CARD=ALSA,DEV=1 - bcm2835 ALSA, bcm2835 IEC958/HDMI - Hardware device with all software conversions plughw:CARD=ALSA,DEV=2 - bcm2835 ALSA, bcm2835 IEC958/HDMI1 - Hardware device with all software conversions
and squeezelite -l after enabling the dac:
Output devices: null - Discard all samples (playback) or generate zero samples (capture) default:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Default Audio Device sysdefault:CARD=sndrpihifiberry - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 - snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0 - Hardware device with all software conversions
doing an aplay -l only gives the dac
So it seems that enabling the dac overrides all the other devices. However for some reason in the sound settings of osmc it only sees, Hdmi, analogue or hdmi and analogue which must be why it still works and watchings movies and shows works perfectly fine