Sonos Arc and HDMI

I want to set up another raspberry pi for my Living Room system. Can I attached pi to a 5 port HDMI Switch via HDMI so it can be played over Sonos Arc? Note Sonos Arc only has 1 HDMI input. All my files are Flac. Will this work? Having audio over HDMI bad? Will I lose audio quality?