Getting AC3 to stream from Serviio to Sony BD Player

Lately I have been experimenting with Handbrake 0.9.4 to create m4v files using the Apple TV2 preset. This preset encodes two soundtracks from the source material as follows:
Track 1. Dolby ProLogic AAC soundtrack, suitable for playing on iPads.
Track 2. AC3 soundtrack, suitable for playing on a surround sound system.
When I create m4v files using this preset, and use Serviio to stream to my Sony BD Player, or to any iPad, the video and track 1 audio (Dolby ProLogic AAC) play back flawlessly.
However, what I really want to have happen is for my Sony BD player to play back the AC3 soundtrack, connected to my Surround Sound receiver via optical cable.
I am using the Sony BD output profile in Serviio.
Does anyone know how to make Serviio stream AC3 to a Sony BD Player, and Dolby Prologic AAC to an iPad?
Thanks!
Track 1. Dolby ProLogic AAC soundtrack, suitable for playing on iPads.
Track 2. AC3 soundtrack, suitable for playing on a surround sound system.
When I create m4v files using this preset, and use Serviio to stream to my Sony BD Player, or to any iPad, the video and track 1 audio (Dolby ProLogic AAC) play back flawlessly.
However, what I really want to have happen is for my Sony BD player to play back the AC3 soundtrack, connected to my Surround Sound receiver via optical cable.
I am using the Sony BD output profile in Serviio.
Does anyone know how to make Serviio stream AC3 to a Sony BD Player, and Dolby Prologic AAC to an iPad?
Thanks!