media: use only when needed

use by setting BOARD_USES_LEGACY_MEDIA := true