Flight Crew Instrument; Flight Crew Multiengine; Flight Crew Air Transport Pilot (ATP)
Situational Awareness; Time Pressure; Troubleshooting
Aircraft Equipment Problem Critical; Flight Deck / Cabin / Aircraft Event Smoke / Fire / Fumes / Odor
Air Traffic Control Provided Assistance; Flight Crew Landed in Emergency Condition; Flight Crew Requested ATC Assistance / Clarification
Aircraft
We were cruising at FL240 about 20-30 minutes from landing when my First Officer noticed smoke coming out of my upper vent next to my window rail; when I turned to look; the smoke got worse and within seconds the flight deck was filled with a grey/dark brown smoke and an electrical burn smell. We immediately put our oxygen masks on; [requested priority handling] with ATC; requested direct to the airport and lower altitude. I called my Flight Attendant and told her we had smoke in the flight deck; to get the cabin ready and that she had 10 minutes. My First Officer and I performed the cabin fire/smoke memory item; followed by the appropriate QRH procedure. At 10;000 ft. the smoke dissipated but the burn smell continued as well as a hazy type of smoke but visible in the flight deck. Upon landing the fire trucks were waiting by the runway and no more smoke in the cockpit; we also opened the windows and no fire indication we continued to taxi to the gate. The fire department inspected the aircraft and concluded there was no fire indication but a very strong electrical smell in the flight deck. We deplaned normally; grounded the aircraft and later on all three of us got checked out by medics at [Company] main office. We always had control of the situation without any undesired aircraft state; everything happened so fast; and we managed to land the aircraft safely with no injuries; but I do have to admit that the oxygen mask and smoke goggles is a very poor design; it took us a little work to get it right. I also noticed when on initial call to my Flight Attendant; I forgot to tell her we had [requested priority handling]; but told her the problem in the cockpit and the time she had to get the cabin ready for a normal landing.	I learned that all the emergency and CRM training pays out at the end.
EMB-145 Captain reported smoke and electrical fumes in the cockpit resulting in an expedited approach and landing at the destination airport.