Electron-hole recombination is correct. In a diode laser, photons are produced when electrons from the n-type region recombine with holes in the p-type region at the junction, releasing energy as light. Fermi level shift and carrier injection are related processes but not the photon-producing mechanism. Carrier freeze out is a low-temperature phenomenon that reduces conductivity.