Optical out does not work on my new 2011 Mac Mini
New macs have 90 days of free phone and online support. Do get the hardware checked out since the optical switch in the port could be faulty or need cleaning from shipping debris.