I’ve used these for both TV and Apple TV optical out with some success:
http://www.amazon.com/gp/product/B005K2TXMO?psc=1&redirect=true&ref_=oh_aui_detailpage_o06_s...
There are a few well-reviewed DACs with HDMI input/output. Essence makes one I’ve been considering.
Hope it helps.