Sound hardware is as follows. I am using PCIe card with toslink audio. Not audio over HDMI.
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICE1724 [ICEnsemble ICE1724], device 0: ICE1724 [ICE1724]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: ICE1724 [ICEnsemble ICE1724], device 1: ICE1724 IEC958 [ICE1724 IEC958]
Subdevices: 0/1
Subdevice #0: subdevice #0
HTPC:~$ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
dmix:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct sample snooping device
hw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
Hardware device with all software conversions
default:CARD=ICE1724
ICEnsemble ICE1724, ICE1724
Default Audio Device
front:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
Front speakers
surround40:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
4.0 Surround output to Front and Rear speakers
surround41:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
Direct sample mixing device
dmix:CARD=ICE1724,DEV=1
ICEnsemble ICE1724, ICE1724 IEC958
Direct sample mixing device
dsnoop:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
Direct sample snooping device
dsnoop:CARD=ICE1724,DEV=1
ICEnsemble ICE1724, ICE1724 IEC958
Direct sample snooping device
hw:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
Direct hardware device without any conversions
hw:CARD=ICE1724,DEV=1
ICEnsemble ICE1724, ICE1724 IEC958
Direct hardware device without any conversions
plughw:CARD=ICE1724,DEV=0
ICEnsemble ICE1724, ICE1724
Hardware device with all software conversions
plughw:CARD=ICE1724,DEV=1
ICEnsemble ICE1724, ICE1724 IEC958
Hardware device with all software conversions
Sound card and audio passthrough are both set to Optical, 5.1 and Custom plughw:1,1