You can connect the DVR to the TV with HDMI.
You can connect the TV to the receiver with either optical or HDMI-ARC.
Check the TV manual on how to configure the one you choose to use. You may have to turn it on, turn the TV speakers off and change the audio output type in the TV menu. If you use ARC then the receiver HDMI out has to connect to the HDMI-ARC input on the TV.