Your dvr has no optical input and you would not OUTPUT from the receiver to the DVR, that would not work at all.
Now if you are meaning that you want to output sound from the DVR via optical but output Video via HDMI then that depends on the DVR.
Some of them will do this while most will only allow you to use optical with component (red/blue/green) or RCA video outputs and not HDMI.
I suggested my method for maximum compatibility to work with your situation.
If your DVR did support this feature it would still be inefficient as with my method you just change the source on the TV, with your method you would have to change the input on the TV and on the Receiver to say switch inputs to a gaming console, or roku, etc, etc.
There are 2 main methods of connecting stereo receivers to TVs and your equipment:
1) Receiver Centered - this method is used when your receiver has the right video inputs to accept all of your devices (so for today's input ports, HDMI).
For this connection method you connect all devices to the receiver and then output your video to the TV
In this method you may output audio from TV to Receiver if TV is a smart TV with Netflix, hulu, etc or if TV gets cable through the TVs coaxial port and not a separate dvr/receiver.
2) TV Centered - used when your receiver does not have the needed video inputs.
In this method you connect all devices to TVs input ports, and then output audio from TV to receiver, typically via a optical cable.
This method is the best for your situation since your LIfestyle does not have HDMI inputs/output