Both, odour as in a non-visible unusual smell perhaps from something overheating, for example a fan bearing or a heat sink paste, melting pcb lacquer. Smoke from anything that has combusted & produced visible products of combustion for example a failed capacitor.
I am referring to cockpit fixtures & fittings & avionics bays & not from the the air-con system.