What your asking for already exists. Have you read through this guide…
It sounds like what settings you need is to set channels to 2.0 and enable passthrough for AC3 and DTS and enable AC3 transcoding. With the options for eAC3 and the other newer formats not enabled you should get only regular AC3 and DTS core output.