AML: Overhaul 3D detection and setting of modes

* based on suggestions by Pivos

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>