There should be some setting on your receiver's setup menu for routing the digital input (i.e. your optical cable). Not knowing what receiver you have, it's hard to tell you exactly where to look. But in your setups, there should be a way to assign, for example, "Optical In 1" to "DVD". Then, when you have your receiver set to DVD, it will look first to the Optical In 1 input for audio.