DVI output, connect the DVI devices using a DVI cable. And when you want to use the HDMI output, you just need to connect the HDMI devices using a HDMI cable. Notification : You should assure that if your Mac has one of the following two kinds of port : mini DP port and Thunderbolt port.
eBay